tin and huge article numbers

Urs Janßen <[email protected]> Sun, 19 Apr 2009 11:53:37 +0200
Newsgroups gmane.network.tin.devel
Message-ID <[email protected]>
anyone willing to look into this (shouldn't __INT_MAX__ be (the last) valid
article number? so it shouldn't crash on xmax = 2147483647 = __INT_MAX__
(32bit)).

| Program received signal SIGSEGV, Segmentation fault.
| 0x080853ad in print_bitmap_seq (fp=0x8ffea38, group=0xb6f57df0) at ./newsrc.c:1079
| 1079                            while (i <= group->newsrc.xmax && NTEST(group->newsrc.xbitmap, i - group->newsrc.xmin) == ART_READ)
| (gdb) bt
| #0  0x080853ad in print_bitmap_seq (fp=0x8ffea38, group=0xb6f57df0) at ./newsrc.c:1079
| #1  0x08085608 in write_newsrc_line (fp=0x8ffea38, line=0x8c839e8 "alt.binaries.boneless") at ./newsrc.c:173
| [...]
| (gdb) frame 0
| #0  0x080853ad in print_bitmap_seq (fp=0x8ffea38, group=0xb6f57df0) at 
| ./newsrc.c:1079
| 1079                            while (i <= group->newsrc.xmax && NTEST(group->newsrc.xbitmap, i - group->newsrc.xmin) == ART_READ)
| (gdb) print *group
| $6 = {name = 0x88244f0 "alt.binaries.boneless", aliasedto = 0x0, description = 0x0,
|   spooldir = 0x8140860 "/var/spool/news", moderated = 121 'y', count = 271232678,
|   xmax = 2147483647, xmin = 1879329285, type = 1, inrange = 0, read_during_session = 0,
|   art_was_posted = 0, subscribed = 1, newgroup = 0, bogus = 0, next = 13190, newsrc = {
|     present = 1, num_unread = 28903441, xmax = 2147483647, xmin = 2118580207,
|     xbitlen = 28903441, xbitmap = 0xb6aff008 'ÿ' <repeats 200 times>...},
|   attribute = 0x9194fa0, glob_filter = 0x81150a0}
| 
| It said alt.binaries.boneless newsgroup so I looked at my .newsrc and 
| its boneless line said: "alt.binaries.boneless: 1-2118580206". I changed 
| it to 2. Reran tin without gdb (still have that session in the old ssh2 
| window from earlier yesterday). Saw boneless newsgroup as 267 M 
| alt.binaries.boneless. Wow, that's huge. Quit Tin and crashed again. :(

urs
-- 
"Only whimps use tape backup: _real_ men just upload their important stuff
 on ftp, and let the rest of the world mirror it ;)" - Linus