Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Jul 2020 00:41:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 248358] sysutils/bareos-server bareos-dir core dumps during -t configtest at startup
Message-ID:  <bug-248358-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248358

            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@FreeBSD.org
          Reporter: ddrinnon@cdor.net
          Assignee: acm@FreeBSD.org
             Flags: maintainer-feedback?(acm@FreeBSD.org)

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

root@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_d=
ir

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. checki=
ng
handler
bareos-dir (500): cats/mysql.cc:487-0 SqlQueryWithHandler finished
bareos-dir (100): cats/mysql.cc:247-0 closedb ref=3D0 connected=3D1 db=3D80=
3c53848
bareos-dir (100): cats/mysql.cc:252-0 close db=3D803c53848
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.=20

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

Using MySQL 5.7 for the db server.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-248358-7788>