unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: emacs-devel@gnu.org
Subject: Issues with Linux 3.0.1 and network-interface-list
Date: Thu, 18 Aug 2011 16:20:07 +0200	[thread overview]
Message-ID: <87wrea244o.fsf@tsdh.uni-koblenz.de> (raw)

Hi all,

does someone else also have issues with `network-interface-list' with
kernel version 3.0.1?  For me, sometimes that function returns nil,
although a second earlier and again a second later, it'll return a list
of eth0 and lo...

For example, with "strace -e ioctl emacs -Q" and then evaluating

--8<---------------cut here---------------start------------->8---
(while t
  (let ((ifs (network-interface-list)))
    (if ifs
      (message "Ok")
      (error "ifs"))))
--8<---------------cut here---------------end--------------->8---

in *scratch*, I first get some 100th Oks and then an error...  The
strace output is:

--8<---------------cut here---------------start------------->8---
ioctl(15, SIOCGIFCONF, {80, {{"lo", {AF_INET, inet_addr("127.0.0.1")}}, {"eth0", {AF_INET, inet_addr("141.26.67.142")}}}}) = 0
ioctl(15, SIOCGIFCONF, {80, {{"lo", {AF_INET, inet_addr("127.0.0.1")}}, {"eth0", {AF_INET, inet_addr("141.26.67.142")}}}}) = 0
ioctl(15, SIOCGIFCONF, {80, {{"lo", {AF_INET, inet_addr("127.0.0.1")}}, {"eth0", {AF_INET, inet_addr("141.26.67.142")}}}}) = 0
[...]
ioctl(15, SIOCGIFCONF, {0, {}})
--8<---------------cut here---------------end--------------->8---

It looks like a kernel bug, right?

(If someone can reproduce that and has some C- and kernel-fu, it would
be great if he could report that at the kernel bugtracker.  I don't have
any...)

Bye,
Tassilo



             reply	other threads:[~2011-08-18 14:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-18 14:20 Tassilo Horn [this message]
2011-08-18 15:38 ` Issues with Linux 3.0.1 and network-interface-list Andreas Schwab
2011-08-18 15:55   ` Tassilo Horn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wrea244o.fsf@tsdh.uni-koblenz.de \
    --to=tassilo@member.fsf.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).