Opened 7 years ago

Last modified 4 years ago

#13813 new bug

Possible bug in glibc

Reported by: miqlas Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: System/libroot.so Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

Fish crashing if i close the terminal, i try to hunt this bug down since ages, see here: https://github.com/fish-shell/fish-shell/issues/4099

Some people meant it could be a bug lurking in Haiku's glibc implementation, so i tried to run and get it crash normally, then with

LD_PRELOAD=/system/lib/x86/libroot_debug.so fish

and the like:

MALLOC_DEBUG=g LD_PRELOAD=/system/lib/x86/libroot_debug.so fish

You can find the debug logs in the attachement, but i copy the most relevant part here from the output of the "MALLOC_DEBUG=g LD_PRELOAD" command:

		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 

Does it ring a bell for somebody?

Change History (4)

comment:2 by korli, 7 years ago

Can you eventually attach the files at https://github.com/haikuports/haikuports/issues/1801 ?

comment:3 by miqlas, 6 years ago

Should we mark this as beta-blocker?

comment:4 by korli, 4 years ago

Fish issue https://github.com/fish-shell/fish-shell/issues/4099 is closed. What about this bug?

Note: See TracTickets for help on using tickets.