>>>>> On Sat, 14 Apr 2018 16:36:12 +0200, Thorsten Johannsen said:
> 
> On 10.04.2018 16:06, Martin Simmons wrote:
> >>>>>> On Tue, 10 Apr 2018 12:58:14 +0200, Johannsen, Thorsten said:
> >>
> >> Hi Martin,
> >>
> >> On 09.04.2018 13:56, Martin Simmons wrote:
> >>
> >>> To debug the client problem, try
> 
> [...]
> 
> > 
> > OK, so the fd is getting a segmentation violation signal.  It is trying to
> > email a backtrace to localhost, but that is failing because there is no smtp
> > service running.
> > 
> > 
> > You could also try running the fd under gdb and then run the gdb commands:
> > 
> > bt
> > thread apply all bt
> > info all
> > x/i $pc
> > x/64i $pc-0x30
> > 
> 
> Ok, here's what I did:
> 
> on heRPI02:
> 
> ps aux |grep bacula-fd  -> PID 540
> 
> gdb
> 
>   - attach 540
> 
> and pressing ENTER until there was a prompt again.
> 
> then keypunching your commands:
> 
>  > bt
>  > thread apply all bt
>  > info all
>  > x/i $pc
>  > x/64i $pc-0x30
>  >
> 
> 
> then started the job via bconsole 'run accurate=yes'
> 
> <snip>
> 
> But what really wonders me is that there does not seem to be any output
> after I started the job via bconsole.
> 
> I guess gdb is keeping the bacula-fd process from segfaulting, because
> it is still in the process list. No idea what the state "tsl" is. It's 
> either not stated in man ps or I've overlooked it.

The attach command pauses the process (the t in tsl means stopped by
debugger), so you need to enter the continue command to make it respond again.

After that, gdb should announce when the segfault occurs and you can then
enter the other commands (bt etc).

__Martin

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to