[torquedev] OS X outstanding issues

Glen Beane glen.beane at gmail.com
Mon Jan 12 05:50:45 MST 2009


On Sun, Jan 11, 2009 at 10:58 PM, Garrick <garrick at usc.edu> wrote:
> For wordexp, could the problem be tested on configure?  Can you make a small
> C program that can fail?

What do you mean by fail?  I can make a very short C program that
exhibits the problem. It shouldn't print anything, but on Leopard you
get all kinds of error messages to stderr (see below).

#include <wordexp.h>

int main (int *argc, char **argv)
{
wordexp_t  strexp;
char str[] = "/~";

wordexp(str, &strexp, WRDE_UNDEF);
wordfree(&strexp);

return 0;
}


there should be no output of this program, but instead you get
something like this:


a.out(342) malloc: *** error for object 0xf: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x20000: pointer being freed
was not allocated
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0xc0007e2f: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0xc0000003: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1000000e: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x38000000: pointer being
freed was not allocated
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0xc0000003: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0xc0000003: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0xd: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x80: Non-aligned pointer
being freed (2)
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x4: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0xd0000: pointer being freed
was not allocated
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x8000000: pointer being freed
was not allocated
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10000063: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1000006f: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1000006d: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1000006d: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10000061: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1000006e: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10000064: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10000020: Non-aligned
pointer being freed (2)
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10000073: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10000075: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10000062: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10000073: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10000074: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10000069: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10000074: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10000075: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10000074: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10000069: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1000006f: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1000006e: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x58000004: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x48000002: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x28000000: pointer being
freed was not allocated
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x50000002: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x60000004: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10000073: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10000079: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1000006e: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10000074: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10000061: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10000078: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10000020: Non-aligned
pointer being freed (2)
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10000065: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10000072: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10000072: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1000006f: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10000072: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x8000000: pointer being freed
was not allocated
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x27: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x26: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x25: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x24: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x23: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x22: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x21: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x20: Non-aligned pointer
being freed (2)
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1f: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1e: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1d: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1c: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1b: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1a: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x19: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x18: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x17: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x16: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0xf: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0xc0000003: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0xc0000003: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10000017: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x38000000: pointer being
freed was not allocated
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x80: Non-aligned pointer
being freed (2)
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x4: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x200: non-page-aligned,
non-allocated pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x580003c4: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10000000: pointer being
freed was not allocated
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x38000000: pointer being
freed was not allocated
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x80: Non-aligned pointer
being freed (2)
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x4: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x200: non-page-aligned,
non-allocated pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x20000000: pointer being
freed was not allocated
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0xc0000003: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0xc0000003: Non-aligned
pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x18: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x101: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10100: Non-aligned pointer
being freed (2)
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1010000: pointer being freed
was not allocated
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1000000: pointer being freed
was not allocated
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10100: Non-aligned pointer
being freed (2)
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1010000: pointer being freed
was not allocated
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1010101: Non-aligned pointer
being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x100: Non-aligned pointer
being freed (2)
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1000100: Non-aligned pointer
being freed (2)
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1010101: Non-aligned pointer
being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x101: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x101: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10100: Non-aligned pointer
being freed (2)
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1010000: pointer being freed
was not allocated
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1000000: pointer being freed
was not allocated
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10100: Non-aligned pointer
being freed (2)
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x1010000: pointer being freed
was not allocated
*** set a breakpoint in malloc_error_break to debug
a.out(342) malloc: *** error for object 0x10101: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug


More information about the torquedev mailing list