gildea@BBN.COM (Stephen Gildea) (07/31/89)
Here are two interesting backtraces. One was produced by gdb, the other by adb. Frames 5 and 6 confuse gdb, but not adb. (Dbx does frame 6, but ignores frame 5 entirely.) < Stephen $ gdb /usr/local/gnu/bin/bash ~/core.22004 GDB 2.8, Copyright (C) 1988 Free Software Foundation, Inc. There is ABSOLUTELY NO WARRANTY for GDB; type "info warranty" for details. GDB is free software and you are welcome to distribute copies of it under certain conditions; type "info copying" to see the conditions. Reading symbol data from /usr/local/gnu/bin/bash...done. Type "help" for a list of commands. (gdb) bt #0 0x24ecc in strcmp (313, 1313428048) #1 0x7530 in find_variable (string=(caddr_t) 0x139 "HISTFILE") (variables.c lin e 331) #2 0x7553 in get_string_value (var_name=(caddr_t) 0x139 "HISTFILE") (variables. c line 345) #3 0xdf2 in save_history () (shell.c line 825) #4 0xd35 in termination_unwind_protect (sig=11, 1313428048, 2147474260, 3372) ( shell.c line 784) #5 0x7fffe47b in ?? (11, 1313428048, 2147474260, 3372) #6 0x7fffe470 in ?? () #7 0x7b4 in main (argc=3, argv=(char **) 0x2fdac, env=(char **) 0x3a38c) (shell .c line 465) #8 0x6394 in execute_simple_command (simple_command=(struct simple_com *) 0x2fc ac, pipe_in=-1, pipe_out=-1, async=0) (execute_cmd.c line 779) #9 0x575b in execute_command_internal (command=(struct command *) 0x2fccc, asyn chronous=0, pipe_in=-1, pipe_out=-1) (execute_cmd.c line 195) #10 0x5498 in execute_command (command=(struct command *) 0x2fccc) (execute_cmd. c line 78) #11 0xa21 in reader_loop () (shell.c line 592) #12 0x7b4 in main (argc=3, argv=(char **) 0x5b94c, env=(char **) 0x3a28c) (shell .c line 465) #13 0x6394 in execute_simple_command (simple_command=(struct simple_com *) 0x5bb 4c, pipe_in=-1, pipe_out=-1, async=0) (execute_cmd.c line 779) #14 0x575b in execute_command_internal (command=(struct command *) 0x5b92c, asyn chronous=0, pipe_in=-1, pipe_out=-1) (execute_cmd.c line 195) #15 0x5498 in execute_command (command=(struct command *) 0x5b92c) (execute_cmd. c line 78) #16 0xa21 in reader_loop () (shell.c line 592) #17 0x7b4 in main (argc=1, argv=(char **) 0x7fffdf28, env=(char **) 0x7fffdf30) (shell.c line 465) (gdb) $ adb /usr/local/gnu/bin/bash core.22004 $c _strcmp(139,4e495250) from 24ecc _find_variable(139) from 7530 _get_string_value(139) from 7553 _save_history() from df2 _termination_unwind_protect(b,4e495250,7fffdb54,d2c) from d35 sigtramp(b,4e495250,7fffdb54,d2c) from 7fffe47b _longjmp() from 22931 _main(3,2fdac,3a38c) from 7b4 _execute_simple_command(2fcac,ffffffff,ffffffff,0) from 6394 _execute_command_internal(2fccc,0,ffffffff,ffffffff) from 575b _execute_command(2fccc) from 5498 _reader_loop() from a21 _main(3,5b94c,3a28c) from 7b4 _execute_simple_command(5bb4c,ffffffff,ffffffff,0) from 6394 _execute_command_internal(5b92c,0,ffffffff,ffffffff) from 575b _execute_command(5b92c) from 5498 _reader_loop() from a21 _main(1,7fffdf28,7fffdf30) from 7b4