Skip to content

Instantly share code, notes, and snippets.

Created October 7, 2013 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/eba3683fb19c83732026 to your computer and use it in GitHub Desktop.
Save anonymous/eba3683fb19c83732026 to your computer and use it in GitHub Desktop.
froggs@TL02L-R8RXTCW-linux:~/dev/nqp$ gdb --args install/bin/moar nqp.moarvm --target=ast -e 'my $line := ""; my @parts := match($line, /T+/, :global);'
GNU gdb (GDB) 7.5.91.20130417-cvs-ubuntu
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/froggs/dev/nqp/install/bin/moar...done.
(gdb) run
Starting program: /home/froggs/dev/nqp/install/bin/moar nqp.moarvm --target=ast -e my\ \$line\ :=\ \"\"\;\ my\ @parts\ :=\ match\(\$line,\ /T+/,\ :global\)\;
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x000000000043614a in MVM_string_concatenate (tc=0x829310, a=0x7ffff6fcec98, b=0x0) at src/strings/ops.c:413
413 MVMStringIndex agraphs = NUM_GRAPHS(a), bgraphs = NUM_GRAPHS(b), rgraphs;
(gdb) bt full
#0 0x000000000043614a in MVM_string_concatenate (tc=0x829310, a=0x7ffff6fcec98, b=0x0) at src/strings/ops.c:413
result = 0x829310
strand_count = 0
strands = 0x1c0
index = 0
max_strand_depth = 0
agraphs = 12
bgraphs = 140737336251600
rgraphs = 140737336251640
#1 0x000000000044cd8f in MVM_interp_run (tc=0x829310, initial_invoke=0x441cb8 <toplevel_initial_invoke>, invoke_data=0x955b50) at src/core/interp.c:1263
op = 184
cur_op = 0x7ffff6dd3a9c "\003"
bytecode_start = 0x7ffff6dd3956 "`"
reg_base = 0x15ed460
cu = 0x7ffff6ef0ff8
cur_callsite = 0xbafac0
#2 0x0000000000441dd6 in MVM_vm_run_file (instance=0x829010, filename=0x7fffffffe36a "nqp.moarvm") at src/moar.c:132
start_frame = 0x955b50
tc = 0x829310
cu = 0x7ffff6ee9d58
#3 0x000000000040433d in main (argc=5, argv=0x7fffffffe048) at src/main.c:130
instance = 0x829010
input_file = 0x7fffffffe36a "nqp.moarvm"
lib_path = 0x0
dump = 0
argi = 2
flag = -2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment