Segmentation fault while running my appilcation

chandrashekharb

New member
Joined
Jun 13, 2006
Messages
1
Hi,

I am trying to run my application on top of our stack and i am getting following problem.

Environment using: 2.6.15 debian kernel, gcc 3.4.6
g++ 4.0.4 20060507
ld 2.91

Same application is working in 2.6.12 gcc 3.4.6 g++ 3.4.6




GDB TRACE


gdb CAP-V3SendRecvD
GNU gdb 6.4-debian
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) b main
Breakpoint 1 at 0x8064e30: file AppMain.cpp, line 55.
(gdb) r opc 6 dpc 7 -configFile ./itu/cap.bin.1ls.xml
Starting program: /home/chandrashekar/cvsroot/TestTools/SampleApp/bin/CAP-V3SendRecvD opc 6 dpc 7 -configFile ./itu/cap.bin.1ls.xml
[Thread debugging using libthread_db enabled]
[New Thread -1219639616 (LWP 22120)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1219639616 (LWP 22120)]
0xb7720429 in vtable for __cxxabiv1::__si_class_type_info ()
from /usr/lib/libstdc++.so.6
(gdb) where
#0 0xb7720429 in vtable for __cxxabiv1::__si_class_type_info ()
from /usr/lib/libstdc++.so.6
#1 0x00000002 in ?? ()
#2 0xbfd47ee8 in ?? ()
#3 0xbfd47ecc in ?? ()
#4 0xb7f2e338 in ?? () from ./libSampleAppCAP-V3D.so
#5 0xb7f30768 in __init_array_end () from ./libSampleAppCAP-V3D.so
#6 0x080a5218 in ?? ()
#7 0xffffffff in ?? ()
#8 0xb7f1ff23 in __libc_csu_init () from ./libSampleAppCAP-V3D.so
Previous frame inner to this frame (corrupt stack?)
 
Kinda hard to tell, especially since we don't have the source to look at. But gdb is telling you that you have a corrupt stack, which means I wouldn't 100% trust what was returned by the where command.

Also, you might want to compile and link libSampleAppCAP-V3D.so with debug, so it will give you better debug info.

Since it was working with a different g++ version, there is always the possibilty something either broke in the the new version or something was fixed in the new version. I have had programs work for years without a problem, then a new compiler/library comes along and now my app is not working, after doing some debugging, I see that it should never have worked and I was lucky all those years. :)
 
Back
Top