From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#453: 23.0.60; rfc822-bad-address: wrong-type-argument error Date: Wed, 27 Aug 2008 12:38:05 +0200 Message-ID: <87iqtmg2uq.fsf@escher.local.home> References: <87vdxn1n36.fsf@cyd.mit.edu> Reply-To: Stephen Berman , 453@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1219834552 21123 80.91.229.12 (27 Aug 2008 10:55:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Aug 2008 10:55:52 +0000 (UTC) Cc: 453@emacsbugs.donarmstrong.com To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 27 12:56:45 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KYIhe-0002wn-HE for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Aug 2008 12:56:42 +0200 Original-Received: from localhost ([127.0.0.1]:46915 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYIgg-0001R0-BD for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Aug 2008 06:55:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KYIYn-0004WQ-46 for bug-gnu-emacs@gnu.org; Wed, 27 Aug 2008 06:47:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KYIYl-0004UT-M3 for bug-gnu-emacs@gnu.org; Wed, 27 Aug 2008 06:47:32 -0400 Original-Received: from [199.232.76.173] (port=37582 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYIYl-0004UH-GB for bug-gnu-emacs@gnu.org; Wed, 27 Aug 2008 06:47:31 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:44590) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KYIYl-0005Wg-19 for bug-gnu-emacs@gnu.org; Wed, 27 Aug 2008 06:47:31 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7RAlTqT016134; Wed, 27 Aug 2008 03:47:29 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7RAj4vX014850; Wed, 27 Aug 2008 03:45:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Stephen Berman Original-Sender: steve@escher.local.home Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 27 Aug 2008 10:45:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 453 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 453-submit@emacsbugs.donarmstrong.com id=B453.121983349713022 (code B ref 453); Wed, 27 Aug 2008 10:45:04 +0000 Original-Received: (at 453) by emacsbugs.donarmstrong.com; 27 Aug 2008 10:38:17 +0000 Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m7RAcDr2013015 for <453@emacsbugs.donarmstrong.com>; Wed, 27 Aug 2008 03:38:14 -0700 Original-Received: (qmail invoked by alias); 27 Aug 2008 10:38:07 -0000 Original-Received: from i5387ECF3.versanet.de (EHLO escher.local.home) [83.135.236.243] by mail.gmx.net (mp060) with SMTP; 27 Aug 2008 12:38:07 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX18iseIu+hYiWRh8CVA+vX4N58HAwT9aOWoHQoJd5p E4RVC9vCZ1L7DW Original-Received: by escher.local.home (Postfix, from userid 1000) id BB8711D0F56; Wed, 27 Aug 2008 12:38:05 +0200 (CEST) In-Reply-To: <87vdxn1n36.fsf@cyd.mit.edu> (Chong Yidong's message of "Tue, 26 Aug 2008 17:30:05 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.59 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Wed, 27 Aug 2008 06:47:32 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:19757 Archived-At: On Tue, 26 Aug 2008 17:30:05 -0400 Chong Yidong wro= te: > Sorry for the delay in replying. > >> I was reading a newsgroup with Gnus, typed `n' >> (gnus-summary-next-unread-article) to read the next article[1], and >> got a wrong-type-argument error. The backtrace is attached. The >> error occurs in rfc822-bad-address, when the first argument of >> narrow-to-region, rfc822-address-start, is nil. The value is nil at >> this point because rfc822-addresses calls rfc822-nuke-whitespace >> before rfc822-address-start is assigned an initial value. > > I don't see how rfc822-address-start could be nil. The code sets it to > (point) just before the call to rfc822-bad-address. Could you further > explain your reasoning? The error occurs before that setq can be called, because rfc822-bad-address is also called from rfc822-nuke-whitespace, and at this point rfc822-address-start is nil. In more detail: 1. bbdb-rfc822-addresses is trying to parse this header: (""Gro=C3=9F, Werner"") which presumably violates RFC822. 2. bbdb-rfc822-addresses calls rfc822-addresses, which turns the header into this string: (""Gro=C3=9F and, after let-binding but before setq-ing rfc822-address-start, 3. calls rfc822-nuke-whitespace, which further truncates the header to: ( and then calls 4. rfc822-bad-address, which tries to call narrow-to-region with rfc822-address-start, which is still nil, as the beginning of the region: BZZT! > (By the way, next time you mail a patch, please try not to change > whitespaces; that makes the patch very difficult to read. Thanks.) Sorry. That was the result of doing indent-region, which I assume means the existing indentation does not conform to Emacs conventions. Would it be appropriate to submit a separate patch to correct that? Steve Berman