Gnus development mailing list
 help / color / mirror / Atom feed
From: Dan Christensen <jdc@julian.uwo.ca>
Cc: ding@gnus.org
Subject: Re: nnvirtual problem
Date: 09 Jan 2001 17:46:26 -0500	[thread overview]
Message-ID: <87n1d0mji5.fsf@julian.uwo.ca> (raw)
In-Reply-To: <i5kpuhxyujh.fanatic@gromit.ph.surrey.ac.uk>

Paul Stevenson <p.stevenson@surrey.ac.uk> writes:

> ShengHuo ZHU <zsh@cs.rochester.edu> writes:
> 
> > It looks something wrong with sort. Could you evaluate the following
> > in your version of Emacs, i.e. Emacs 20.3?
> > 
> > (sort '(963 965 970 981 986 993 995 997 1002 1013 1018 1025 1032 1037
> > 1048 1053 1060 1071 1076 1087 1092 1099 1113 1115 1120 1131 1136 1143
> > 1165 1166 1167 1168) '<)
> > 
> > ShengHuo
> 
> No error, just:
> 
> (963 965 970 981 986 993 995 997 1002 1013 1018 1025 1032 1037 1048 1053 1060 1071 1076 1087 1092 1099 1113 1115 1120 1131 1136 1143 1165 1166 1167 1168)

I had similar problems with calls to sort a long time ago, and this
was the exchange that led Lars to a fix.  Hopefully the same kind
of fix will work here.

Dan

X-From-Line: nobody Mon Nov 24 14:59:37 1997
To: ding@gnus.org
Subject: continuing problem with gnus-change-server
From: jdc@chow.mat.jhu.edu (Dan Christensen)
Date: 24 Nov 1997 14:59:36 -0500
Message-ID: <x767pioyfr.fsf@chow.mat.jhu.edu>
X-Mailer: Quassia Gnus v0.14/Emacs 19.34
Xref: scratchy ding:16521
Status: OR
Lines: 32
X-Gnus-Article-Number: 16521   Tue Nov  9 02:10:52 1999

I've been putting off changing nntp servers for a few months, but now I've
got only 7 days before I lose access to old news server.  However,
gnus-change-server is still giving me problems, with qgnus 0.14 and
emacs 19.34.1.  This has been discussed before, but below there's
something that might provide a hint.  Here's a backtrace:

Signaling: (wrong-type-argument number-or-marker-p nil)
  <(nil nil)
  sort((nil) <)
  gnus-move-group-to-server(("sci.math" 4 ((1 . 210029)) ((cache 171741 173689 199399 199778) (tick 171741 173689 199399 199778))) (nntp "mit" (nntp-address "runge.mit.edu") (nntp-open-connection-function nntp-open-rlogin) (nntp-end-of-line "\n") (nntp-rlogin-user-name "jdchrist") (nntp-rlogin-parameters ("telnet" "galois.mit.edu" "nntp"))) (nntp "news.jhu.edu"))
  gnus-change-server((nntp "mit" (nntp-address "runge.mit.edu") (nntp-open-connection-function nntp-open-rlogin) (nntp-end-of-line "\n") (nntp-rlogin-user-name "jdchrist") (nntp-rlogin-parameters ("telnet" "galois.mit.edu" "nntp"))) (nntp "news.jhu.edu"))
* call-interactively(gnus-change-server)
  execute-extended-command(nil)
  call-interactively(execute-extended-command)

If I execute (sort '(nil) '<), emacs successfully returns (nil).
However, if I execute (sort '(nil nil) '<), emacs complains and gives
me the following backtrace, which looks suspiciously like the above
backtrace.

Signaling: (wrong-type-argument number-or-marker-p nil)
  <(nil nil)
  sort((nil) <)
  eval((sort (quote (nil)) (quote <)))
  eval-expression((sort (quote (nil)) (quote <)))
  call-interactively(eval-expression)

Could gnus be trying to sort a list like (nil nil)?  (And can anyone
explain why in the backtrace it says sort((nil) <) rather than
sort((nil nil) <)?)

Dan

X-From-Line: ding-request@ifi.uio.no  Tue Nov 25 15:47:12 1997
Received: from math.mit.edu (MATH.MIT.EDU [18.87.0.8]) by chow.mat.jhu.edu (8.7.6/8.7.3) with ESMTP id PAA04430 for <jdc@chow.mat.jhu.edu>; Tue, 25 Nov 1997 15:47:11 -0500 (EST)
Received: from ifi.uio.no (ifi.uio.no [129.240.64.2])
	by math.mit.edu (8.8.7/8.8.7) with ESMTP id PAA06072
	for <jdchrist@math.mit.edu>; Tue, 25 Nov 1997 15:47:02 -0500 (EST)
Received: from claymore.vcinet.com (claymore.vcinet.com [208.205.12.23])
	by ifi.uio.no (8.8.8/8.8.7/ifi0.2) with SMTP id UAA05378
	for <ding@ifi.uio.no>; Tue, 25 Nov 1997 20:25:11 +0100 (MET)
Received: (qmail 13822 invoked by uid 504); 25 Nov 1997 19:24:58 -0000
Delivered-To: vdomains-gnus-ding@gnus.org
Received: (qmail 13813 invoked from network); 25 Nov 1997 19:24:57 -0000
Received: from xyplex08.uio.no (HELO sparky.gnus.org) (129.240.154.28)
  by claymore.vcinet.com with SMTP; 25 Nov 1997 19:24:55 -0000
Received: (from larsi@localhost)
	by sparky.gnus.org (8.8.5/8.8.5) id UAA03296;
	Tue, 25 Nov 1997 20:25:11 +0100
Mail-Copies-To: never
To: ding@gnus.org
Subject: Re: continuing problem with gnus-change-server
References: <x767pioyfr.fsf@chow.mat.jhu.edu>
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Date: 25 Nov 1997 19:55:21 +0100
In-Reply-To: jdc@chow.mat.jhu.edu's message of "Mon, 24 Nov 1997 14:59:36 -0500"
Message-ID: <m37m9whkh2.fsf@sparky.gnus.org>
X-Mailer: Quassia Gnus v0.17/XEmacs 19.15
X-Face: &w!^oO<W.WBH]FsTP:P0f9X6M-ygaADlA_)eF$<UwQzj7:C=Gi<a?/_4$LX^@$Qq7-O&XHp
 lDARi8e8iT<(A$LWAZD*xjk^')/wI5nG;1cNB>~dS|}-P0~ge{$c!h\<y
Xref: scratchy ding:16522
Status: OR
Lines: 20
X-Gnus-Article-Number: 16522   Tue Nov  9 02:10:52 1999

jdc@chow.mat.jhu.edu (Dan Christensen) writes:

> Signaling: (wrong-type-argument number-or-marker-p nil)
>   <(nil nil)
>   sort((nil) <)

[...]

> If I execute (sort '(nil) '<), emacs successfully returns (nil).

There is something odd about sort.  It sometimes works, and sometimes
it doesn't.

> Could gnus be trying to sort a list like (nil nil)?

No.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen

X-From-Line: owner-ding@hpc.uh.edu  Fri Nov 28 08:10:34 1997
Received: from math.mit.edu (MATH.MIT.EDU [18.87.0.8]) by chow.mat.jhu.edu (8.7.6/8.7.3) with ESMTP id IAA15534 for <jdc@chow.mat.jhu.edu>; Fri, 28 Nov 1997 08:10:33 -0500 (EST)
Received: from farabi.hpc.uh.edu (farabi.hpc.uh.edu [129.7.102.2])
	by math.mit.edu (8.8.7/8.8.7) with ESMTP id IAA26177
	for <jdchrist@math.mit.edu>; Fri, 28 Nov 1997 08:10:32 -0500 (EST)
Received: from sina.hpc.uh.edu (lists@[10.1.1.1]) by farabi.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id HAD19386; Fri, 28 Nov 1997 07:05:00 -0600 (CST)
Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 28 Nov 1997 07:10:20 -0600 (CST)
Received: from claymore.vcinet.com (claymore.vcinet.com [208.205.12.23]) by sina.hpc.uh.edu (8.7.3/8.7.3) with SMTP id HAA11194 for <ding@hpc.uh.edu>; Fri, 28 Nov 1997 07:10:14 -0600 (CST)
Received: (qmail 29321 invoked by uid 504); 28 Nov 1997 13:10:01 -0000
Delivered-To: vdomains-gnus-ding@gnus.org
Received: (qmail 29318 invoked from network); 28 Nov 1997 13:10:00 -0000
Received: from mail1.teleport.com (192.108.254.26)
  by claymore.vcinet.com with SMTP; 28 Nov 1997 13:10:00 -0000
Received: from cygnus.com (ip-pdx03-09.teleport.com [206.163.123.74]) by mail1.teleport.com (8.8.7/8.7.3) with ESMTP id FAA01598 for <ding@gnus.org>; Fri, 28 Nov 1997 05:09:54 -0800 (PST)
Message-Id: <199711281309.FAA01598@mail1.teleport.com>
From: Felix Lee <flee@teleport.com>
Subject: Re: continuing problem with gnus-change-server 
To: ding@gnus.org
In-reply-to: Your message of 25 Nov 1997 19:55:21 +0100.
             <m37m9whkh2.fsf@sparky.gnus.org> 
Date: Fri, 28 Nov 1997 05:11:22 -0800
Sender: owner-ding@hpc.uh.edu
Precedence: list
X-Majordomo: 1.94.jlt7
Xref: scratchy ding:16523
Status: OR
Lines: 19
X-Gnus-Article-Number: 16523   Tue Nov  9 02:10:53 1999

> > Signaling: (wrong-type-argument number-or-marker-p nil)
> >   <(nil nil)
> >   sort((nil) <)
> > If I execute (sort '(nil) '<), emacs successfully returns (nil).
> There is something odd about sort.  It sometimes works, and sometimes
> it doesn't.
> > Could gnus be trying to sort a list like (nil nil)?
> No.

hmm.  that's the only way I can get this failure in
emacs-20.2.  the backtrace is a little misleading though.

    (sort '(nil nil nil nil nil) '<)

    Signaling: (wrong-type-argument number-or-marker-p nil)
      <(nil nil)
      sort((nil) <)
      eval((sort (quote (nil)) (quote <)))
--

X-From-Line: owner-ding@hpc.uh.edu  Fri Nov 28 09:58:00 1997
Received: from math.mit.edu (MATH.MIT.EDU [18.87.0.8]) by chow.mat.jhu.edu (8.7.6/8.7.3) with ESMTP id JAA16142 for <jdc@chow.mat.jhu.edu>; Fri, 28 Nov 1997 09:58:00 -0500 (EST)
Received: from farabi.hpc.uh.edu (farabi.hpc.uh.edu [129.7.102.2])
	by math.mit.edu (8.8.7/8.8.7) with ESMTP id JAA26901
	for <jdchrist@math.mit.edu>; Fri, 28 Nov 1997 09:57:58 -0500 (EST)
Received: from sina.hpc.uh.edu (lists@[10.1.1.1]) by farabi.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id IAD19543; Fri, 28 Nov 1997 08:52:35 -0600 (CST)
Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 28 Nov 1997 08:56:29 -0600 (CST)
Received: from claymore.vcinet.com (claymore.vcinet.com [208.205.12.23]) by sina.hpc.uh.edu (8.7.3/8.7.3) with SMTP id IAA12178 for <ding@hpc.uh.edu>; Fri, 28 Nov 1997 08:56:22 -0600 (CST)
Received: (qmail 29728 invoked by uid 504); 28 Nov 1997 14:56:12 -0000
Delivered-To: vdomains-gnus-ding@gnus.org
Received: (qmail 29725 invoked from network); 28 Nov 1997 14:56:11 -0000
Received: from jagor.srce.hr (hniksic@161.53.2.130)
  by claymore.vcinet.com with SMTP; 28 Nov 1997 14:56:11 -0000
Received: (from hniksic@localhost)
	by jagor.srce.hr (8.8.8/8.8.8) id PAA15989;
	Fri, 28 Nov 1997 15:55:59 +0100 (MET)
To: ding@gnus.org
Subject: Re: continuing problem with gnus-change-server
References: <199711281309.FAA01598@mail1.teleport.com>
X-Attribution: Hrvoje
X-Face: Mie8:rOV<\c/~z{s.X4A{!?vY7{drJ([U]0O=W/<W*SMo/Mv:58:*_y~ki>xDi&N7XG
        KV^$k0m3Oe/)'e%3=$PCR&3ITUXH,cK>]bci&<qQ>Ff%x_>1`T(+M2Gg/fgndU%k*ft
        [(7._6e0n-V%|%'[c|q:;}td$#INd+;?!-V=c8Pqf}3J
From: Hrvoje Niksic <hniksic@srce.hr>
Date: 28 Nov 1997 15:55:59 +0100
In-Reply-To: Felix Lee's message of "Fri, 28 Nov 1997 05:11:22 -0800"
Message-ID: <kigu3cx9if4.fsf@jagor.srce.hr>
X-Mailer: Quassia Gnus v0.17/XEmacs 20.3 - "Vatican City"
Sender: owner-ding@hpc.uh.edu
Precedence: list
X-Majordomo: 1.94.jlt7
Xref: scratchy ding:16524
Status: OR
Lines: 12
X-Gnus-Article-Number: 16524   Tue Nov  9 02:10:53 1999

Felix Lee <flee@teleport.com> writes:

> hmm.  that's the only way I can get this failure in
> emacs-20.2.  the backtrace is a little misleading though.

It all makes sense now.  The backtrace is FUBAR because `sort' changes 
its first argument destructively!

-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
ED WILL NOT CORRUPT YOUR PRECIOUS BODILY FLUIDS!!

X-From-Line: owner-ding@hpc.uh.edu  Fri Nov 28 21:57:45 1997
Received: from math.mit.edu (MATH.MIT.EDU [18.87.0.8]) by chow.mat.jhu.edu (8.7.6/8.7.3) with ESMTP id VAA22593 for <jdc@chow.mat.jhu.edu>; Fri, 28 Nov 1997 21:57:45 -0500 (EST)
Received: from farabi.hpc.uh.edu (farabi.hpc.uh.edu [129.7.102.2])
	by math.mit.edu (8.8.7/8.8.7) with ESMTP id VAA05999
	for <jdchrist@math.mit.edu>; Fri, 28 Nov 1997 21:57:43 -0500 (EST)
Received: from sina.hpc.uh.edu (lists@[10.1.1.1]) by farabi.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id UAD20291; Fri, 28 Nov 1997 20:52:20 -0600 (CST)
Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 28 Nov 1997 20:56:08 -0600 (CST)
Received: from claymore.vcinet.com (claymore.vcinet.com [208.205.12.23]) by sina.hpc.uh.edu (8.7.3/8.7.3) with SMTP id UAA17353 for <ding@hpc.uh.edu>; Fri, 28 Nov 1997 20:55:54 -0600 (CST)
Received: (qmail 32080 invoked by uid 504); 29 Nov 1997 02:55:43 -0000
Delivered-To: vdomains-gnus-ding@gnus.org
Received: (qmail 32070 invoked from network); 29 Nov 1997 02:55:41 -0000
Received: from xyplex36.uio.no (HELO sparky.gnus.org) (129.240.154.56)
  by claymore.vcinet.com with SMTP; 29 Nov 1997 02:55:40 -0000
Received: (from larsi@localhost)
	by sparky.gnus.org (8.8.5/8.8.5) id DAA11283;
	Sat, 29 Nov 1997 03:55:58 +0100
Mail-Copies-To: never
To: ding@gnus.org
Subject: Re: continuing problem with gnus-change-server
References: <199711281309.FAA01598@mail1.teleport.com> <kigu3cx9if4.fsf@jagor.srce.hr>
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Date: 29 Nov 1997 00:48:19 +0100
In-Reply-To: Hrvoje Niksic's message of "28 Nov 1997 15:55:59 +0100"
Message-ID: <m32000h96k.fsf@sparky.gnus.org>
X-Mailer: Quassia Gnus v0.18/XEmacs 19.15
X-Face: &w!^oO<W.WBH]FsTP:P0f9X6M-ygaADlA_)eF$<UwQzj7:C=Gi<a?/_4$LX^@$Qq7-O&XHp
 lDARi8e8iT<(A$LWAZD*xjk^')/wI5nG;1cNB>~dS|}-P0~ge{$c!h\<y
Xref: scratchy ding:16525
Sender: owner-ding@hpc.uh.edu
Precedence: list
X-Majordomo: 1.94.jlt7
Status: OR
Lines: 17
X-Gnus-Article-Number: 16525   Tue Nov  9 02:10:53 1999

Hrvoje Niksic <hniksic@srce.hr> writes:

> > hmm.  that's the only way I can get this failure in
> > emacs-20.2.  the backtrace is a little misleading though.
> 
> It all makes sense now.  The backtrace is FUBAR because `sort' changes 
> its first argument destructively!

Ah!  It all makes sense now.

One more of life's big mysteries solved.  I'll slap some `(delq nil ...)'
around some lists that I feed to sort, and Bob's your uncle.
(Whatever that means.)

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




  reply	other threads:[~2001-01-09 22:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-03 13:04 Paul Stevenson
2001-01-04  4:26 ` ShengHuo ZHU
2001-01-05 11:00   ` Paul Stevenson
2001-01-09  4:10     ` ShengHuo ZHU
2001-01-09  8:54       ` Paul Stevenson
2001-01-09 22:46         ` Dan Christensen [this message]
2001-01-10  8:32           ` Paul Stevenson
2001-01-10  9:31             ` Paul Stevenson
2001-01-10 13:49               ` ShengHuo ZHU

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

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

  git send-email \
    --in-reply-to=87n1d0mji5.fsf@julian.uwo.ca \
    --to=jdc@julian.uwo.ca \
    --cc=ding@gnus.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.
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 NNTP newsgroup(s).