Weird behaviour: Gdb runs a login shell?!
Anthony Briggs <[email protected]>
| Newsgroups | gmane.comp.gdb.bugs.general |
|---|---|
| Message-ID | <a05111b64ba2c6be43128@[192.168.1.2]> |
Hi, I'm having trouble running gdb on FreeBSD 4.7-STABLE. Instead of it running my binary (fracas), it seems to run a shell instead - a login shell, since it prints up my ssh stuff and a cookie. Removing the ssh stuff doesn't seem to make any difference, and I can't find any similar situations via Google. There's nothing that I can see in the online manual or the man pages which applies to my problem. I've tried running gdb on other binaries, but the same thing happens. Rebooting hasn't fixed the problem either. I've attached output from gdb and some commands that might be relevant. Is there any other info you need? Or anything I can do to help track it down further? Thanks, Anthony --- bash-2.04$ gcc -v Using builtin specs. gcc version 2.95.4 20020320 [FreeBSD] bash-2.04$ ls 0 2 fracas game.in 1 3 fracas.html players.in bash-2.04$ gdb fracas GNU gdb 4.18 (FreeBSD) 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"...Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 2627 in elfstab_build_psymtabs Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 933 in fill_symbuf (gdb) run run Starting program: /usr/home/anthony/share/atlantisv5/atlantis/smoketest/testing/fracas run Identity added: /home/anthony/.ssh/identity ([email protected]) Identity added: /home/anthony/.ssh/id_dsa (/home/anthony/.ssh/id_dsa) Being frustrated is disagreeable, but the real disasters in life begin when you get what you want. bash-2.04$ exit logout Program exited normally. You can't do that without a process to debug. (gdb) -- ---------------------------------------------------- HyPEraCtiVE? HeY, WhO aRE YoU cALliNg HypERaCtIve?! [email protected] ----------------------------------------------------