Re: [Bacula-users] Trying to update bacula from 7.4 to 9.6 on ancient CentOS6 system fails (segfault in director)

2021-07-29 Thread Martin Simmons
It seems to be crashing in the MySQL library, when bacula calls mysql_init.

The output of 

ldd /server/bacula-9.6.7/lib/libbaccats-9.6.7.so

might be useful.

Which version of bacula was running on the server before you updated it?  Do
you still have the libbaccats-*.so from that?  If so, then the output from
running ldd on that might be useful too.

__Martin


> On Thu, 29 Jul 2021 11:22:27 +0200, Uwe Schuerkamp said:
> 
> Hi folks,
> 
> I know CentOS6 isn't exactly "hot of the press" anymore but I have a
> legacy system that cannot be updated for various reasons.
> 
> In order to backup the replacement system which runs bacula client
> 9.6.x I tried to update the source-compiled version of the bacula
> server to 9.6.7. Compilation works fine, so does updating the catalog
> on the centos6 machine, but as soon as I try to run the director it
> segfaults:
> 
> [Thread debugging using libthread_db enabled]
> 0x2af83ee5833e in waitpid () from /lib64/libpthread.so.0
> $1 = "29-Jul-2021 11:07:06\000\000\000\000\000\000\000\000\000"
> $2 = '\000' 
> $3 = 0x70f058 "bacula-dir"
> $4 = 0x70f098 "/server/bacula-9.6.7/sbin/bacula-dir"
> $5 = 0x0
> $6 = '\000' 
> $7 = 0x2af83ec343b8 "9.6.7 (10 December 2020)"
> $8 = 0x2af83ec343d9 "x86_64-pc-linux-gnu"
> $9 = 0x2af83ec343ed "redhat"
> $10 = 0x2af83ec3406a ""
> $11 = "stage", '\000' 
> $12 = 0x2af83ec343d1 "redhat "
> Environment variable "TestName" not defined.
> #0  0x2af83ee5833e in waitpid () from /lib64/libpthread.so.0
> #1  0x2af83ec1b840 in signal_handler (sig=11) at signal.c:233
> #2  
> #3  0x2af83e4f725e in mysql_server_init () from 
> /server/bacula-9.6.7/lib/libbaccats-9.6.7.so
> #4  0x2af83e4f10e7 in mysql_init () from 
> /server/bacula-9.6.7/lib/libbaccats-9.6.7.so
> #5  0x2af83e4edb14 in BDB_MYSQL::bdb_open_database (this=0x73c408, 
> jcr=0x0) at mysql.c:223
> #6  0x0040ebfa in check_catalog (mode=UPDATE_AND_FIX) at dird.c:1272
> #7  0x0041178f in main (argc=, argv= optimized out>) at dird.c:340
> 
> Thread 1 (Thread 0x2af8417a1880 (LWP 22245)):
> #0  0x2af83ee5833e in waitpid () from /lib64/libpthread.so.0
> #1  0x2af83ec1b840 in signal_handler (sig=11) at signal.c:233
> #2  
> #3  0x2af83e4f725e in mysql_server_init () from 
> /server/bacula-9.6.7/lib/libbaccats-9.6.7.so
> #4  0x2af83e4f10e7 in mysql_init () from 
> /server/bacula-9.6.7/lib/libbaccats-9.6.7.so
> #5  0x2af83e4edb14 in BDB_MYSQL::bdb_open_database (this=0x73c408, 
> jcr=0x0) at mysql.c:223
> #6  0x0040ebfa in check_catalog (mode=UPDATE_AND_FIX) at dird.c:1272
> #7  0x0041178f in main (argc=, argv= optimized out>) at dird.c:340
> #0  0x2af83ee5833e in waitpid () from /lib64/libpthread.so.0
> No symbol table info available.
> #1  0x2af83ec1b840 in signal_handler (sig=11) at signal.c:233
> 233  waitpid(pid, _status, 0);   /* wait for child to 
> produce dump */
> sigdefault = {__sigaction_handler = {sa_handler = 0, sa_sigaction = 0}, 
> sa_mask = {__val = {18446744067267100671, 18446744073709551615  times>}}, sa_flags = 0, sa_restorer = 0x7ffde5ffa830}
> argv = {0x0, 0x0, 0x0, 0x0, 0x0}
> pid_buf = "22245", '\000' 
> 
> The error seems to be related to opening the mysql catalog database,
> but nothing has changed on the server in this regard (again, it's an
> old centos6 server).
> 
> I configured bacula with the following params:
> 
> ./configure --prefix=/server/bacula-9.6.7/ --with-mysql -disable-conio 
> --with-readline=/usr
> 
> Thanks in advance for any info on this,
> 
> Uwe
> 
> 
> 
> 
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Trying to update bacula from 7.4 to 9.6 on ancient CentOS6 system fails (segfault in director)

2021-07-29 Thread Uwe Schuerkamp
Hi folks,

I know CentOS6 isn't exactly "hot of the press" anymore but I have a
legacy system that cannot be updated for various reasons.

In order to backup the replacement system which runs bacula client
9.6.x I tried to update the source-compiled version of the bacula
server to 9.6.7. Compilation works fine, so does updating the catalog
on the centos6 machine, but as soon as I try to run the director it
segfaults:

[Thread debugging using libthread_db enabled]
0x2af83ee5833e in waitpid () from /lib64/libpthread.so.0
$1 = "29-Jul-2021 11:07:06\000\000\000\000\000\000\000\000\000"
$2 = '\000' 
$3 = 0x70f058 "bacula-dir"
$4 = 0x70f098 "/server/bacula-9.6.7/sbin/bacula-dir"
$5 = 0x0
$6 = '\000' 
$7 = 0x2af83ec343b8 "9.6.7 (10 December 2020)"
$8 = 0x2af83ec343d9 "x86_64-pc-linux-gnu"
$9 = 0x2af83ec343ed "redhat"
$10 = 0x2af83ec3406a ""
$11 = "stage", '\000' 
$12 = 0x2af83ec343d1 "redhat "
Environment variable "TestName" not defined.
#0  0x2af83ee5833e in waitpid () from /lib64/libpthread.so.0
#1  0x2af83ec1b840 in signal_handler (sig=11) at signal.c:233
#2  
#3  0x2af83e4f725e in mysql_server_init () from 
/server/bacula-9.6.7/lib/libbaccats-9.6.7.so
#4  0x2af83e4f10e7 in mysql_init () from 
/server/bacula-9.6.7/lib/libbaccats-9.6.7.so
#5  0x2af83e4edb14 in BDB_MYSQL::bdb_open_database (this=0x73c408, jcr=0x0) 
at mysql.c:223
#6  0x0040ebfa in check_catalog (mode=UPDATE_AND_FIX) at dird.c:1272
#7  0x0041178f in main (argc=, argv=) at dird.c:340

Thread 1 (Thread 0x2af8417a1880 (LWP 22245)):
#0  0x2af83ee5833e in waitpid () from /lib64/libpthread.so.0
#1  0x2af83ec1b840 in signal_handler (sig=11) at signal.c:233
#2  
#3  0x2af83e4f725e in mysql_server_init () from 
/server/bacula-9.6.7/lib/libbaccats-9.6.7.so
#4  0x2af83e4f10e7 in mysql_init () from 
/server/bacula-9.6.7/lib/libbaccats-9.6.7.so
#5  0x2af83e4edb14 in BDB_MYSQL::bdb_open_database (this=0x73c408, jcr=0x0) 
at mysql.c:223
#6  0x0040ebfa in check_catalog (mode=UPDATE_AND_FIX) at dird.c:1272
#7  0x0041178f in main (argc=, argv=) at dird.c:340
#0  0x2af83ee5833e in waitpid () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x2af83ec1b840 in signal_handler (sig=11) at signal.c:233
233  waitpid(pid, _status, 0);   /* wait for child to produce 
dump */
sigdefault = {__sigaction_handler = {sa_handler = 0, sa_sigaction = 0}, sa_mask 
= {__val = {18446744067267100671, 18446744073709551615 }}, 
sa_flags = 0, sa_restorer = 0x7ffde5ffa830}
argv = {0x0, 0x0, 0x0, 0x0, 0x0}
pid_buf = "22245", '\000' 

The error seems to be related to opening the mysql catalog database,
but nothing has changed on the server in this regard (again, it's an
old centos6 server).

I configured bacula with the following params:

./configure --prefix=/server/bacula-9.6.7/ --with-mysql -disable-conio 
--with-readline=/usr

Thanks in advance for any info on this,

Uwe




___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users