This is a somewhat old version of gdb, so if this is fixed already, I
apologize:

# gdb /t/menu/menu
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-unknown-freebsd"...
(gdb) attach 2289
Attaching to program: /t/menu/menu, process 2289
Reading symbols from /t/video/libolib.so...done.
Reading symbols from /usr/lib/libg++.so.4...done.
Reading symbols from /usr/lib/libstdc++.so.2...done.
Reading symbols from /usr/lib/libm.so.2...done.
Reading symbols from /usr/lib/libc.so.3...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
0x2818efd8 in open () from /usr/lib/libc.so.3
(gdb) bt
#0  0x2818efd8 in open () from /usr/lib/libc.so.3
#1  0x281ae2b1 in fopen () from /usr/lib/libc.so.3
#2  0x805b87f in main (argc=1, argv=0xbfbfdcbc) at menu.cpp:253
(gdb) down
Bottom (i.e., innermost) frame selected; you cannot go down.
(gdb) up
#1  0x281ae2b1 in fopen () from /usr/lib/libc.so.3
(gdb) up
#2  0x805b87f in main (argc=1, argv=0xbfbfdcbc) at menu.cpp:253
253        FILE *test_snd=fopen("/tmp/sound/fifo.0","r");
(gdb) list
248              }
249           }
250        fclose(test_io);
251        
252        // wait to run menu until we are sure that /tmp/sound/fifo.0
253        FILE *test_snd=fopen("/tmp/sound/fifo.0","r");
254        while(!test_snd)
255           {
256           static int try_count=0;
257           printf("/tmp/sound/fifo.0 not found, waiting 1 sec.\n");
(gdb) cont
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x2818efd8 in open () from /usr/lib/libc.so.3
(gdb) quit
The program is running.  Quit anyway (and detach it)? (y or n) y
Detaching from program: /t/menu/menu, process 2289
gdb in free(): warning: chunk is already free.
# 



Notice the malloc warning after I quit. If this is a FreeBSD specific bug
somehow, I'll notify them instead. If you need any other information, please
let me know.


Kevin

Reply via email to