Understanding gdb

From: Me (somebudy_at_despammed.com)
Date: 08/19/03


Date: Tue, 19 Aug 2003 22:54:33 +0530

GNU gdb Red Hat Linux 7.x (5.0rh-15) (MI_OUT)
Copyright 2001 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 "i386-redhat-linux"...
(gdb) r 127.0.0.1 3000
Starting program: /home/me/Desktop/server/tcpclient 127.0.0.1 3000

Program received signal SIGSEGV, Segmentation fault.
0x4006089b in __strtol_internal (nptr=0x0, endptr=0x0, base=10, group=0)
    at ../sysdeps/generic/strtol.c:306
306 ../sysdeps/generic/strtol.c: No such file or directory.
        in ../sysdeps/generic/strtol.c

________________________________
If gdb tells us that there is a segmentation fault as shown above then
how can one debug the program, or get any hints to do so.

It does not indicate which line (in my program) caused the trouble.

Thanks for any help.

-- 
somebudy@despammed.com 
The mail id is valid.


Relevant Pages

  • Re: Fedora 9
    ... GNU gdb Fedora ... This is free software: you are free to change and redistribute it. ... There is NO WARRANTY, to the extent permitted by law. ... Program received signal SIGSEGV, Segmentation fault. ...
    (Fedora)
  • Re: Fedora 9
    ... GNU gdb Fedora ... This is free software: you are free to change and redistribute it. ... There is NO WARRANTY, to the extent permitted by law. ... Program received signal SIGSEGV, Segmentation fault. ...
    (Fedora)
  • Re: Fedora 9
    ... GNU gdb Fedora ... This is free software: you are free to change and redistribute it. ... There is NO WARRANTY, to the extent permitted by law. ... Program received signal SIGSEGV, Segmentation fault. ...
    (Fedora)
  • [UNIX] Progress Database Local Buffer Overflow
    ... # gdb /usr/dlc/bin/_mpros core ... Segmentation fault. ... Reading symbols from /lib/libm.so.6...done. ... There is absolutely no warranty for GDB. ...
    (Securiteam)
  • Re: Fedora 9
    ... GNU gdb Fedora ... This is free software: you are free to change and redistribute it. ... Program received signal SIGSEGV, Segmentation fault. ... Missing separate debuginfos, use: debuginfo-install atk.i386 cairo.i386 ...
    (Fedora)