Hello Paul,

> I got my dev environment working (limping) again.
> I built a pptpd with symbols and statically linked.
>
>
> It was crashing in libwrap.
> I added the line "pptpd: ALL" to /etc/hosts.allow and now it works.
>
>
> My libwrap hosts.deny is the default, libwrap should obviously not
> be crashing.  Unfortunately I didn't compile uClibc and libwrap with
> symbols so I don't know what libwrap screwed up (or uClibc):
>
> Core was generated by `./pptpd --fg'.
> Program terminated with signal 11, Segmentation fault.
> #0  0x0805207d in inet_pton ()
> (gdb) where
> #0  0x0805207d in inet_pton ()
> #1  0x08052452 in getaddrinfo ()
> #2  0x0804bb70 in sock_hostname (host=0xbffff880) at socket.c:265
> #3  0x0804b560 in eval_hostname (host=0xbffff880) at eval.c:77
> #4  0x0804a402 in host_match (tok=0xbfffee85 "PARANOID", host=0xbffff880)
> at hosts_access.c:316 #5  0x0804a108 in list_match (list=0xbfffee84 "
> PARANOID", request=0xbffff770,
> match_fn=0x804a1e5 <client_match>) at hosts_access.c:217 #6  0x0804a005 in
> table_match (table=0xbfffee84 " PARANOID", request=0xbffff770) at
> hosts_access.c:173
> #7  0x08049f0a in hosts_access (request=0xbffff770) at hosts_access.c:133
> #8  0x0804968d in pptp_manager (argc=2, argv=0xbffffdf4) at
> pptpmanager.c:219
> #9  0x08048745 in main (argc=2, argv=0xbffffdf4) at pptpd.c:420
> (gdb) up
> #1  0x08052452 in getaddrinfo ()
> (gdb) up
> #2  0x0804bb70 in sock_hostname (host=0xbffff880) at socket.c:265
> 265             if (getaddrinfo(host->name, NULL, &hints, &res0) != 0) {
> (gdb) print host->name
> $1 = "protempore.shockwave.org", '\0' <repeats 103 times>
> (gdb) print hints
> $1 = {ai_flags = 3, ai_family = 2, ai_socktype = 1, ai_protocol = 0,
> ai_addrlen = 0, ai_addr = 0x0, ai_canonname = 0x0, ai_next = 0x0} (gdb)
> print res0 $2 = (struct addrinfo *) 0x0
> (gdb) quit
>
>
> The arguments being passed into getaddrinfo look, at first glance, to
> be reasonable.  I looked over the hints getting passed in, they look good.
>
>
> There may be a generic problem dealing with ALL: PARANOID, this is the
> first time I've ever actually violated a libwrap directive since my
> firewall usually protects everything.
>
This is the first time I see a problem with libwrap.... Debian doesn't use
"ALL: PARANOID" by default anymore for a long time now, maybe we should do
the same:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=62372
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=55528

But this doesn't explain the problem ofcourse... This is a strange line
btw: "$1 = "protempore.shockwave.org", '\0' <repeats 103 times>" Why does
it repeats 103 times?

> Worst case, I'll need to rebuild uclibc with symbols, but I'm not looking
>  forward to that, my dev environment is quite shakey thanks to compiler
> mismatches.  I was hoping to not do any more leaf development until the
> upgrade to gcc-4.0 and a recent uclibc.
>
The next major version (3.0) of Bering-uClibc will have an uClibc update.
An update to gcc-4.0 is a different story, I only hear people complaining
about it ;-) but ofcourse we will test.

Eric



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

_______________________________________________
leaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to