View Issue Details

IDProjectCategoryView StatusLast Update
0001139bareos-core[All Projects] directorpublic2019-12-10 15:40
Reporterjason.agilityprAssigned To 
PriorityhighSeveritycrashReproducibilityalways
Status newResolutionopen 
PlatformLinuxOSUbuntuOS Version16.04
Product Version18.2.5 
Fixed in Version 
Summary0001139: Upgrading mysql from 5.7.27 to 5.7.28 causes director to segfault
DescriptionI patched my server this morning and there was an upgrade of two mysql packages after which bareos director would not start and seg faulted

patch details
2019-11-18 08:37:04 upgrade mysql-common:all 5.7.27-0ubuntu0.16.04.1 -> 5.7.28-0ubuntu0.16.04.2
2019-11-18 08:37:04 upgrade libmysqlclient20:amd64 5.7.27-0ubuntu0.16.04.1 -> 5.7.28-0ubuntu0.16.04.2

bareos-dir -u bareos -g bareos -t -v -d 200
--------
bareos-dir (200): lib/runscript.cc:339-0 --> RunOnSuccess=1
bareos-dir (200): lib/runscript.cc:340-0 --> RunOnFailure=0
bareos-dir (200): lib/runscript.cc:341-0 --> FailJobOnError=0
bareos-dir (200): lib/runscript.cc:342-0 --> RunWhen=1
bareos-dir (200): dird/dird_conf.cc:1295-0 Don't know how to propagate resource RunScript of configtype 60
bareos-dir (200): dird/dird_conf.cc:1295-0 Don't know how to propagate resource RunScript of configtype 60
bareos-dir (200): dird/dird_conf.cc:1295-0 Don't know how to propagate resource RunScript of configtype 60
bareos-dir (200): dird/dird_conf.cc:1295-0 Don't know how to propagate resource RunScript of configtype 60
bareos-dir (200): dird/dird_conf.cc:1295-0 Don't know how to propagate resource RunScript of configtype 60
bareos-dir (200): dird/dird_conf.cc:1295-0 Don't know how to propagate resource RunScript of configtype 60
bareos-dir (100): dird/dird.cc:392-0 backend path: /usr/lib/bareos/backends
bareos-dir (150): dird/dir_plugins.cc:302-0 Load dir plugins
bareos-dir (150): dird/dir_plugins.cc:304-0 No dir plugin dir!
bareos-dir (100): cats/cats_backends.cc:81-0 db_init_database: Trying to find mapping of given interfacename mysql to mapping interfacename dbi, partly_compare = true
bareos-dir (100): cats/cats_backends.cc:81-0 db_init_database: Trying to find mapping of given interfacename mysql to mapping interfacename mysql, partly_compare = false
bareos-dir (100): cats/cats_backends.cc:180-0 db_init_database: testing backend /usr/lib/bareos/backends/libbareoscats-mysql.so
bareos-dir (100): cats/cats_backends.cc:254-0 db_init_database: loaded backend /usr/lib/bareos/backends/libbareoscats-mysql.so
bareos-dir (100): cats/mysql.cc:869-0 db_init_database first time
bareos-dir (50): cats/mysql.cc:181-0 mysql_init done
bareos-dir (50): cats/mysql.cc:205-0 mysql_real_connect done
bareos-dir (50): cats/mysql.cc:207-0 db_user=bareos db_name=bareos db_password=*****************
bareos-dir (100): cats/mysql.cc:230-0 opendb ref=1 connected=1 db=216fce0
bareos-dir (100): cats/sql_query.cc:96-0 called: void BareosDb::FillQueryVaList(PoolMem&, BareosDbQueryEnum::SQL_QUERY_ENUM, __va_list_tag*) with query name sql_get_max_connections (45)
bareos-dir (100): cats/sql_query.cc:102-0 called: void BareosDb::FillQueryVaList(PoolMem&, BareosDbQueryEnum::SQL_QUERY_ENUM, __va_list_tag*) query is now SHOW VARIABLES LIKE 'max_connections'
bareos-dir (100): cats/mysql.cc:252-0 closedb ref=0 connected=1 db=216fce0
bareos-dir (100): cats/mysql.cc:259-0 close db=216fce0
BAREOS interrupted by signal 11: Segmentation violation
Segmentation fault
Steps To Reproduceupgrade to the latest release version of the MySQL libraries.
TagsNo tags attached.
bareos-master: impact
bareos-master: action
bareos-19.2: impact
bareos-19.2: 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

Activities

jason.agilitypr

jason.agilitypr

2019-11-22 21:09

reporter   ~0003638

this issue is reproducible every time, upgrading to 5.7.28 will cause the service to stop working again
jason.agilitypr

jason.agilitypr

2019-11-22 21:11

reporter   ~0003639

Some action on this ticket would be welcome, as a standard linux system update should not cause packages (bareos-dir) to seg fault. Tot being able to update to 5.7.28 is also leaving my server vulnerable to all the security fixes that are included in 5.7.28
thomasDOTwtf

thomasDOTwtf

2019-12-04 12:35

reporter   ~0003646

I've experienced the same issue with the latest Ubuntu 16.04 patches.
Did a release upgrade to 18.04 and the issue went away.
teka74

teka74

2019-12-10 15:40

reporter   ~0003657

Same Issue here, Ubuntu 16.04 made security updates, and now bareos-dir can't start

root@backup:~# systemctl status bareos-director.service
‚óŹ bareos-director.service - Bareos Director Daemon service
   Loaded: loaded (/lib/systemd/system/bareos-director.service; enabled; vendor preset: enabled)
   Active: failed (Result: core-dump) since Di 2019-12-10 15:17:30 CET; 3min 23s ago
     Docs: man:bareos-dir(8)
  Process: 3421 ExecStartPre=/usr/sbin/bareos-dir -t -f (code=dumped, signal=SEGV)

Dez 10 15:17:30 backup systemd[1]: Starting Bareos Director Daemon service...
Dez 10 15:17:30 backup bareos-dir[3421]: BAREOS interrupted by signal 11: Segmentation violation
Dez 10 15:17:30 backup bareos-dir[3421]: BAREOS interrupted by signal 11: Segmentation violation
Dez 10 15:17:30 backup systemd[1]: bareos-director.service: Control process exited, code=dumped status=11
Dez 10 15:17:30 backup systemd[1]: Failed to start Bareos Director Daemon service.
Dez 10 15:17:30 backup systemd[1]: bareos-director.service: Unit entered failed state.
Dez 10 15:17:30 backup systemd[1]: bareos-director.service: Failed with result 'core-dump'.

Issue History

Date Modified Username Field Change
2019-11-18 17:35 jason.agilitypr New Issue
2019-11-22 21:09 jason.agilitypr Note Added: 0003638
2019-11-22 21:11 jason.agilitypr Note Added: 0003639
2019-12-04 12:35 thomasDOTwtf Note Added: 0003646
2019-12-10 15:40 teka74 Note Added: 0003657