dbxps ~ # gdb grub2-probe GNU gdb (Gentoo 7.8.1 vanilla) 7.8.1 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later 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-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from grub2-probe...(no debugging symbols found)...done. (gdb) run / Starting program: /usr/sbin/grub2-probe / warning: Could not load shared library symbols for linux-vdso.so.1. Do you need "set solib-search-path" or "set sysroot"? [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7ba02a2 in zpool_get_config () from /lib64/libzfs.so.2 (gdb) backtrace #0 0x00007ffff7ba02a2 in zpool_get_config () from /lib64/libzfs.so.2 #1 0x00005555555cc407 in ?? () #2 0x00005555555cd579 in ?? () #3 0x00005555555ccac5 in ?? () #4 0x000055555555c563 in ?? () #5 0x000055555555bc33 in ?? () #6 0x00007ffff75f3e9b in __libc_start_main (main=0x55555555ba50, argc=2, argv=0x7fffffffe5f8, init=, fini=, rtld_fini=, stack_end=0x7fffffffe5e8) at libc-start.c:297 #7 0x000055555555bd2a in ?? () (gdb) disass zpool_get_config Dump of assembler code for function zpool_get_config: 0x00007ffff7ba0260 <+0>: push %rbp 0x00007ffff7ba0261 <+1>: mov %rsp,%rbp 0x00007ffff7ba0264 <+4>: sub $0x1030,%rsp 0x00007ffff7ba026b <+11>: orq $0x0,(%rsp) 0x00007ffff7ba0270 <+16>: add $0x1020,%rsp 0x00007ffff7ba0277 <+23>: mov %fs:0x28,%rax 0x00007ffff7ba0280 <+32>: mov %rax,-0x8(%rbp) 0x00007ffff7ba0284 <+36>: xor %eax,%eax 0x00007ffff7ba0286 <+38>: test %rsi,%rsi 0x00007ffff7ba0289 <+41>: je 0x7ffff7ba0295 0x00007ffff7ba028b <+43>: mov 0x128(%rdi),%rax 0x00007ffff7ba0292 <+50>: mov %rax,(%rsi) 0x00007ffff7ba0295 <+53>: mov -0x8(%rbp),%rdx 0x00007ffff7ba0299 <+57>: xor %fs:0x28,%rdx => 0x00007ffff7ba02a2 <+66>: mov 0x120(%rdi),%rax 0x00007ffff7ba02a9 <+73>: jne 0x7ffff7ba02ad 0x00007ffff7ba02ab <+75>: leaveq 0x00007ffff7ba02ac <+76>: retq 0x00007ffff7ba02ad <+77>: callq 0x7ffff7b9d770 <__stack_chk_fail@plt> End of assembler dump. (gdb) i r rax 0x0 0 rbx 0x7ffff5de702f 140737318383663 rcx 0x15 21 rdx 0x0 0 rsi 0x0 0 rdi 0x0 0 rbp 0x7ffffffbd020 0x7ffffffbd020 rsp 0x7ffffffbd010 0x7ffffffbd010 r8 0x7ffff7bcb5bf 140737349727679 r9 0x7ffff79743e0 140737347273696 r10 0x1 1 r11 0x555555840360 93824995296096 r12 0x7ffff5de702f 140737318383663 r13 0x7ffff5de7037 140737318383671 r14 0x7ffffffbd1bc 140737488081340 r15 0x37 55 rip 0x7ffff7ba02a2 0x7ffff7ba02a2 eflags 0x10246 [ PF ZF IF RF ] cs 0x33 51 ss 0x2b 43 ds 0x0 0 es 0x0 0 fs 0x0 0 gs 0x0 0 (gdb) x/10x $rbp 0x7ffffffbd020: 0xfffbd130 0x00007fff 0x555cc407 0x00005555 0x7ffffffbd030: 0x00000000 0x00000000 0xfffd227d 0x00007fff 0x7ffffffbd040: 0xfffbe260 0x00007fff (gdb) x/20i 0x00005555555cc407 0x5555555cc407: lea -0xe8(%rbp),%rdx 0x5555555cc40e: lea 0x22e71(%rip),%rsi # 0x5555555ef286 0x5555555cc415: mov %rax,%rdi 0x5555555cc418: callq 0x55555555b9c0 0x5555555cc41d: test %eax,%eax 0x5555555cc41f: jne 0x5555555cc600 0x5555555cc425: mov -0xe8(%rbp),%rdi 0x5555555cc42c: lea -0xec(%rbp),%r12 0x5555555cc433: lea -0xe0(%rbp),%rbx 0x5555555cc43a: mov %r12,%rcx 0x5555555cc43d: lea 0x22cd1(%rip),%rsi # 0x5555555ef115 0x5555555cc444: mov %rbx,%rdx 0x5555555cc447: callq 0x55555555b780 0x5555555cc44c: test %eax,%eax 0x5555555cc44e: jne 0x5555555cc620 0x5555555cc454: mov -0xec(%rbp),%ecx 0x5555555cc45a: test %ecx,%ecx 0x5555555cc45c: jne 0x5555555cc476 0x5555555cc45e: jmpq 0x5555555cc696 0x5555555cc463: nopl 0x0(%rax,%rax,1)