Summary: Segfault while compiling fperrad's lua Reported by: losinggeneration@gmail.com --- Compiling Lua on Parrot (http://github.com/fperrad/lua/tree/master) crashes parrot GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu"... (gdb) r Starting program: /usr/local/bin/parrot --output=src/lib/luaaux.pbc src/lib/luaaux.pir [Thread debugging using libthread_db enabled] [New Thread 0x7f083d4ff6f0 (LWP 20182)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7f083d4ff6f0 (LWP 20182)] 0x00007f083cfa5510 in make_pmc_const (interp=0x1dc5080, r=0x1f86760) at compilers/imcc/pbc.c:1815 1815 p = VTABLE_instantiate_str(interp, _class, s, PObj_constant_FLAG); (gdb) bt #0 0x00007f083cfa5510 in make_pmc_const (interp=0x1dc5080, r=0x1f86760) at compilers/imcc/pbc.c:1815 #1 0x00007f083cfa56d9 in add_1_const (interp=0x1dc5080, r=0x1f86760) at compilers/imcc/pbc.c:1865 #2 0x00007f083cfa57ff in constant_folding (interp=0x1dc5080, unit=0x1f7fc10) at compilers/imcc/pbc.c:1903 #3 0x00007f083cfa5a47 in e_pbc_emit (interp=0x1dc5080, param_unused=0x0, unit=0x1f7fc10, ins=0x1f80df0) at compilers/imcc/pbc.c:2130 #4 0x00007f083cf95cf9 in emit_flush (interp=0x1dc5080, param=0x0, unit=0x1f7fc10) at compilers/imcc/instructions.c:908 #5 0x00007f083cf90078 in imc_compile_unit (interp=0x1dc5080, unit=0x1f7fc10) at compilers/imcc/imc.c:123 #6 0x00007f083cf900cb in imc_close_unit (interp=0x1dc5080, unit=0x1f7fc10) at compilers/imcc/imc.c:230 #7 0x00007f083cf82c70 in yyparse (yyscanner=0x1f063c0, interp=0x1dc5080) at compilers/imcc/imcc.y:1119 #8 0x00007f083cf904b7 in compile_to_bytecode (interp=0x1dc5080, sourcefile=0x7fff455298d2 "src/lib/luaaux.pir", output_file=0x7fff455298bf "src/lib/luaaux.pbc") at compilers/imcc/main.c:973 #9 0x00007f083cf9177a in imcc_run (interp=0x1dc5080, sourcefile=0x7fff455298d2 "src/lib/luaaux.pir", argc=1, argv=0x7fff45528ae8) at compilers/imcc/main.c:1072 #10 0x0000000000400b94 in main (argc=1, argv=0x7fff45528ae8) at src/main.c:61 --- osname= linux osvers= 2.6.24-16-server arch= x86_64-linux-gnu-thread-multi cc= cc --- Flags: category=core severity=critical ack=no --- Summary of my parrot 1.1.0 (r38496) configuration: configdate='Tue May 5 21:12:29 2009 GMT' Platform: osname=linux, archname=x86_64-linux-gnu-thread-multi jitcapable=0, jitarchname=nojit, jitosname=linux, jitcpuarch=amd64 execcapable=0 perl=/usr/bin/perl Compiler: cc='cc', ccflags='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHASATTRIBUTE_CONST -DHASATTRIBUTE_DEPRECATED -DHASATTRIBUTE_MALLOC -DHASATTRIBUTE_NONNULL -DHASATTRIBUTE_NORETURN -DHASATTRIBUTE_PURE -DHASATTRIBUTE_UNUSED -DHASATTRIBUTE_WARN_UNUSED_RESULT -falign-functions=16 -fvisibility=hidden -funit-at-a-time -maccumulate-outgoing-args -W -Wall -Waggregate-return -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wdisabled-optimization -Wendif-labels -Wextra -Wformat -Wformat-extra-args -Wformat-nonliteral -Wformat-security -Wformat-y2k -Wimplicit -Wimport -Winit-self -Winline -Winvalid-pch -Wlogical-op -Wmissing-braces -Wmissing-field-initializers -Wno-missing-format-attribute -Wmissing-include-dirs -Wpacked -Wparentheses -Wpointer-arith -Wreturn-type -Wsequence-point -Wno-shadow -Wsign-compare -Wstrict-aliasing -Wstrict-aliasing=2 -Wswitch -Wswitch-default -Wtrigraphs -Wundef -Wunknown-pragmas -Wno-unused -Wvariadic-macros -Wwrite-strings -Wbad-function-cast -Wc++-compat -Wdeclaration-after-statement -Werror=declaration-after-statement -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wnonnull -DHAS_GETTEXT', Linker and Libraries: ld='cc', ldflags=' -L/usr/local/lib', cc_ldflags='', libs='-ldl -lm -lpthread -lcrypt -lreadline ' Dynamic Linking: share_ext='.so', ld_share_flags='-shared -O2 -g -L/usr/local/lib -fPIC', load_ext='.so', ld_load_flags='-shared -O2 -g -L/usr/local/lib -fPIC' Types: iv=long, intvalsize=8, intsize=4, opcode_t=long, opcode_t_size=8, ptrsize=8, ptr_alignment=1 byteorder=12345678, nv=double, numvalsize=8, doublesize=8, longdoublesize=16 --- Environment: HOME =/home/harley LANG =en_US.UTF-8 LANGUAGE (unset) LC_ALL =en_US.UTF-8 LD_LIBRARY_PATH (unset) LOGDIR (unset) PATH =/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/m68k/bin:/usr/local/mingw32/bin:/usr/local/djgpp/bin:/usr/local/dc/bin:/usr/local/dc-linux/bin:/usr/local/gamecube/bin:/usr/local/gc-linux/bin:/usr/local/archlinuxppc/bin:/usr/local/sffl/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:/home/harley/Programs/bin SHELL =/bin/zsh