[hipl-users] Re: test/conntest-client-gai 'Segmentation fault' -message

  • From: Miika Komu <miika@xxxxxx>
  • To: hipl-users@xxxxxxxxxxxxx
  • Date: Wed, 7 Sep 2005 14:50:28 +0300 (EEST)

On Tue, 6 Sep 2005, Väisänen Teemu wrote:

See patches 76 and 77 from the code web browser. Do they fix your problem?

http://hipl.hiit.fi/cgi-bin/viewarch.cgi/hipl-dev@xxxxxxxxxxxxxxxxxxx/hipl--main--2.6

> Yes, I have /etc/hip/hosts in oops (testlin4b). Here are more detail:
>
> oops and crash # rmmod hipmod
> oops and crash # modprobe hipmod
> oops and crash # tools/hipconf add hi default
>
> oops' (testlin4b's) /etc/hip/hosts:
> <crash_hip_address1>            testlin1b          testlin1b.keksitty.fi
> <crash_hip_address2>            testlin1b          testlin1b.keksitty.fi
> <crash_hip_address3>            testlin1b          testlin1b.keksitty.fi
> <crash_hip_address4>            testlin1b          testlin1b.keksitty.fi
>
> <crash_hip_addresses> are taken from crashs /proc/net/hip/lhi -file
> (they are in same order as there: public RSA, public DSA, anon RSA,
> anon DSA).
>
> oops' (testlin4b's) /etc/hosts:
> 127.0.0.1         testlin4b.keksitty.fi     testlin4b
> localhost.localdomain         localhost
> 3ffe::1           testlin1b.keksitty.fi         testlin1b
>
> and crashs (testlin1b's) /etc/hosts:
> 127.0.0.1         testlin1b.keksitty.fi     testlin1b
> localhost.localdomain         localhost
> 3ffe::2           testlin4b.keksitty.fi         testlin4b
>
> (I also tried without '3ffe::2 testlin4b.keksitty.fi testlin4b' -line
> in crashs /etc/hosts, because it wasn't mentioned in chapter 6.)
>
> oops # conntest-server tcp 1111
> crash # conntest-client-gai testlin4b tcp 1111
> Segmentation fault
>
>
> Permissions in oops' /etc/hip/hosts is 644. (rw, r, r)
>
> -Teemu Väisänen
>
>
>
> 2005/9/5, Miika Komu <miika@xxxxxx>:
> > On Thu, 1 Sep 2005, Väisänen Teemu wrote:
> >
> > > oops is defined in crashs /etc/hosts -file as:
> > > 3ffe::2       testlin4b.keksitty.fi   testlin4b
> >
> > What about /etc/hip/hosts? Can you copy paste the whole contents of the
> > /etc/hosts and /etc/hip/hosts.
> >
> > > Here are traces:
> > >
> > > ..
> > >
> > > Program received signal SIGSEGV, Segmentation fault.
> > > 0x4ab30a6a in fgets () from /lib/tls/libc.so.6
> > > (gdb) bt
> > > #0  0x4ab30a6a in fgets () from /lib/tls/libc.so.6
> > > #1  0x08052346 in getwithoutnewline (buffer=0xbffdf590 "", count=500,
> > > f=0x0) at util.c:23
> >
> > The f (file) argument is zero. It should be a handle to /etc/hip/hosts.
> > Seems like the existence of it is checked rather badly in the code. I'll
> > add a bug fix to that.
> >
> > Either you don't have /etc/hip/hosts at all on testlin4b or the file
> > permissions are bad.
> >
> > --
> > Miika Komu              miika@xxxxxx          http://www.iki.fi/miika/
> >
> >
>

-- 
Miika Komu              miika@xxxxxx          http://www.iki.fi/miika/

Other related posts: