From unknown Mon Aug 18 09:07:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6795: rcirc: ERR_NICKNAMEINUSE causes infinite loop under certain circumstances Resent-From: Deniz Dogan Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Aug 2010 17:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6795 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 6795@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.12809445297689 (code B ref -1); Wed, 04 Aug 2010 17:56:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Aug 2010 17:55:29 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgiBc-0001zy-Qf for submit@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 ) id 1OgiBa-0001zt-FP for submit@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 ) id 1OgiC3-0006hX-Jq for submit@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@gnu.org; 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 ) id 1OgiC0-0007ml-Lv for bug-gnu-emacs@gnu.org; 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 ) id 1OgiC0-0007mD-IL for bug-gnu-emacs@gnu.org; Wed, 04 Aug 2010 13:55:52 -0400 Received: by vws16 with SMTP id 16so4975227vws.0 for ; 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 Date: Wed, 4 Aug 2010 19:55:21 +0200 Message-ID: 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@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 From unknown Mon Aug 18 09:07:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6795: rcirc: ERR_NICKNAMEINUSE causes infinite loop under certain circumstances Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Dec 2020 17:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6795 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Deniz Dogan Cc: 6795@debbugs.gnu.org Received: via spool by 6795-submit@debbugs.gnu.org id=B6795.16074481995439 (code B ref 6795); Tue, 08 Dec 2020 17:24:02 +0000 Received: (at 6795) by debbugs.gnu.org; 8 Dec 2020 17:23:19 +0000 Received: from localhost ([127.0.0.1]:59505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmghr-0001Pf-46 for submit@debbugs.gnu.org; Tue, 08 Dec 2020 12:23:19 -0500 Received: from quimby.gnus.org ([95.216.78.240]:53900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmgho-0001PL-Gw for 6795@debbugs.gnu.org; Tue, 08 Dec 2020 12:23:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=t0Z3lx74oEGlzbk/Qg1kK3LxXhbz7qYCXQpvJkBcXps=; b=h3XF2K45YrNh69Ygqzuuaf6r8q tHRtEuP7wXkGnXYs4aWqdD7OsJntW4z/dR79CQY1d5eZnPcrSz7WS51LCzEGUwacjzXpfHGTxSV27 zhoAO7347nzy1AsyEMOKCxBAYx71SVdNtiayQ1n5VJCAH27suDQPtysi5xLE6hlZ5Pi0=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kmghf-0005Kv-N1; Tue, 08 Dec 2020 18:23:10 +0100 From: Lars Ingebrigtsen References: X-Now-Playing: Actress's _Karma & Desire_: "Many Seas, Many Rivers (feat. Sampha)" Date: Tue, 08 Dec 2020 18:23:06 +0100 In-Reply-To: (Deniz Dogan's message of "Wed, 4 Aug 2010 19:55:21 +0200") Message-ID: <87mtyodxfp.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Deniz Dogan writes: > 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 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Deniz Dogan writes: > 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. This should now be fixed in Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 08 12:23:27 2020 Received: (at control) by debbugs.gnu.org; 8 Dec 2020 17:23:27 +0000 Received: from localhost ([127.0.0.1]:59508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmghz-0001Q2-Bm for submit@debbugs.gnu.org; Tue, 08 Dec 2020 12:23:27 -0500 Received: from quimby.gnus.org ([95.216.78.240]:53914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmghx-0001Pm-6D for control@debbugs.gnu.org; Tue, 08 Dec 2020 12:23:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=OjbyXccFcjAVH2UvmpajdcopQFhZ3VtezimnK+8R8Xg=; b=ilvBtUmrs44xoxqzt3TgCY64Cm pIytO+nz+mXjcE2N7u1Vo5g1RWVjT2cmbgGK/Q/5UF065r3q/FYjR5wBJR8USz1ZU4iRvF3TgDN0A q9SaQdfcb0ArqyQicOVIwlZ67vEFPBIb1e3wgbMbrIERtAboyNArWlmND2qcGuv6M4Kw=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kmghp-0005L4-Gs for control@debbugs.gnu.org; Tue, 08 Dec 2020 18:23:19 +0100 Date: Tue, 08 Dec 2020 18:23:16 +0100 Message-Id: <87lfe8dxff.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #6795 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 6795 fixed close 6795 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 6795 fixed close 6795 28.1 quit