Package: libnewt0.51
Version: 0.51.6-31
Severity: normal

Dear Alistair,

This is pretty much a sequel to #290722, so please see there for the 
long version of what I'm doing. The short version is that mondoarchive 
which is in package mondo gives (one line):

*** glibc detected *** free(): invalid next size (normal): 
0x0000000000549650 ***

if libfribidi0 is not installed. mondoarchive is linked against libnewt 
but not libfribidi:

[EMAIL PROTECTED]:~$ ldd /usr/sbin/mondoarchive
        libmondo.so.2 => /usr/lib/libmondo.so.2 (0x00002aaaaabc3000)
        libmondo-newt.so.1 => /usr/lib/libmondo-newt.so.1 
(0x00002aaaaad0f000)
        libnewt.so.0.51 => /usr/lib/libnewt.so.0.51 (0x00002aaaaae1a000)
        libdl.so.2 => /lib/libdl.so.2 (0x00002aaaaaf38000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00002aaaab03b000)
        libc.so.6 => /lib/libc.so.6 (0x00002aaaab151000)
        libslang.so.2 => /lib/libslang.so.2 (0x00002aaaab38f000)
        libm.so.6 => /lib/libm.so.6 (0x00002aaaab5a1000)
        /lib64/ld-linux-x86-64.so.2 (0x00002aaaaaaab000)

I have installed all releavant libraries and mondoarchive with debugging 
support and this is the backtrace I'm getting:

Program received signal SIGABRT, Aborted.
[Switching to Thread 46912509215280 (LWP 8504)]
0x00002aaaab180df0 in raise () from /lib/libc.so.6
(gdb) bt
#0  0x00002aaaab180df0 in raise () from /lib/libc.so.6
#1  0x00002aaaab1822a0 in abort () from /lib/libc.so.6
#2  0x00002aaaab1b69ae in __fsetlocking () from /lib/libc.so.6
#3  0x00002aaaab1bc70b in malloc_usable_size () from /lib/libc.so.6
#4  0x00002aaaab1bc9ee in free () from /lib/libc.so.6
#5  0x00002aaaaae1faee in _newt_log2vis (str=0x549920 "\t       5% 
complete", dir=0x7fffffb74747 "L\003") at newt.c:330
#6  0x00002aaaaae1fcfe in write_string_int (str=0x549920 "\t       5% 
complete", dir=0x2138 <Address 0x2138 out of bounds>) at newt.c:420
#7  0x00002aaaaad1289c in refresh_log_screen () at newt-specific.c:977
#8  0x00002aaaaad12cf6 in log_file_end_to_screen 
(filename=0x2aaaaae18200 " \226T", grep_for_me=0x20 <Address 0x20 out of 
bounds>)
    at newt-specific.c:559
#9  0x00002aaaaabe4468 in run_program_and_log_to_screen (
    basic_call=0x54a030 "mindi --custom 
/home/mondorescue/tmp/tmp.mondo.26299/tmp.mondo.22005 
/home/mondorescue/scratch/mondo.scratch.30477/mondo.scratch.14098/images 
'FAILSAFE' '' '' 92100 'no' 'no' '' 'yes' 228 1 '/dev/sda1"..., 
what_i_am_doing=<value optimized out>) at libmondo-fork.c:474
#10 0x00002aaaaabcca4a in call_mindi_to_supply_boot_disks 
(bkpinfo=0x509c90) at libmondo-archive.c:1009
#11 0x00002aaaaabd4ca0 in backup_data (bkpinfo=0x509c90) at 
libmondo-archive.c:640
#12 0x0000000000402ff9 in main (argc=13, argv=<value optimized out>) at 
main.c:455

Line 330 in newt.c says:

free(wcs);

I am not sure why this would fail given that it is properly malloc'd and 
that I can't see it being freed before. Sorry for not being more 
constructive, I've played around with the code somewhat but don't really 
know what's going on here.

If I install package libfribidi0 all is well and the error goes away. So, my
(unqualified) conclusion would be that there is an issue with the 
opportunistic usage of libfribidi0 in libnewt0.51.

I report this from an amd64 installation but have found the same 
behaviour on i386 as well.

It would be great if you could muster the time to look into this. If 
there is any other piece of information you need, please let me know.

Best regards & thanks a lot,
Andree

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-amd64-k8
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)

Versions of packages libnewt0.51 depends on:
ii  libc6                         2.3.5-12.1 GNU C Library: Shared libraries an
ii  libslang2                     2.0.5-3    The S-Lang programming library - r

Versions of packages libnewt0.51 recommends:
pn  libfribidi0                   <none>     (no description available)

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to