Hi!

/usr/ports/www/snownews dumped core recently.

[EMAIL PROTECTED]:7$ uname -a
OpenBSD werkel.rechners.lemarit.com 3.8 GENERIC#209 i386

gdb output:
...
[EMAIL PROTECTED]:16$ gdb -batch -x commands -q /usr/local/bin/snownews 
snownews.core
Core was generated by `snownews'.
Program terminated with signal 11, Segmentation fault.
#0  0x0d79f390 in vfprintf () from /usr/lib/libc.so.38.2
#0  0x0d79f390 in vfprintf () from /usr/lib/libc.so.38.2
#1  0x0d79d252 in snprintf () from /usr/lib/libc.so.38.2
#2  0x0d79f48d in vfprintf () from /usr/lib/libc.so.38.2
#3  0x0d7959de in fprintf () from /usr/lib/libc.so.38.2
#4  0x1c0117fd in printlog (feed=0x53, 
    text=0x3c000560 "URL points to permanent redirect, updating with new 
location...") at io-internal.c:519
#5  0x1c0031d2 in NetIO (my_socket=0xcfbcd784, 
    host=0x7eb6770a "http://kiza.kcore.de/software/snownews/version";, 
    url=0x7eb676d4 "/~kiza/software/snownews/version", cur_ptr=0x81432600, 
    authdata=0x0, httpproto=0, suppressoutput=1) at netio.c:504
#6  0x1c0036a2 in DownloadFeed (
    url=0x7eb676d4 "/~kiza/software/snownews/version", cur_ptr=0x81432600, 
    suppressoutput=1) at netio.c:851
#7  0x1c007797 in AutoVersionCheck () at updatecheck.c:88
#8  0x1c001ff0 in MainQuit (func=0x0, error=0x0) at main.c:64
#9  0x1c0066b0 in UIMainInterface () at interface.c:1184
#10 0x1c0021e5 in main (argc=1, argv=0x0) at main.c:163

As i understand it, feedurl in the feed structure passed by updatecheck points
to nowhere.

Alf



Possible fix:
Save the following patch under 
/usr/ports/www/snownews/patches/patch-updatecheck_c

--- updatecheck.c.orig  Wed Nov  2 09:22:33 2005
+++ updatecheck.c       Wed Nov  2 09:23:45 2005
@@ -56,6 +56,7 @@
        update->cookies = NULL;
        update->authinfo = NULL;
        update->title = NULL;
+       update->feedurl = NULL;
        
        /* We check once a week. */
        snprintf (timestring, sizeof(timestring), "%d", (int) time(NULL));

Reply via email to