Re: ifconfig segmentation fault

2014-05-19 Thread Janne Johansson
at /usr/src/lib/libc/asr/gethostnamadr.c:72 #2 0x00413c35 in gethostbyname2 (name=Variable "name" is not available. Wasn't there some fix to the resolver just recently? This seems like ifconfig as called by you tries to resolve a parameter and dies due to that bug. 2014-05-19 17:14 GMT

Re: ifconfig segmentation fault

2014-05-19 Thread Giancarlo Razzolini
Em 16-05-2014 18:15, Stuart Henderson escreveu: > Oh, static stripped binary of course... worth a try with this, > if you have 5.5-stable sources on the system: > > cd /usr/src/sbin/ifconfig > make obj > make clean > make DEBUG="-g -O0" > gdb obj/ifconfig > [...] Stuart, Today I was able to de

Re: ifconfig segmentation fault

2014-05-16 Thread Giancarlo Razzolini
Em 16-05-2014 23:48, sven falempin escreveu: > > > > On Fri, May 16, 2014 at 10:15 PM, Giancarlo Razzolini > mailto:grazzol...@gmail.com>> wrote: > > Em 16-05-2014 18:19, Héctor Luis Gimbatti escreveu: > > /etc/hostname.if > > Inet 1.2.3.4 255.255.255.0 NONE -inet6 > > > > # ksh

Re: ifconfig segmentation fault

2014-05-16 Thread sven falempin
On Fri, May 16, 2014 at 10:15 PM, Giancarlo Razzolini wrote: > Em 16-05-2014 18:19, Héctor Luis Gimbatti escreveu: > > /etc/hostname.if > > Inet 1.2.3.4 255.255.255.0 NONE -inet6 > > > > # ksh /etc/netstart > > # ifconfig > > ## NO PROBLEM > > > > /etc/hostname.if > > Inet 1.2.3.4 255.255.255.0 -i

Re: ifconfig segmentation fault

2014-05-16 Thread Giancarlo Razzolini
Em 16-05-2014 18:19, Héctor Luis Gimbatti escreveu: > /etc/hostname.if > Inet 1.2.3.4 255.255.255.0 NONE -inet6 > > # ksh /etc/netstart > # ifconfig > ## NO PROBLEM > > /etc/hostname.if > Inet 1.2.3.4 255.255.255.0 -inet6 > > # ksh /etc/netstart > ifconfig: -inet6: bad value > ## NO SEGMENTATION F

Re: ifconfig segmentation fault

2014-05-16 Thread Héctor Luis Gimbatti
/etc/hostname.if Inet 1.2.3.4 255.255.255.0 NONE -inet6 # ksh /etc/netstart # ifconfig ## NO PROBLEM /etc/hostname.if Inet 1.2.3.4 255.255.255.0 -inet6 # ksh /etc/netstart ifconfig: -inet6: bad value ## NO SEGMENTATION FAULT So, IMHO, if there is any problem at all, of course it should be due

Re: ifconfig segmentation fault

2014-05-16 Thread Giancarlo Razzolini
Em 16-05-2014 18:15, Stuart Henderson escreveu: > On 2014/05/16 17:26, Giancarlo Razzolini wrote: >> Em 16-05-2014 17:18, Stuart Henderson escreveu: >>> On 2014/05/16 17:12, Giancarlo Razzolini wrote: As I mentioned, I'm running 5.5 stable. So this might got fixed in current, I'm taking a

Re: ifconfig segmentation fault

2014-05-16 Thread Stuart Henderson
On 2014/05/16 17:26, Giancarlo Razzolini wrote: > Em 16-05-2014 17:18, Stuart Henderson escreveu: > > On 2014/05/16 17:12, Giancarlo Razzolini wrote: > >> As I mentioned, I'm running 5.5 stable. So this might got fixed in > >> current, I'm taking a look at the CVS commits right now to see if it was

Re: ifconfig segmentation fault

2014-05-16 Thread Creamy
On Fri, May 16, 2014 at 05:29:10PM -0300, Giancarlo Razzolini wrote: > Em 16-05-2014 17:18, Stuart Henderson escreveu: > > On 2014/05/16 17:12, Giancarlo Razzolini wrote: > >> As I mentioned, I'm running 5.5 stable. So this might got fixed in > >> current, I'm taking a look at the CVS commits right

Re: ifconfig segmentation fault

2014-05-16 Thread Luis Coronado
# sha256 /sbin/ifconfig SHA256 (/sbin/ifconfig) = e1b9688f2ebf5a278408c49ac13e35479a96b883ff9891ada141470d55a1b158 and mine does not crash. -luis On Fri, May 16, 2014 at 2:29 PM, Giancarlo Razzolini wrote: > Em 16-05-2014 17:18, Stuart Henderson escreveu: > > On 2014/05/16 17:12, Giancarlo R

Re: ifconfig segmentation fault

2014-05-16 Thread Giancarlo Razzolini
Em 16-05-2014 17:18, Stuart Henderson escreveu: > On 2014/05/16 17:12, Giancarlo Razzolini wrote: >> As I mentioned, I'm running 5.5 stable. So this might got fixed in >> current, I'm taking a look at the CVS commits right now to see if it was >> fixed. But, funny thing, I've managed to get another

Re: ifconfig segmentation fault

2014-05-16 Thread Giancarlo Razzolini
Em 16-05-2014 17:18, Stuart Henderson escreveu: > On 2014/05/16 17:12, Giancarlo Razzolini wrote: >> As I mentioned, I'm running 5.5 stable. So this might got fixed in >> current, I'm taking a look at the CVS commits right now to see if it was >> fixed. But, funny thing, I've managed to get another

Re: ifconfig segmentation fault

2014-05-16 Thread Luis Coronado
On my OBSD 5.5 box I cannot reproduce: /etc/hostname.bge0 inet 192.168.2.170 255.255.255.0 -inet6 # sh /etc/netstart bge0 ifconfig: -inet6: bad value OpenBSD 5.5 (GENERIC.MP) #315: Wed Mar 5 09:37:46 MST 2014 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem =

Re: ifconfig segmentation fault

2014-05-16 Thread Stuart Henderson
On 2014/05/16 17:12, Giancarlo Razzolini wrote: > As I mentioned, I'm running 5.5 stable. So this might got fixed in > current, I'm taking a look at the CVS commits right now to see if it was > fixed. But, funny thing, I've managed to get another segmentation fault, > this time from command line. W

Re: ifconfig segmentation fault

2014-05-16 Thread Giancarlo Razzolini
Em 16-05-2014 16:45, Kenneth Westerback escreveu: > On 16 May 2014 15:00, Giancarlo Razzolini wrote: >> Hi, >> >> I was configuring one new interface in one of my new machines, and I >> disabled ipv6 with -inet6 as I always do. But I handcrafted the >> hostname.if file and forgot to put a NONE

Re: ifconfig segmentation fault

2014-05-16 Thread Kenneth Westerback
On 16 May 2014 15:00, Giancarlo Razzolini wrote: > Hi, > > I was configuring one new interface in one of my new machines, and I > disabled ipv6 with -inet6 as I always do. But I handcrafted the > hostname.if file and forgot to put a NONE in the broadcast address. This > caused the ifconfig to

ifconfig segmentation fault

2014-05-16 Thread Giancarlo Razzolini
Hi, I was configuring one new interface in one of my new machines, and I disabled ipv6 with -inet6 as I always do. But I handcrafted the hostname.if file and forgot to put a NONE in the broadcast address. This caused the ifconfig to segfault when called from the /etc/netstart script. For examp