From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Segfault when calling network-interface-info on OpenBSD Date: Fri, 30 Dec 2005 12:03:28 +0100 Message-ID: References: <200512292201.jBTM1rFC026969@rocksteady.printf.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1135946522 22073 80.91.229.2 (30 Dec 2005 12:42:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 30 Dec 2005 12:42:02 +0000 (UTC) Cc: Henrik Enberg , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 30 13:41:58 2005 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EsJZz-00054B-8o for ged-emacs-devel@m.gmane.org; Fri, 30 Dec 2005 13:41:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EsJbM-0001Je-Uh for ged-emacs-devel@m.gmane.org; Fri, 30 Dec 2005 07:43:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EsIkd-0005vI-Nw for emacs-devel@gnu.org; Fri, 30 Dec 2005 06:48:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EsIhN-0005Fk-9i for emacs-devel@gnu.org; Fri, 30 Dec 2005 06:45:41 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EsI4B-000097-4W for emacs-devel@gnu.org; Fri, 30 Dec 2005 06:05:00 -0500 Original-Received: from [195.135.220.2] (helo=mx1.suse.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EsI4f-000526-Ob; Fri, 30 Dec 2005 06:05:30 -0500 Original-Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 22922E572; Fri, 30 Dec 2005 12:03:29 +0100 (CET) Original-To: rms@gnu.org X-Yow: I invented skydiving in 1989! In-Reply-To: (Richard M. Stallman's message of "Thu, 29 Dec 2005 23:57:01 -0500") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:48546 Archived-At: "Richard M. Stallman" writes: > #0 0x08156c8e in intern (str=3D0xfff7f08e
) at lread.c:3141 > #1 0x0816cb10 in Fnetwork_interface_info (ifname=3D139458061) at proce= ss.c:3565 The problem is that network-interface-info didn't correctly terminate the loop over the interface flags table. I've checked in a fix for that. OpenBSD apparently has some additional flags that are not listed in ifflag_table. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different."