-
-
Save alexeyr/734809 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aromanov@alexey-desktop:~/workspace/gmcontroller/lib/sqlite3$ gdb "/usr/local/lib/erlang/erts-5.8.1/bin/beam.smp" .eunit/core | |
GNU gdb (GDB) 7.0-ubuntu | |
... loading symbols ... | |
Core was generated by `/usr/local/lib/erlang/erts-5.8.1/bin/beam.smp -B -- -root /usr/local/lib/erlang'. | |
Program terminated with signal 11, Segmentation fault. | |
#0 0x0808c799 in tree_insert_fixup (bfallctr=0x8ca0e80, blk=0x410a9078) | |
at beam/erl_bestfit_alloc.c:326 | |
326 if (x->parent == x->parent->parent->left) { | |
(gdb) backtrace | |
#0 0x0808c799 in tree_insert_fixup (bfallctr=0x8ca0e80, blk=0x410a9078) | |
at beam/erl_bestfit_alloc.c:326 | |
#1 0x0808d04b in bf_link_free_block (allctr=0x8ca0e80, block=0x410a9078) | |
at beam/erl_bestfit_alloc.c:748 | |
#2 0x08085c3e in mbc_alloc_finalize (allctr=0x8ca0e80, | |
size=<value optimized out>) at beam/erl_alloc_util.c:703 | |
#3 mbc_alloc (allctr=0x8ca0e80, size=<value optimized out>) | |
at beam/erl_alloc_util.c:768 | |
#4 0x0808609d in mbc_realloc (allctr=0x8ca0e80, p=0x8ca2ca4, size=100, | |
flgs=<value optimized out>) at beam/erl_alloc_util.c:1115 | |
#5 0x08087000 in do_erts_alcu_realloc (type=151, extra=0x8255340, | |
p=0x8ca2ca8, size=96) at beam/erl_alloc_util.c:2748 | |
#6 erts_alcu_realloc_thr_pref (type=151, extra=0x8255340, p=0x8ca2ca8, | |
size=96) at beam/erl_alloc_util.c:2996 | |
#7 0x080cc779 in erts_realloc_fnf (ptr=0x8ca2ca8, size=96) | |
at beam/erl_alloc.h:230 | |
#8 driver_realloc (ptr=0x8ca2ca8, size=96) at beam/io.c:3505 | |
#9 0x40cf8428 in sql_exec_async (_async_command=0x8ca2c78) | |
at c_src/sqlite3_drv.c:655 | |
#10 0x08131709 in driver_async (ix=212, key=0x8ca2c2c, | |
async_invoke=0x40cf7c1d <sql_exec_async>, async_data=0x8ca2c78, | |
async_free=0x40cf7b7c <sql_free_async>) at beam/erl_async.c:444 | |
#11 0x40cf6fc9 in sql_exec_statement (drv=0x8ca2c28, statement=0x40d12890) | |
at c_src/sqlite3_drv.c:219 | |
#12 0x40cf7064 in sql_exec (drv=0x8ca2c28, | |
command=0x40223020 "select name from sqlite_master where type='table';ler/lib/sqlite3/priv/sqlite3_drv", command_size=50) at c_src/sqlite3_drv.c:243 | |
#13 0x40cf6c2d in control (drv_data=0x8ca2c28, command=2, | |
buf=0x40223020 "select name from sqlite_master where type='table';ler/lib/sqlite3/priv/sqlite3_drv", len=50, rbuf=0x40aea1c8, rlen=64) | |
at c_src/sqlite3_drv.c:127 | |
#14 0x080d2898 in erts_port_control (p=0x40ed3944, prt=0x40356398, command=2, | |
iolist=1098807381) at beam/io.c:2219 | |
#15 0x0813d3f4 in port_control_3 (A__p=0x40ed3944, A_1=52551, A_2=47, | |
A_3=1098807381) at beam/erl_bif_port.c:455 | |
#16 0x08160fbc in process_main () at beam/beam_emu.c:2277 | |
#17 0x080df139 in sched_thread_func (vesdp=0x402de000) | |
at beam/erl_process.c:3635 | |
#18 0x081d6485 in thr_wrapper (vtwd=0xbf9a7150) at pthread/ethread.c:106 | |
#19 0x4009e80e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 | |
#20 0x40187a0e in clone () from /lib/tls/i686/cmov/libc.so.6 | |
(gdb) frame 9 | |
#9 0x40cf8428 in sql_exec_async (_async_command=0x8ca2c78) | |
at c_src/sqlite3_drv.c:655 | |
655 dataset = driver_realloc(dataset, sizeof(ErlDrvTermData) * term_allocated); | |
(gdb) print dataset | |
$1 = (ErlDrvTermData *) 0x8ca2ca8 | |
(gdb) print term_allocated | |
$2 = 24 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment