I also faced similar problem. one service was SSL enabled. So for that the stdsoap2.cpp was compiled and added to my *.a file. Later other services were compiled without SSL option and archived to the same static lib. The new services compiled without complaint, but were crashing randomly.
The fix which worked was I added the compilation flag when I compile the wsdl2h generated header file. Just check the compilation options.. But in your case the problem can be different. Jayaram Ganapathy [email protected] Sent by: [email protected] 11-03-09 06:31 PM Please respond to [email protected] To [email protected] cc Subject [gsoap] SSL Issue Hi, maybe somebody is able to give me a hint, why i get sporadic crashed within gsoap/SSL: I use the automatically generated proxy class (generated via soapcpp2 -C -i -I/usr/include/gsoap PlatformAccessGatewayService.h) with one manual addition: soap_ssl_client_context(this, SOAP_SSL_SKIP_HOST_CHECK, NULL, NULL, NULL, NULL, NULL); This is just to ignore the SSL-Certificate verification failure. The remaining proxy class is unchanged. Here is the issue: Sometimes it crashes with the following backtrace: *** glibc detected *** /home/creiser/bmw/RemoteHMI-2.0.6/AppServer: double free or corruption (!prev): 0x09675950 *** ======= Backtrace: ========= /lib/tls/i686/cmov/libc.so.6[0xb7704454] /lib/tls/i686/cmov/libc.so.6(cfree+0x96)[0xb77064b6] /usr/lib/i686/cmov/libcrypto.so.0.9.8(CRYPTO_free+0x3a)[0xb224e68a] /usr/lib/i686/cmov/libcrypto.so.0.9.8(ERR_clear_error+0x5c0)[0xb22c0940] /usr/lib/i686/cmov/libcrypto.so.0.9.8(X509_load_cert_file+0x17d)[0xb22f948d] /usr/lib/i686/cmov/libcrypto.so.0.9.8[0xb22f9cad] /usr/lib/i686/cmov/libcrypto.so.0.9.8(X509_LOOKUP_by_subject+0x42)[0xb22f6142] /usr/lib/i686/cmov/libcrypto.so.0.9.8(X509_STORE_get_by_subject+0x9c)[0xb22f663c] /usr/lib/i686/cmov/libcrypto.so.0.9.8(X509_STORE_CTX_get1_issuer+0x46)[0xb22f66d6] /usr/lib/i686/cmov/libcrypto.so.0.9.8(X509_verify_cert+0x1ac)[0xb22f2d9c] /usr/lib/i686/cmov/libssl.so.0.9.8(ssl_verify_cert_chain+0x18e)[0xb23904fe] /usr/lib/i686/cmov/libssl.so.0.9.8(ssl3_get_server_certificate+0x2ca)[0xb2376a3a] /usr/lib/i686/cmov/libssl.so.0.9.8(ssl3_connect+0x9d5)[0xb23781b5] /usr/lib/i686/cmov/libssl.so.0.9.8(SSL_connect+0x2a)[0xb238c19a] /usr/lib/i686/cmov/libssl.so.0.9.8(ssl23_connect+0x7a2)[0xb237f332] /usr/lib/i686/cmov/libssl.so.0.9.8(SSL_connect+0x2a)[0xb238c19a] Plugins/./libpmlt_hmi.so[0xb25f0361] Plugins/./libpmlt_hmi.so(soap_connect_command+0x25a)[0xb25ee84a] Plugins/./libpmlt_hmi.so(soap_connect+0x33)[0xb25ee913] Plugins/./libpmlt_hmi.so(_ZN37PlatformAccessGatewayPortBindingProxy13callOperationEP18ns1__callOperationP26ns1__callOperationResponse+0x1bb)[0xb25d53b9] Plugins/./libpmlt_hmi.so(_ZN17ConnectionManager15callSoapServiceESs16ns1__hashMapType+0x306)[0xb259aa00] I am using a ubuntu 8.10 System with up-to-date patchlevel (gsoap 2.7.9l-0.2, openssl 0.9.8g-10.1ubuntu2.1). Does anybody have a clue, what i might do wrong? If you need some source code feel free to ask. Best regards, Christian -- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01 --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
