Discussion:
Bug#301020: tin: freeze after catchup
(too old to reply)
Urs Janßen
2005-03-23 18:38:07 UTC
Permalink
Package: tin
Version: 1:1.7.8+20050314-1
Severity: normal
news.mozilla.org .newsrc-mozilla mozilla
If I do a "tin -ag mozilla", then enter the group
netscape.public.mozilla.calendar, I can read it, but when I do a
catchup from the group index (c [Enter]), tin freezes. I can type
it's realted to not having xref infos in the overview file and thus
tin is trying to use "XHDR XREF" instead,

| Your server does not have Xref: in its XOVER information.
| Tin will try to use XHDR XREF instead (slows down things a bit).

it hangs somewhere here:

#8 0x40169d6f in fgets () from /lib/libc.so.6
#9 0x08072930 in get_server (string=0x81ef918 ".", size=1022) at nntplib.c:916
#10 0x0808239d in tin_read (buffer=0x81ef918 ".", len=1022, fp=0x270f,
header=0) at read.c:228
#11 0x08082510 in tin_fgets (fp=0x270f, header=0) at read.c:357
#12 0x08072fbb in get_only_respcode (message=0x0, mlen=0) at nntplib.c:1422
#13 0x08073086 in get_respcode (message=0x0, mlen=0) at nntplib.c:1490
#14 0x08073184 in nntp_command (command=0xbfffea20 "XHDR XREF 44",
success=221, message=0x0, mlen=0) at nntplib.c:1553
#15 0x08091497 in read_xref_header (art=0x405dbb30) at xref.c:129
#16 0x08091586 in art_mark_xref_read (art=0x405dbb30) at xref.c:178

the 'same' error might occur on that server if using a filter entry
(against crossposts):

#8 0x40169d6f in fgets () from /lib/libc.so.6
#9 0x08072930 in get_server (string=0x81f4460 ".", size=1022) at
nntplib.c:916
#10 0x0808239d in tin_read (buffer=0x81f4460 ".", len=1022,
fp=0x270f,
header=0) at read.c:228
#11 0x08082510 in tin_fgets (fp=0x270f, header=0) at read.c:357
#12 0x08072fbb in get_only_respcode (message=0x0, mlen=0) at
nntplib.c:1422
#13 0x08073086 in get_respcode (message=0x0, mlen=0) at
nntplib.c:1490
#14 0x08073184 in nntp_command (command=0xbfffe9ec "XHDR XREF 704",
success=221, message=0x0, mlen=0) at nntplib.c:1553
#15 0x08091497 in read_xref_header (art=0x405e11c8) at xref.c:129
#16 0x08091586 in art_mark_xref_read (art=0x405e11c8) at xref.c:178

currently I have no idea what is going wrong and I don't know when
I'll find the time to look at this.

urs
Urs Janßen
2005-03-24 15:12:42 UTC
Permalink
If I do a "tin -ag mozilla", then enter the group
netscape.public.mozilla.calendar, I can read it, but when I do a
catchup from the group index (c [Enter]), tin freezes. I can type
afer compiling tin with -DDEBUG and calling it with "-D 1" it shows
that tin doesn't feeze but is damned slow (the XHDR XREF fallback
code doesn't look very optimal, but as it usualy shouldn't be needed
at all that's "ok"). if you don't like that feature you can recompile
with --disable-xhdr-xref. on 'normal' configured servers this is no
disadvantage, but on servers which do not have the Xref:full in thier
overviews tin isn't able to mark crossposted articles as read when
one of them is read.
local overview caching might also help to sped up things on such
servers (didn't test that).

tin-dev: it might be a good idea to use "XHDR XREF -" instead of
single "XHDR XREF num" to speed up things (or at least do it in some
chunks "XHDR XREF n-m" "XHDR XREF m+1 - p" ... or stream the querys)
anyone willing to look at this?

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
Loading...