Skip to content

Instantly share code, notes, and snippets.

@extrowerk
Created November 27, 2017 19:26
Show Gist options
  • Save extrowerk/fc827700caccfed70cb7f43ed0cd3d00 to your computer and use it in GitHub Desktop.
Save extrowerk/fc827700caccfed70cb7f43ed0cd3d00 to your computer and use it in GitHub Desktop.
Fish 2.7.0 MALLOC DEBUG + LD_PRELOAD
Debug information for team /boot/system/bin/fish (1137):
CPU(s): 2x Intel Core 2
Memory: 5.90 GiB total, 823.68 MiB used
Haiku revision: hrev51622 Nov 26 2017 09:36:28 (x86_64)
Active Threads:
thread 1144: team 1137 debug task
thread 1137: fish (main)
state: Call (generic segfault)
Frame IP Function Name
-----------------------------------------------
00000000 0xe69f94a87 _kern_debugger + 0x7
Disassembly:
_kern_debugger:
0x0000000e69f94a80: 48c7c0e1000000 mov $0xe1, %rax
0x0000000e69f94a87: 0f05 syscall <--
0x7f1bb11ee2f8 0xe69f8e3c9 debugger + 0x2f
0x7f1bb11ee7d8 0xe6a037cc7 panic(char const*, ...) + 0xad
0x7f1bb11ee828 0xe6a038282 guarded_heap_segfault_handler(int, __siginfo_t*, void*) + 0x2c
0x7f1bb11ee828 0x7ffdee01123b commpage_signal_handler + 0x2b
0x7f1bb11eec30 0xe69fe0f1b _IO_flush_all_lockp + 0x86
0x7f1bb11eec50 0xe69fe10a6 _IO_cleanup + 0xc
0x7f1bb11eec70 0xe6a031aa2 _exit + 0xb
0x7f1bb11eec78 0x1d42775de71 convert_wide_array_to_narrow(null_terminated_array_t<wchar_t> const&, null_terminated_array_t<char>*) + 0
0x7f1bb11eec80 0x7f1bb11eec80 ?
0x7f1bb11eedc0 0x1d427819dd6 config_paths_t::config_paths_t() + 0
0x7f1bb11eee00 0x1d42772360c _start + 0x4c
0x7f1bb11eee20 0xe622dc1e3a runtime_loader + 0x129
00000000 0x7ffdee011260 commpage_thread_exit + 0
Registers:
rip: 0x0000000e69f94a89
rsp: 0x00007f1bb11ee2d0
rbp: 0x00007f1bb11ee2e8
rax: 0x00000000000000e1
rbx: 0x00007f1bb11ee318
rcx: 0x0000000e69f94a89
rdx: 0x00007f1bb11eddf9
rsi: 0x0000000e6a046345
rdi: 0x00007f1bb11ee318
r8: 0x0000000000000000
r9: 0x00007f1bb11ee992
r10: 0x0000000e6a095431
r11: 0x0000000000003212
r12: 0x00007f1bb11ee838
r13: 0x0000000000000024
r14: 0x00000000ffffffff
r15: 0x00000000ffffffff
cs: 0x0023
ds: 0x0000
es: 0x0000
fs: 0x0000
gs: 0x0000
ss: 0x001b
st0: 0
st1: 0
st2: 0
st3: 0
st4: 0
st5: 0
st6: 0
st7: 0
mm0: {0, 0, 0, 0}
mm1: {0, 0, 0, 0}
mm2: {0, 0, 0, 0}
mm3: {0, 0, 0, 0}
mm4: {0, 0, 0, 0}
mm5: {0, 0, 0, 0}
mm6: {0, 0, 0, 0}
mm7: {0, 0, 0, 0}
xmm0: {0, 0, 0, 0, 0, 0, 0, 0}
xmm1: {0, 0, 0, 0, 0, 0, 0, 0}
xmm2: {0, 0, 0, 0, 0, 0, 0, 0}
xmm3: {0, 0, 0, 0, 0, 0, 0, 0}
xmm4: {0, 0, 0, 0, 0, 0, 0, 0}
xmm5: {0, 0, 0, 0, 0, 0, 0, 0}
xmm6: {0, 0, 0, 0, 0, 0, 0, 0}
xmm7: {0, 0, 0, 0, 0, 0, 0, 0}
xmm8: {0, 0, 0, 0, 0, 0, 0, 0}
xmm9: {0, 0, 0, 0, 0, 0, 0, 0}
xmm10: {0, 0, 0, 0, 0, 0, 0, 0}
xmm11: {0, 0, 0, 0, 0, 0, 0, 0}
xmm12: {0, 0, 0, 0, 0, 0, 0, 0}
xmm13: {0, 0, 0, 0, 0, 0, 0, 0}
xmm14: {0, 0, 0, 0, 0, 0, 0, 0}
xmm15: {0, 0, 0, 0, 0, 0, 0, 0}
Loaded Images:
ID Text Base Text End Data Base Data End Type Name
--------------------------------------------------------------------------------
5663 0x5661cf000 0x5661e0000 0x5663e0000 0x5663e1000 lib /boot/system/lib/libroot-addon-icu.so
5652 0xe69f55000 0xe6a0ad000 0xe6a2ac000 0xe6a2ff000 lib /boot/system/lib/libroot_debug.so
5669 0xa525b9c000 0xa525bcb000 0xa525dcb000 0xa525dff000 lib /boot/system/lib/libicutu.so.57.1
5668 0xb2ccba9000 0xb2ccbb4000 0xb2ccdb4000 0xb2ccdb5000 lib /boot/system/lib/libiculx.so.57.1
5655 0xb5a20ff000 0xb5a2108000 0xb5a2308000 0xb5a2309000 lib /boot/system/lib/libintl.so.8.1.5
5667 0xd0654d9000 0xd06552e000 0xd06572e000 0xd065731000 lib /boot/system/lib/libicule.so.57.1
5651 0xe622dae000 0xe622dcc000 0xe622fcb000 0xe622fcd000 lib /boot/system/runtime_loader
5666 0xf2d4a35000 0xf2d4a41000 0xf2d4c40000 0xf2d4c42000 lib /boot/system/lib/libicuio.so.57.1
5664 0x16ee1d82000 0x16ee3600000 0x16ee37ff000 0x16ee3800000 lib /boot/system/lib/libicudata.so.57.1
5661 0x16f2c205000 0x16f2c2e6000 0x16f2c4e5000 0x16f2c4e7000 lib /boot/system/lib/libiconv.so.2.5.0
5670 0x19b85367000 0x19b854ff000 0x19b856fe000 0x19b85713000 lib /boot/system/lib/libicuuc.so.57.1
5665 0x19e67920000 0x19e67b9d000 0x19e67d9c000 0x19e67db1000 lib /boot/system/lib/libicui18n.so.57.1
5658 0x1a882ff6000 0x1a883005000 0x1a883204000 0x1a883205000 lib /boot/system/lib/libexecinfo.so
5659 0x1b0f1a2b000 0x1b0f1a9a000 0x1b0f1c9a000 0x1b0f1c9b000 lib /boot/system/lib/libpcre2-32.so.0.6.0
5662 0x1b578955000 0x1b578959000 0x1b578b59000 0x1b578b5a000 lib /boot/system/lib/libbsd.so
5656 0x1c3693fa000 0x1c369450000 0x1c36964f000 0x1c369654000 lib /boot/system/lib/libncurses.so.6.0.0
5660 0x1d306d06000 0x1d306e68000 0x1d307068000 0x1d30707c000 lib /boot/system/lib/libstdc++.so.6.0.21
5657 0x1d316ee6000 0x1d316f25000 0x1d317124000 0x1d31712d000 lib /boot/system/lib/libnetwork.so
5654 0x1d42758f000 0x1d4278ac000 0x1d427aab000 0x1d427ac9000 app /boot/system/bin/fish
5653 0x1f5e0396000 0x1f5e03ab000 0x1f5e05aa000 0x1f5e05ab000 lib /boot/system/lib/libgcc_s.so.1
5650 0x7ffdee011000 0x7ffdee019000 0x00000000 0x00000000 system commpage
Areas:
ID Base End Size (KiB) Protection Locking Name
--------------------------------------------------------------------------------
20752 0x00281000 0x00481000 2048 rw- full guarded_heap_area
20815 0x00713000 0x00913000 2048 rw- full guarded_heap_area
20651 0x009fb000 0x00bfb000 2048 rw- full guarded_heap_area
20650 0x01afe000 0x01cfe000 2048 rw- full guarded_heap_area
20649 0x0c71f000 0x0c91f000 2048 rw- full guarded_heap_area
20648 0x148bd000 0x14abd000 2048 rw- full guarded_heap_area
20647 0x3e8a3000 0x3eaa3000 2048 rw- full guarded_heap_area
20629 0x40fb1000 0x40fc9000 96 rw- full rld heap
20628 0x76a50000 0x76a68000 96 rw- full rld heap
20627 0x27e9d2000 0x27e9e2000 64 rw- full rld heap
20630 0x5661cf000 0x5661e0000 68 r-x full libroot-addon-icu.so_seg0ro
20631 0x5663e0000 0x5663e1000 4 rw- full libroot-addon-icu.so_seg1rw
20626 0x573c70000 0x573c80000 64 rw- full rld heap
20604 0x5df165000 0x5df265000 1024 rw- full guarded_heap_area
20598 0x9abe50000 0x9abe51000 4 rw-S full _rld_debug_
20599 0xe69f55000 0xe6a0ad000 1376 r-x full libroot_debug.so_seg0ro
20600 0xe6a2ac000 0xe6a2ba000 56 rw- full libroot_debug.so_seg1rw
20601 0xe6a2ba000 0xe6a2ff000 276 rw- full libroot_debug.so_seg2rw
20597 0x14deae0000 0x14deaf0000 64 rw- full rld heap
20642 0xa525b9c000 0xa525bcb000 188 r-x full libicutu.so.57.1_seg0ro
20643 0xa525dcb000 0xa525dcd000 8 rw- full libicutu.so.57.1_seg1rw
20644 0xa525dcd000 0xa525dff000 200 rw- full libicutu.so.57.1_seg2rw
20640 0xb2ccba9000 0xb2ccbb4000 44 r-x full libiculx.so.57.1_seg0ro
20641 0xb2ccdb4000 0xb2ccdb5000 4 rw- full libiculx.so.57.1_seg1rw
20608 0xb5a20ff000 0xb5a2108000 36 r-x full libintl.so.8.1.5_seg0ro
20609 0xb5a2308000 0xb5a2309000 4 rw- full libintl.so.8.1.5_seg1rw
20638 0xd0654d9000 0xd06552e000 340 r-x full libicule.so.57.1_seg0ro
20639 0xd06572e000 0xd065731000 12 rw- full libicule.so.57.1_seg1rw
20595 0xe622dae000 0xe622dcc000 120 r-x full runtime_loader_seg0ro
20596 0xe622fcb000 0xe622fcd000 8 rw- full runtime_loader_seg1rw
20636 0xf2d4a35000 0xf2d4a41000 48 r-x full libicuio.so.57.1_seg0ro
20637 0xf2d4c40000 0xf2d4c42000 8 rw- full libicuio.so.57.1_seg1rw
20632 0x16ee1d82000 0x16ee3600000 25080 r-x full libicudata.so.57.1_seg0ro
20633 0x16ee37ff000 0x16ee3800000 4 rw- full libicudata.so.57.1_seg1rw
20622 0x16f2c205000 0x16f2c2e6000 900 r-x full libiconv.so.2.5.0_seg0ro
20623 0x16f2c4e5000 0x16f2c4e7000 8 rw- full libiconv.so.2.5.0_seg1rw
20645 0x19b85367000 0x19b854ff000 1632 r-x full libicuuc.so.57.1_seg0ro
20646 0x19b856fe000 0x19b85713000 84 rw- full libicuuc.so.57.1_seg1rw
20634 0x19e67920000 0x19e67b9d000 2548 r-x full libicui18n.so.57.1_seg0ro
20635 0x19e67d9c000 0x19e67db1000 84 rw- full libicui18n.so.57.1_seg1rw
20615 0x1a882ff6000 0x1a883005000 60 r-x full libexecinfo.so_seg0ro
20616 0x1a883204000 0x1a883205000 4 rw- full libexecinfo.so_seg1rw
20617 0x1b0f1a2b000 0x1b0f1a9a000 444 r-x full libpcre2-32.so.0.6.0_seg0ro
20618 0x1b0f1c9a000 0x1b0f1c9b000 4 rw- full libpcre2-32.so.0.6.0_seg1rw
20624 0x1b578955000 0x1b578959000 16 r-x full libbsd.so_seg0ro
20625 0x1b578b59000 0x1b578b5a000 4 rw- full libbsd.so_seg1rw
20610 0x1c3693fa000 0x1c369450000 344 r-x full libncurses.so.6.0.0_seg0ro
20611 0x1c36964f000 0x1c369654000 20 rw- full libncurses.so.6.0.0_seg1rw
20619 0x1d306d06000 0x1d306e68000 1416 r-x full libstdc++.so.6.0.21_seg0ro
20620 0x1d307068000 0x1d307074000 48 rw- full libstdc++.so.6.0.21_seg1rw
20621 0x1d307074000 0x1d30707c000 32 rw- full libstdc++.so.6.0.21_seg2rw
20612 0x1d316ee6000 0x1d316f25000 252 r-x full libnetwork.so_seg0ro
20613 0x1d317124000 0x1d317127000 12 rw- full libnetwork.so_seg1rw
20614 0x1d317127000 0x1d31712d000 24 rw- full libnetwork.so_seg2rw
20605 0x1d42758f000 0x1d4278ac000 3188 r-x full fish_seg0ro
20606 0x1d427aab000 0x1d427ac8000 116 rw- full fish_seg1rw
20607 0x1d427ac8000 0x1d427ac9000 4 rw- full fish_seg2rw
20602 0x1f5e0396000 0x1f5e03ab000 84 r-x full libgcc_s.so.1_seg0ro
20603 0x1f5e05aa000 0x1f5e05ab000 4 rw- full libgcc_s.so.1_seg1rw
20593 0x7f1bb01eb000 0x7f1bb11f1000 16408 rw-s full fish_1137_stack
20592 0x7f2d094dc000 0x7f2d094e0000 16 rw- full user area
20594 0x7ffdee011000 0x7ffdee019000 32 r-xSk full commpage
Protection Flags: r - read, w - write, x - execute, s - stack, o - overcommit, c - cloneable, S - shared, k - kernel
Semaphores:
ID Count Last Holder Name
------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment