Re: [Question] Segmentation fault

From: Dust (dustlos@hotmail.com)
Date: 04/16/01


(gdb) frame 2
#2  0x8049929 in main (argc=3, argv=0xbfbffbec) at comm.c:304
304         else if ((port = atoi(argv[pos])) <= 1024) {
(gdb) print atoi
$1 = {<text variable, no debug info>} 0x281a9ccc <atoi>
(gdb) break main
Breakpoint 1 at 0x8049711: file comm.c, line 220.
(gdb) run
Starting program: /usr/home/circlemud/circle/bin/circle

Breakpoint 1, main (argc=1, argv=0xbfbffbcc) at comm.c:220
220       int pos = 1;
(gdb) print atoi
$2 = {<text variable, no debug info>} 0x281a9ccc <atoi>
(gdb) quit
The program is running.  Exit anyway? (y or n) y

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/05/01 PST