This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/12095] getifaddrs() returns no IP address for ppp0
- From: "thomas.jarosch at intra2net dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Wed, 6 Oct 2010 12:17:38 +0000
- Subject: [Bug libc/12095] getifaddrs() returns no IP address for ppp0
- Auto-submitted: auto-generated
- References: <bug-12095-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12095
Thomas Jarosch <thomas.jarosch at intra2net dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #1 from Thomas Jarosch <thomas.jarosch at intra2net dot com> 2010-10-06 12:17:27 UTC ---
Ok, with debug code added to sysdeps/unix/sysv/linux/ifaddrs.c,
I was able to see what's going on. The kernel first sends the ppp0 link
information (RTM_NEWLINK) without providing any address information.
Later on the addresses will be transmitted via a separate RTM_NEWADDR message.
As the application crashed while processing the NULL pointer from the first
ppp0 list node, I didn't luck further (could have spared me one day of
debugging ;)).
So this is not a bug and I'm closing it.
Here comes the good part: It let to the discovery of bug #12093 and I've also
send a patch to the getifaddrs(3) man page maintainer with a patch to fix the
possible NULL pointer access in the example code.
Thanks for your time.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.