- From: Anibal Jodorcovsky <anibal@intelerad.com>
- Date: Fri, 31 May 2002 14:26:10 -0400
- To: <www-lib@w3.org>
- Message-ID: <GAEAJDGPAKALONOKGKNCMEEBCFAA.anibal@intelerad.com>
Hi all, I've been using libwww for not so long, but I took the code from the sample postform.c to use in my own app. It seemed to work nice through our tests so we deployed the app today. whoops! After a little while every app that was using libwww was seg faulting with SIGSEGV. Ouch! Going back to my library, where I use libwww I ended up narrowing down the problem so much that I can reproduce the problem with the sample code postform.c. I have a new file now, called postformNew.c (attached). It has notes at the top on how I compile it and link it. At the end you'll see the output from a gdb and the crash in HTHost.c (line 209). The difference between postform.c and postformNew.c is that the new one calls postform.c in a loop with 42 entries, i.e., calling postform 42 times. Somewhere in the middle the program crashes. I think it's either a problem within libwww (but I really doubt it), or I'm using it wrong within a loop. The problem is that I couldn't find a nice sample that uses this library in a loop. Can anybody out there give me a hand here? I tried to make as easy as possible for anyone to just reproduce this. The code compiles with just libwww installed. All you might want to modify is the URL and post fields you use depending on what cgi/servlet you're hitting. Thanks in advance, -Anibal Jodorcovsky
Attachments
- application/octet-stream attachment: postformNew.c
Received on Friday, 31 May 2002 14:27:25 UTC