core dump - signal 9


 
Thread Tools Search this Thread
Top Forums Programming core dump - signal 9
# 1  
Old 07-22-2005
core dump - signal 9

Hi All,

When I ran a multithreaded program in c++, it was core dumped
when its core was analysed

it indicated that the program was terminated with signal 9.
Signal 9 cannot be caught or interrupted.

When i analyzed the core further, it showed SING error
what could be the reason for this core dump.

I would like to add one more information that the program which i ran is one of the reliable program, it had almost run without any flaw for months together, i would like to know how a signal 9 would be generated by the system to abort the program

any help would be greatly appreciated.
Thanks
# 2  
Old 07-22-2005
Is this a program that uses math? I googled "error SING Unix C" and got this.

Hope this helps.
# 3  
Old 07-22-2005
Even i was wondering how could a SING error be triggerred when math functions are nowhere used in the program.

Are SING and DOMAIN errors created only for math functional errors?
or for the following error types also...

to name a few ...
1)unexpected buffer run
2)unexpected multi-threaded lock
3)unexpected corruption of program's internal state

thanks for the reply.

I dont know what could be the reason...
# 4  
Old 07-22-2005
If you compile without stripping, (usually no -s)
then try:
Code:
nm <filename>

It will list all of the modules linked into the file. You will probably find some math runtime calls.

SING only occurs on math errors.
# 5  
Old 07-22-2005
I don't understand how a core dump can claim that a process was terminated by signal 9. Where I come from , signal 9 is not catchable and does not dump core.
# 6  
Old 07-22-2005
I'm sure it bombed on something else - you're right SIGKILL does just that.
Maybe the signal handler caught something else and decided to die.
# 7  
Old 07-25-2005
Quote:
Originally Posted by Perderabo
I don't understand how a core dump can claim that a process was terminated by signal 9. Where I come from , signal 9 is not catchable and does not dump core.
Yes Perderabo, I too had the same doubt of how a core can be generated when signal 9 is sent.

When analyzed further found that, it could be due to the following reason also,

when any other signal (other than sigkill) is sent to the process and the signal handler fails to handle the signal for that process, system level signal 9 is sent to the process with a core being dumped. Hence the core revealed it as being generated by signal 9.(no user defined functions are registered with the signals in the process)

Any thoughts on this would be helpful. Thanks.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. UNIX for Dummies Questions & Answers

No core dump

my progrme complaints 'Segmentation fault'. How to let it print 'Segmentation fault(core dumped)' and generate core dump file? $ulimit unlimited (22 Replies)
Discussion started by: vistastar
22 Replies

4. AIX

Core dump

Hi , I want to read core dump file on AIX5.3. While i am trying to use following commands, i am getting only few lines of information. ux201p3:e46123> dbx capsWrkstnMgr core Type 'help' for help. reading symbolic information ... Segmentation fault in malloc_common.extend_brk at... (1 Reply)
Discussion started by: rps
1 Replies

5. Programming

core dump

how to view core dumped file using gdb and how to extract information from the coredumped file.can we get similar information from the other utilites like strace or ptrace. (2 Replies)
Discussion started by: Manabhanjan
2 Replies

6. HP-UX

Core dump with Signal 11.

Hi all, I am getting coredump in one of our programs. The last few lines of the tucs output are as below : read(8, "\adb\0\006\0\0\0\0\0060 0 9 2 6 ".., 2064) ...... = 2011 read(8, "\adb\0\006\0\0\0\0\07 4 1 4 5 03".., 2064) ...... = 2011 read(8, "\adb\0\006\0\0\0\0\00 2 6 030 0 ".., 2064)... (0 Replies)
Discussion started by: santosh.mane
0 Replies

7. UNIX for Advanced & Expert Users

Core Dump

Hello all, Iam new to unix while executing java program which finely working in windows know iam testing with unix ,but in unix while executing iam getting core dump, my application is in client server environment and it is menu drivrn application on clicking options no problem but after some time... (1 Reply)
Discussion started by: vinp
1 Replies

8. UNIX for Dummies Questions & Answers

Core dump in HP-UX..

Hi All I am new for this forum. I have a core file by using gdb and bt cmd I got the function name but I want to the exact cause of the core dump because of I can not reproduse the binary so if any one know the cmd plz plz plz let me know. (0 Replies)
Discussion started by: gyanusoni
0 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