Amanda-Users

Re: amlabel - segmentationfault

2003-09-30 10:43:11
Subject: Re: amlabel - segmentationfault
From: Jon LaBadie <jon AT jgcomp DOT com>
To: amanda-users AT amanda DOT org
Date: Tue, 30 Sep 2003 10:38:47 -0400
On Tue, Sep 30, 2003 at 09:26:35AM +0200, Mats Blomstrand wrote:
> (Thanks Jon LaBadie and Paul Bijnens for your useful suggestion on my last
> question)
> 
> When i run amlabel it quits with an seg-fault. Like this:
> 
>       -bash-2.05b$ amlabel normal normal01 slot 1
>       labeling tape in slot 1 (/dev/nst0):
>       rewinding, reading label normal01
>       rewinding, writing label normal01, checking labelSegmentation fault
> 
>       -bash-2.05b$ amlabel normal normal01 slot 1
>       amlabel: label normal01 already on a tape
> 
>       -bash-2.05b$ amlabel normal normal02 slot 2
>       labeling tape in slot 2 (/dev/nst0):
>       rewinding, reading label normal02
>       rewinding, writing label normal02, checking labelSegmentation fault
> 
> Should i be worried?  (Its an redhat 9 with amanda 2.4.4)

Yes.  Programs should not segmentation fault.
Probably a core file was left behind.
In what directory I'm not certain.
Find that and run the file command on it to determine
which program was faulting/core dumping.  It may have
been amlabel or a program amlabel runs.  An example:

   # file /usr/dt/bin/core
   /usr/dt/bin/core:   ELF 32-bit LSB core file 80386 Version 1, from 'dtterm'

In this case it was the program "dtterm" that core dumped.

BTW make sure the core file you check was actually from the amlabel run.
One check is to remove it, run amlabel again to make it segment fault,
and seeing if the core file reappears.

-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)

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