Thread View: news.software.nntp
2 messages
2 total messages
Started by Dr. Ralph P. Sobek
Tue, 07 May 1996 00:00
INN1.4unoff4 crashes with segment violation
Author: Dr. Ralph P. Sobek
Date: Tue, 07 May 1996 00:00
Date: Tue, 07 May 1996 00:00
76 lines
2991 bytes
2991 bytes
This evening our copy of INN1.4unoff4 crashed nicely trying to cancel
an article. The target article was:
MessageID = 0x3e42a8 "<4mkutp$me@netsrv2.spss.com>"
The backtrace is:
[1] NGfind(Name = 0x348d38 "soc.religion.christian.bible-study"), line 265 in "innd/ng.c"
=>[2] ARTpost(cp = 0x654c4, Replic = (nil), ihave = 0x3e42a8 "<4mkutp$me@netsrv2.spss.com>"), line 1846 in "innd/art.c"
[3] NCpostit(cp = 0x654c4), line 229 in "innd/nc.c"
[4] NCproc(cp = 0x654c4), line 1003 in "innd/nc.c"
[5] NCreader(cp = 0x654c4), line 1136 in "innd/nc.c"
[6] CHANreadloop(), line 790 in "innd/chan.c"
[7] main(ac = 0, av = 0xdffffeb4), line 897 in "innd/innd.c"
The crash is in the expression:
for (c = *Name, ngp = htp->Groups, i = htp->Used; --i >= 0; ngp++)
--> if (c == ngp[0]->Name[0] && EQ(Name, ngp[0]->Name))
return ngp[0];
where
Name = 0x348d38 "soc.religion.christian.bible-study"
*ngp[0] = {
Start = 1380991026
Name = 0x3221413b ""
Dir = 0x32215239 ""
NameLength = 908411966
Last = 841045051
Filenum = 1377911867
Lastwidth = 1377913149
PostCount = 0
LastString = 0x5625493b ""
Rest = 0x4224410a ""
nSites = 1294151752
Sites = 0x2d22452d
Alias = 0x4f282655
**htp->Groups = {
Start = 187144
Name = 0x390a68 "alt.winsock.voice"
Dir = 0x362160 "alt/winsock/voice"
NameLength = 17
Last = 4
Filenum = 777999439
Lastwidth = 10
PostCount = 0
LastString = 0xdf5bdb1a ""
Rest = 0xdf5bdb30 ""
nSites = 1
Sites = 0x3e7e30
Alias = (nil)
htp->Used = 14
j = 3683834513
*p = '\0'
Can somebody see what went wrong? This was compiled with SunPro C
3.0.1 under Solaris 2.5. I'll keep the core file around for awhile.
Thanks in advance.
--
Dr. Ralph P. Sobek Disclaimer: The above ruminations are my own.
Ralph.Sobek@irit.fr Addresses are ordered by importance.
sobek@irit.fr If all else fails, try:
newsmaster@irit.fr, postmaster@irit.fr sobek@diva.eecs.berkeley.edu
Telephone: (+33)61-55-86-18 FAX:(+33)61-55-62-58 http//www.cerfacs.fr/~ralph/
===============================================================================
Ban methyl bromide! What happend to American Health Care?
Re: INN1.4unoff4 crashes with segment violation
Author: Brian Tao
Date: Wed, 08 May 1996 00:00
Date: Wed, 08 May 1996 00:00
63 lines
3519 bytes
3519 bytes
In article <SOBEK.96May7115940@dusty.irit.fr>, Dr. Ralph P. Sobek <sobek@irit.fr> wrote:
>
>The crash is in the expression:
>
> for (c = *Name, ngp = htp->Groups, i = htp->Used; --i >= 0; ngp++)
>--> if (c == ngp[0]->Name[0] && EQ(Name, ngp[0]->Name))
> return ngp[0];
I had a horrible time just this past weekend with this exact same
problem. I wasn't able to track down the problem to an article
cancel, but it seems like a reasonable conclusion. In my case though,
some data structures look as if they were trashed (either being
confused with some other part of memory, or sent from one of our
feeds):
(gdb) bt
#0 0x139bb in NGfind (
Name=0x13f8853 "000068 y\nalt.pets.chia 0000000635 0000000631 y\nalt.pets.ferrets 0000004446 0000003356 y\nalt.pets.hamsters 0000005159 0000004264 y\nalt.pets.rabbits 0000013468 0000011826 y\nalt.ph.uk 0000002953 00000024"...) at ng.c:265
#1 0x13f8853 in end ()
#2 0x5356 in ARTpost (cp=0x2ee58, Replic=0x0,
ihave=0x15cd800 "0R(JJT84!@=I_NDY)/OS4Z*(I2\"6`.-I`.T^W\\OT]LME3RB)(6#;U5&C+=\nMP,Y_/^=0370AG`*R*\"2I)Y`&,]/U]JJ]S71EF>[>)LB/<AZD<_4=?K5.;7H0\nMQ#S1@@!N<_7'/UIMU>0E'#`.[DJ1M(S@=^GZ>]8NHQQ',A\\H``'N?KS^1_SP\nMTE+1F4G;5&Y%XF@9"...) at art.c:1836
#3 0xee2d in NCpostit (cp=0x2ee58) at nc.c:233
#4 0x10db0 in NCreader (cp=0x2ee58) at nc.c:1003
#5 0xb051 in CHANreadloop () at chan.c:786
#6 0xe2e0 in main (ac=0, av=0xefbfddfc) at innd.c:889
(gdb) list
260
261 /* SUPPRESS 6 *//* Over/underflow from plus expression */
262 NGH_HASH(Name, p, j);
263 htp = NGH_BUCKET(j);
264 for (c = *Name, ngp = htp->Groups, i = htp->Used; --i >= 0; ngp++)
265 if (c == ngp[0]->Name[0] && EQ(Name, ngp[0]->Name))
266 return ngp[0];
267 return NULL;
268 }
269
(gdb) list art.c:1836
1831 ngptr = GroupPointers;
1832 j = 0;
1833 for (GroupMissing = Accepted = FALSE; (p = *groups) != NULL; groups++) {
1834 if (!RCcanpost(cp, p))
1835 continue;
1836 if ((ngp = NGfind(p)) == NULL) {
1837 GroupMissing = TRUE;
1838 if (LikeNewgroup && Approved) {
1839 /* Newgroup/rmgroup being sent to a group that doesn't
1840 * exist. Assume it is being sent to the group being
>Can somebody see what went wrong? This was compiled with SunPro C
>3.0.1 under Solaris 2.5. I'll keep the core file around for awhile.
This was 1.4unoff3, compiled with gcc 2.6.3 under FreeBSD 2.1R. I
shut off one of our newly-added incoming feeds and the problem has
disappeared. The server is running unoff4 now, and I'm going to try
turning the feed back on to see what happens.
--
Brian Tao (BT300, taob@io.org, taob@ican.net)
Systems and Network Administrator, Internet Canada Corp.
"Though this be madness, yet there is method in't"
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads