Re: ifconfig dumps core and gdb uses an undefined symbol
Date: Wed, 14 Jun 2023 08:09:04 UTC
> On 14 Jun 2023, at 08:59, Gary Jennejohn <garyj@gmx.de> wrote: Hi Gary, > > So, now I have a new problem with current. > > I just now updated my current sources and ran buildworld and buildkernel, > since Gleb fixed the WITHOUT_PF problem. > > After installing the new world and kernel I see that ifconfig is dumping > a core, apparently when it tries to show lo0, since re0 is correctly > shown: > > ifconfig > re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 4088 options=82098<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE> > ether redacted > inet 192.168.178.XXX netmask 0xffffff00 broadcast 192.168.178.255 > Segmentation fault (core dumped) Could you please try to narrow down the crashing command? e.g. Ifconfig lo0 Ifconfig lo0 net Ifconfig lo0 inet6 Could you try to rebuild ifconfig w/o netlink (e.g. set WITHOUT_NETLINK=yes in the make.conf & make -C sbin/ifconfig clean all install) and see if the new binary works? > > Unfortunately, I see this error message when I try to look at the core > file with gdb: > > gdb /sbin/ifconfig ifconfig.core > ld-elf.so.1: Undefined symbol "rl_eof_found" referenced from COPY > relocation in /usr/local/bin/gdb Not a specialist here, but if you could build the binary with debug (make DEBUG_FLAGS=“-O0 -g3” sbin/ifconfig clean all install) & share the binary & core with me, I could take a look on what’s happening. > > pkg claims that my packages are all up to date. > > Not exactly a fatal error, but still rather surprising. > > -- > Gary Jennejohn >