Discussion:
[perl #61092] JSON/pge2pir.pir segaful on amd64
(too old to reply)
Ilya Belikin
2008-12-06 17:03:04 UTC
Permalink
# New Ticket Created by Ilya Belikin
# Please include the string: [perl #61092]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=61092 >


Hi!

---
osname= linux
osvers= 2.6.22-3-amd64
arch= x86_64-linux-gnu-thread-multi
cc= cc
---
Flags:
category=core
severity=critical
ack=no
---

../../parrot --output=JSON/grammar.pbc JSON/grammar.pir
../../parrot ../../compilers/tge/tgc.pir --output=JSON/pge2pir.pir
JSON/pge2pir.tg
make[1]: *** [JSON/pge2pir.pir] Segmentation fault
make[1]: Leaving directory `/home/ihrd/parrot/compilers/json'
make: *** [compilers.dummy] Error 2

---
Summary of my parrot 0.8.1 (r33568) configuration:
configdate='Sat Dec 6 16:45:32 2008 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 -DTHREADS_HAVE_PIDS
-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 -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
-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
-Wimplicit-function-declaration -Wimplicit-int -Wmain
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wnonnull
-DDISABLE_GC_DEBUG=1 -DNDEBUG -O2 -DHAS_GETTEXT',
Linker and Libraries:
ld='cc', ldflags=' -L/usr/local/lib',
cc_ldflags='',
libs='-ldl -lm -lpthread -lcrypt -lrt -lgmp -lreadline -lpcre '
Dynamic Linking:
share_ext='.so', ld_share_flags='-shared -L/usr/local/lib -fPIC',
load_ext='.so', ld_load_flags='-shared -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

---
Environment:
HOME =/home/ihrd
LANG =en_NZ.UTF-8
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH =/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
SHELL =/bin/bash
f***@gmail.com
2008-12-13 14:15:13 UTC
Permalink
Hi!
I just try to remake last parrot on that machine, that time I have
another segaful:

make[1]: Entering directory `/home/ihrd/parrot/compilers/pct'
../../parrot -o ../../runtime/parrot/library/PCT.pbc --output-pbc PCT.pir
../../parrot -o ../../runtime/parrot/library/PCT/PAST.pbc --output-pbc
src/PAST.pir
../../parrot -o ../../runtime/parrot/library/PCT/Grammar.pbc
--output-pbc src/PCT/Grammar.pir
../../parrot -o ../../runtime/parrot/library/PCT/HLLCompiler.pbc
--output-pbc src/PCT/HLLCompiler.pir
make[1]: Leaving directory `/home/ihrd/parrot/compilers/pct'
make -C compilers/pge
make[1]: Entering directory `/home/ihrd/parrot/compilers/pge'
/usr/bin/perl -MExtUtils::Command -e rm_f PGE.pbc
../../runtime/parrot/library/PGE.pbc
/usr/bin/perl -e "" >PGE/builtins_gen.pir
../../parrot -o PGE.pbc --output-pbc PGE.pir
../../parrot ../../runtime/parrot/library/PGE/Perl6Grammar.pir
--output=PGE/builtins_gen.pir PGE/builtins.pg
make[1]: *** [PGE.pbc] Segmentation fault
make[1]: *** Deleting file `PGE.pbc'
make[1]: Leaving directory `/home/ihrd/parrot/compilers/pge'
make: *** [compilers.dummy] Error 2

all environment and configuration the same, but it is Parrot 33853
Post by Ilya Belikin
Hi!
---
osname= linux
osvers= 2.6.22-3-amd64
arch= x86_64-linux-gnu-thread-multi
cc= cc
---
category=core
severity=critical
ack=no
---
../../parrot --output=JSON/grammar.pbc JSON/grammar.pir
../../parrot ../../compilers/tge/tgc.pir --output=JSON/pge2pir.pir
JSON/pge2pir.tg
make[1]: *** [JSON/pge2pir.pir] Segmentation fault
make[1]: Leaving directory `/home/ihrd/parrot/compilers/json'
make: *** [compilers.dummy] Error 2
---
configdate='Sat Dec 6 16:45:32 2008 GMT'
osname=linux, archname=x86_64-linux-gnu-thread-multi
jitcapable=0, jitarchname=nojit,
jitosname=linux, jitcpuarch=amd64
execcapable=0
perl=/usr/bin/perl
cc='cc', ccflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-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 -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
-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
-Wimplicit-function-declaration -Wimplicit-int -Wmain
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wnonnull
-DDISABLE_GC_DEBUG=1 -DNDEBUG -O2 -DHAS_GETTEXT',
ld='cc', ldflags=' -L/usr/local/lib',
cc_ldflags='',
libs='-ldl -lm -lpthread -lcrypt -lrt -lgmp -lreadline -lpcre '
share_ext='.so', ld_share_flags='-shared -L/usr/local/lib -fPIC',
load_ext='.so', ld_load_flags='-shared -L/usr/local/lib -fPIC'
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
---
HOME =/home/ihrd
LANG =en_NZ.UTF-8
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH =/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
SHELL =/bin/bash
Илья
2008-12-16 03:00:40 UTC
Permalink
Hi!
Yes I use Ubuntu.
libicu36-dev 3.6-2etch1

Parrot 33940 maked on my box, but make test fail:
Test Summary Report
-------------------
t/pmc/fixedfloatarray.t (Wstat: 11 Tests: 0 Failed: 0)
Parse errors: Bad plan. You planned 24 tests but ran 0.
t/pmc/multisub.t (Wstat: 11 Tests: 0 Failed: 0)
Parse errors: Bad plan. You planned 8 tests but ran 0.
t/pmc/pmc.t (Wstat: 256 Tests: 16 Failed: 1)
Failed test: 3
Non-zero exit status: 1
t/pmc/pmcproxy.t (Wstat: 11 Tests: 0 Failed: 0)
Parse errors: Bad plan. You planned 44 tests but ran 0.
t/pmc/resizablepmcarray.t (Wstat: 11 Tests: 111 Failed: 0)
Parse errors: Bad plan. You planned 118 tests but ran 111.
t/pmc/resizablestringarray.t (Wstat: 11 Tests: 161 Failed: 0)
Parse errors: Bad plan. You planned 184 tests but ran 161.
t/pmc/scalar.t (Wstat: 11 Tests: 0 Failed: 0)
Parse errors: Bad plan. You planned 1 tests but ran 0.
t/compilers/pct/complete_workflow.t (Wstat: 65280 Tests: 17 Failed: 3)
Failed tests: 9, 16-17
Non-zero exit status: 255
Parse errors: Bad plan. You planned 54 tests but ran 17.
t/compilers/pge/p5regex/p5rx.t (Wstat: 11 Tests: 18 Failed: 0)
Parse errors: Bad plan. You planned 960 tests but ran 18.
t/compilers/pge/perl6regex/01-regex.t (Wstat: 11 Tests: 45 Failed: 0)
Parse errors: No plan found in TAP output
t/compilers/tge/grammar.t (Wstat: 512 Tests: 3 Failed: 2)
Failed tests: 1-2
Non-zero exit status: 2
t/library/mime_base64.t (Wstat: 11 Tests: 0 Failed: 0)
Parse errors: Bad plan. You planned 550 tests but ran 0.
Files=396, Tests=9300, 491 wallclock secs ( 1.77 usr 1.37 sys +
115.60 cusr 46.91 csys = 165.65 CPU)
Result: FAIL
make: *** [test] Error 1

make perl6 fail too:
make -C languages/perl6 perl6
make[1]: Entering directory `/home/ihrd/parrot/languages/perl6'
../../parrot /home/ihrd/parrot/compilers/nqp/nqp.pbc
--output=src/gen_actions.pir \
--encoding=fixed_8 --target=pir src/parser/actions.pm
make[1]: *** [src/gen_actions.pir] Segmentation fault
make[1]: Leaving directory `/home/ihrd/parrot/languages/perl6'
make: *** [perl6] Error 2
Post by f***@gmail.com
../../parrot ../../runtime/parrot/library/PGE/Perl6Grammar.pir
--output=PGE/builtins_gen.pir PGE/builtins.pg
make[1]: *** [PGE.pbc] Segmentation fault
[snip]
Post by f***@gmail.com
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47236244385456 (LWP 24325)]
0x00002af6098b097a in Parrot_Iterator_shift_string ()
from /home/ihrd/parrot/blib/lib/libparrot.so.0.8.1
This segfault looks very similar to the issue reported as Trac #26 (
https://trac.parrot.org/parrot/ticket/26 ), I believe they are the same
issue.
@Reporter, which linux distro are you using? Unfortunately I can't
reproduce this on my gentoo x86-64 box (I just tried with r33853). If
you are using Ubuntu, that may be helpful in figuring out what the
difference is. I do notice I have a different version of libicudata
than you do, likely other things differ as well.
Thanks,
Mark
_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev
Loading...