Skip to content

Instantly share code, notes, and snippets.

@kasei
Created June 25, 2012 19:09
Show Gist options
  • Save kasei/2990589 to your computer and use it in GitHub Desktop.
Save kasei/2990589 to your computer and use it in GitHub Desktop.
embedded perl crash from threaded call_pv invocation
2012-06-25 15:08:04.035 pack[46953:f0b] Listening on localhost:8081
Perl 0x100823200
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
[Switching to process 46953 thread 0x2807]
0x00000001003b80ca in XS_Scalar__Util_blessed ()
(gdb) bt
#0 0x00000001003b80ca in XS_Scalar__Util_blessed ()
#1 0x00000001000bea9c in Perl_pp_entersub ()
#2 0x00000001000bcec8 in Perl_runops_standard ()
#3 0x00000001000636af in Perl_call_sv ()
#4 0x0000000100024244 in sparql2pp (query=0x10cb01e60 "foo") at /Users/samofool/data/prog/git/rdf-node/pp_perl.c:30
#5 0x000000010002e799 in parse_program (ctx=0x10042b380, query=0x10cb01e60 "foo") at /Users/samofool/data/prog/git/rdf-node/GWHTTPServer.m:300
#6 0x000000010002e3bd in __34-[GWHTTPServer startServerOnPort:]_block_invoke_0 (.block_descriptor=0x10cb002a0) at /Users/samofool/data/prog/git/rdf-node/GWHTTPServer.m:424
#7 0x00007fff8c25ba86 in _dispatch_call_block_and_release ()
#8 0x00007fff8c25c965 in _dispatch_worker_thread2 ()
#9 0x00007fff8fa593da in _pthread_wqthread ()
#10 0x00007fff8fa5ab85 in start_wqthread ()
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment