On 24.04.2018 18:13, Martin Simmons wrote:
On Tue, 24 Apr 2018 15:01:33 +0200, Thorsten Johannsen said:

[...]


[New Thread 0x75c89450 (LWP 25801)]
[Thread 0x75c89450 (LWP 25801) exited]
[New Thread 0x75c89450 (LWP 25828)]
[Thread 0x75c89450 (LWP 25828) exited]
[New Thread 0x75c89450 (LWP 25852)]
[Thread 0x75c89450 (LWP 25852) exited]

That is strange.  Possibly gdb and/or Linux is broken on that system and fails
to catch the signal.

Before the continue command, try the command

handle SIGSEGV

which should print

Signal        Stop      Print   Pass to program Description
SIGSEGV       Yes       Yes     Yes             Segmentation fault


does exactly print the above statement.


If any of the columns contain "No" then do

handle SIGSEGV stop print pass
continue

to see if that works.

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.
(gdb) continue
Continuing.
heRPI02-fd: signal.c:135-1988 sig=11 Segmentation violation
Bacula interrupted by signal 11: Segmentation violation
Kaboom! bacula-fd, heRPI02-fd got signal 11 - Segmentation violation at 26-Apr-2018 14:03:23. Attempting traceback.
Kaboom! exepath=/usr/sbin/
heRPI02-fd: signal.c:205-1988 Working=/var/lib/bacula
heRPI02-fd: signal.c:206-1988 btpath=/usr/sbin/btraceback
heRPI02-fd: signal.c:207-1988 exepath=/usr/sbin/bacula-fd
heRPI02-fd: signal.c:236-1988 Doing waitpid
Calling: /usr/sbin/btraceback /usr/sbin/bacula-fd 4545 /var/lib/bacula
bsmtp: bsmtp.c:488-0 Failed to connect to mailhost localhost
heRPI02-fd: signal.c:238-1988 Done waitpid
The btraceback call returned 1
Dumping: /var/lib/bacula/heRPI02-fd.4545.lockdump
[Thread 0x76563450 (LWP 4548) exited]
[Thread 0x768f8000 (LWP 4545) exited]
[Inferior 1 (process 4545) exited with code 01]
(gdb)
The program is not being run.
(gdb) quit

---------------------------------------------------------------------------------

kind regards,

Thorsten

------------------------------------------------------------------------------
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