John R. Jackson wrote:
> You need to rebuild everything, not just amidxtaped, because of the
> Amanda libraries it brings in. But you only need to install/test the
> resulting amidxtaped binary. With --disable-shared involved, it should
> be self-contained.
did a 'make distclean'
export CFLAGS=-g
./configure.... --disabled-shared
make
copied amidxtaped to /usr/local/libexec, and gave inetd a SIGHUP.
Ran amrecover and tried extracting a file... core dump
started gdb...
atsun04:/tmp/amanda# gdb /usr/local/libexec/amidxtaped core
GNU gdb 5.0
Copyright 2000 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 "sparc-sun-solaris2.7"...
Core was generated by `'.
Program terminated with signal 11, Segmentation Fault.
Reading symbols from /usr/lib/libgen.so.1...done.
Loaded symbols for /usr/lib/libgen.so.1
Reading symbols from /usr/lib/libm.so.1...done.
Loaded symbols for /usr/lib/libm.so.1
Reading symbols from /usr/lib/libcurses.so.1...done.
Loaded symbols for /usr/lib/libcurses.so.1
Reading symbols from /usr/lib/libsocket.so.1...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libnsl.so.1...done.
Loaded symbols for /usr/lib/libnsl.so.1
Reading symbols from /usr/lib/libintl.so.1...
warning: Lowest section in /usr/lib/libintl.so.1 is .hash at 00000074
done.
Loaded symbols for /usr/lib/libintl.so.1
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/lib/libdl.so.1...done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /usr/lib/libmp.so.2...done.
Loaded symbols for /usr/lib/libmp.so.2
Reading symbols from
/usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1...done.
Loaded symbols for /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1
#0 0xff136dec in strlen () from /usr/lib/libc.so.1
(gdb) bt
#0 0xff136dec in strlen () from /usr/lib/libc.so.1
#1 0xff17fe18 in _doprnt () from /usr/lib/libc.so.1
#2 0xff181c40 in vfprintf () from /usr/lib/libc.so.1
#3 0x13b48 in debug_printf (format=0x1bb70 "%s: version %s\n") at
debug.c:64
#4 0x127a0 in main (argc=0, argv=0xffbefd14) at amidxtaped.c:149
(gdb) break main
Breakpoint 1 at 0x12678: file amidxtaped.c, line 98.
(gdb) run
Starting program: /usr/local/libexec/amidxtaped
warning: Lowest section in /usr/lib/libintl.so.1 is .hash at 00000074
Breakpoint 1, main (argc=1, argv=0xffbefcd4) at amidxtaped.c:98
98 char *buf = NULL;
I did some stepping... and line 104 char *tapename = NULL; ??
Just to make sure that I'm not seeing things... I made sure to run
amrecover with -d.... still NULL.
Any help is appreciated.... apologies for the newbieness here on
debugging c code, as I don't do this all too often ;)
thanks,
\Ben
> John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]