Paste number 346440: debug guile

Paste number 346440: debug guile
Pasted by: jlicht
When:4 years, 6 months ago
Share:Tweet this! | http://paste.lisp.org/+7FBC
Channel:None
Paste contents:
Raw Source | XML | Display As
jelle@gerrit ~/.config/guix$ gdb guile
GNU gdb (GDB) 7.12.1
Copyright (C) 2017 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-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from guile...(no debugging symbols found)...done.
(gdb) set debug-file-directory ~/.guix-profile/lib/debug
(gdb) run
Starting program: /gnu/store/3kqj6adsk53h0zr4fhbh9qmaq2rl0qci-profile/bin/guile 
warning: File "/gnu/store/5zx29y44nrqj0s8h3jlvlj82k8hj4dxs-guile-2.2.2/lib/libguile-2.2.so.1.2.0-gdb.scm" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
	add-auto-load-safe-path /gnu/store/5zx29y44nrqj0s8h3jlvlj82k8hj4dxs-guile-2.2.2/lib/libguile-2.2.so.1.2.0-gdb.scm
line to your configuration file "/home/jelle/.gdbinit".
To completely disable this security protection add
	set auto-load safe-path /
line to your configuration file "/home/jelle/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
	info "(gdb)Auto-loading safe path"
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/gnu/store/rmjlycdgiq8pfy5hfi42qhw3k7p6kdav-glibc-2.25/lib/libthread_db.so.1".
[New Thread 0x7ffff5f04700 (LWP 25271)]
[New Thread 0x7ffff5703700 (LWP 25272)]
[New Thread 0x7ffff4f02700 (LWP 25273)]
[New Thread 0x7ffff4701700 (LWP 25274)]
[New Thread 0x7ffff3f00700 (LWP 25275)]
[New Thread 0x7ffff36ff700 (LWP 25276)]
[New Thread 0x7ffff2efe700 (LWP 25277)]
[New Thread 0x7ffff1e92700 (LWP 25278)]
[New Thread 0x7ffff0d17700 (LWP 25279)]
GNU Guile 2.2.2
Copyright (C) 1995-2017 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> 2
$1 = 2
Fatal error: glibc detected an invalid stdio handle

Thread 1 "guile" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) where
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007ffff5f3972a in __GI_abort () at abort.c:89
#2  0x00007ffff5f75fda in __libc_message (do_abort=do_abort@entry=1, 
    fmt=fmt@entry=0x7ffff6068725 "%s") at ../sysdeps/posix/libc_fatal.c:175
#3  0x00007ffff5f75ffe in __GI___libc_fatal (
    message=message@entry=0x7ffff606a480 "Fatal error: glibc detected an invalid stdio handle\n") at ../sysdeps/posix/libc_fatal.c:185
#4  0x00007ffff5f76746 in _IO_vtable_check () at vtables.c:71
#5  0x00007ffff5f79b0d in IO_validate_vtable (vtable=0x6f672e72656b6e69)
    at libioP.h:942
#6  __GI___overflow (f=0x638790, ch=27) at genops.c:232
#7  0x00007ffff5f74cf3 in __GI__IO_putc (c=<optimized out>, fp=0x638790)
    at putc.c:29
#8  0x00007ffff0fe6707 in _rl_output_character_function ()
   from /gnu/store/sjm2c0dymn3mjl7g0jqbjdbibnqh0iaw-readline-7.0/lib/libreadline.so.7
#9  0x00007ffff0d91646 in tputs_sp ()
   from /gnu/store/h7mx27bl0wynlz8vjszzykqqldccfwm5-ncurses-6.0/lib/libncursesw.so.6
#10 0x00007ffff0d91a14 in tputs ()
   from /gnu/store/h7mx27bl0wynlz8vjszzykqqldccfwm5-ncurses-6.0/lib/libncursesw.so.6
#11 0x00007ffff0fe723b in _rl_control_keypad ()
---Type <return> to continue, or q <return> to quit---
  0jqbjdbibnqh0iaw-readline-7.0/lib/libreadline.so.7
#12 0x00007ffff0fd5433 in rl_prep_terminal () from /gnu/store/sjm2c0dymn3mjl7g0jqbjdbibnqh0iaw-readline-7.0/lib/libreadline.so.7
#13 0x00007ffff0fd096c in readline () from /gnu/store/sjm2c0dymn3mjl7g0jqbjdbibnqh0iaw-readline-7.0/lib/libreadline.so.7
#14 0x00007ffff1206784 in internal_readline (text=<optimized out>) at readline.c:251
#15 scm_readline (text=<optimized out>, inp=0x724160, outp=0x7240c0, read_hook=0x7ffff14331f8) at readline.c:203
#16 0x00007ffff7b680c9 in vm_debug_engine (thread=0x2, vp=0x72af30, registers=0x0, resume=-168590652) at vm-engine.c:784
#17 0x00007ffff7b752aa in scm_call_n (proc=0x9adde0, argv=argv@entry=0x0, nargs=nargs@entry=0) at vm.c:1257
#18 0x00007ffff7af87d9 in scm_call_0 (proc=<optimized out>) at eval.c:481
#19 0x00007ffff7b75a29 in soft_port_read (port=0x9b0960, dst=<optimized out>, start=0, count=1024) at vports.c:112
#20 0x00007ffff7b32d77 in scm_i_read_bytes (port=port@entry=0x9b0960, dst=0x9baa80, start=start@entry=0, count=1024) at ports.c:1544
#21 0x00007ffff7b365fe in scm_fill_input (port=port@entry=0x9b0960, minimum_size=1, minimum_size@entry=0, cur_out=cur_out@entry=0x7fffffffd2a0, avail_out=avail_out@entry=0x7fffffffd2a8)
    at ports.c:2677
#22 0x00007ffff7b368dc in peek_byte_or_eof (port=port@entry=0x9b0960, buf_out=buf_out@entry=0x7fffffffd2f8, cur_out=cur_out@entry=0x7fffffffd300) at ports.c:1504
#23 0x00007ffff7b36a3c in peek_utf8_codepoint (port=0x9b0960, buf_out=buf_out@entry=0x7fffffffd358, cur_out=cur_out@entry=0x7fffffffd360, len_out=len_out@entry=0x7fffffffd368)
    at ports.c:1768
#24 0x00007ffff7b36f9c in peek_codepoint (len=0x7fffffffd368, cur=0x7fffffffd360, buf=0x7fffffffd358, port=<optimized out>) at ports.c:1969
#25 scm_peek_char (port=<optimized out>) at ports.c:2187
#26 0x00007ffff7b680c9 in vm_debug_engine (thread=0x2, vp=0x72af30, registers=0x0, resume=-168590652) at vm-engine.c:784
#27 0x00007ffff7b752aa in scm_call_n (proc=0x7ffff7e5f030, argv=argv@entry=0x7fffffffd588, nargs=nargs@entry=1) at vm.c:1257
#28 0x00007ffff7af98d7 in scm_primitive_eval (exp=exp@entry=0x7db2f0) at eval.c:662
#29 0x00007ffff7af9933 in scm_eval (exp=0x7db2f0, module_or_state=module_or_state@entry=0x7be140) at eval.c:696
#30 0x00007ffff7b449d0 in scm_shell (argc=1, argv=0x7fffffffdbe8) at script.c:454
#31 0x00007ffff7b104ed in invoke_main_func (body_data=0x7fffffffda90) at init.c:340
#32 0x00007ffff7af2cba in c_body (d=0x7fffffffd9d0) at continuations.c:422
#33 0x00007ffff7b71c4d in vm_regular_engine (thread=0x2, vp=0x72af30, registers=0x0, resume=-168590652) at vm-engine.c:784
#34 0x00007ffff7b752aa in scm_call_n (proc=proc@entry=0x72e020, argv=argv@entry=0x0, nargs=nargs@entry=0) at vm.c:1257
#35 0x00007ffff7af87d9 in scm_call_0 (proc=proc@entry=0x72e020) at eval.c:481
#36 0x00007ffff7b644e6 in catch (tag=tag@entry=0x404, thunk=0x72e020, handler=0x72e000, pre_unwind_handler=0x73ba40) at throw.c:137
#37 0x00007ffff7b64825 in scm_catch_with_pre_unwind_handler (key=key@entry=0x404, thunk=<optimized out>, handler=<optimized out>, pre_unwind_handler=<optimized out>) at throw.c:254
#38 0x00007ffff7b649df in scm_c_catch (tag=tag@entry=0x404, body=body@entry=0x7ffff7af2cb0 <c_body>, body_data=body_data@entry=0x7fffffffd9d0, 
    handler=handler@entry=0x7ffff7af2f40 <c_handler>, handler_data=handler_data@entry=0x7fffffffd9d0, pre_unwind_handler=pre_unwind_handler@entry=0x7ffff7af2da0 <pre_unwind_handler>, 
    pre_unwind_handler_data=0x724020) at throw.c:377
#39 0x00007ffff7af32a0 in scm_i_with_continuation_barrier (body=body@entry=0x7ffff7af2cb0 <c_body>, body_data=body_data@entry=0x7fffffffd9d0, 
    handler=handler@entry=0x7ffff7af2f40 <c_handler>, handler_data=handler_data@entry=0x7fffffffd9d0, pre_unwind_handler=pre_unwind_handler@entry=0x7ffff7af2da0 <pre_unwind_handler>, 
    pre_unwind_handler_data=0x724020) at continuations.c:360
#40 0x00007ffff7af3335 in scm_c_with_continuation_barrier (func=<optimized out>, data=<optimized out>) at continuations.c:456
#41 0x00007ffff7b6310c in with_guile (base=0x7fffffffda30, data=0x7fffffffda60) at threads.c:660
#42 0x00007ffff7858732 in GC_call_with_stack_base () from /gnu/store/j4p7cnxb6byf1wra3yz6pk8av4g5mwkl-libgc-7.6.0/lib/libgc.so.1
#43 0x00007ffff7b63498 in scm_i_with_guile (dynamic_state=<optimized out>, data=data@entry=0x7fffffffda60, func=func@entry=0x7ffff7b104d0 <invoke_main_func>) at threads.c:703
#44 scm_with_guile (func=func@entry=0x7ffff7b104d0 <invoke_main_func>, data=data@entry=0x7fffffffda90) at threads.c:709
#45 0x00007ffff7b10682 in scm_boot_guile (argc=1, argv=0x7fffffffdbe8, main_func=0x400ca0 <inner_main>, closure=0x0) at init.c:323
#46 0x0000000000400b40 in main ()
(gdb) 

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.