Skip to content

Instantly share code, notes, and snippets.

@Xliff
Created April 18, 2016 14:58
Show Gist options
  • Save Xliff/edd2bd3e70c4308f66a5a92a716dc25f to your computer and use it in GitHub Desktop.
Save Xliff/edd2bd3e70c4308f66a5a92a716dc25f to your computer and use it in GitHub Desktop.

So libmyhtml.so is now compiled with debugging information and I've tracked the crash here:

Starting program: /home/cbwood/.rakudobrew/moar-nom/install/bin/moar --execname=/home/cbwood/.rakudobrew/bin/../moar-nom/install/bin/perl6-gdb-m --libpath=/home/cbwood/.rakudobrew/moar-nom/install/share/nqp/lib --libpath=/home/cbwood/.rakudobrew/moar-nom/install/share/perl6/lib --libpath=/home/cbwood/.rakudobrew/moar-nom/install/share/perl6/runtime /home/cbwood/.rakudobrew/moar-nom/install/share/perl6/runtime/perl6.moarvm -Ilib eg/attributes-high.pl6
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1".
running now...
building now...
building native MyHTML...
[New Thread 0xb52dbb40 (LWP 15572)]
[New Thread 0xb4adab40 (LWP 15573)]
[New Thread 0xb42d9b40 (LWP 15574)]
MyHTML_STATUS_OK
MyHTML initialized!
myhtml initialized!
tree created NativeCall::Types::Pointer[Tree::TreeStruct]<-1239807148>
myhtml2 created Tree::Native_MyHTML<-1239803944>

Program received signal SIGSEGV, Segmentation fault.
0xb5309e35 in mchar_async_node_add (mchar_async=0x0) at utils/mchar_async.c:210
210         mcsync_lock(mchar_async->mcsync);
(gdb) bt
#0  0xb5309e35 in mchar_async_node_add (mchar_async=0x0) at utils/mchar_async.c:210
#1  0xb52f772a in myhtml_tag_init (tree=0xb4a8d28, tags=0xb4741d8) at tag.c:36
#2  0xb52f2a7e in myhtml_tree_init (tree=0xb4a8d28, myhtml=0xa315d88) at tree.c:48
#3  0xb7db70c3 in dcCall_x86_cdecl () from /home/cbwood/.rakudobrew/moar-nom/install/lib/libmoar.so
#4  0xb7db6a6a in dc_callvm_call_x86_cdecl () from /home/cbwood/.rakudobrew/moar-nom/install/lib/libmoar.so
#5  0xb7db6656 in dcCallInt () from /home/cbwood/.rakudobrew/moar-nom/install/lib/libmoar.so
#6  0xb7d0ee73 in MVM_nativecall_invoke () from /home/cbwood/.rakudobrew/moar-nom/install/lib/libmoar.so
#7  0xb7cf1598 in MVM_interp_run () from /home/cbwood/.rakudobrew/moar-nom/install/lib/libmoar.so
#8  0xb7db3b0d in MVM_vm_run_file () from /home/cbwood/.rakudobrew/moar-nom/install/lib/libmoar.so
#9  0x08048c53 in main ()

More later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment