Hi Martin,

I've made the following changes before compiling the debian package version (not the one build from git repository):
debian/rules:
 - change declaration of CXFLAGS to CXFLAGS = -ggdb -DDEBUG -g

Before building package:
 - export DEB_BUILD_OPTIONS="noopt"

Starting build of package:
 - dpkg-buildpackage

Installing package (3.1.4.1 is my current version from git used as workaround):
    # dpkg -i ../mdadm_3.1.4-1+8efb9d1_armel.deb
    dpkg: warning: downgrading mdadm from 3.1.4.1-0 to 3.1.4-1+8efb9d1.
(Reading database ... 35477 files and directories currently installed.) Preparing to replace mdadm 3.1.4.1-0 (using .../mdadm_3.1.4-1+8efb9d1_armel.deb) ...
    Stopping MD monitoring service: mdadm --monitor.
    Unpacking replacement mdadm ...
    Setting up mdadm (3.1.4-1+8efb9d1) ...
    Generating array device nodes... done.
    update-initramfs: deferring update (trigger activated)
    Starting MD monitoring service: mdadm --monitor.
*** glibc detected *** /sbin/mdadm: munmap_chunk(): invalid pointer: 0x000a9800 *** *** glibc detected *** /sbin/mdadm: malloc(): memory corruption: 0x000a9660 ***
    Aborted
    Generating udev events for MD arrays...done.
    Processing triggers for man-db ...
    Processing triggers for initramfs-tools ...
    update-initramfs: Generating /boot/initrd.img-2.6.32-5-orion5x
    Generating kernel u-boot image... done.
    Flashing kernel... done.
    Flashing initramfs... done.


/etc/init.d/mdadm-raid restart
*** glibc detected *** /sbin/mdadm: munmap_chunk(): invalid pointer: 0x000a9800 *** *** glibc detected *** /sbin/mdadm: malloc(): memory corruption: 0x000a9660 ***
    Aborted
    Generating udev events for MD arrays...done.

/etc/init.d/mdadm restart
Stopping MD monitoring service: mdadm --monitor.
Starting MD monitoring service: mdadm --monitor.

How can I get the stack trace as you requested?

Thanks,

Arnaud

Le 09/04/2011 08:32, martin f krafft a écrit :
tags 621786 moreinfo
thanks

/etc/init.d/mdadm-raid restart
*** glibc detected *** /sbin/mdadm: munmap_chunk(): invalid pointer: 0x00084800 
***
*** glibc detected *** /sbin/mdadm: malloc(): memory corruption: 0x00084660 ***
Aborted
Please compile mdadm with debug symbols and get a stack trace of the
alleged double-free.

Reply via email to