473,395 Members | 2,006 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Help. Program coredumps with SIGILL after exit (0) is called

Hi,

I have an application that uses a couple of shared libraries and this
application forks to become a daemon. But when the parent after the
fork
calls exit(0), I am getting a coredump . Upon analyzing the core
in gdb, I see that the SIGILL seems to occur after _fini of a
sharedlibrary... Also, from the backtrace I can see that some
static data is getting deallocated and somehow the code seems
to get into the .plt section..

Here is the gdb back trace of the core file.

#0 0x0f8c387c in __FRAME_END__ () from
/home/yr14/prog12/export/ppc/lib/libsv.so
#1 0x0f8b0004 in __static_initialization_and_destruction_0(int, int)
(__initialize_p=1207960804, __priority=263335744)
#2 0x0f8b0178 in _GLOBAL__D_g_svpdCompBufferSize () at
/home/yr14/prog12/evenmgt.H:594
#3 0x0f875200 in __do_global_dtors_aux () from
/home/yr14/prog12/export/ppc/lib/libsv.so
#4 0x0f8b08c0 in _fini () from
/home/yr14/prog12/export/ppc/lib/libsv.so
#5 0x3000bc00 in _dl_fini () at dl-fini.c:169
#6 0x0fb22c78 in exit (status=0) at exit.c:58
..
..

This seems to occur very rarely (almost like some sort of memory
corruption).
Here are my assumptions
When the parent exits, it calls the _fini of the every
shared library.
if there are any problem in the global data allocation,
will this result in the kind of problem I see here?

I seem to see this only on applications that have its child continue
execution while the parent exits out.

Any help with regard to what I should be looking at the find a
resolution
of this problem will be highly appreciated. My understanding of the
linker/loader process is not very good, so even if it sounds trivial
please
let me know.

This code was runing in a ppc environment running linux. I would be
more
than happy to provide any more information on this.

Thanks in advance and Regards
Anis
Nov 14 '05 #1
1 2584
an****@yahoo.com wrote:
Hi,

I have an application that uses a couple of shared libraries and this
application forks to become a daemon. But when the parent after the
fork
calls exit(0), I am getting a coredump . Upon analyzing the core
in gdb, I see that the SIGILL seems to occur after _fini of a
sharedlibrary... Also, from the backtrace I can see that some
static data is getting deallocated and somehow the code seems
to get into the .plt section..

Here is the gdb back trace of the core file.

#0 0x0f8c387c in __FRAME_END__ () from
/home/yr14/prog12/export/ppc/lib/libsv.so
#1 0x0f8b0004 in __static_initialization_and_destruction_0(int, int)
(__initialize_p=1207960804, __priority=263335744)
#2 0x0f8b0178 in _GLOBAL__D_g_svpdCompBufferSize () at
/home/yr14/prog12/evenmgt.H:594
#3 0x0f875200 in __do_global_dtors_aux () from
/home/yr14/prog12/export/ppc/lib/libsv.so
#4 0x0f8b08c0 in _fini () from
/home/yr14/prog12/export/ppc/lib/libsv.so
#5 0x3000bc00 in _dl_fini () at dl-fini.c:169
#6 0x0fb22c78 in exit (status=0) at exit.c:58
.
.

This seems to occur very rarely (almost like some sort of memory
corruption).
Here are my assumptions
When the parent exits, it calls the _fini of the every
shared library.
if there are any problem in the global data allocation,
will this result in the kind of problem I see here?

I seem to see this only on applications that have its child continue
execution while the parent exits out.

Any help with regard to what I should be looking at the find a
resolution
of this problem will be highly appreciated. My understanding of the
linker/loader process is not very good, so even if it sounds trivial
please
let me know.

This code was runing in a ppc environment running linux. I would be
more
than happy to provide any more information on this.

Thanks in advance and Regards
Anis


Though most of what you describe above is platform specific -- hence off
topic in news:comp.lang.c -- this kind of error is most frequently
caused by overruning a static buffer.

Past that, I can only recommend posting in a more appropriate forum such
as news:comp.unix.programmer or news:comp.os.linux.development.apps.

HTH,
--ag

--
Artie Gold -- Austin, Texas
Nov 14 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: abcd | last post by:
kutthaense Secretary Djetvedehald H. Rumsfeld legai predicted eventual vicmadhlary in Iraq mariyu Afghmadhlaistmadhla, kaani jetvedehly after "a ljetvedehg, hard slog," mariyu vede legai pressed...
60
by: Dominique Léger | last post by:
Hello guys, I'm kinda new to C, and I'm having a hard time with strings. What I'm trying to do is a simple function that trims spaces & tabs at the beginning of a given string. For example, I...
1
by: Michael D. Reed | last post by:
I am using the help class to display a simple help file. I generated the help file using Word and saving it as a single page Web page (.mht extension). I show the help file with the following...
2
by: leo2100 | last post by:
Hi, I need help with this program. The program is supposed to take a text file and identify the words in it, then it should print them and count how many times a word is repeated. At first main...
1
by: Rahul | last post by:
Hi Everybody I have some problem in my script. please help me. This is script file. I have one *.inq file. I want run this script in XML files. But this script errors shows . If u want i am...
1
by: dasilva109 | last post by:
Hi guys I am new to C++ and need urgent help with this part of my code for a uni coursework I have to submit by Thursday //ClientData.h #ifndef CLIENTDATA_H #define CLIENTDATA_H #include...
2
by: dasilva109 | last post by:
Hi guys I am new to C++ and need urgent help with this part of my code for a uni coursework I have to submit by Thursday //ClientData.h #ifndef CLIENTDATA_H #define CLIENTDATA_H #include...
3
by: Dew | last post by:
Hello, iam new to programming, and ive been given a task in my Uni to complete certain exercises but i found it very difficulty to solve them. I was wandering if there is someone who can help me...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.