cURL / Mailing Lists / curl-library / Single Mail

curl-library

Fwd: Bug#355715: libcurl 7.15.2-2 seriously broken in unstable

From: Domenico Andreoli <cavok_at_tiscali.it>
Date: Tue, 7 Mar 2006 16:23:12 +0100

hi all,

  here we have a fresh bug for latest curl debian package. just in case
someone wants to dig into it.. :)

cheers
domenico

----- Forwarded message from Nepenthes Development Team <nepenthesdev_at_gmail.com> -----

Date: Tue, 7 Mar 2006 15:46:16 +0100
From: Nepenthes Development Team <nepenthesdev_at_gmail.com>
Subject: Bug#355715: libcurl 7.15.2-2 seriously broken in unstable

...

Description:
The library raises an exception after uploading a file via http post,
7.15.1 worked fine

this is the code from the app i use,

                while ( (pMessage = curl_multi_info_read(m_CurlStack, (int *)&iQueue)) )
                {
                        if ( pMessage->msg == CURLMSG_DONE )
                        {
                                NormanContext *norm;
                                char * szUrl;

                curl_easy_getinfo(pMessage->easy_handle,
CURLINFO_PRIVATE, (char * *) &norm);
                                if ( pMessage->data.result )
                                {
                    logInfo("Upload Error %s on getting file %s \n",
curl_easy_strerror(pMessage->data.result), norm->getMD5Sum());
                                } else
                                {
                                        curl_easy_getinfo(pMessage->easy_handle, CURLINFO_EFFECTIVE_URL, &szUrl);
                                        logInfo("Submitted file %s to sandbox \n",norm->getMD5Sum());
                                }
                                CURL *curl = pMessage->easy_handle;
                                curl_multi_remove_handle(m_CurlStack, pMessage->easy_handle);
                                delete norm;
                                curl_easy_cleanup(curl);
                                --m_Queued;
                        }
                }

here is the backtrace

*** glibc detected *** double free or corruption (!prev): 0x0809b7f8 ***

Program received signal SIGABRT, Aborted.
0xb7d05a27 in raise () from /lib/tls/libc.so.6
(gdb) bt
#0 0xb7d05a27 in raise () from /lib/tls/libc.so.6
#1 0xb7d0735b in abort () from /lib/tls/libc.so.6
#2 0xb7d3c3f5 in __fsetlocking () from /lib/tls/libc.so.6
#3 0xb7d42a97 in malloc_usable_size () from /lib/tls/libc.so.6
#4 0xb7d42f32 in free () from /lib/tls/libc.so.6
#5 0xb7f2c15d in ?? () from /usr/lib/libcurl.so.3
#6 0x0809b7f8 in ?? ()
#7 0x00000002 in ?? ()
#8 0xb7f5a998 in ?? () from /usr/lib/libcurl.so.3
#9 0x080c5558 in ?? ()
#10 0x00000000 in ?? ()

To reproduce, run nepenthes with submit-norman and trigger a file
download using x2 (i know this is not really trivial).

as mentioned before, previous versions of curl worked _fine_

...

----- End forwarded message -----

-----[ Domenico Andreoli, aka cavok
 --[ http://people.debian.org/~cavok/gpgkey.asc
   ---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50
Received on 2006-03-07