#1401: t/library/pcre.t: Test #2 failing on MSWin32
---------------------+------------------------------------------------------
Reporter: jkeenan | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: library | Version: 1.9.0
Severity: medium | Keywords:
Lang: | Patch:
Platform: win32 |
---------------------+------------------------------------------------------
Comment(by Util):
Backtrace as requested by chromatic:
{{{
$ gdb ./parrot
GNU gdb 6.3.50-20050815 (Apple version gdb-967) (Tue Jul 14 02:11:58 UTC
2009)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i386-apple-darwin"...Reading symbols for
shared libraries ........... done
(gdb) run -D40 t/library/pcre_2.pir
Starting program: /Users/bruce/Perl/Parrot/Release_20_test/parrot/parrot
-D40 t/library/pcre_2.pir
Reading symbols for shared libraries ++++++++++......... done
ok 1
Reading symbols for shared libraries . done
ok 2
parrot(23852) malloc: *** error for object 0xa38984: Non-aligned pointer
being freed
*** set a breakpoint in malloc_error_break to debug
not ok 3
not ok 4
not ok 5
Program exited normally.
(gdb) break malloc_error_break
Breakpoint 1 at 0x94ef64a9
(gdb) run -D40 t/library/pcre_2.pir
Starting program: /Users/bruce/Perl/Parrot/Release_20_test/parrot/parrot
-D40 t/library/pcre_2.pir
Reading symbols for shared libraries . done
ok 1
Reading symbols for shared libraries . done
ok 2
parrot(23854) malloc: *** error for object 0xa38984: Non-aligned pointer
being freed
*** set a breakpoint in malloc_error_break to debug
Breakpoint 1, 0x94ef64a9 in malloc_error_break ()
(gdb) bt
#0 0x94ef64a9 in malloc_error_break ()
#1 0x94ef1497 in szone_error ()
#2 0x94e1b523 in szone_free ()
#3 0x94e1b38d in free ()
#4 0x0049d31e in mem_sys_free (from=0xa38984) at
src/gc/alloc_memory.c:325
#5 0x003fcaa8 in Parrot_str_free_cstring (p=0xa38984 "reference to non-
existent subpattern") at src/string/api.c:2535
#6 0x004e7a3a in pcf_p_tiB3P (interp=0x901860, self=0xa0c848) at
src/nci.c:12615
#7 0x005f2931 in Parrot_NCI_invoke (interp=0x901860, pmc=0xa0c848,
next=0x271c0) at nci.pmc:338
#8 0x003ffda2 in Parrot_invokecc_p (cur_opcode=0x271b8, interp=0x901860)
at core.ops:433
#9 0x0050a3ce in runops_slow_core (interp=0x901860, runcore=0x90b420,
pc=0x271b8) at src/runcore/cores.c:848
#10 0x00508d1a in runops_int (interp=0x901860, offset=0) at
src/runcore/main.c:546
#11 0x004b2ee8 in runops (interp=0x901860, offs=0) at src/call/ops.c:99
#12 0x004a900c in Parrot_pcc_invoke_from_sig_object (interp=0x901860,
sub_obj=0xa0bc90, call_object=0xa0bcb8) at src/call/pcc.c:314
#13 0x004a9400 in Parrot_pcc_invoke_sub_from_c_args (interp=0x901860,
sub_obj=0xa0bc90, sig=0x6d3584 "P->") at src/call/pcc.c:75
#14 0x0048ccd1 in Parrot_runcode (interp=0x901860, argc=1,
argv=0xbffff69c) at src/embed.c:825
#15 0x006a137d in imcc_run_pbc (interp=0x901860, obj_file=0,
output_file=0x0, argc=1, argv=0xbffff69c) at compilers/imcc/main.c:792
#16 0x006a2019 in imcc_run (interp=0x901860, sourcefile=0xbffff788
"t/library/pcre_2.pir", argc=1, argv=0xbffff69c) at
compilers/imcc/main.c:1075
#17 0x00002399 in main (argc=1, argv=0xbffff69c) at src/main.c:60
(gdb)
}}}
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1401#comment:8>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets