Ticket #291 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

Parrot Version 0.9.0 Configure 2.0 (openbsd 4.4)

Reported by: dj_goku Owned by: Infinoid
Priority: normal Milestone:
Component: core Version: 0.9.0
Severity: medium Keywords:
Cc: Language: perl6
Patch status: Platform: openbsd


Checked out revision 36449.
# cd parrot/
# perl Configure.pl
Parrot Version 0.9.0 Configure 2.0

cc -o dan_ops_switch.so dan_ops_switch.o -Wl,-E -Wl,-E -shared -fPIC perl -e 'chdir shift @ARGV; system q{make}, @ARGV; exit $? >> 8;' 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 perl -e 'chdir shift @ARGV; system q{make}, @ARGV; exit $? >> 8;' compilers/pge perl -MExtUtils::Command -e rm_f PGE.pbc ../../runtime/parrot/library/PGE.pbc 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 Segmentation fault (core dumped) *** Error code 139

Stop in /home/rakudo/parrot/compilers/pge (line 36 of Makefile). *** Error code 1

Stop in /home/rakudo/parrot (line 2353 of Makefile).

# perl -V Summary of my perl5 (revision 5 version 8 subversion 8) configuration:


osname=openbsd, osvers=4.4, archname=i386-openbsd uname='openbsd' config_args='-dsE -Dopenbsd_distribution=defined' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef


cc='cc', ccflags ='-fno-strict-aliasing -fno-delete-null-pointer-checks -pipe -I/usr/local/include', optimize='-O2', cppflags='-fno-strict-aliasing -fno-delete-null-pointer-checks -pipe -I/usr/local/include' ccversion=, gccversion='3.3.5 (propolice)', gccosandvers='openbsd4.4' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define

Linker and Libraries:

ld='cc', ldflags ='-Wl,-E ' libpth=/usr/lib libs=-lm -lutil -lc perllibs=-lm -lutil -lc libc=/usr/lib/libc.a, so=so, useshrplib=true, libperl=libperl.so.10.1 gnulibc_version=

Dynamic Linking:

dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-R/usr/libdata/perl5/i386-openbsd/5.8.8/CORE' cccdlflags='-DPIC -fPIC ', lddlflags='-shared -fPIC '

Characteristics of this binary (from libperl):

Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO Built under openbsd @INC:

/usr/libdata/perl5/i386-openbsd/5.8.8 /usr/local/libdata/perl5/i386-openbsd/5.8.8 /usr/libdata/perl5 /usr/local/libdata/perl5 /usr/local/libdata/perl5/site_perl/i386-openbsd /usr/libdata/perl5/site_perl/i386-openbsd /usr/local/libdata/perl5/site_perl /usr/libdata/perl5/site_perl /usr/local/lib/perl5/site_perl

Change History

Changed 5 years ago by Infinoid

  • owner changed from pmichaud to Infinoid
  • component changed from PGE to core
  • patch new deleted


This likely isn't a bug in PGE, but a bug in parrot itself while building PGE. It just so happens PGE is the first big thing we build with parrot during the build process, so it tends to collect bug reports like this one.

The pkgsrc maintainer (he++) has been very helpful and we've recently applied a bunch of fixes to fix various things on both NetBSD and OpenBSD. NetBSD now seems to be working pretty well, but we could use some more testing on OpenBSD. Could you please retest with either our recent 1.1.0 release, or else with SVN head?

If you continue to get segfaults, we would need a gdb backtrace to be able to debug this further. If you're unfamiliar with gdb, it goes like this:

$ cd compilers/pge
$ gdb ../../parrot
(gdb) run ../../runtime/parrot/library/PGE/Perl6Grammar.pir --output=PGE/builtins_gen.pir PGE/builtins.pg
(gdb) bt
(gdb) kill
(gdb) exit



Changed 5 years ago by allison

  • milestone 1.1 deleted

Waiting for testing from user, no longer need milestone.

Changed 5 years ago by Infinoid

  • status changed from new to closed
  • resolution set to fixed

We have at least one user (darbelo++) regularly and successfully using Parrot on OpenBSD, and I believe this was an OS-specific and not arch-specific issue which has since been fixed. @reporter, if you have any build issues with the current revision of Parrot, please open a new ticket.


Note: See TracTickets for help on using tickets.