1 | Summary: Segfault while compiling fperrad's lua |
---|
2 | Reported by: losinggeneration@gmail.com |
---|
3 | --- |
---|
4 | Compiling Lua on Parrot (http://github.com/fperrad/lua/tree/master) crashes parrot |
---|
5 | |
---|
6 | GNU gdb 6.8-debian |
---|
7 | Copyright (C) 2008 Free Software Foundation, Inc. |
---|
8 | License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> |
---|
9 | This is free software: you are free to change and redistribute it. |
---|
10 | There is NO WARRANTY, to the extent permitted by law. Type "show copying" |
---|
11 | and "show warranty" for details. |
---|
12 | This GDB was configured as "x86_64-linux-gnu"... |
---|
13 | (gdb) r |
---|
14 | Starting program: /usr/local/bin/parrot --output=src/lib/luaaux.pbc src/lib/luaaux.pir |
---|
15 | [Thread debugging using libthread_db enabled] |
---|
16 | [New Thread 0x7f083d4ff6f0 (LWP 20182)] |
---|
17 | |
---|
18 | Program received signal SIGSEGV, Segmentation fault. |
---|
19 | [Switching to Thread 0x7f083d4ff6f0 (LWP 20182)] |
---|
20 | 0x00007f083cfa5510 in make_pmc_const (interp=0x1dc5080, r=0x1f86760) at compilers/imcc/pbc.c:1815 |
---|
21 | 1815 p = VTABLE_instantiate_str(interp, _class, s, PObj_constant_FLAG); |
---|
22 | (gdb) bt |
---|
23 | #0 0x00007f083cfa5510 in make_pmc_const (interp=0x1dc5080, r=0x1f86760) at compilers/imcc/pbc.c:1815 |
---|
24 | #1 0x00007f083cfa56d9 in add_1_const (interp=0x1dc5080, r=0x1f86760) at compilers/imcc/pbc.c:1865 |
---|
25 | #2 0x00007f083cfa57ff in constant_folding (interp=0x1dc5080, unit=0x1f7fc10) at compilers/imcc/pbc.c:1903 |
---|
26 | #3 0x00007f083cfa5a47 in e_pbc_emit (interp=0x1dc5080, param_unused=0x0, unit=0x1f7fc10, ins=0x1f80df0) at compilers/imcc/pbc.c:2130 |
---|
27 | #4 0x00007f083cf95cf9 in emit_flush (interp=0x1dc5080, param=0x0, unit=0x1f7fc10) at compilers/imcc/instructions.c:908 |
---|
28 | #5 0x00007f083cf90078 in imc_compile_unit (interp=0x1dc5080, unit=0x1f7fc10) at compilers/imcc/imc.c:123 |
---|
29 | #6 0x00007f083cf900cb in imc_close_unit (interp=0x1dc5080, unit=0x1f7fc10) at compilers/imcc/imc.c:230 |
---|
30 | #7 0x00007f083cf82c70 in yyparse (yyscanner=0x1f063c0, interp=0x1dc5080) at compilers/imcc/imcc.y:1119 |
---|
31 | #8 0x00007f083cf904b7 in compile_to_bytecode (interp=0x1dc5080, sourcefile=0x7fff455298d2 "src/lib/luaaux.pir", |
---|
32 | output_file=0x7fff455298bf "src/lib/luaaux.pbc") at compilers/imcc/main.c:973 |
---|
33 | #9 0x00007f083cf9177a in imcc_run (interp=0x1dc5080, sourcefile=0x7fff455298d2 "src/lib/luaaux.pir", argc=1, argv=0x7fff45528ae8) |
---|
34 | at compilers/imcc/main.c:1072 |
---|
35 | #10 0x0000000000400b94 in main (argc=1, argv=0x7fff45528ae8) at src/main.c:61 |
---|
36 | |
---|
37 | |
---|
38 | |
---|
39 | --- |
---|
40 | osname= linux |
---|
41 | osvers= 2.6.24-16-server |
---|
42 | arch= x86_64-linux-gnu-thread-multi |
---|
43 | cc= cc |
---|
44 | --- |
---|
45 | Flags: |
---|
46 | category=core |
---|
47 | severity=critical |
---|
48 | ack=no |
---|
49 | --- |
---|
50 | Summary of my parrot 1.1.0 (r38496) configuration: |
---|
51 | configdate='Tue May 5 21:12:29 2009 GMT' |
---|
52 | Platform: |
---|
53 | osname=linux, archname=x86_64-linux-gnu-thread-multi |
---|
54 | jitcapable=0, jitarchname=nojit, |
---|
55 | jitosname=linux, jitcpuarch=amd64 |
---|
56 | execcapable=0 |
---|
57 | perl=/usr/bin/perl |
---|
58 | Compiler: |
---|
59 | 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', |
---|
60 | Linker and Libraries: |
---|
61 | ld='cc', ldflags=' -L/usr/local/lib', |
---|
62 | cc_ldflags='', |
---|
63 | libs='-ldl -lm -lpthread -lcrypt -lreadline ' |
---|
64 | Dynamic Linking: |
---|
65 | share_ext='.so', ld_share_flags='-shared -O2 -g -L/usr/local/lib -fPIC', |
---|
66 | load_ext='.so', ld_load_flags='-shared -O2 -g -L/usr/local/lib -fPIC' |
---|
67 | Types: |
---|
68 | iv=long, intvalsize=8, intsize=4, opcode_t=long, opcode_t_size=8, |
---|
69 | ptrsize=8, ptr_alignment=1 byteorder=12345678, |
---|
70 | nv=double, numvalsize=8, doublesize=8, longdoublesize=16 |
---|
71 | |
---|
72 | --- |
---|
73 | Environment: |
---|
74 | HOME =/home/harley |
---|
75 | LANG =en_US.UTF-8 |
---|
76 | LANGUAGE (unset) |
---|
77 | LC_ALL =en_US.UTF-8 |
---|
78 | LD_LIBRARY_PATH (unset) |
---|
79 | LOGDIR (unset) |
---|
80 | 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 |
---|
81 | SHELL =/bin/zsh |
---|