Skip to content

Instantly share code, notes, and snippets.

@Benabik
Created July 20, 2012 21:19
Show Gist options
  • Save Benabik/3153298 to your computer and use it in GitHub Desktop.
Save Benabik/3153298 to your computer and use it in GitHub Desktop.
#!winxed
# golfed until it stopped segfaulting
function main[main]() {
load_bytecode('rosella/core.pbc');
Rosella.initialize_rosella('test');
Rosella.Test.test(class SanityTest);
}
class SanityTest {
function test_imcc() {
var imcc = compreg('PIR');
var view = imcc.compile(<<:
.sub 'test_imcc_1'
.end
:>>
);
}
}
# vim: se ft=winxed :
$ parrot 00-sanity.t.pir
1..1
compilers/imcc/symreg.c:1424: failed assertion 'name'
Backtrace - Obtained 29 stack frames (max trace depth is 32).
0 libparrot.dylib 0x0000000102488fcb Parrot_print_backtrace + 59
1 libparrot.dylib 0x000000010248921e Parrot_confess + 190
2 libparrot.dylib 0x00000001026708b7 _get_sym + 103
3 libparrot.dylib 0x000000010267377e add_namespace + 318
4 libparrot.dylib 0x000000010265e763 iSUBROUTINE + 307
5 libparrot.dylib 0x000000010265fc62 yyparse + 4402
6 libparrot.dylib 0x0000000102669df3 imcc_run_compilation + 99
7 libparrot.dylib 0x000000010266bef2 imcc_compile_buffer_safe + 226
8 libparrot.dylib 0x000000010266ef3f imcc_run_compilation_internal + 607
9 libparrot.dylib 0x000000010266f15c imcc_run_compilation_reentrant + 172
10 libparrot.dylib 0x000000010266f2f0 imcc_compile_string + 160
11 libparrot.dylib 0x00000001025e7616 Parrot_IMCCompiler_nci_compile + 534
12 libparrot.dylib 0x00000001025f056d Parrot_NativePCCMethod_invoke + 189
13 libparrot.dylib 0x000000010243fd93 Parrot_callmethodcc_p_sc + 323
14 libparrot.dylib 0x00000001024f23e1 runops_fast_core + 193
15 libparrot.dylib 0x00000001024f1641 runops_int + 273
16 libparrot.dylib 0x00000001024b86d5 runops + 517
17 libparrot.dylib 0x00000001024ae68f Parrot_pcc_invoke_from_sig_object + 495
18 libparrot.dylib 0x000000010248b9ef Parrot_ext_call + 607
19 libparrot.dylib 0x000000010264ed17 Parrot_Task_invoke + 407
20 libparrot.dylib 0x00000001024ae61f Parrot_pcc_invoke_from_sig_object + 383
21 libparrot.dylib 0x000000010248b9ef Parrot_ext_call + 607
22 libparrot.dylib 0x00000001024fb3bb Parrot_cx_next_task + 395
23 libparrot.dylib 0x00000001024fb45b Parrot_cx_outer_runloop + 139
24 libparrot.dylib 0x00000001024fb66b Parrot_cx_begin_execution + 347
25 libparrot.dylib 0x000000010250c68d Parrot_pf_execute_bytecode_program + 477
26 libparrot.dylib 0x0000000102481f74 Parrot_api_run_bytecode + 468
27 parrot 0x00000001024058b2 main + 722
28 parrot 0x00000001024055d4 start + 52
Attempting to get PIR backtrace. No guarantees. Here goes...
Abort trap: 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment