Bareos Bug Tracker
Bareos Bug Tracker

View Issue Details Jump to Notes ] Related Changesets ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000293bareos-core[All Projects] directorpublic2014-05-08 21:302015-03-25 19:18
Reporterstephand 
Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
StatusclosedResolutionfixed 
PlatformLinuxOSCentOSOS Version6
Product Version12.4.6 
Target Version12.4.7Fixed in Version12.4.7 
Summary0000293: director segfaults doing update slots when all slots are empty
DescriptionWhen all autochanger slots are empty then update slots in bconsole makes bareos-dir segfault.

Debug output ends with:
...
bareost02-dir: ua_select.c:1547-0 43
bareost02-dir: sd_cmds.c:106-0 bnet_connect to Storage daemon bareost02:9103
bareost02-dir: bsock.c:56-0 All source addresses
bareost02-dir: bsock_tcp.c:272-0 Current host[ipv4;192.168.122.51;9103] All host[ipv4;192.168.122.51;9103]
bareost02-dir: bsock_tcp.c:195-0 who=Storage daemon host=bareost02 port=9103
bareost02-dir: cram-md5.c:123-0 cram-get received: auth cram-md5 <2034018671.1399570503@bareost02-sd> ssl=0
bareost02-dir: cram-md5.c:143-0 sending resp to challenge: Tj+s36+sjipZQ4/3J+/qyB
bareost02-dir: cram-md5.c:75-0 send: auth cram-md5 <625449933.1399570503@bareost02-dir> ssl=0
bareost02-dir: cram-md5.c:94-0 Authenticate OK 37+Mb5+C5m/K1zkKjF/aZC
bareost02-dir: authenticate.c:164-0 >stored: 1000 OK auth
bareost02-dir: authenticate.c:171-0 <stored: 3000 OK Hello
BAREOS interrupted by signal 11: Segmentation violation
Kaboom! bareos-dir, bareost02-dir got signal 11 - Segmentation violation. Attempting traceback.
Kaboom! exepath=/usr/sbin/
Calling: /usr/sbin/btraceback /usr/sbin/bareos-dir 2177 /var/lib/bareos

This is reproducible with 12.4, 13.2 and nightly packages.
Steps To ReproduceUsing mhvtl, remove all labels from /etc/mhvtl/library_contents.10 and restart mhvtl, so that mtx shows all slots empty:
[root@bareost02 ~]# mtx -f /dev/sg9 status
  Storage Changer /dev/sg9:4 Drives, 43 Slots ( 4 Import/Export )
Data Transfer Element 0:Empty
Data Transfer Element 1:Empty
Data Transfer Element 2:Empty
Data Transfer Element 3:Empty
      Storage Element 1:Empty
      Storage Element 2:Empty
...

Then issue the command "update slots" in bconsole
Additional InformationWhen have at least one tape in a slot, debug output continues like this:

...
bareost02-dir: authenticate.c:163-0 >stored: 1000 OK auth
bareost02-dir: authenticate.c:170-0 <stored: 3000 OK Hello
bareost02-dir: ua_update.c:1030-0 max_slots=43
bareost02-dir: ua_select.c:1519-0 Slots turned on:
bareost02-dir: ua_select.c:1522-0 1
bareost02-dir: ua_select.c:1522-0 2
...

TagsNo tags attached.
bareos-master: impact
bareos-master: action
bareos-18.2: impact
bareos-18.2: action
bareos-17.2: impact
bareos-17.2: action
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impact
bareos-15.2: action
bareos-14.2: impact
bareos-14.2: action
bareos-13.2: impact
bareos-13.2: action
bareos-12.4: impact
bareos-12.4: action
Attached Filestxt file icon bareos-dir_debug200_output.txt [^] (8,518 bytes) 2014-05-08 21:30 [Show Content]
? file icon bareos.2177.traceback [^] (5,230 bytes) 2014-05-08 21:33

- Relationships

-  Notes
(0000850)
mvwieringen (developer)
2014-05-08 22:10

Fix committed to bareos master branch with changesetid 1748.
(0000851)
mvwieringen (developer)
2014-05-08 23:41

Fix committed to bareos bareos-13.2 branch with changesetid 1749.
(0000852)
mvwieringen (developer)
2014-05-09 01:41

Fix committed to bareos bareos-12.4 branch with changesetid 1750.
(0001351)
mvwieringen (developer)
2015-03-25 16:51

Fix committed to bareos2015 bareos-14.2 branch with changesetid 4791.
(0001507)
joergs (administrator)
2015-03-25 19:18

Due to the reimport of the Github repository to bugs.bareos.org, the status of some tickets have been changed. These tickets will be closed again.
Sorry for the noise.

- Related Changesets
bareos: master 88c06b0a
Timestamp: 2014-05-08 19:58:38
Author: mvwieringen
Ported: N/A
Details ] Diff ]
Director segfaults doing update slots when all slots are empty

Fixes 0000293: Director segfaults doing update slots when all slots are empty
mod - src/dird/ua_update.c Diff ] File ]
bareos: bareos-13.2 57111d72
Timestamp: 2014-05-08 19:58:38
Author: mvwieringen
Ported: N/A
Details ] Diff ]
Director segfaults doing update slots when all slots are empty

Fixes 0000293: Director segfaults doing update slots when all slots are empty
mod - src/dird/ua_update.c Diff ] File ]
bareos: bareos-12.4 26f89b38
Timestamp: 2014-05-08 19:58:38
Author: mvwieringen
Ported: N/A
Details ] Diff ]
Director segfaults doing update slots when all slots are empty

Fixes 0000293: Director segfaults doing update slots when all slots are empty
mod - src/dird/ua_update.c Diff ] File ]
bareos2015: bareos-12.4 dd3e2bf3
Timestamp: 2014-05-08 21:58:38
Author: mvwieringen
Ported: N/A
Details ] Diff ]
Director segfaults doing update slots when all slots are empty

Fixes 0000293: Director segfaults doing update slots when all slots are empty
mod - src/dird/ua_update.c Diff ] File ]
bareos2015: bareos-13.2 9f537b22
Timestamp: 2014-05-08 21:58:38
Author: mvwieringen
Ported: N/A
Details ] Diff ]
Director segfaults doing update slots when all slots are empty

Fixes 0000293: Director segfaults doing update slots when all slots are empty
mod - src/dird/ua_update.c Diff ] File ]
bareos2015: bareos-14.2 bc5681b1
Timestamp: 2014-05-08 21:58:38
Author: mvwieringen
Ported: N/A
Details ] Diff ]
Director segfaults doing update slots when all slots are empty

Fixes 0000293: Director segfaults doing update slots when all slots are empty
mod - src/dird/ua_update.c Diff ] File ]

- Issue History
Date Modified Username Field Change
2014-05-08 21:30 stephand New Issue
2014-05-08 21:30 stephand File Added: bareos-dir_debug200_output.txt
2014-05-08 21:32 stephand Severity minor => crash
2014-05-08 21:33 stephand File Added: bareos.2177.traceback
2014-05-08 22:10 mvwieringen Changeset attached => bareos master 88c06b0a
2014-05-08 22:10 mvwieringen Note Added: 0000850
2014-05-08 22:10 mvwieringen Assigned To => mvwieringen
2014-05-08 22:10 mvwieringen Status new => resolved
2014-05-08 22:10 mvwieringen Resolution open => fixed
2014-05-08 23:41 mvwieringen Changeset attached => bareos bareos-13.2 57111d72
2014-05-08 23:41 mvwieringen Note Added: 0000851
2014-05-09 01:41 mvwieringen Changeset attached => bareos bareos-12.4 26f89b38
2014-05-09 01:41 mvwieringen Note Added: 0000852
2014-05-16 16:59 mvwieringen adm Assigned To mvwieringen =>
2014-05-16 16:59 mvwieringen adm Status resolved => closed
2014-05-16 16:59 mvwieringen adm Product Version 14.2.0 => 12.4.5
2014-05-16 16:59 mvwieringen adm Fixed in Version => 12.4.6
2014-05-16 16:59 mvwieringen adm Target Version => 12.4.6
2014-05-16 17:00 mvwieringen adm Product Version 12.4.5 => 12.4.6
2014-05-16 17:00 mvwieringen adm Fixed in Version 12.4.6 => 12.4.7
2014-05-16 17:00 mvwieringen adm Target Version 12.4.6 => 12.4.7
2015-03-25 16:51 mvwieringen Changeset attached => bareos2015 bareos-12.4 dd3e2bf3
2015-03-25 16:51 mvwieringen Changeset attached => bareos2015 bareos-13.2 9f537b22
2015-03-25 16:51 mvwieringen Changeset attached => bareos2015 bareos-14.2 bc5681b1
2015-03-25 16:51 mvwieringen Note Added: 0001351
2015-03-25 16:51 mvwieringen Status closed => resolved
2015-03-25 19:18 joergs Note Added: 0001507
2015-03-25 19:18 joergs Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker