Cannot generate core dump file


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Cannot generate core dump file
# 1  
Old 10-25-2010
Cannot generate core dump file

Segmentation fault(core dumped)

but I cant find core file any where. how to make it out?

I try the command:ulimit -c unlimited, I even added it to the .bashrc file.And I removed ulimit setting in /etc/init.d/function. And there's no ulimit setting in /etc/profile. And I tried sudo find / -name *core*, but find no useful infomation.

PS: run on fedora 12
# 2  
Old 10-25-2010
questions:
1. are you running the code as root - if not the cwd of the process may not allow it to write to the cwd.

2. do you have debuginfo installed?

3. run this as root:

Code:
find / -type -f -name core -exec file {} \;

file usually identifies the name of the program that generated the core. What do you see?
# 3  
Old 10-25-2010
Have you checked the output of
Code:
cat /proc/sys/kernel/core_pattern

If arbtd is running, try stopping this daemon.
# 4  
Old 10-25-2010
That requires debuginfo be installed? Hence my question.....
# 5  
Old 10-26-2010
@jim mcnamara:
I run my programe as root. And I also tried run my programme as its ower.
I dont know what are cwd and debuginfo.

May be your code has a small fault. I think you mean this:
sudo find / -type f -name core -exec file {} \;
(no '-' letter before 'f')
I tried the command, but it output nothing.

@fpmurphy

cat /proc/sys/kernel/core_pattern
|/usr/libexec/hookCCpp /var/cache/abrt %p %s %u


ps -ef |grep arbtd
alien 2410 1945 0 13:36 pts/1 00:00:00 grep arbtd

may be there is no arbtd deamon.


PS:abrtd was running, I typed it in a wrong way. abrtd not arbtd.

Last edited by vistastar; 10-30-2010 at 10:14 AM..
# 6  
Old 10-29-2010
can any body help me?
# 7  
Old 10-29-2010
cwd means Current Working Directory.
If the process owner cannot write to that directory there will be no "core" file.
This also applies if the cwd does not exist (yes it can happen).

Did you write the program?
Does it fail immediately or on some condition?


Maybe this post from a Fedora forum is relevant.
http://forums.fedoraforum.org/showthread.php?t=237200

Last edited by methyl; 10-29-2010 at 11:54 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Problems in reading CORE DUMP file with dbx

I am new to UNIX. My Application is using c (.so files) and Java code. My application crashes and CORE DUMP file is generated ,which is huge. Now I want to view the CORE DUMP file to debug the application using dbx without starting process again. By only using the CORE DUMP file and dbx ,can i... (1 Reply)
Discussion started by: satde
1 Replies

2. Solaris

core dump

Hi guys, just want to know which core file pattern is best to set for core dumps: 1) per-process file name pattern or 2) global file name pattern. I will really appreciate an explanation why the chosen one is better. Thanks a lot guys. (2 Replies)
Discussion started by: cjashu
2 Replies

3. Emergency UNIX and Linux Support

How to open the core dump file in linux?

Hi, I have got core dump stating "core.bash.29846" so i am unable to open. How to open the core dump file for further analysis? Reagards Vanitha (7 Replies)
Discussion started by: vanitham
7 Replies

4. HP-UX

Core dump in HP-UX

Hi Guys, I was wondering if somebody could give me a link to a very good source of information or document about core dump process and How to's about it. I have also googled it and found some articles myself. Thanks Messi (1 Reply)
Discussion started by: messi777
1 Replies

5. Programming

How to use a core dump file

Hi All, May be it is a stupid question, but, I would like to know what is the advantage using a core dump file at the moment of debugging using gdb. I know a core dump has information about the state of the application when it crashed, but, what is the difference between debugging using the... (2 Replies)
Discussion started by: lagigliaivan
2 Replies

6. AIX

core dump

My application gives core dump. When i am debugging with dbx getting instructions below: pthdb_session.c, 818: 695445 PTHDB_INTERNAL (internal error) pthreaded.c, 1941: PTHDB_INTERNAL (internal error) Illegal instruction (illegal opcode) in . at 0x0 warning: Unable to access address 0x0... (1 Reply)
Discussion started by: bapi
1 Replies

7. Programming

how to view a core dump file

by what name does a core dump file stored??? like i wrote a test code: //dump.c main() { char *p=NULL; printf("%s",p); } of course the above code will produce a segmentation fault. but i cant see any file named core in my CWD. am using SUN0S 5.9 (6 Replies)
Discussion started by: vikashtulsiyan
6 Replies

8. UNIX for Dummies Questions & Answers

core dump file size

Hi All, is there any way to find out the optimal/would be size of the cor dump file generated by the system while a process got terminated abnormally? Basically we have been asked to provide the size of the core dump file being generated by the administrators who maintained the UNIX boxes.... (4 Replies)
Discussion started by: pushp.gahlot
4 Replies

9. UNIX for Dummies Questions & Answers

core dump

I've got a core dump in my weblogic home directory, which i have tried to debug by initiating savecore from /etc/init.d/savecore start but savecore failed to create the two files, that is vmcore.n and vmunix.n. savecore is enable on my server to save vmcore and vmunix in /var/crash/hostname 1)... (4 Replies)
Discussion started by: hassan2
4 Replies

10. UNIX for Dummies Questions & Answers

help, what is the difference between core dump and panic dump?

help, what is the difference between core dump and panic dump? (1 Reply)
Discussion started by: aileen
1 Replies
Login or Register to Ask a Question

Featured Tech Videos