Re: Seg Fault before execute main()



jr wrote:
Hi All,

anyone can help me with this error? I really do not know what's
happening.
I got seg fault before enter main() function.

Just guessing, but are you using C++? If so, do you have any global or static objects? If so, does the constructor for those objects do anything fishy?

HTH
Bjørn



----

[arjunior@paratsol02 ~/fsfix]$ gdb eMonkey core
GNU gdb 6.6
Copyright (C) 2006 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 "sparc-sun-solaris2.10"...
Reading symbols from /lib/libsocket.so.1...done.
Loaded symbols for /lib/libsocket.so.1
Reading symbols from /lib/libc.so.1...done.
Loaded symbols for /lib/libc.so.1
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /platform/SUNW,Sun-Fire-480R/lib/libc_psr.so.
1...done.
Loaded symbols for /platform/SUNW,Sun-Fire-V490/lib/libc_psr.so.1
Reading symbols from /lib/ld.so.1...done.
Loaded symbols for /lib/ld.so.1
Core was generated by `./eMonkey'.
Program terminated with signal 11, Segmentation fault.
#0 0xff25e280 in readdir64 () from /lib/libc.so.1
(gdb)

.



Relevant Pages

  • Re: XMMS or SCHED_ULE issue?
    ... Right after 'continue' in gdb, ... This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols ... Reading symbols from /usr/X11R6/lib/libXext.so.6...(no debugging symbols ... Loaded symbols for /usr/X11R6/lib/libXext.so.6 ...
    (freebsd-current)
  • While runsocks telnet٬core dumped
    ... I checked the log and gdb the core file, ... Reading symbols from /usr/lib/libutil.so.3...(no debugging symbols ... Loaded symbols for /usr/lib/libutil.so.3 ...
    (comp.unix.bsd.freebsd.misc)
  • BETA3 Python (Danjgo) libthr crash
    ... I get the following crash when running the Django development server (non ... GDB is free software, covered by the GNU General Public License, and you are ... Reading symbols from /lib/libutil.so.7...done. ... Loaded symbols for /lib/libutil.so.7 ...
    (freebsd-current)
  • Re: Exploiting SNMP?
    ... > GDB is free software, ... > Reading symbols from /lib/libnsl.so.1...done. ... exploits for kit ucd-snmp. ... int main(int argc, char *argv){ ...
    (Vuln-Dev)
  • Re: process hanging on 7.2-PRERELEASE
    ... GDB is free software, covered by the GNU General Public License, and you are ... There is absolutely no warranty for GDB. ... Loaded symbols for /lib/libgcc_s.so.1 ... Reading symbols from /lib/libthr.so.3...done. ...
    (freebsd-stable)