On 23.04.2018 17:30, Martin Simmons wrote:
(gdb)
(gdb) continue
Continuing.
[New Thread 0x75c89450 (LWP 8483)]
[Thread 0x75c89450 (LWP 8483) exited]
This looks as expected.
#** at this point bconsole shows "Backup terminated with error**
bt
thread apply all bt
info all
x/i $pc
x/64i $pc-0x30
-----------------------------------------------------------------------------
Nothing there. What did I miss?
After attach and continue, you need to run the job that crashes. Hopefully it
will crash with the segfault again and then you can use bt etc in gdb.
If it doesn't get the segfault in gdb then post the full job output.
__Martin
Actually, that's the only thing thatgdb is willing to display: I've run
three incrementatl backup jobs with gdb attached to the bacula-fd daemon
on heRPI02 and the output is always the same:
-----------------------------------------------------------------------------
(gdb) attach 8421
Attaching to process 8421
[New LWP 8425]
[Thread debugging using libthread_db enabled]
Using host libthread_db library
"/lib/arm-linux-gnueabihf/libthread_db.so.1".
0x76925204 in select () at ../sysdeps/unix/syscall-template.S:84
84 ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb)
(gdb) continue
Continuing.
[New Thread 0x75c89450 (LWP 25801)]
[Thread 0x75c89450 (LWP 25801) exited]
[New Thread 0x75c89450 (LWP 25828)]
[Thread 0x75c89450 (LWP 25828) exited]
[New Thread 0x75c89450 (LWP 25852)]
[Thread 0x75c89450 (LWP 25852) exited]
-----------------------------------------------------------------------------
Latest Joblog is:
-----------------------------------------------------------------------------
2018-04-24 14heBacula-dir JobId 1956: Start Backup JobId 1956,
Job=Job_heRPI02.2018-04-24_14.49.13_06
2018-04-24 14heBacula-dir JobId 1956: Using Device "AC-IncBackup-Dev01"
to write.
2018-04-24 14heRPI02-fd JobId 1956: shell command: run ClientBeforeJob
"/srv/bacula/scripts/sqlFullBackup.sh"
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: performing SQL dump
of all user databases...
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob:
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: 7-Zip [32] 16.02 :
Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: p7zip Version 16.02
(locale=en_US.UTF-8,Utf16=on,HugeFiles=on,32 bits,4 CPUs LE)
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob:
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Open archive:
/srv/sql_backup/user_DB_backups.sql.7z
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: --
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Path =
/srv/sql_backup/user_DB_backups.sql.7z
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Type = 7z
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Physical Size =
194537987
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Headers Size = 1256
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Method = LZMA2:24
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Solid = -
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Blocks = 67
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob:
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Updating archive:
/srv/sql_backup/user_DB_backups.sql.7z
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob:
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Items to compress: 1
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob:
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob:
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Files read from disk: 1
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Archive size:
204180136 bytes (195 MiB)
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Everything is Ok
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob:
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: real 2m37.523s
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: user 3m12.025s
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: sys 0m2.952s
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: performing SQL dump
of information scheme database...
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Info: Using unique
option prefix 'database' is error-prone and can break in the future.
Please use the full name 'databases' instead.
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Info: Using unique
option prefix 'lock-table' is error-prone and can break in the future.
Please use the full name 'lock-tables' instead.
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob:
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: 7-Zip [32] 16.02 :
Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: p7zip Version 16.02
(locale=en_US.UTF-8,Utf16=on,HugeFiles=on,32 bits,4 CPUs LE)
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob:
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Open archive:
/srv/sql_backup/information_scheme_DB.sql.7z
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: --
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Path =
/srv/sql_backup/information_scheme_DB.sql.7z
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Type = 7z
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Physical Size = 7403110
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Headers Size = 1181
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Method = LZMA2:24
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Solid = -
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Blocks = 67
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob:
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Updating archive:
/srv/sql_backup/information_scheme_DB.sql.7z
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob:
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Items to compress: 1
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob:
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob:
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Files read from disk: 1
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Archive size:
7569964 bytes (7393 KiB)
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Everything is Ok
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob:
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: real 0m3.477s
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: user 0m2.586s
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: sys 0m0.210s
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: performing SQL dump
of internl mysql database...
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Info: Using unique
option prefix 'database' is error-prone and can break in the future.
Please use the full name 'databases' instead.
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob:
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: 7-Zip [32] 16.02 :
Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: p7zip Version 16.02
(locale=en_US.UTF-8,Utf16=on,HugeFiles=on,32 bits,4 CPUs LE)
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob:
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Open archive:
/srv/sql_backup/mysql_DB.sql.7z
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: --
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Path =
/srv/sql_backup/mysql_DB.sql.7z
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Type = 7z
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Physical Size = 7075313
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Headers Size = 931
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Method = LZMA2:24
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Solid = -
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Blocks = 67
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob:
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Updating archive:
/srv/sql_backup/mysql_DB.sql.7z
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob:
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Items to compress: 1
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob:
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob:
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Files read from disk: 1
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Archive size:
7180924 bytes (7013 KiB)
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: Everything is Ok
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob:
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: real 0m0.982s
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: user 0m0.832s
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: sys 0m0.107s
2018-04-24 14heRPI02-fd JobId 1956: ClientBeforeJob: exiting...
2018-04-24 14heBacula-dir JobId 1956: Sending Accurate information to
the FD.
2018-04-24 14heBacula-dir JobId 1956: Error: bsock.c:721 Write error
sending 92 bytes to Client: heRPI02-fd:heRPI02:9102: ERR=Connection
reset by peer
2018-04-24 14heBacula-dir JobId 1956: Error: bsock.c:609 Socket has
errors=1 on call to Client: heRPI02-fd:heRPI02:9102
2018-04-24 14heBacula-dir JobId 1956: Fatal error: Network error with FD
during Backup: ERR=Connection reset by peer
-----------------------------------------------------------------------------
And it works flawlessly if I set "accurate=no". I tried this because it
is the last message in the JobLog "JobId 1956: Sending Accurate
information to the FD." before the error occurs.
kind regards,
Thorsten
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users