#info you requested
kernel-2.2.12-20
libc-5.3.12-31
glibc-2.1.2-11
#run with your binary from http://www.gxsnmp.org/fa_select
[root@yogimind maustin]# gdb fa_select
GNU gdb 4.18
Copyright 1998 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) run eth0 0
Starting program: /home/maustin/fa_select eth0 0
Program received signal SIGSEGV, Segmentation fault.
0x80485d2 in outb ()
(gdb) bt
#0 0x80485d2 in outb ()
#1 0x804877d in reset ()
#2 0x8048e2e in main ()
#3 0x400301eb in __libc_start_main (main=0x8048d08 <main>, argc=3,
argv=0xbffffce4, init=0x80483bc <_init>, fini=0x8048eec <_fini>,
rtld_fini=0x4000a610 <_dl_fini>, stack_end=0xbffffcdc)
at ../sysdeps/generic/libc-start.c:90
(gdb) q
#run with your updated source and suggested flag
[root@yogimind maustin]# gcc -g -Wall -O -o fa_select eth.c
eth.c: In function `writea':
eth.c:104: warning: unused variable `j'
eth.c: At top level:
eth.c:150: warning: return type of `main' is not `int'
[root@yogimind maustin]# gdb ./fa_select
GNU gdb 4.18
Copyright 1998 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) run eth0 0
Starting program: /home/maustin/./fa_select eth0 0
Program received signal SIGSEGV, Segmentation fault.
0x8048667 in reset (port=2076) at eth.c:60
60 outb(0x08, port);
(gdb) bt
#0 0x8048667 in reset (port=2076) at eth.c:60
#1 0x8048a68 in main (argc=3, argv=0xbffffce4) at eth.c:184
(gdb) q
The program is running. Exit anyway? (y or n) y
|
|