From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/43701 Path: quimby.gnus.org!not-for-mail From: andreas.koenig@anima.de (Andreas J. Koenig) Newsgroups: gmane.emacs.gnus.general Subject: Major bug with bookmarks in oort 0.05 Date: Thu, 28 Feb 2002 17:11:22 +0100 Message-ID: NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: quimby2.netfonds.no 1014913028 1356 195.204.10.66 (28 Feb 2002 16:17:08 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 28 Feb 2002 16:17:08 GMT Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16gTEx-0000Lh-00; Thu, 28 Feb 2002 17:17:07 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16gT9h-0005ef-00; Thu, 28 Feb 2002 10:11:41 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 28 Feb 2002 10:11:43 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id KAA01410 for ; Thu, 28 Feb 2002 10:11:33 -0600 (CST) Original-Received: (qmail 8128 invoked by alias); 28 Feb 2002 16:11:26 -0000 Original-Received: (qmail 8123 invoked from network); 28 Feb 2002 16:11:26 -0000 Original-Received: from unknown (HELO k242.linux.bogus) (root@212.42.235.66) by gnus.org with SMTP; 28 Feb 2002 16:11:26 -0000 Original-Received: (from k@localhost) by k242.linux.bogus (8.9.3/8.9.3) id RAA28062; Thu, 28 Feb 2002 17:11:22 +0100 X-Authentication-Warning: k242.linux.bogus: k set sender to andreas.koenig@anima.de using -f Original-To: ding@gnus.org Original-Lines: 74 User-Agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/21.1 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: quimby.gnus.org gmane.emacs.gnus.general:43701 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:43701 A few days or weeks ago I used the bookmark command unintentionally for the first time ever. It's "M b" on the current article. Since I did that, my two files ~/.newsrc.eld and ~/Mail/king-99/.marks started to grow exponentially. When they reached 25 MB today, the machine became pretty sluggish. I could rescue the damage by manually editing the two files: I had to remove the whole expression from "(bookmark " to the matching paren in each of the two files. I can reproduce the bug now: 1. Start emacs and gnus 2. Enter a newsgroup 3. Open an article 4. Press "M b" 5. leave group, leave gnus, leave emacs 6. Run an ls -l on ~/.newsrc.eld and the .marks file of the newsgroup chosen in step 2 7. Start emacs again, enter gnus 8. Enter the newsgroup chosen above. No need to select any article there. 9. Leave group, leave gnus, leave emacs Repeat 6-9. Any time I repeat, the two files are growing. Here's a perl program that writes a small report on the two files. It needs to be adjusted to the newsgroup you choose: #!/usr/bin/perl -w use strict; $|=1; for my $file (qw(.newsrc.eld Mail/king-99/.marks)){ printf " File: %s\n", $file; printf " Size: %d\n", -s $file; local($/); open F, $file or die; $_ = ; close F; / ( \(bookmark ( ( \( [\d\s\.]+ \) )+ | \s* )+ \) ) /x; printf "Length of bookmarkstring: %d\n", length($1||""); printf " Bookmarkstring: %s\n", $1||""; } Sample output 1: File: .newsrc.eld Size: 140640 Length of bookmarkstring: 58 Bookmarkstring: (bookmark (32035 . 0) (32035 . 0) (32035 . 0) (32035 . 0)) File: Mail/king-99/.marks Size: 28340 Length of bookmarkstring: 106 Bookmarkstring: (bookmark (32035 . 0) (32035 . 0) (32035 . 0) (32035 . 0) (32035 . 0) (32035 . 0) (32035 . 0) (32035 . 0)) Sample output 2: File: .newsrc.eld Size: 140676 Length of bookmarkstring: 94 Bookmarkstring: (bookmark (32035 . 0) (32035 . 0) (32035 . 0) (32035 . 0) (32035 . 0) (32035 . 0) (32035 . 0)) File: Mail/king-99/.marks Size: 28424 Length of bookmarkstring: 190 Bookmarkstring: (bookmark (32035 . 0) (32035 . 0) (32035 . 0) (32035 . 0) (32035 . 0) (32035 . 0) (32035 . 0) (32035 . 0) (32035 . 0) (32035 . 0) (32035 . 0) (32035 . 0) (32035 . 0) (32035 . 0) (32035 . 0)) My emacs is 21.1, my gnus is oort 0.05. Please let me know if you need additional info. -- andreas