Geany Error code 139: Segmentation fault (Core dumped) using C
location: linuxexchange.com - date: January 3, 2015
my overall program creates a new file based on a file name and mode that the user enters, then checks to see if the file exists. Following that it outputs whether file creation was successful. It should be simple, but when I compile and build (successfully) with Geany and run, I get the following error in the terminal window (but only after entering the mode "r+"):
./geany_run_script.sh: line 5: 7395 Segmentation fault (core dumped) "./test" c
------------------
(program exited with code: 139)
Press return to continue
Then I ran it with gdb, after reading this
segmentation fault (core dump)
and got this error:
Program received signal SIGSEGV, Segmentation fault.
_IO_new_fclose (fp=0x0) at iofclose.c:54
54 iofclose.c: No such file or directory.
Here is my code:
#include <stdio.h>
#include <stdlib.h>
char filename[100];
char mode[2];
int main(int argc, char **argv)
{
printf("Enter filename:\n>");
scanf("%s", &*filename);
printf("Select a
[SOLVED] "missing kernel .config file" error while compiling linux source code for android
location:
linuxquestions.com - date:
March 18, 2011
I am compiling linux source code for android emulator. I did all the prerequisites. I extracted the .config file from the android emulator(1.5) with following commands
$adb pull /proc/config.gz . # get compressed .config file from the emulator.
$gunzip config.gz # uncompress it.
$cp config .config # rename it into .config
And now the config file is in my /android-sdk-linux_x86/tools directory. I have modified it according to my needs. Now when i try to make(for building and cross-compiling the linux source) i get the following error.
[email protected]:~# cd common
[email protected]:~/common# ARCH=arm CROSS_COMPILE=/home/preetam/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- make
HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c: In function ‘traps’:
scripts/basic/fixdep.c:377: warning: dereferencing type-punned pointer will break strict-aliasing rules
scripts/basic/fixdep.c:379: warning: dereferencing type-punned pointer will break strict-aliasing rule
Error with update2 Enterprise linux class code 70
location: linuxquestions.com - date: July 9, 2007
Newbie!
I've searched the forum but can't find a useful reply. AFAICT using update2 is free, however when I run the application, I get this error which seems to indicate I need to subscribe (pay money) in order to update> Is this correct? I'm using Red Hat Enterprise Linux (2.4.21-4EL) on a machine which had a subscription but which subscription has now expired.
Surely I should be able to get updates without subscribing?
[SOLVED] error with “pmem.c” compiling linux source code for android
location:
linuxquestions.com - date:
March 19, 2011
I am compiling linux source code for android emulator. When i execute make command(for building and cross-compiling the linux source) i get the following error "pmem.c" file.
[email protected]:~# cd common
[email protected]:~/common# make
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
CC drivers/misc/pmem.o
drivers/misc/pmem.c:441: error: conflicting types for ‘phys_mem_access_prot’
/home/preetam/common/arch/x86/include/asm/pgtable.h:383: note: previous declaration of ‘phys_mem_access_prot’ was here
drivers/misc/pmem.c: In function ‘flush_pmem_file’:
drivers/misc/pmem.c:805: error: implicit declaration of function ‘dmac_flush_range’
drivers/misc/pmem.c: In function ‘pmem_setup’:
drivers/misc/pmem.c:1265: error: implicit declaration of function ‘ioremap_cached’
drivers/misc/pmem.c:1266: warning: assignment makes pointer from integer without a cast
make[2]: ***
[SOLVED] error after building Linux source code for android
location:
linuxquestions.com - date:
March 19, 2011
I have compiled the Linux kernel source for android. After building the source i got error,
that is, after
$ARCH=arm CROSS_COMPILE=/path/to/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- make
i got:
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
Kernel: arch/x86/boot/bzImage is ready (#1)
Building modules, stage 2.
MODPOST 2283 modules
WARNING: modpost: Found 1 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
so i did the following:
[email protected]:~/common# make CONFIG_DEBUG_SECTION_MISMATCH=y
CHK include/linux/version.h
CHK include/linux/utsrelease.h
After even after this i got the same output
[email protected]:~/common# make
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
Kernel: arch/x86/boot/bzImage is ready (#
“missing kernel .config file” error while compiling linux source code for android
location:
linuxexchange.com - date:
March 19, 2011
I am compiling linux source code for android emulator. I did all the prerequisites. I extracted the .config file from the android emulator(1.5) with following commands
$adb pull /proc/config.gz . # get compressed .config file from the emulator.
$gunzip config.gz # uncompress it.
$cp config .config # rename it into .config
And now the config file is in my /android-sdk-linux_x86/tools directory. I have modified it according to my needs. Now when i try to make(for building and cross-compiling the linux source) i get the following error.
[email protected]:~# cd common
[email protected]:~/common# ARCH=arm CROSS_COMPILE=/home/preetam/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- make
HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c: In function ‘traps’:
scripts/basic/fixdep.c:377: warning: dereferencing type-punned pointer will break strict-aliasing rules
scripts/basic/fixdep.c:379: warning: dereferencing type-punned pointer will break strict-aliasing rules
HOSTCC s
What is the meaning of error code 24 on Linux?
location: linuxexchange.com - date: August 30, 2010
I'm running a Java program through a Python script on Linux, but the program crashes without outputting any error messages. The os.system command that executes the Java program outputs an error code of 24. What does this mean?
Can't create/write to file Error code 13 in linux
location: linuxexchange.com - date: October 4, 2012
Iam trying to create a mysql table in linux with changing data directory to another location. The selected forlder having full permission. But I got an error 'Can't create/write to file'.
I googled and found that this error related to permission denied. I can change the owner permission of the folder to root using chown command. But it still showing the same error.
mysql> create table test_table( testId int PRIMARY KEY, testName VARCHAR(20) ) DATA DIRECTORY = '/home/Test/Sample/data';
ERROR 1 (HY000): Can't create/write to file '/home/Test/Sample/data/test_table1.MYD' (Errcode: 13)
What I can do??? Please give me any valuable suggestions....
Ghost of Arch Linux — ERROR: (Code: ENOTFOUND)
location: linuxexchange.com - date: August 14, 2015
ERROR: (Code: ENOTFOUND) There was an error starting your server.
Please use the error code above to search for a solution.
I tried same code on Ubuntu and Fedora, and it worked all fine. But when running on Arch Linux, it gives the above error. What could be the problem?
[SOLVED] error after building Linux source code for android
location:
linuxquestions.com - date:
March 19, 2011
I have compiled the Linux kernel source for android. After building the source i got error,
that is, after
$ARCH=arm CROSS_COMPILE=/path/to/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- make
i got:
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
Kernel: arch/x86/boot/bzImage is ready (#1)
Building modules, stage 2.
MODPOST 2283 modules
WARNING: modpost: Found 1 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
so i did the following:
[email protected]:~/common# make CONFIG_DEBUG_SECTION_MISMATCH=y
CHK include/linux/version.h
CHK include/linux/utsrelease.h
After even after this i got the same output
[email protected]:~/common# make
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
Kernel: arch/x86/boot/bzImage is ready (#
please wait...
Page: 1 2 3 4 5 6 7 8 9 10