Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 680096

Summary: app-backup/bacula-9.4.2 -- director keeps dying, unable to trace because FEATURES=nostrip does not work
Product: Gentoo Linux Reporter: Phil Stracchino (Unix Ronin) <phils>
Component: Current packagesAssignee: Thomas Beierlein <tomjbe>
Status: RESOLVED NEEDINFO    
Severity: normal CC: phils
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Phil Stracchino (Unix Ronin) 2019-03-12 02:58:15 UTC
I recently upgraded to app-backup/bacula-9.4.2.  Ever since updating, my Director keeps randomly dying at intervals of typically a few days.  I am trying to troubleshoot the problem, but I cannot get a traceback because FEATURE nostrip (per https://wiki.gentoo.org/wiki/Debugging) does not work in this ebuild.
Comment 1 Thomas Beierlein gentoo-dev 2019-03-21 06:34:55 UTC
(In reply to Phil Stracchino (Unix Ronin) from comment #0)
> I recently upgraded to app-backup/bacula-9.4.2.  Ever since updating, my
> Director keeps randomly dying at intervals of typically a few days.  I am
> trying to troubleshoot the problem, but I cannot get a traceback because
> FEATURE nostrip (per https://wiki.gentoo.org/wiki/Debugging) does not work
> in this ebuild.

I can not reproduce the problem here. Building with FEATURS=nostrip produces a binary with embedded symbols. 

You can verify it by running 'nm bacula-dir'. It should list all symbols for the file.

Can you please give some background about what you are trying to do?
Comment 2 Phil Stracchino (Unix Ronin) 2019-03-21 14:17:23 UTC
(In reply to Thomas Beierlein from comment #1)
 
> I can not reproduce the problem here. Building with FEATURS=nostrip produces
> a binary with embedded symbols. 
> 
> You can verify it by running 'nm bacula-dir'. It should list all symbols for
> the file.
> 
> Can you please give some background about what you are trying to do?

Tom,
I was trying to diagnose a bug in which the Director keeps silently dying.  This APPEARS to be possibly related to running the dbcheck script weekly from the Director as an admin job.  It's been working fine for years prior to 9.4.2.
Comment 3 Thomas Beierlein gentoo-dev 2019-03-21 14:24:19 UTC
(In reply to Phil Stracchino (Unix Ronin) from comment #2)
> (In reply to Thomas Beierlein from comment #1)
>  
> > I can not reproduce the problem here. Building with FEATURS=nostrip produces
> > a binary with embedded symbols. 
> > 
> > You can verify it by running 'nm bacula-dir'. It should list all symbols for
> > the file.
> > 
> > Can you please give some background about what you are trying to do?
> 
> Tom,
> I was trying to diagnose a bug in which the Director keeps silently dying. 
> This APPEARS to be possibly related to running the dbcheck script weekly
> from the Director as an admin job.  It's been working fine for years prior
> to 9.4.2.

Ok, so I assume you tried to run bacula-dir under gdb control.
Be aware that it forks itself into background as daemon.
So you either have to command it to stay in forground before a 'run' command in gdb or to start it out of gdb and attach gdb afterwards to the process.
Comment 4 Phil Stracchino (Unix Ronin) 2019-03-21 14:28:29 UTC
(In reply to Thomas Beierlein from comment #3)
> 
> Ok, so I assume you tried to run bacula-dir under gdb control.
> Be aware that it forks itself into background as daemon.
> So you either have to command it to stay in forground before a 'run' command
> in gdb or to start it out of gdb and attach gdb afterwards to the process.

Debugging steps like this are exactly why I'm trying to build an unstripped installation.
Comment 5 Thomas Beierlein gentoo-dev 2019-03-21 19:12:22 UTC
(In reply to Phil Stracchino (Unix Ronin) from comment #4)
> (In reply to Thomas Beierlein from comment #3)
> > 
> > Ok, so I assume you tried to run bacula-dir under gdb control.
> > Be aware that it forks itself into background as daemon.
> > So you either have to command it to stay in forground before a 'run' command
> > in gdb or to start it out of gdb and attach gdb afterwards to the process.
> 
> Debugging steps like this are exactly why I'm trying to build an unstripped
> installation.

So, please what gives the 'nm /usr/sbin/bacula-dir' command mentioned in #c 1 at your side? If there are no symbols shown, please provide your emerge --info output. Maybe we can spot the reason.

As I said before, FEATURES=nostrip produces a file with embedded symbol infos here.

As an additional test you can have a look at the file size before and after doing a 'strip bacula-dir'.