tin quits when I select at.internet.provider on our newsserver here,
with this ending part in the strace:
#v+
15513 open("/proc/meminfo", O_RDONLY) = 5
15513 fstat64(5, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
15513 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40024000
15513 read(5, " total: used: free: shared: buffers: cached:\nMem: 4141010944 3900256256 240754688 "..., 4096) = 530
15513 close(5) = 0
15513 munmap(0x40024000, 4096) = 0
15513 poll([{fd=0, events=POLLIN}], 1, 0) = 0
15513 poll([{fd=0, events=POLLIN}], 1, 0) = 0
15513 write(1, "\rArtnum : 49283Subject: Kein Mailversand \374ber Chello From : m\366glichrtin: asser\10t\10\33[1@r", 88) = 88
15513 write(1, "\33[?25h", 6) = 6
15513 write(1, "\33[24;1H\33[2J\33[?47l\0338\r\33>", 22) = 22
15513 ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
15513 ioctl(1, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = 0
15513 ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
15513 munmap(0x40020000, 4096) = 0
15513 exit_group(1) = ?
#v-
I see the progress counter at the bottom reach almost 100% before it
does it, I guess it finished reading the overview.
The newsserver is running NewsCache 1.1.92, all other groups (no matter
if they are bigger or smaller) do work. The same group on other servers
work too.
Any idea? gdb tells "Program exited with code 01", bt doesn't yield anything: No stack.
On Fri, Aug 13, 2004 at 02:15:53PM +0200, Gerfried Fuchs wrote:
15513 write(1, "\rArtnum : 49283Subject: Kein Mailversand \374ber Chello From : m\366glichrtin: asser\10t\10\33[1@r", 88) = 88
this line looks like a broken overview entry (and tin exiting as it
violates a assertion)
15513 exit_group(1) = ?
recompile tin with debuging information enabeled (CFLAGS="-g") and
start tin from inside gdb? and/or manually look at the overviewdata
returned from the server, e.g.
script
telnet news 119
mode reader
group at.internet.provider
xover -
quit
exit
less typescript
<[email protected]> 1286 12 Xref: paperboy.Austria.EU.net at.internet.provider:49283
* Urs Jan�en <[email protected]> [2004-08-13 15:13]:cesmail.net> <[email protected]> 1286 12 Xref: paperboy.Austria.EU.net at.internet.provider:49283
On Fri, Aug 13, 2004 at 02:15:53PM +0200, Gerfried Fuchs wrote:Interesting.
15513 write(1, "\rArtnum : 49283Subject: Kein Mailversand \374ber Chello From : m\366glichrtin: asser\10t\10\33[1@r", 88) = 88this line looks like a broken overview entry (and tin exiting as it violates a assertion)
The thing is, is exit_group(1) the right thing to do for tin here? And15513 exit_group(1) = ?
why does this quit the whole process?
recompile tin with debuging information enabeled (CFLAGS="-g") andThat helped. The line looks like following:
start tin from inside gdb? and/or manually look at the overviewdata returned from the server, e.g.
script
telnet news 119
mode reader
group at.internet.provider
xover -
quit
exit
less typescript
#v+
49283 Re: Kein Mailversand �ber Chello m�glich Jens Hoerburger <jens@abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk.com> Fri, 16 Jul 2004 08:58:40 +0200 <[email protected]> <1ggzkqk.803p8e1x4v8zcN%wzalo@
#v-
I noticed that there is a tabstop in the subject part, and tabstops
seem to be field seperators.
illegal-message-id -> unable to thread -> 'clean' exit as we hitan assetrion in the threading code.
Still, I think tin should handle that more pleasingly and not quit completely.
On Mon, Aug 16, 2004 at 02:12:25PM +0200, Gerfried Fuchs wrote:cesmail.net> <[email protected]> 1286 12 Xref: paperboy.Austria.EU.net at.internet.provider:49283
#v+
49283 Re: Kein Mailversand �ber Chello m�glich Jens Hoerburger <jens@abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk.com> Fri, 16 Jul 2004 08:58:40 +0200 <[email protected]> <1ggzkqk.803p8e1x4v8zcN%wzalo@
#v-
I noticed that there is a tabstop in the subject part, and tabstops
seem to be field seperators.
right, tabs must be converted to spaces in the overview as tab is
used as fieldseperator. whith raw tabs in a field readersoftware
might get confused as it assings the following data to the next field.
not replacing tabs with spaces in the overview-data is a serious defect in the server software.
in this case part of the subject is assigned to the from-field, the
from-data is assigned to the date-field, the date-data is assigned to the message-id-filed...
Still, I think tin should handle that more pleasingly and not quit
completely.
I'm not a fan of having assertions in the code instead of trying to
catch the 'error' and do something usefull but in some cases it's
very hard to do something usefull (esp. if one hits malformed data).
in this case part of the subject is assigned to the from-field, the from-data is assigned to the date-field, the date-data is assigned to the message-id-filed...
Then this very line should be skipped. The most sensible thing to do,
and display the others.
I'm not a fan of having assertions in the code instead of trying toThen we are faced with a DoS attack posibility here, a quite clean one.
catch the 'error' and do something usefull but in some cases it's
very hard to do something usefull (esp. if one hits malformed data).
The thing is: My collegue who informed be about this has the same tin version running on other machines which work. It is just linked against different things, so we guess it is not a tin problem itself why this happens. Might it have to be with libncurses5 vs. libncursesw5 (normal
vs. wide)? Just a thought, it might be in some other libraries, too.
This problem is a serious thing,
and I would thing having a DoS in the code (whichever code it might
be) should even make this a release critical bug.
On Mon, Aug 16, 2004 at 03:37:23PM +0200, Gerfried Fuchs wrote:
Then this very line should be skipped. The most sensible thing to do,
and display the others.
you can't easily recognice if the line is defect and even if you can
you can't say where.
Then we are faced with a DoS attack posibility here, a quite clean one.
only on broken servers -> the defect is on the servers side (which
has to replace all tabs by spaces in the overview data).
The thing is: My collegue who informed be about this has the same tin
version running on other machines which work. It is just linked against
different things, so we guess it is not a tin problem itself why this
happens. Might it have to be with libncurses5 vs. libncursesw5 (normal
vs. wide)? Just a thought, it might be in some other libraries, too.
it is a server problem, not a client one. I guess you collegue uses
a different newsserver on the other machine.
This problem is a serious thing,
in the servers code
and I would thing having a DoS in the code (whichever code it might
be) should even make this a release critical bug.
blame the NewsCache 1.1.92 guys
That's a stupid defense of a bug in the client that doesn't use the Robustness Principle. What like apache bug affects mozilla? TrulyThen we are faced with a DoS attack posibility here, a quite clean one.only on broken servers -> the defect is on the servers side (which
has to replace all tabs by spaces in the overview data).
mozilla will be patched to not croak when being displayed a b0rked
webpage. The same should be done for tin.
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (3 / 13) |
| Uptime: | 43:12:04 |
| Calls: | 12,111 |
| Calls today: | 2 |
| Files: | 15,008 |
| Messages: | 6,518,439 |