[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[leafnode-list] bug in fetchnews (?)
Hi,
sometime my fetchnews segfaults .... Problem is here
/* check headers */
for ( h = 0; h < 4; h++ ) {
if ( !hd[h] || ! *(hd[h]) ) {
if ( verbose )
printf( "Discarding article %d - no %s found\n",
stufftoget[i], hnames[i] );
^^^^^^^^^
syslog( LOG_INFO,
"Discarding article %d - no %s found",
stufftoget[i], hnames[i] );
^^^^^^^^^
killed++;
continue;
}
}
Program received signal SIGSEGV, Segmentation fault.
0x804b483 in getgroup (g=0x8307510, server=14273) at ./fetchnews.c:801
801 printf( "Discarding article %d - no %s found\n",
(gdb) print hnames[i]
Cannot access memory at address 0xc00001f0.
(gdb) print i
$4 = 442
(gdb) print outstanding
$7 = 442
So, instead hnames[i] there rather should be hnames[h].
--
+ Arkadiusz Miśkiewicz \/ PLD/Linux IPv6 ready +
+ misiek@xxxxxxxxxxxxx /\ http://www.pld.org.pl +
--
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list