Re: Problem using mondoarchive on Ubuntu 16.04

"David C. Partridge" <[email protected]>
Newsgroups gmane.linux.mondo.devel
Message-ID <[email protected]>
I modified the configure script at line 3100 to set PACKAGE='mondorescue' so
that it could find its files where the normal installation put them.

I then rebuilt it again, and ran under valgrind.

I attach the valgrind log, and also the mondoarchive.log which shows it
running out of room on the loopback device or RAM disk it created :(    So
even if it hadn't done an illegal free(), it would still have failed ...

If the attachments are rejected, please let me know where to upload them.

Dave

-----Original Message-----
From: David C. Partridge [mailto:[email protected]] 
Sent: 11 December 2016 15:02
To: 'Mondo mailing list'
Subject: Re: [Mondo-devel] Problem using mondoarchive on Ubuntu 16.04

Does this help:

Starting program:
/home/amonra/Downloads/MondoRescue/mondo-3.2.2/src/mondoarchive/mondoarchive

[Thread debugging using libthread_db enabled] Using host libthread_db
library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Inferior 1 (process 548) exited with code 0177] Starting program:
/home/amonra/Downloads/MondoRescue/mondo-3.2.2/src/mondoarchive/mondoarchive

[Thread debugging using libthread_db enabled] Using host libthread_db
library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGABRT, Aborted.
0x00007ffff760f428 in __GI_raise (sig=sig@entry=6) at
../sysdeps/unix/sysv/linux/raise.c:54
54	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
Undefined command: "stack".  Try "help".
#0  0x00007ffff760f428 in __GI_raise (sig=sig@entry=6) at
../sysdeps/unix/sysv/linux/raise.c:54
#1  0x00007ffff761102a in __GI_abort () at abort.c:89
#2  0x00007ffff76517ea in __libc_message (do_abort=do_abort@entry=2,
fmt=fmt@entry=0x7ffff776a2e0 "*** Error in `%s': %s: 0x%s ***\n") at
../sysdeps/posix/libc_fatal.c:175
#3  0x00007ffff7659e0a in malloc_printerr (ar_ptr=<optimised out>,
ptr=<optimised out>, str=0x7ffff776a3a8 "double free or corruption
(fasttop)", action=3) at malloc.c:5004
#4  _int_free (av=<optimised out>, p=<optimised out>, have_lock=0) at
malloc.c:3865
#5  0x00007ffff765d98c in __GI___libc_free (mem=<optimised out>) at
malloc.c:2966
#6  0x0000000000438444 in mr_free_int
(allocated=allocated@entry=0x7fffffffc3e8, line=line@entry=2393,
file=file@entry=0x43d877 "libmondo-devices.c") at mr_mem.c:35
#7  0x000000000041350c in interactively_obtain_media_parameters_from_user
(archiving_to_media=archiving_to_media@entry=1) at libmondo-devices.c:2393
#8  0x000000000040340f in main (argc=1, argv=0x7fffffffe598) at
mondoarchive.c:336

-----Original Message-----
From: David C. Partridge [mailto:[email protected]]
Sent: 11 December 2016 13:48
To: 'Mondo mailing list'
Subject: Re: [Mondo-devel] Problem using mondoarchive on Ubuntu 16.04

Ok let me ask what may be a better question:

 What should I do now to get you the information you need to debug this.

Dave

-----Original Message-----
From: David C. Partridge [mailto:[email protected]]
Sent: 10 December 2016 11:50
To: [email protected]
Subject: [Mondo-devel] Problem using mondoarchive on Ubuntu 16.04

I'm trying to use Mondo Rescue for the first time.

I'm trying to write the backup to an iSCSI attached LTO-2 tape drive at
/dev/st0

I let the block size default to 32768 and immediately got a SIGABRT :(

DBG2: [Main] libmondo-tools.c->setup_tmpdir#705: Purging old tmpdir
/tmp/mondo.tmp.DcO7AM
DBG2: [Main] libmondo-tools.c->setup_tmpdir#740: bkpinfo->tmpdir is being
set to /tmp/mondo.tmp.KEtKDh
DBG2: [Main] libmondo-tools.c->setup_scratchdir#756: Purging old scratchdir
/tmp/mondo.scratch.O9bCzi
DBG2: [Main] libmondo-tools.c->setup_scratchdir#769: Created scratch
directory /shared
DBG2: [Main] libmondo-tools.c->setup_scratchdir#784: bkpinfo->scratchdir is
being set to /shared/mondo.scratch.u9dPLg
DBG3: [Main]
libmondo-devices.c->interactively_obtain_media_parameters_from_user#2212:
media type = tape
INFO:  
INFO: running: ls -l /dev/st0 >
/tmp/mondo.tmp.KEtKDh/mondo-run-prog-thing.tmp 2>
/tmp/mondo.tmp.KEtKDh/mondo-run-prog-thing.err
INFO: --------------------------------start of
output-----------------------------
INFO: crw-rw---- 1 root tape 9, 0 Dec 10 11:22 /dev/st0
INFO: --------------------------------end of
output------------------------------
INFO: ...ran just fine. :-)
INFO: SIGABRT signal received from OS
INFO: Abort - probably failed assertion. I'm sleeping for a few seconds so
you can read the message.
DBG1: [Main] ../common/newt-specific.c->fatal_error#304: Fatal error
received - 'MondoRescue is terminating in response to a signal from the OS'
DBG3: [Main] ../common/newt-specific.c->fatal_error#320: OK, I think I'm the
main PID.
DBG2: [Main] ../common/newt-specific.c->fatal_error#327: I'm going to do
some cleaning up now.
DBG4: [Main] ../common/newt-specific.c->fatal_error#328: killall mindi 2>
/dev/null

What am I doing wrong?
Thanks
Dave


----------------------------------------------------------------------------
--
Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon
Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
Mondo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mondo-devel


----------------------------------------------------------------------------
--
Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon
Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
Mondo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mondo-devel


----------------------------------------------------------------------------
--
Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon
Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
Mondo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mondo-devel

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi

_______________________________________________
Mondo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mondo-devel
mondoarchive.log (application/octet-stream, 230 KB) - not displayed
valgrind.log (application/octet-stream, 9.9 KB)
==17810== Memcheck, a memory error detector
==17810== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==17810== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==17810== Command: ./mondoarchive
==17810== Parent PID: 17772
==17810== 
==17810== Warning: ignored attempt to set SIGKILL handler in sigaction();
==17810==          the SIGKILL signal is uncatchable
==17810== Warning: ignored attempt to set SIGSTOP handler in sigaction();
==17810==          the SIGSTOP signal is uncatchable
==17810== Invalid read of size 1
==17810==    at 0x52A9454: ____strtol_l_internal (strtol_l.c:293)
==17810==    by 0x4134E0: atol (stdlib.h:285)
==17810==    by 0x4134E0: interactively_obtain_media_parameters_from_user (libmondo-devices.c:2391)
==17810==    by 0x40340E: main (mondoarchive.c:336)
==17810==  Address 0x60236c0 is 0 bytes inside a block of size 51 free'd
==17810==    at 0x4C2EDEB: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17810==    by 0x4E446B5: ??? (in /lib/x86_64-linux-gnu/libnewt.so.0.52.18)
==17810==    by 0x4E42DA4: newtFormDestroy (in /lib/x86_64-linux-gnu/libnewt.so.0.52.18)
==17810==    by 0x4312F5: mr_popup_and_get_string (newt-specific.c:771)
==17810==    by 0x4134BC: interactively_obtain_media_parameters_from_user (libmondo-devices.c:2386)
==17810==    by 0x40340E: main (mondoarchive.c:336)
==17810==  Block was alloc'd at
==17810==    at 0x4C2FB55: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17810==    by 0x4E452F9: newtEntry (in /lib/x86_64-linux-gnu/libnewt.so.0.52.18)
==17810==    by 0x431247: mr_popup_and_get_string (newt-specific.c:760)
==17810==    by 0x4134BC: interactively_obtain_media_parameters_from_user (libmondo-devices.c:2386)
==17810==    by 0x40340E: main (mondoarchive.c:336)
==17810== 
==17810== Invalid read of size 1
==17810==    at 0x52A9654: ____strtol_l_internal (strtol_l.c:433)
==17810==    by 0x4134E0: atol (stdlib.h:285)
==17810==    by 0x4134E0: interactively_obtain_media_parameters_from_user (libmondo-devices.c:2391)
==17810==    by 0x40340E: main (mondoarchive.c:336)
==17810==  Address 0x60236c1 is 1 bytes inside a block of size 51 free'd
==17810==    at 0x4C2EDEB: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17810==    by 0x4E446B5: ??? (in /lib/x86_64-linux-gnu/libnewt.so.0.52.18)
==17810==    by 0x4E42DA4: newtFormDestroy (in /lib/x86_64-linux-gnu/libnewt.so.0.52.18)
==17810==    by 0x4312F5: mr_popup_and_get_string (newt-specific.c:771)
==17810==    by 0x4134BC: interactively_obtain_media_parameters_from_user (libmondo-devices.c:2386)
==17810==    by 0x40340E: main (mondoarchive.c:336)
==17810==  Block was alloc'd at
==17810==    at 0x4C2FB55: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17810==    by 0x4E452F9: newtEntry (in /lib/x86_64-linux-gnu/libnewt.so.0.52.18)
==17810==    by 0x431247: mr_popup_and_get_string (newt-specific.c:760)
==17810==    by 0x4134BC: interactively_obtain_media_parameters_from_user (libmondo-devices.c:2386)
==17810==    by 0x40340E: main (mondoarchive.c:336)
==17810== 
==17810== Invalid free() / delete / delete[] / realloc()
==17810==    at 0x4C2EDEB: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17810==    by 0x438453: mr_free_int (mr_mem.c:35)
==17810==    by 0x41350B: interactively_obtain_media_parameters_from_user (libmondo-devices.c:2393)
==17810==    by 0x40340E: main (mondoarchive.c:336)
==17810==  Address 0x60236c0 is 0 bytes inside a block of size 51 free'd
==17810==    at 0x4C2EDEB: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17810==    by 0x4E446B5: ??? (in /lib/x86_64-linux-gnu/libnewt.so.0.52.18)
==17810==    by 0x4E42DA4: newtFormDestroy (in /lib/x86_64-linux-gnu/libnewt.so.0.52.18)
==17810==    by 0x4312F5: mr_popup_and_get_string (newt-specific.c:771)
==17810==    by 0x4134BC: interactively_obtain_media_parameters_from_user (libmondo-devices.c:2386)
==17810==    by 0x40340E: main (mondoarchive.c:336)
==17810==  Block was alloc'd at
==17810==    at 0x4C2FB55: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17810==    by 0x4E452F9: newtEntry (in /lib/x86_64-linux-gnu/libnewt.so.0.52.18)
==17810==    by 0x431247: mr_popup_and_get_string (newt-specific.c:760)
==17810==    by 0x4134BC: interactively_obtain_media_parameters_from_user (libmondo-devices.c:2386)
==17810==    by 0x40340E: main (mondoarchive.c:336)
==17810== 
==17810== Invalid write of size 1
==17810==    at 0x4236D1: get_non_rewind_dev (libmondo-stream.c:663)
==17810==    by 0x405070: call_mindi_to_supply_boot_disks (libmondo-archive.c:486)
==17810==    by 0x40CF76: backup_data (libmondo-archive.c:381)
==17810==    by 0x40331C: main (mondoarchive.c:358)
==17810==  Address 0x65dcf0a is 0 bytes after a block of size 10 alloc'd
==17810==    at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17810==    by 0x423656: get_non_rewind_dev (libmondo-stream.c:635)
==17810==    by 0x405070: call_mindi_to_supply_boot_disks (libmondo-archive.c:486)
==17810==    by 0x40CF76: backup_data (libmondo-archive.c:381)
==17810==    by 0x40331C: main (mondoarchive.c:358)
==17810== 
==17810== Invalid read of size 1
==17810==    at 0x52BCCC0: vfprintf (vfprintf.c:1632)
==17810==    by 0x5385DC4: __vasprintf_chk (vasprintf_chk.c:66)
==17810==    by 0x43856A: vasprintf (stdio2.h:210)
==17810==    by 0x43856A: mr_asprintf_int (mr_mem.c:62)
==17810==    by 0x422AA6: mt_says_tape_exists (libmondo-stream.c:236)
==17810==    by 0x4236DB: get_non_rewind_dev (libmondo-stream.c:664)
==17810==    by 0x405070: call_mindi_to_supply_boot_disks (libmondo-archive.c:486)
==17810==    by 0x40CF76: backup_data (libmondo-archive.c:381)
==17810==    by 0x40331C: main (mondoarchive.c:358)
==17810==  Address 0x65dcf0a is 0 bytes after a block of size 10 alloc'd
==17810==    at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17810==    by 0x423656: get_non_rewind_dev (libmondo-stream.c:635)
==17810==    by 0x405070: call_mindi_to_supply_boot_disks (libmondo-archive.c:486)
==17810==    by 0x40CF76: backup_data (libmondo-archive.c:381)
==17810==    by 0x40331C: main (mondoarchive.c:358)
==17810== 
==17810== Invalid read of size 1
==17810==    at 0x52BCCC0: vfprintf (vfprintf.c:1632)
==17810==    by 0x5384295: __vfprintf_chk (vfprintf_chk.c:33)
==17810==    by 0x428E81: vfprintf (stdio2.h:127)
==17810==    by 0x428E81: standard_log_debug_msg (libmondo-tools.c:1339)
==17810==    by 0x423704: get_non_rewind_dev (libmondo-stream.c:665)
==17810==    by 0x405070: call_mindi_to_supply_boot_disks (libmondo-archive.c:486)
==17810==    by 0x40CF76: backup_data (libmondo-archive.c:381)
==17810==    by 0x40331C: main (mondoarchive.c:358)
==17810==  Address 0x65dcf0a is 0 bytes after a block of size 10 alloc'd
==17810==    at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17810==    by 0x423656: get_non_rewind_dev (libmondo-stream.c:635)
==17810==    by 0x405070: call_mindi_to_supply_boot_disks (libmondo-archive.c:486)
==17810==    by 0x40CF76: backup_data (libmondo-archive.c:381)
==17810==    by 0x40331C: main (mondoarchive.c:358)
==17810== 
==17810== Invalid read of size 1
==17810==    at 0x4C315A0: __strncpy_sse2_unaligned (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17810==    by 0x4050A3: strncpy (string3.h:126)
==17810==    by 0x4050A3: call_mindi_to_supply_boot_disks (libmondo-archive.c:488)
==17810==    by 0x40CF76: backup_data (libmondo-archive.c:381)
==17810==    by 0x40331C: main (mondoarchive.c:358)
==17810==  Address 0x65dcf0a is 0 bytes after a block of size 10 alloc'd
==17810==    at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17810==    by 0x423656: get_non_rewind_dev (libmondo-stream.c:635)
==17810==    by 0x405070: call_mindi_to_supply_boot_disks (libmondo-archive.c:486)
==17810==    by 0x40CF76: backup_data (libmondo-archive.c:381)
==17810==    by 0x40331C: main (mondoarchive.c:358)
==17810== 
==17810== Warning: ignored attempt to set SIGKILL handler in sigaction();
==17810==          the SIGKILL signal is uncatchable
==17810== Warning: ignored attempt to set SIGSTOP handler in sigaction();
==17810==          the SIGSTOP signal is uncatchable
==17810== 
==17810== HEAP SUMMARY:
==17810==     in use at exit: 660,233 bytes in 201 blocks
==17810==   total heap usage: 2,614,869 allocs, 2,614,669 frees, 1,557,176,360 bytes allocated
==17810== 
==17810== 9 bytes in 1 blocks are definitely lost in loss record 3 of 26
==17810==    at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17810==    by 0x5385E27: __vasprintf_chk (vasprintf_chk.c:80)
==17810==    by 0x43856A: vasprintf (stdio2.h:210)
==17810==    by 0x43856A: mr_asprintf_int (mr_mem.c:62)
==17810==    by 0x4106B4: mr_make_devlist_from_pathlist (libmondo-devices.c:2083)
==17810==    by 0x413DE7: interactively_obtain_media_parameters_from_user (libmondo-devices.c:2859)
==17810==    by 0x40340E: main (mondoarchive.c:336)
==17810== 
==17810== 28 bytes in 1 blocks are definitely lost in loss record 6 of 26
==17810==    at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17810==    by 0x5385E27: __vasprintf_chk (vasprintf_chk.c:80)
==17810==    by 0x43856A: vasprintf (stdio2.h:210)
==17810==    by 0x43856A: mr_asprintf_int (mr_mem.c:62)
==17810==    by 0x41362F: interactively_obtain_media_parameters_from_user (libmondo-devices.c:2643)
==17810==    by 0x40340E: main (mondoarchive.c:336)
==17810== 
==17810== LEAK SUMMARY:
==17810==    definitely lost: 37 bytes in 2 blocks
==17810==    indirectly lost: 0 bytes in 0 blocks
==17810==      possibly lost: 0 bytes in 0 blocks
==17810==    still reachable: 660,196 bytes in 199 blocks
==17810==         suppressed: 0 bytes in 0 blocks
==17810== Reachable blocks (those to which a pointer was found) are not shown.
==17810== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==17810== 
==17810== For counts of detected and suppressed errors, rerun with: -v
==17810== ERROR SUMMARY: 13 errors from 9 contexts (suppressed: 0 from 0)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.