[Bug 248358] sysutils/bareos-server bareos-dir core dumps during -t configtest at startup

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jul 30 00:41:53 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248358

            Bug ID: 248358
           Summary: sysutils/bareos-server bareos-dir core dumps during -t
                    configtest at startup
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: acm at FreeBSD.org
          Reporter: ddrinnon at cdor.net
          Assignee: acm at FreeBSD.org
             Flags: maintainer-feedback?(acm at FreeBSD.org)

When running service bareos-dir start, I get a core dump:

root at nas04:/usr/local/etc/bareos # service bareos-dir start
Performing sanity check on /usr/local/etc/bareos/ configuration:
BAREOS interrupted by signal 11: Segmentation violation
Segmentation fault (core dumped)
/usr/local/etc/rc.d/bareos-dir: WARNING: failed precmd routine for bareos_dir

manually running /usr/local/sbin/bareos-dir with -t and -d 1000:

....
bareos-dir (500): cats/mysql.cc:540-0 we have 0 rows
bareos-dir (100): cats/sql_query.cc:105-0 called: void
BareosDb::FillQueryVaList(PoolMem &, BareosDb::SQL_QUERY, __va_list_tag *) with
query name sql_get_max_connections (45)
bareos-dir (100): cats/sql_query.cc:110-0 called: void
BareosDb::FillQueryVaList(PoolMem &, BareosDb::SQL_QUERY, __va_list_tag *)
query is now SHOW VARIABLES LIKE 'max_connections'
bareos-dir (500): cats/mysql.cc:414-0 SqlQueryWithHandler starts with SHOW
VARIABLES LIKE 'max_connections'
bareos-dir (500): cats/mysql.cc:465-0 SqlQueryWithHandler succeeded. checking
handler
bareos-dir (500): cats/mysql.cc:487-0 SqlQueryWithHandler finished
bareos-dir (100): cats/mysql.cc:247-0 closedb ref=0 connected=1 db=803c53848
bareos-dir (100): cats/mysql.cc:252-0 close db=803c53848
BAREOS interrupted by signal 11: Segmentation violation
Segmentation fault (core dumped)


bareos-dir seems to run okay and is able to backup and restore clients if I
bypass the "-t" in /usr/local/etc/rc.d/bareos-dir or just run
/usr/local/sbin/bareos-dir -u bareos -g bareos -v -c /usr/local/etc/bareos/
manually. 

This is on a FreeBSD x64 v11.3 p11 system and I've duplicated it on other 11.3
systems as well.  This happens with Bareos 18 and 19.  17 works fine.  I have
not tested on v11.4 or higher.

Using MySQL 5.7 for the db server.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list