Understanding gdb
From: Me (somebudy_at_despammed.com)
Date: 08/19/03
- Next message: Joe Beanfish: "Re: How Can I get Client Machine's IP in PHP"
- Previous message: Michael Heiming: "Re: Help - what tool can be used to check memory usage?"
- Next in thread: Andrew Taylor: "Re: Understanding gdb"
- Reply: Andrew Taylor: "Re: Understanding gdb"
- Reply: Adam Fineman: "Re: Understanding gdb"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Joe Beanfish: "Re: How Can I get Client Machine's IP in PHP"
- Previous message: Michael Heiming: "Re: Help - what tool can be used to check memory usage?"
- Next in thread: Andrew Taylor: "Re: Understanding gdb"
- Reply: Andrew Taylor: "Re: Understanding gdb"
- Reply: Adam Fineman: "Re: Understanding gdb"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|