START lib/libc/malloc 2025-04-02T01:42:27Z ===> malloc_general ==== t1 ==== cc -O2 -pipe -g -MD -MP -c /usr/src/regress/lib/libc/malloc/malloc_general/malloc_general.c cc -o malloc_general malloc_general.o MALLOC_OPTIONS=su /usr/src/regress/lib/libc/malloc/malloc_general/obj/malloc_general ................................................................................ ==== t2 ==== MALLOC_OPTIONS=suC /usr/src/regress/lib/libc/malloc/malloc_general/obj/malloc_general ................................................................................ ==== t3 ==== MALLOC_OPTIONS=suJ /usr/src/regress/lib/libc/malloc/malloc_general/obj/malloc_general ................................................................................ ==== t4 ==== MALLOC_OPTIONS=suF /usr/src/regress/lib/libc/malloc/malloc_general/obj/malloc_general ................................................................................ ==== t5 ==== MALLOC_OPTIONS=suG /usr/src/regress/lib/libc/malloc/malloc_general/obj/malloc_general ................................................................................ ==== t6 ==== MALLOC_OPTIONS=suS /usr/src/regress/lib/libc/malloc/malloc_general/obj/malloc_general ................................................................................ ==== t7 ==== MALLOC_OPTIONS=suFGJ /usr/src/regress/lib/libc/malloc/malloc_general/obj/malloc_general ................................................................................ ==== t8 ==== MALLOC_OPTIONS=suCJ /usr/src/regress/lib/libc/malloc/malloc_general/obj/malloc_general ................................................................................ ==== t9 ==== MALLOC_OPTIONS=suCJJ /usr/src/regress/lib/libc/malloc/malloc_general/obj/malloc_general ................................................................................ ==== t10 ==== MALLOC_OPTIONS=suJS /usr/src/regress/lib/libc/malloc/malloc_general/obj/malloc_general ................................................................................ ==== t11 ==== MALLOC_OPTIONS=suFGJJ /usr/src/regress/lib/libc/malloc/malloc_general/obj/malloc_general ................................................................................ ==== t12 ==== MALLOC_OPTIONS=suFCJJ /usr/src/regress/lib/libc/malloc/malloc_general/obj/malloc_general ................................................................................ ===> malloc0test ==== run-regress-malloc0test-C ==== cc -O2 -pipe -g -MD -MP -c /usr/src/regress/lib/libc/malloc/malloc0test/malloc0test.c cc -o malloc0test malloc0test.o MALLOC_OPTIONS='C' ./malloc0test count = 100000 ==== run-regress-malloc0test-D ==== MALLOC_OPTIONS='D' ./malloc0test count = 100000 ==== run-regress-malloc0test-F ==== MALLOC_OPTIONS='F' ./malloc0test count = 100000 ==== run-regress-malloc0test-G ==== MALLOC_OPTIONS='G' ./malloc0test count = 100000 ==== run-regress-malloc0test-J ==== MALLOC_OPTIONS='J' ./malloc0test count = 100000 ==== run-regress-malloc0test-j ==== MALLOC_OPTIONS='j' ./malloc0test count = 100000 ==== run-regress-malloc0test-R ==== MALLOC_OPTIONS='R' ./malloc0test count = 100000 ==== run-regress-malloc0test-S ==== MALLOC_OPTIONS='S' ./malloc0test count = 100000 ==== run-regress-malloc0test-U ==== MALLOC_OPTIONS='U' ./malloc0test count = 100000 ==== run-regress-malloc0test-X ==== MALLOC_OPTIONS='X' ./malloc0test count = 100000 ==== run-regress-malloc0test--- ==== MALLOC_OPTIONS='<<' ./malloc0test count = 100000 ==== run-regress-malloc0test-+++ ==== MALLOC_OPTIONS='>>>' ./malloc0test count = 100000 ===> malloc_errno ==== run-regress-malloc_errno ==== cc -O2 -pipe -g -MD -MP -c /usr/src/regress/lib/libc/malloc/malloc_errno/malloc_errno.c cc -o malloc_errno malloc_errno.o ./malloc_errno ===> malloc_ulimit1 ==== run-regress-malloc_ulimit1 ==== cc -O2 -pipe -g -MD -MP -c /usr/src/regress/lib/libc/malloc/malloc_ulimit1/malloc_ulimit1.c cc -o malloc_ulimit1 malloc_ulimit1.o ./malloc_ulimit1 ===> malloc_ulimit2 ==== run-regress-malloc_ulimit2 ==== cc -O2 -pipe -g -MD -MP -c /usr/src/regress/lib/libc/malloc/malloc_ulimit2/malloc_ulimit2.c cc -o malloc_ulimit2 malloc_ulimit2.o ./malloc_ulimit2 ===> malloc_threaderr ==== t1 ==== cc -O2 -pipe -g -MD -MP -c /usr/src/regress/lib/libc/malloc/malloc_threaderr/malloc_threaderr.c cc -o malloc_threaderr malloc_threaderr.o -pthread /usr/src/regress/lib/libc/malloc/malloc_threaderr/obj/malloc_threaderr 2>&1 | fgrep 'in free(): bogus pointer (double free?)' malloc_threaderr(35969) in free(): bogus pointer (double free?) 0x77aa3000 ===> malloc_errs ==== run-regress-malloc_errs ==== cc -O2 -pipe -g -MD -MP -c /usr/src/regress/lib/libc/malloc/malloc_errs/malloc_errs.c cc -o malloc_errs malloc_errs.o ./malloc_errs Test 0 Test 1 malloc_errs(17336) in free(): bogus pointer (double free?) 0x7ad60000 Test 2 malloc_errs(45955) in free(): bogus pointer (double free?) 0x5c16a620 Test 3 malloc_errs(39258) in free(): double free 0x7cbb1930 Test 4 malloc_errs(75910) in unknown(): free() called before allocation Test 5 malloc_errs(24636) in realloc(): bogus pointer (double free?) 0x1 Test 6 malloc_errs(8406) in free(): write to free mem 0x4f298ec0[0..7]@32 Test 7 malloc_errs(17107) in malloc(): write to free mem 0x6a669000[0..7]@12288 Test 8 malloc_errs(37780) in free(): write to free mem 0x4c551f00[0..7]@32 Test 9 malloc_errs(32671) in free(): canary corrupted 0x6490a850[100]@100/112 Test 10 malloc_errs(22869) in free(): canary corrupted 0x701c68c0[100]@100/112 Test 11 malloc_errs(41353) in free(): modified chunk-pointer 0x648ae701 Test 12 malloc_errs(63891) in free(): double free 0x5eff3df0 Test 13 malloc_errs(24234) in freezero(): chunk size 16 < 17 Test 14 malloc_errs(51839) in freezero(): recorded size 15 < 16 Test 15 malloc_errs(6213) in freezero(): recorded size 4096 < 4097 Test 16 malloc_errs(94484) in recallocarray(): chunk size 16 < 32 Test 17 malloc_errs(43254) in recallocarray(): recorded size 15 != 30 Test 18 malloc_errs(82219) in recallocarray(): recorded size 4096 < 8192 Test 19 malloc_errs(20626) in recallocarray(): recorded size 40960 inconsistent with 16384 Test 20 malloc_errs(19946) in free(): canary corrupted 0x52b5d000[8092]@8092/8192 Test 21 malloc_errs(41395) in free(): write to free chunk 0x4b013bc0[0..7]@32 allocated at ./malloc_errs 0x227d (preceding chunk 0x4b013ba0 allocated at . 0x0 (now free)) Test 22 malloc_errs(59181) in malloc(): write to free mem 0x68cab1a0[0..7]@32 Test 23 malloc_errs(56681) in malloc(): write to free chunk 0x68b50260[0..7]@32 allocated at ./malloc_errs 0x25c7 (preceding chunk 0x68b50240 allocated at ./malloc_errs 0x2577) PASS lib/libc/malloc Duration 14m01.42s