# New Ticket Created by Will Coleda # Please include the string: [perl #57474] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=57474 >
Running `parrot_debugger` over the tcl library code generates either a segfault or a crash, depending. >From inside the tcl directory, after building parrot_debugger and tcl: $ ../../parrot_debugger tcl.pbc Parrot Debugger 0.4.x Please note: the debugger is currently under reconstruction Segmentation fault (gdb) bt #0 0xb7c18796 in PDB_disassemble_op (interp=0x804b008, dest=0x83aa5eb "", space=58917, info=0x21694180, op=0xb7abc160, file=0x839f780, code_start=0x0, full_name=1) at src/debug.c:1709 #1 0xb7c1958a in PDB_disassemble (interp=0x804b008, command_unused=0x0) at src/debug.c:2033 #2 0xb7c1cade in Parrot_debug (debugger=0x8202d88, pc=0xb7acd11c) at src/embed.c:982 #3 0xb7c615cf in runops_slow_core (interp=0x804b008, pc=0xb7acd11c) at src/runops_cores.c:212 #4 0xb7c33626 in runops_int (interp=0x804b008, offset=3) at src/interpreter.c:918 #5 0xb7c33f57 in runops (interp=0x804b008, offs=3) at src/inter_run.c:106 #6 0xb7c341ea in runops_args (interp=0x804b008, sub=0x81cedd8, obj=0x8099a78, meth_unused=0x0, sig=0xb7e906c3 "vP", ap=0xbf9067bc "´p:\b¸h\220¿P\034ô·") at src/inter_run.c:232 #7 0xb7c3432c in Parrot_runops_fromc_args (interp=0x804b008, sub=0x81cedd8, sig=0xb7e906c3 "vP") at src/inter_run.c:301 #8 0xb7c1ca67 in Parrot_runcode (interp=0x804b008, argc=0, argv=0xbf9069bc) at src/embed.c:950 #9 0x0804917a in PDB_run_code (interp=0x804b008, argc=1, argv=0xbf9069b8) at src/parrot_debugger.c:231 #10 0x080490a1 in main (argc=2, argv=0xbf9069b4) at src/parrot_debugger.c:203 --- When running this from the top level build directory, I get a different error: $ ./parrot_debugger languages/tcl/tcl.pbc Parrot Debugger 0.4.x Please note: the debugger is currently under reconstruction (pdb) run Restarting Restarting *** glibc detected *** ./parrot_debugger: free(): invalid pointer: 0xb6e77190 *** ======= Backtrace: ========= /lib/i686/nosegneg/libc.so.6[0xb6d96415] /lib/i686/nosegneg/libc.so.6(cfree+0x90)[0xb6d99ef0] /home/coke/sandbox/parrot/blib/lib/libparrot.so.0.6.4(mem_sys_free+0x23)[0xb7be49a3] /home/coke/sandbox/parrot/blib/lib/libparrot.so.0.6.4[0xb7bd689e] /home/coke/sandbox/parrot/blib/lib/libparrot.so.0.6.4[0xb7bd6491] /home/coke/sandbox/parrot/blib/lib/libparrot.so.0.6.4(Parrot_debug+0x6e)[0xb7bd9ade] /home/coke/sandbox/parrot/blib/lib/libparrot.so.0.6.4[0xb7c1e5cf] /home/coke/sandbox/parrot/blib/lib/libparrot.so.0.6.4[0xb7bf0626] /home/coke/sandbox/parrot/blib/lib/libparrot.so.0.6.4[0xb7bf0f57] /home/coke/sandbox/parrot/blib/lib/libparrot.so.0.6.4[0xb7bf11ea] /home/coke/sandbox/parrot/blib/lib/libparrot.so.0.6.4(Parrot_runops_fromc_args+0x4c)[0xb7bf132c] /home/coke/sandbox/parrot/blib/lib/libparrot.so.0.6.4[0xb7c13a85] /home/coke/sandbox/parrot/blib/lib/libparrot.so.0.6.4[0xb7c13bd4] /home/coke/sandbox/parrot/blib/lib/libparrot.so.0.6.4(do_sub_pragmas+0x12a)[0xb7c13f5a] /home/coke/sandbox/parrot/blib/lib/libparrot.so.0.6.4[0xb7c1848a] /home/coke/sandbox/parrot/blib/lib/libparrot.so.0.6.4(Parrot_load_bytecode+0x172)[0xb7c18612] /home/coke/sandbox/parrot/blib/lib/libparrot.so.0.6.4(Parrot_load_bytecode_sc+0x3c)[0xb7b7a17c] /home/coke/sandbox/parrot/blib/lib/libparrot.so.0.6.4[0xb7bd4b62] /home/coke/sandbox/parrot/blib/lib/libparrot.so.0.6.4[0xb7bd3e04] /home/coke/sandbox/parrot/blib/lib/libparrot.so.0.6.4(Parrot_debug+0x96)[0xb7bd9b06] /home/coke/sandbox/parrot/blib/lib/libparrot.so.0.6.4[0xb7c1e5cf] /home/coke/sandbox/parrot/blib/lib/libparrot.so.0.6.4[0xb7bf0626] /home/coke/sandbox/parrot/blib/lib/libparrot.so.0.6.4[0xb7bf0f57] /home/coke/sandbox/parrot/blib/lib/libparrot.so.0.6.4[0xb7bf11ea] /home/coke/sandbox/parrot/blib/lib/libparrot.so.0.6.4(Parrot_runops_fromc_args+0x4c)[0xb7bf132c] /home/coke/sandbox/parrot/blib/lib/libparrot.so.0.6.4(Parrot_runcode+0x277)[0xb7bd9a67] ./parrot_debugger[0x804917a] ./parrot_debugger[0x80490a1] /lib/i686/nosegneg/libc.so.6(__libc_start_main+0xe0)[0xb6d40450] ./parrot_debugger[0x8048d11] ======= Memory map: ======== 08048000-0804a000 r-xp 00000000 08:03 1015863 /home/coke/sandbox/parrot/parrot_debugger 0804a000-0804b000 rwxp 00001000 08:03 1015863 /home/coke/sandbox/parrot/parrot_debugger 0804b000-084f4000 rwxp 0804b000 00:00 0 [heap] b6300000-b6321000 rwxp b6300000 00:00 0 b6321000-b6400000 ---p b6321000 00:00 0 b6499000-b665c000 rwxp b6499000 00:00 0 b665c000-b66e8000 r-xs 00000000 08:03 5709415 /home/coke/sandbox/parrot/languages/tcl/runtime/tcllib.pbc b66e8000-b6b12000 r-xp 00000000 08:02 1426009 /usr/lib/libparrot.so.0.6.1 b6b12000-b6b48000 rwxp 00429000 08:02 1426009 /usr/lib/libparrot.so.0.6.1 b6b5a000-b6b81000 r-xp 00000000 08:03 6160403 /home/coke/sandbox/parrot/runtime/parrot/dynext/tcl_group.so b6b81000-b6b85000 rwxp 00026000 08:03 6160403 /home/coke/sandbox/parrot/runtime/parrot/dynext/tcl_group.so b6b85000-b6bea000 rwxp b6b85000 00:00 0 b6bea000-b6bfe000 r-xp 00000000 08:02 1424425 /usr/lib/libz.so.1.2.3.3 b6bfe000-b6bff000 rwxp 00013000 08:02 1424425 /usr/lib/libz.so.1.2.3.3 b6bff000-b6c2d000 r-xp 00000000 08:02 2142238 /lib/libncurses.so.5.6 b6c2d000-b6c30000 rwxp 0002d000 08:02 2142238 /lib/libncurses.so.5.6 b6c30000-b6c3c000 r-xp 00000000 08:02 2142177 /lib/libgcc_s.so.1 b6c3c000-b6c3d000 rwxp 0000b000 08:02 2142177 /lib/libgcc_s.so.1 b6c3d000-b6d1f000 r-xp 00000000 08:02 1422911 /usr/lib/libstdc++.so.6.0.10 b6d1f000-b6d22000 r-xp 000e2000 08:02 1422911 /usr/lib/libstdc++.so.6.0.10 b6d22000-b6d24000 rwxp 000e5000 08:02 1422911 /usr/lib/libstdc++.so.6.0.10 b6d24000-b6d2a000 rwxp b6d24000 00:00 0 b6d2a000-b6e74000 r-xp 00000000 08:02 2191174 /lib/i686/nosegneg/libc-2.7.so b6e74000-b6e75000 r-xp 0014a000 08:02 2191174 /lib/i686/nosegneg/libc-2.7.so b6e75000-b6e77000 rwxp 0014b000 08:02 2191174 /lib/i686/nosegneg/libc-2.7.so b6e77000-b6e7b000 rwxp b6e77000 00:00 0 b6e7b000-b6fac000 r-xp 00000000 08:02 1439629 /usr/lib/i686/cmov/libcrypto.so.0.9.8 b6fac000-b6fc2000 rwxp 00131000 08:02 1439629 /usr/lib/i686/cmov/libcrypto.so.0.9.8 b6fc2000-b6fc5000 rwxp b6fc2000 00:00 0 b6fc5000-b6feb000 r-xp 00000000 08:02 1424164 /usr/lib/libpcre.so.3.12.1 b6feb000-b6fec000 rwxp 00025000 08:02 1424164 /usr/lib/libpcre.so.3.12.1 b6fec000-b7018000 r-xp 00000000 08:02 2142235 /lib/libreadline.so.5.2 b7018000-b701c000 rwxp 0002c000 08:02 2142235 /lib/libreadline.so.5.2 b701c000-b701d000 rwxp b701c000 00:00 0 b701d000-b705f000 r-xp 00000000 08:02 1424240 /usr/lib/libgmp.so.3.4.2 b705f000-b7060000 rwxp 00042000 08:02 1424240 /usr/lib/libgmp.so.3.4.2 b7060000-b7067000 r-xp 00000000 08:02 2193043 /lib/i686/nosegneg/librt-2.7.so b7067000-b7069000 rwxp 00006000 08:02 2193043 /lib/i686/nosegneg/librt-2.7.so b7069000-b706b000 r-xp 00000000 08:02 2193049 /lib/i686/nosegneg/libutil-2.7.so b706b000-b706d000 rwxp 00001000 08:02 2193049 /lib/i686/nosegneg/libutil-2.7.so b706d000-b706e000 rwxp b706d000 00:00 0 b706e000-b7077000 r-xp 00000000 08:02 2191575 /lib/i686/nosegneg/libcrypt-2.7.so b7077000-b7079000 rwxp 00008000 08:02 2191575 /lib/i686/nosegneg/libcrypt-2.7.so b7079000-b70a0000 rwxp b7079000 00:00 0 b70a0000-b70a2000 r-xp 00000000 08:02 2191982 /lib/i686/nosegneg/libdl-2.7.so b70a2000-b70a4000 rwxp 00001000 08:02 2191982 /lib/i686/nosegneg/libdl-2.7.so b70a4000-b70b8000 r-xp 00000000 08:02 2193024 /lib/i686/nosegneg/libnsl-2.7.so b70b8000-b70ba000 rwxp 00013000 08:02 2193024 /lib/i686/nosegneg/libnsl-2.7.so b70ba000-b70bc000 rwxp b70ba000 00:00 0 b70bc000-b7930000 r-xp 00000000 08:02 1423359 /usr/lib/libicudata.so.34.1 b7930000-b7931000 rwxp 00873000 08:02 1423359 /usr/lib/libicudata.so.34.1 b7931000-b7a34000 r-xp 00000000 08:02 1423365 /usr/lib/libicuuc.so.34.1 b7a34000-b7a3b000 rwxp 00103000 08:02 1423365 /usr/lib/libicuuc.so.34.1 b7a3b000-b7a3c000 rwxp b7a3b000 00:00 0 b7a3c000-b7a5f000 r-xp 00000000 08:02 2191990 /lib/i686/nosegneg/libm-2.7.so b7a5f000-b7a61000 rwxp 00023000 08:02 2191990 /lib/i686/nosegneg/libm-2.7.so b7a61000-b7a62000 rwxp b7a61000 00:00 0 b7a62000-b7a76000 r-xp 00000000 08:02 2193039 /lib/i686/nosegneg/libpthread-2.7.so b7a76000-b7a78000 rwxp 00013000 08:02 2193039 /lib/i686/nosegneg/libpthread-2.7.so b7a78000-b7a7a000 rwxp b7a78000 00:00 0 b7a84000-b7a85000 rwxp b7a84000 00:00 0 b7a85000-b7a89000 r-xp 00000000 08:03 6160406 /home/coke/sandbox/parrot/runtime/parrot/dynext/tcl_ops.so b7a89000-b7a8a000 rwxp 00004000 08:03 6160406 /home/coke/sandbox/parrot/runtime/parrot/dynext/tcl_ops.so b7a8a000-b7a8c000 r-xs 00000000 08:03 4738352 /home/coke/sandbox/parrot/languages/tcl/tcl.pbc b7a8c000-b7eb4000 r-xp 00000000 08:03 2545516 /home/coke/sandbox/parrot/blib/lib/libparrot.so.0.6.4 b7eb4000-b7ee9000 rwxp 00427000 08:03 2545516 /home/coke/sandbox/parrot/blib/lib/libparrot.so.0.6.4 b7ee9000-b7eeb000 rwxp b7ee9000 00:00 0 b7eeb000-b7eec000 r-xp b7eeb000 00:00 0 [vdso] b7eec000-b7f06000 r-xp 00000000 08:02 2142341 /lib/ld-2.7.so b7f06000-b7f08000 rwxp 00019000 08:02 2142341 /lib/ld-2.7.so bfd29000-bfd3e000 rwxp bfd29000 00:00 0 [stack] Aborted -- Will "Coke" Coleda