GNU bug report logs - #6795
rcirc: ERR_NICKNAMEINUSE causes infinite loop under certain circumstances

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Deniz Dogan <deniz.a.m.dogan@HIDDEN>; dated Wed, 4 Aug 2010 17:56:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 4 Aug 2010 17:55:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 04 13:55:29 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1OgiBc-0001zy-Qf
	for submit <at> debbugs.gnu.org; Wed, 04 Aug 2010 13:55:29 -0400
Received: from mx10.gnu.org ([199.232.76.166])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <deniz.a.m.dogan@HIDDEN>) id 1OgiBa-0001zt-FP
	for submit <at> debbugs.gnu.org; Wed, 04 Aug 2010 13:55:27 -0400
Received: from lists.gnu.org ([199.232.76.165]:51766)
	by monty-python.gnu.org with esmtps
	(TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60)
	(envelope-from <deniz.a.m.dogan@HIDDEN>) id 1OgiC3-0006hX-Jq
	for submit <at> debbugs.gnu.org; Wed, 04 Aug 2010 13:55:55 -0400
Received: from [140.186.70.92] (port=60851 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1OgiC2-0005sC-62
	for bug-gnu-emacs@HIDDEN; Wed, 04 Aug 2010 13:55:55 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_NONE,T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL
	autolearn=unavailable version=3.3.1
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <deniz.a.m.dogan@HIDDEN>) id 1OgiC0-0007ml-Lv
	for bug-gnu-emacs@HIDDEN; Wed, 04 Aug 2010 13:55:53 -0400
Received: from mail-vw0-f41.google.com ([209.85.212.41]:52091)
	by eggs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <deniz.a.m.dogan@HIDDEN>) id 1OgiC0-0007mD-IL
	for bug-gnu-emacs@HIDDEN; Wed, 04 Aug 2010 13:55:52 -0400
Received: by vws16 with SMTP id 16so4975227vws.0
	for <bug-gnu-emacs@HIDDEN>; Wed, 04 Aug 2010 10:55:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:mime-version:received:from:date
	:message-id:subject:to:content-type;
	bh=rynyyRRgrY5/0Q1iBwbqJlb4DbndMtKanyXBnuvKC60=;
	b=SLih4kzTBKvio9peEbOSOqE7yacr5jlom1GnSdGxUO62kx8daYq7BOOGYCPkwPkCRt
	Mat6baZ121PMFu7pHI/UnOKzkBXFLxUBif0zYvRcAmOZPMBVG+Z484KMgbQbDo5cGme9
	ywhYKEbedI1shlzDNqGY0iuFaUPWT/qFnaQ7s=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:from:date:message-id:subject:to:content-type;
	b=HxY16raa/2fnovHydA8u0dkGcn/E6PwkylD4rPCVbfUSpxdFUO84UqYjg5p44CkXrJ
	9Ci3uPIZyS64TlrsV6juuu498Z2HICxed3kDCWsKMGSszKBYkDqlaKV2B4C/9D7EvzOO
	fvscMFgzv976ecj7TzRN/XdLAa/ImohAqsYG0=
Received: by 10.220.60.204 with SMTP id q12mr6441646vch.185.1280944551566; 
	Wed, 04 Aug 2010 10:55:51 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.220.193.135 with HTTP; Wed, 4 Aug 2010 10:55:21 -0700 (PDT)
From: Deniz Dogan <deniz.a.m.dogan@HIDDEN>
Date: Wed, 4 Aug 2010 19:55:21 +0200
Message-ID: <AANLkTi=e+exmg2w=fD0yLCz_MQv8NafYq=Mq44GTuqR9@HIDDEN>
Subject: rcirc: ERR_NICKNAMEINUSE causes infinite loop under certain 
	circumstances
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset=ISO-8859-1
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6,
	seldom 2.4 (older, 4)
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.6 (---)

Currently rcirc-handler-433 (ERR_NICKNAMEINUSE) tries to "uniquify"
the nickname the user tried to use by appeding a ` to the requested
nickname. However, if the length of the requested nickname is as long
as or longer than the maximum allowed length on the server, the
"uniquification" will not work resulting in an attempt to switch to
the same nickname that caused the error in the first place:

Example:
/nick superlongnickname
*** 433 superlongn Nickname is already in use.

Here the IRC server truncates the requested nickname to "superlongn"
which is already taken and then it tries to change to
"superlongnickname`" which of course will also be truncated to
"superlongn". Hence, something like this will be printed in the server
buffer:

*** 433 superlongn Nickname is already in use.
*** 433 superlongn Nickname is already in use.
*** 433 superlongn Nickname is already in use.
*** 433 superlongn Nickname is already in use.

...and so on.

The maximum nickname length of the server is received in a 005 message
from the server when connecting. Example (NICKLEN=16):

*** 005 SAFELIST ELIST=U CASEMAPPING=rfc1459 CHARSET=ascii NICKLEN=16
    CHANNELLEN=50 TOPICLEN=390 ETRACE CPRIVMSG CNOTICE DEAF=D
    MONITOR=100 are supported by this server

This information should ideally be stored as a buffer-local variable
or maybe in some other fashion and then we should use this information
to make better "uniquifications" of nicknames.

-- 
Deniz Dogan




Acknowledgement sent to Deniz Dogan <deniz.a.m.dogan@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#6795; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.