Amanda-Users

Re: Problem with 2.4.5's selfcheck

2005-06-02 16:48:06
Subject: Re: Problem with 2.4.5's selfcheck
From: Anthony Valentine <avalentine AT sbsalaska DOT com>
To: Paul Bijnens <paul.bijnens AT xplanation DOT com>
Date: Thu, 02 Jun 2005 12:29:32 -0800
Paul Bijnens wrote:
Anthony Valentine wrote:
  
I get a seg fault when I try that command.  Output is below (tabs added 
for readability).

sbsdp|amanda: /home/amanda > (echo 'OPTIONS features=fffffeff9ffe7f;' ; 
echo 'GNUTAR / 0') |  /usr/local/libexec/selfcheck
    Segmentation fault
    
Then we need to know where it crashes.  Try this:
First make a little text file containing these three lines:

$ cat sendcheck-input
OPTIONS ;
GNUTAR /gemini/disk4/sort 0 OPTIONS |;bsd-auth;compress-fast;index;
GNUTAR /gemini/disk3/age 0 OPTIONS |;bsd-auth;index;
$


Then execute selfcheck under the debugger:

$ gdb /usr/local/libexec/selfcheck
...blabla...
(gdb)


And start the program handing the little file above on stdin.
When it crashes, execute the 'where' command and send that output.


(gdb)  run < sendcheck-input
...
Program received signal SIGSEGV, Segmentation fault.
...
(gdb)  where
...

  

Here is the gdb output.  Does it matter to gbd that I compiled Amanda with IBM's C for AIX and not gcc?

sbsdp|amanda: /home/amanda > gdb /usr/local/libexec/selfcheck
GNU gdb 6.0
[snip]
(gdb) run < /home/amanda/selfcheckoptions
Starting program: /usr/local/libexec/selfcheck < /home/amanda/selfcheckoptions

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1]
0xd3c722b8 in debug_alloc () from /usr/local/lib/libamclient.a(libamclient-2.4.5.so)
(gdb) where
#0  0xd3c722b8 in debug_alloc () from /usr/local/lib/libamclient.a(libamclient-2.4.5.so)
#1  0xd3c7517c in parse_g_options (str=0x2000b370 ";", verbose=1) at client_util.c:613
#2  0x100027b4 in main (argc=1, argv=0x2ff21c24) at selfcheck.c:130
(gdb) quit


Thanks again for your assistance.  It is greatly appreciated!

Anthony


<Prev in Thread] Current Thread [Next in Thread>