>>>>> On Thu, 26 Apr 2018 14:17:19 +0200, Thorsten Johannsen said:
> 
> On 24.04.2018 18:13, Martin Simmons wrote:
> 
> [...]
> 
> > You could also kill the current bacula-fd process and start it under gdb, 
> > also
> > adding the -d999 argument to verify that it still gets the segfault, e.g.
> > 
> > sh$ gdb ...path.to.bacula-fd...
> > (gdb) handle SIGSEGV
> > (gdb) run -f -d999
> > 
> 
> Yes, this finally elicitated some useful information (well, just my 
> interpretation... some issue with strlen() ??
> 
> ---------------------------------------------------------------------------------
> eRPI02-fd: message.c:788-1988 Enter dispatch_msg type=6 msg=heRPI02-fd 
> JobId 1988: ClientBeforeJob:
> heRPI02-fd: message.c:991-1988 DIRECTOR for following msg: heRPI02-fd 
> JobId 1988: ClientBeforeJob:
> heRPI02-fd: message.c:1354-1988 Enter Jmsg type=6
> heRPI02-fd: message.c:788-1988 Enter dispatch_msg type=6 msg=heRPI02-fd 
> JobId 1988: ClientBeforeJob: real       0m1.045s
> heRPI02-fd: message.c:991-1988 DIRECTOR for following msg: heRPI02-fd 
> JobId 1988: ClientBeforeJob: real 0m1.045s
> heRPI02-fd: message.c:1354-1988 Enter Jmsg type=6
> heRPI02-fd: message.c:788-1988 Enter dispatch_msg type=6 msg=heRPI02-fd 
> JobId 1988: ClientBeforeJob: user       0m0.849s
> heRPI02-fd: message.c:991-1988 DIRECTOR for following msg: heRPI02-fd 
> JobId 1988: ClientBeforeJob: user 0m0.849s
> heRPI02-fd: message.c:1354-1988 Enter Jmsg type=6
> heRPI02-fd: message.c:788-1988 Enter dispatch_msg type=6 msg=heRPI02-fd 
> JobId 1988: ClientBeforeJob: sys        0m0.129s
> heRPI02-fd: message.c:991-1988 DIRECTOR for following msg: heRPI02-fd 
> JobId 1988: ClientBeforeJob: sys  0m0.129s
> heRPI02-fd: message.c:1354-1988 Enter Jmsg type=6
> heRPI02-fd: message.c:788-1988 Enter dispatch_msg type=6 msg=heRPI02-fd 
> JobId 1988: ClientBeforeJob: exiting...
> heRPI02-fd: message.c:991-1988 DIRECTOR for following msg: heRPI02-fd 
> JobId 1988: ClientBeforeJob: exiting...
> heRPI02-fd: bpipe.c:240-1988 Wait for 4552 opt=0
> heRPI02-fd: bpipe.c:248-1988 Got break wpid=4552 status=0 ERR=none
> heRPI02-fd: bpipe.c:269-1988 child status=0
> heRPI02-fd: bpipe.c:284-1988 returning stat=0,0
> heRPI02-fd: runscript.c:254-1988 runscript OK
> heRPI02-fd: job.c:752-1988 Back from run_scripts ClientBeforeJob now: OK
> heRPI02-fd: job.c:288-1988 <dird: accurate files=65685
> heRPI02-fd: job.c:311-1988 Executing Dir accurate files=65685
>   command.
> heRPI02-fd: htable.c:67-1988 malloc buf=752c5020 size=1000000 rem=435560
> heRPI02-fd: htable.c:130-1988 Leave hash_index hash=0x752c5068 
> index=59779085
> heRPI02-fd: htable.c:283-1988 Insert: hash=0 index=59779085
> heRPI02-fd: htable.c:286-1988 Insert hp=752c5030 index=3015 
> item=752c5030 offset=0
> heRPI02-fd: htable.c:293-1988 Insert hp->next=0 hp->hash=0x390280d 
> hp->key=<NULL>
> heRPI02-fd: htable.c:299-1988 Leave insert index=3015 num_items=1 key=/mnt/
> heRPI02-fd: accurate.c:230-1988 add fname=</mnt/> lstat=LMC HtB EHt C A 
> A A BAA BAA I BaqFXr BaqEVw BaqFXr A A d  delta_seq=0 chksum=
> heRPI02-fd: htable.c:130-1988 Leave hash_index hash=0x6b8b0 
> index=-1036830508
> heRPI02-fd: htable.c:283-1988 Insert: hash=3b2ac index=-1036830508
> heRPI02-fd: htable.c:286-1988 Insert hp=752c50b0 index=14281 
> item=752c50b0 offset=0
> 
> Thread 3 "bacula-fd" received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x75d63450 (LWP 4550)]
> strlen () at ../sysdeps/arm/armv6/strlen.S:26
> 26      ../sysdeps/arm/armv6/strlen.S: No such file or directory.

Yes, this is a good...

> (gdb) continue

...but this was not the correct command here (sorry I should have mentioned
this) :-(

Firstly, try to install the bacula dbg packages, e.g.

sh$ apt-get install bacula-common-dbg bacula-fd-dbg

Then start it under gdb again with -f -d999 and use the following commands
when it stops with the signal SIGSEGV:

bt
thread apply all bt
info all
x/i $pc
x/64i $pc-0x30
disass htable::insert(char*, void*)

__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