question on malloc in multithread application

yanyan pan yanyan.pan at gmail.com
Fri Nov 19 08:01:18 UTC 2010


Dear All:
        I recently use uclibc-0.9.30 in mips platform, and the lib is
complied with malloc-standard option.
        It seems likt that the uclibc is multithread-unsafe.
        The process with multi-thread is frequently killed and the core dump
like the following:
            #0  0x00712524 in __malloc_largebin_index ()
            (gdb) bt
            #0  0x00712524 in __malloc_largebin_index ()
            #1  0x00712774 in malloc ()
            #2  0x0070d800 in _stdio_fopen ()
            ...

        Can anyone give some help?
        Thanks a lot.
                                                    Mandy


More information about the uClibc mailing list