Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#15422 - [wmix] latest update breaks malloc.c ?

Attached to Project: Arch Linux
Opened by Adrian Benson (abenson) - Tuesday, 07 July 2009, 07:57 GMT
Last edited by Allan McRae (Allan) - Friday, 10 July 2009, 04:19 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
crashes of various packages due to some issue in malloc.c
i.e binaries that link to /usr/lib/libc are dying

Additional info:
* package version(s)
* config and/or log files etc.


Steps to reproduce:
see

e.g. at http://bbs.archlinux.org/viewtopic.php?pid=580120
also community/gdal - latest version and one I rebuilt from ABS

error message:
gdal_rasterize: malloc.c:3074: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.
Aborted
This task depends upon

Closed by  Allan McRae (Allan)
Friday, 10 July 2009, 04:19 GMT
Reason for closing:  Fixed
Additional comments about closing:  wmix-3.1-4
Comment by Gerardo Exequiel Pozzi (djgera) - Tuesday, 07 July 2009, 08:23 GMT
Works here at least on x86_64 with all up-to-date testing repo. At this moment I can not confirm for i686.

Are you on i686?

Try to run with MALLOC_CHECK_=0 wmix
Comment by Allan McRae (Allan) - Tuesday, 07 July 2009, 08:31 GMT
Which gcc version are you using? The one in [core] or the one in [testing]? I can not replicate the i686 one in [core].
Comment by Gerardo Exequiel Pozzi (djgera) - Tuesday, 07 July 2009, 08:34 GMT
Testing with wmix:

gcc-libs-4.4.0-4-i686 works fine here
gcc-lins-4.4.0-5-x86_64 works fine here

why gcc-libs? None os libs provided by gcc-libs are loaded for wmix.

can you provide a backtrace with debug symbols, also check md5sum of the DSO loaded by wmix. (post here)

Comment by Gerardo Exequiel Pozzi (djgera) - Tuesday, 07 July 2009, 08:40 GMT
@Adrian: This can help to compare
Comment by Adrian Benson (abenson) - Tuesday, 07 July 2009, 23:42 GMT
Perhaps this should be a bug against glibc rather than gcc-libs?
Whichever lib provides malloc.

I am running x86_64 non-testing, since upgraded to testing
core/glibc 2.10.1-2 & 2.10.1-3
core/gcc-libs 4.4.0-4 & 4.4.0-5

error persists for both

First encountered this error with community/gdal, both the binary and a local rebuild
I have since installed wmix to test it and can confirm same error.
NB I don't care about wmix, it is just quick to compile

Via google there are only 3 instances of this error, all on Arch, all within the last 6 weeks, all involve glibc 2.10
http://www.google.co.nz/search?q=%22malloc.c%3A3074%22&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

I have also tried this on my latop (Arch64 non-testing) same errors

I rebuilt wmix with debug symbols
And have attached the gdb backtrace

PS Please don't be fooled into thinking I really know what I am doing here.
Comment by Adrian Benson (abenson) - Tuesday, 07 July 2009, 23:43 GMT
PS. This could obviously be a bug in gdal and wmix, which do not handle some change in glibc.
Comment by Gerardo Exequiel Pozzi (djgera) - Tuesday, 07 July 2009, 23:52 GMT
Adrian, please do a md5sum of the related files and post pkg version. I encountered many times helping users, that are related of bad pkg downloaded. So libs are corrupt.

Attach files like in my previous post.
Comment by Adrian Benson (abenson) - Wednesday, 08 July 2009, 02:34 GMT
bit perplexed by nothing owning /lib/ld-linux.so.2, and should it be pointing to 32 bit libs?

-rwxr-xr-x 1 root root 141446 2009-07-07 07:48 /lib/ld-2.10.1.so
lrwxrwxrwx 1 root root 20 2009-07-08 14:03 /lib/ld-linux.so.2 -> ld-linux-x86-32.so.2
lrwxrwxrwx 1 root root 28 2009-05-29 01:47 /lib/ld-linux-x86-32.so.2 -> /opt/lib32/lib/ld-linux.so.2
lrwxrwxrwx 1 root root 12 2009-07-07 07:48 /lib/ld-linux-x86-64.so.2 -> ld-2.10.1.so
Comment by Gerardo Exequiel Pozzi (djgera) - Wednesday, 08 July 2009, 02:57 GMT
When I posted the lists assumed that you are in i686 not in x86_64.
OK, md5sum of the files are OK for x86_64.

What happens when run wmix with malloc check off as I said in the first comment ?

MALLOC_CHECK_=0 wmix

what is your locale? what happens if run under clean user? and under twm?
Comment by Gerardo Exequiel Pozzi (djgera) - Wednesday, 08 July 2009, 03:02 GMT
Ignore last part of my comment, seems that in your enviroment you have already defined MALLOC_CHECK_=2

When I run, wmix with it crash :)

MALLOC_CHECK_=1 /usr/bin/wmix
*** glibc detected *** /usr/bin/wmix: free(): invalid pointer: 0x000000000168b030 ***

This is problem in the app.
Comment by Gerardo Exequiel Pozzi (djgera) - Wednesday, 08 July 2009, 03:26 GMT
  • Field changed: Summary ([gcc-libs] latest update breaks malloc.c ? → [wmix] latest update breaks malloc.c ?)
  • Field changed: Category (Packages: Core → Packages: Extra)
and here is the patch :)


Comment by Adrian Benson (abenson) - Wednesday, 08 July 2009, 03:32 GMT
Cheers, sorry for wasting your time

Loading...