[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
segfault before main() is called
From: |
Jason . Majors |
Subject: |
segfault before main() is called |
Date: |
Mon, 29 Mar 2004 10:31:47 -0700 |
I'm trying to use the TCPSession and TCPSocket classes for a threaded
daemon I'm writing. To test the code in the daemon, I wrote a main that
bypasses the networking classes (and all cc++ include headers). When I try
to run it, I get a segfault, before it even reaches the first line of
main, which is a cout. I loaded it in gdb to trace the execution, but I'm
not sure how to interpret the output, since it seems to be all library
code. Can somebody with more knowledge of the libraray tell me what this
means?
Thanks.
I'm using gcc 3.3 on AIX 4.3.3 with common cpp 1.1.0.
This GDB was configured as "powerpc-ibm-aix4.3.2.0"...
Core was generated by `jist_test'.
Program terminated with signal 11, Segmentation fault.
#0 0xd31ee0f4 in pthread_mutexattr_init ()
(gdb) where
#0 0xd31ee0f4 in pthread_mutexattr_init ()
#1 0xd31e1db4 in _ZN3ost5MutexC1EPKc (this=<incomplete type>, name=0x0)
at mutex.cpp:180
#2 0xd31eaf74 in _Z41__static_initialization_and_destruction_0ii (
__initialize_p=0, __priority=0) at string.cpp:62
#3 0xd3208770 in _GLOBAL__FI_libccgnu2_1_1_so ()
#4 0xd018f100 in mod_init1 ()
#5 0xd018f014 in __modinit ()
#6 0x1000019c in __start ()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- segfault before main() is called,
Jason . Majors <=