"John R. Jackson" <[EMAIL PROTECTED]> writes:
> Is there a core file in /etc/amanda/PluggedIn?
Yeah, there is. I've attached it to this email! (Don't worry, only
joking.)
> If so, what program is it from ("file core")? If it's an Amanda
> program (as compared with mtx, for instance), can you run gdb on it
> and the program and get a stack traceback ("where")?
The information below should do the trick. Annoyingly, I've just
discovered the Debian packages for stable are, in fact, 2.4.1. Grrr!
My apologies if this is wasting your time.
morris:/mnt/home/backup# ulimit -c unlimited
morris:/mnt/home/backup# su backup
morris:~$ PATH=/sbin:/usr/sbin:${PATH}
morris:~$ amtape PluggedIn device
Segmentation fault (core dumped)
morris:~$ cd /etc/amanda/PluggedIn/
morris:/etc/amanda/PluggedIn$ file core
core: ELF 32-bit LSB core file of 'amtape' (signal 11), Intel 80386, version 1
morris:/etc/amanda/PluggedIn$ gdb
GNU gdb 19990928
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 "i686-pc-linux-gnu".
(gdb) core-file core
Core was generated by `amtape PluggedIn device'.
Program terminated with signal 11, Segmentation fault.
#0 0x40129a58 in ?? ()
(gdb) where
#0 0x40129a58 in ?? ()
#1 0x401299fd in ?? ()
#2 0x400c824c in ?? ()
#3 0x4001b023 in ?? ()
#4 0x8049f5b in ?? ()
#5 0x8049158 in ?? ()
#6 0x400f2a42 in ?? ()
(gdb) quit
morris:/etc/amanda/PluggedIn$ cd
morris:~$ gdb /usr/sbin/amtape
GNU gdb 19990928
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 "i686-pc-linux-gnu"...(no debugging symbols found)...
(gdb) run PluggedIn device
Starting program: /usr/sbin/amtape PluggedIn device
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols
found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols
found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols
found)...
Program received signal SIGSEGV, Segmentation fault.
0x40129a58 in free () from /lib/libc.so.6
(gdb) where
#0 0x40129a58 in free () from /lib/libc.so.6
#1 0x401299fd in free () from /lib/libc.so.6
#2 0x400c824c in newstralloc () from /usr/lib/libamanda-2.4.1p1.so.0
#3 0x4001b023 in changer_loadslot () from /usr/lib/libamserver-2.4.1p1.so.0
#4 0x8049f5b in match ()
#5 0x8049158 in match ()
#6 0x400f2a42 in __libc_start_main () from /lib/libc.so.6
(gdb) quit
The program is running. Exit anyway? (y or n) y
morris:~$
--
Jason Henry Parker ``Choose mnemonic identifiers. If you
[EMAIL PROTECTED] can't remember what mnemonic means,
[EMAIL PROTECTED] you've got a problem.'' -- Larry Wall