Got it, it was my fault, using dmalloc shows: 27 (ERROR_OVER_FENCE) failed OVER picket-fence magic-number check It was a malloc(sizen) and and a strncpy(... sizen) ... ;(
Thank you for your help! ________________________________________ Von: curl-library [[email protected]] im Auftrag von Elgert, Alexander Gesendet: Dienstag, 16. April 2013 15:49 An: [email protected] Betreff: AW: ipv4 coredump in openssl CRYPTO_malloc ... *strange* > Von: curl-library [[email protected]] im Auftrag von Gokhan > Sengun [[email protected]] > Gesendet: Dienstag, 16. April 2013 13:27 > An: libcurl development > Betreff: Re: ipv4 coredump in openssl CRYPTO_malloc ... *strange* > > The problem is ONLY visible under: > - SunOS, other OSses like AIX, HP-UX, Linux runs fine. > - http protocol (https runs fine) > - ipv4 (ipv6 runs fine) > > Have you already tried using Valgrind to eliminate possible stack corruption? > Not yet, but I will try to use dmalloc first. Actually, I found the openssl wrappers for malloc and modified the openssl-1.0.1e/crypto/mem.c and the output is: ae_malloc85+40(7) ==> 824c298 default_malloc_ex(108, 'ameth_lib.c', 292) ae_malloc(108) ==> ... ae_malloc85+40(108) ==> 824b378 default_malloc_ex(18, 'buf_str.c', 75) ae_malloc(18) ==> ... Segmentation Fault (core dumped) Note: I am linking statically using the .a files directly. Greetings, Alexander -- Deutsche Telekom AG Seamless ICT Security Infrastructure & Management im Auftrag T-Systems International GmbH Dipl. Inf Alexander Elgert Langwadener Strasse 17 64625 Bensheim +49 176 22 717 661 (Mobil) +49 671 83419-12 (Tel) +49 671 83419-30 (Fax) E-Mail: [email protected] ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
