curl-library
LibCurl.jar
Date: Wed, 10 Jun 2009 15:25:50 +0200
Hi,
I'm using libcurl with Java to request some HTTPS-Pages. In order to not block the GUI, I'm runing the request in a thread.
For example:
cg = new CurlGlue();
cr = new CurlReader();
cg.setopt(CURL.OPT_WRITEFUNCTION, cr);
cg.setopt(CURL.OPT_URL, "https://xyz.de");
cg.setopt(CURL.OPT_SSL_VERIFYPEER, 0);
cg.setopt(CURL.OPT_SSL_VERIFYHOST, 0);
cg.setopt(CURL.OPT_NOSIGNAL, 1);
cg.setopt(CURL.OPT_FOLLOWLOCATION, 1);
cg.perform();
[This part a few times more]
When I run the thread for the first time, everything works ok. But when I try it a second time, the programm crashes with a external error:
-----------------------------------------
Unhandled exception
Type=Segmentation error vmState=0x00000000
J9Generic_Signal_Number=00000004 ExceptionCode=c0000005 ExceptionAddress=4A892862 ContextFlags=0001003f
Handler1=7FEE91A0 Handler2=7FEC94E0 InaccessibleAddress=7473616C
EDI=4A8D3AC0 ESI=7473616C EAX=00000000 EBX=4A8DC1F0
ECX=4A8A62D7 EDX=00000000
EIP=4A892862 ESP=4233FD58 EBP=4233FE7C EFLAGS=00010206
Module=C:\WINDOWS\system32\javacurl.dll
Module_base_address=4A890000 Offset_in_DLL=00002862
Target=2_40_20080415_018762_lHdSMr (Windows XP 5.1 build 2600 Service Pack 3)
CPU=x86 (2 logical CPUs) (0x7d639000 RAM)
Unhandled exception
Type=Segmentation error vmState=0x00040000
J9Generic_Signal_Number=00000004 ExceptionCode=c0000005 ExceptionAddress=7FF248A9 ContextFlags=0001003f
Handler1=7FEE91A0 Handler2=7FEC94E0 InaccessibleAddress=00CF93AC
EDI=00178320 ESI=00178358 EAX=00B81048 EBX=00CF93AC
ECX=00000028 EDX=0000002C
EIP=7FF248A9 ESP=4192FA7C EBP=00178358 EFLAGS=00010206
Module=C:\Documents and Settings\Administrator\My Documents\private\Eclipse\ibm_sdk60\jre\bin\j9vm24.dll
Module_base_address=7FEE0000 Offset_in_DLL=000448a9
Target=2_40_20080415_018762_lHdSMr (Windows XP 5.1 build 2600 Service Pack 3)
CPU=x86 (2 logical CPUs) (0x7d639000 RAM)
----------- Stack Backtrace -----------
0x4A892862
0x7FEF5D95
0x4095C100
---------------------------------------
JVMDUMP006I Speicherauszugsereignis "gpf" wird verarbeitet; Detail "" - Bitte warten.
JVMDUMP007I JVM fordert System-Speicherauszug mit 'C:\Documents and Settings\Administrator\workspace\Noten\core.20090610.151926.6404.0001.dmp' an.
JVMDUMP010I System-Speicherauszug geschrieben auf C:\Documents and Settings\Administrator\workspace\Noten\core.20090610.151926.6404.0001.dmp
JVMDUMP007I JVM fordert Snap-Speicherauszug mit 'C:\Documents and Settings\Administrator\workspace\Noten\Snap.20090610.151926.6404.0002.trc' an.
JVMDUMP010I Snap-Speicherauszug geschrieben auf C:\Documents and Settings\Administrator\workspace\Noten\Snap.20090610.151926.6404.0002.trc
JVMDUMP007I JVM fordert Java-Speicherauszug mit 'C:\Documents and Settings\Administrator\workspace\Noten\javacore.20090610.151926.6404.0003.txt' an.
----------- Stack Backtrace -----------
JNI_CreateJavaVM:0x7FF248A9 [0x7FEF9090 +0x0002B819]
0x408B6100
Java_sun_awt_DefaultMouseInfoPeer_fillPointWithCoords:0x40FB6200 [0x40FB2400 +0x00003E00]
0x7FEED9C0
j9port_init_library:0x7FED3700 [0x7FEC61A0 +0x0000D560]
except_handler3:0x7C34240D [0x7C34240D +0x00000000]
ValidateLocale:0x7C839AD8 [0x7C839828 +0x000002B0]
GetModuleFileNameA:0x7C80B730 [0x7C80B56F +0x000001C1]
---------------------------------------
JVMDUMP006I Speicherauszugsereignis "gpf" wird verarbeitet; Detail "" - Bitte warten.
JVMDUMP007I JVM fordert System-Speicherauszug mit 'C:\Documents and Settings\Administrator\workspace\Noten\core.20090610.151933.6404.0004.dmp' an.
JVMDUMP010I System-Speicherauszug geschrieben auf C:\Documents and Settings\Administrator\workspace\Noten\core.20090610.151933.6404.0004.dmp
JVMDUMP007I JVM fordert Snap-Speicherauszug mit 'C:\Documents and Settings\Administrator\workspace\Noten\Snap.20090610.151933.6404.0005.trc' an.
JVMDUMP010I Snap-Speicherauszug geschrieben auf C:\Documents and Settings\Administrator\workspace\Noten\Snap.20090610.151933.6404.0005.trc
JVMDUMP007I JVM fordert Java-Speicherauszug mit 'C:\Documents and Settings\Administrator\workspace\Noten\javacore.20090610.151933.6404.0006.txt' an.
JVMDUMP010I Java-Speicherauszug geschrieben auf C:\Documents and Settings\Administrator\workspace\Noten\javacore.20090610.151926.6404.0003.txt
JVMDUMP013I Speicherauszugsereignis "gpf" verarbeitet, Detail "".
---------------------------------------------------
Fiddler tells me, that actually the first request works ok, but the second one (the POST request) crashes.
Does anyone have any ideas how to fix this issue?
Thanks
Marek Ventur
-- GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate und Telefonanschluss für nur 17,95 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02Received on 2009-06-10