Solved Fish shell hangs - debugging help please

I remember seeing the same and moving on. I guess it's something with the switch from utmp to utmpx. Probably something needs to be changed or at least commented in fish's code.
 
So do you have any information about how I could debug this? I want to attach gdb but I'm getting no symbol information because debugging isn't enabled. Maintainers aren't responding, so I reckon I should take a shot at this.
 
Compile and install the port like this and you'll get the debug symbols included:

make install WITH_DEBUG=1
 
I can't tell if this worked or not, but it doesn't look that great. Can you check?

Code:
/usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/solib-svr4.c:1444: internal-error: legac
y_fetch_link_map_offsets called without legacy link_map support enabled.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) n
Reading symbols from /usr/local/bin/fish...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libintl.so.9...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libintl.so.9
Reading symbols from /lib/libncurses.so.8...(no debugging symbols found)...done.
Loaded symbols for /lib/libncurses.so.8
Reading symbols from /usr/lib/libc++.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libc++.so.1
Reading symbols from /lib/libcxxrt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libcxxrt.so.1
Reading symbols from /lib/libm.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libthr.so.3...(no debugging symbols found)...done.
[New Thread 802406400 (LWP 100982/fish)]
Loaded symbols for /lib/libthr.so.3
Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /usr/lib/i18n/libiconv_std.so.4...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i18n/libiconv_std.so.4
Reading symbols from /usr/lib/i18n/libUTF8.so.4...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i18n/libUTF8.so.4
Reading symbols from /usr/lib/i18n/libUTF1632.so.4...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i18n/libUTF1632.so.4
Reading symbols from /usr/lib/i18n/libmapper_none.so.4...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i18n/libmapper_none.so.4
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
[Switching to Thread 802406400 (LWP 100982/fish)]
0x00000008019c9b7a in select () from /lib/libc.so.7
(gdb) t a a bt

Thread 1 (Thread 802406400 (LWP 100982/fish)):
#0  0x00000008019c9b7a in select () from /lib/libc.so.7
#1  0x000000080166bb32 in select () from /lib/libthr.so.3
#2  0x000000000047f050 in env_universal_barrier ()
#3  0x000000000042fa3e in env_init ()
#4  0x000000000049f11d in main ()
(gdb) thread apply all bt full

Thread 1 (Thread 802406400 (LWP 100982/fish)):
#0  0x00000008019c9b7a in select () from /lib/libc.so.7
No symbol table info available.
#1  0x000000080166bb32 in select () from /lib/libthr.so.3
No symbol table info available.
#2  0x000000000047f050 in env_universal_barrier ()
No symbol table info available.
#3  0x000000000042fa3e in env_init ()
No symbol table info available.
#4  0x000000000049f11d in main ()
No symbol table info available.
(gdb)
 
For anyone checking back. This did help, and the issue was with fishd. Fishd is going away in later implementations so fixing it seems like a waste of time.
 
I just upgraded to RELEASE-10.1 today. I immediately ran into the fish problem. I tried refreshing the ports tree and rebuilding it and its dependencies, but that didn't work. I also tried configuring zsh to behave more like fish, but that got difficult. Finally, I deinstalled the version of fish from the ports tree and installed the version currently at GitHub. It's working perfectly. Note that it no longer installs fishd.
 
Back
Top