Ticket #1973 (closed bug: fixed)
pbc_merge fails silently
Reported by: | rgrjr | Owned by: | whiteknight |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | tools | Version: | master |
Severity: | medium | Keywords: | pbc_merge, api |
Cc: | Language: | ||
Patch status: | Platform: | all |
Description
1. Download the test case tarball from http://www.rgrjr.com/perl/bug-pbc-merge-110115.tgz, unpack it, and edit the PARROT-HOME macro in the makefile to point to a local Parrot working copy. (It's 310KB, so Trac won't accept it as an attachment.)
2. Run "make" to build and run the test. Here's what the output looks like on my machine (GNU/Linux, openSUSE 11.3):
rogers@rgr> make /usr/src/parrot/parrot -o compiler-structures.pbc compiler-structures.pir /usr/src/parrot/parrot -o emit.pbc emit.pir /usr/src/parrot/parrot -o package-decls.pbc package-decls.pir /usr/src/parrot/parrot -o walker.pbc walker.pir /usr/src/parrot/parrot -o defstruct.pbc defstruct.pir /usr/src/parrot/parrot -o forms.pbc forms.pir /usr/src/parrot/parrot -o top-level.pbc top-level.pir /usr/src/parrot/pbc_merge -o compiler.pbc compiler-structures.pbc emit.pbc package-decls.pbc walker.pbc defstruct.pbc forms.pbc top-level.pbc make: *** [test] Error 1 rogers@rgr>
I have no clue what's going on here, except I did manage to figure out that PackFile_unpack doesn't return on the last file. It seems to be size-related, because dropping one or two of the input PBC files makes it succeed, and it doesn't seem to matter which ones are dropped (hence the size of the test case).