cURL / Mailing Lists / curl-library / Single Mail


Re: fread_func: move callback pointer from set to state struct

From: Dan Fandrich <>
Date: Fri, 16 Oct 2015 21:38:09 +0200

On Fri, Oct 16, 2015 at 11:29:54AM +0200, Daniel Stenberg wrote:
> On Fri, 16 Oct 2015, Dan Fandrich wrote:
> >A lot of autobuild tests are segfaulting since this change was pushed.
> Puzzling. I've successfully run the test suite numerous times on my local
> machine (with and without valgrind) and it also ran fine on travis-ci on
> github before I merged.
> Can anyone repeat the crash and/or get some stack traces of it happening? I
> can of course revert the change to get us rolling again but as I can't
> repeat the problem here I'll have a hard time to fix it for a second landing
> anyway!
> Thanks for the heads-up Dan!

It looks like the bog standard builds are working fine, it's ones with odd SSL
libs or configure options that are failing. My size-reduced autobuilds (e.g. looks like they can
reproduce the issue (or at least one issue if there is more than one) without
any odd dependencies. Here's a backtrace from test 19:

#0 0x00000001 in ?? ()
#1 0xb7fb73a8 in mstate (data=0x80723d4, state=CURLM_STATE_MSGSENT, lineno=1784)
    at /home/dan/src/curl-git/lib/multi.c:151
#2 0xb7fb9b6a in multi_runsingle (multi=0x807c11c, now=..., data=0x80723d4)
    at /home/dan/src/curl-git/lib/multi.c:1784
#3 0xb7fb9c50 in curl_multi_perform (multi_handle=0x807c11c, running_handles=0xbfffe53c)
    at /home/dan/src/curl-git/lib/multi.c:1821
#4 0xb7fb225e in easy_transfer (multi=0x807c11c) at /home/dan/src/curl-git/lib/easy.c:724
#5 0xb7fb23e8 in easy_perform (data=0x80723d4, events=false)
    at /home/dan/src/curl-git/lib/easy.c:812
#6 0xb7fb241a in curl_easy_perform (easy=0x80723d4) at /home/dan/src/curl-git/lib/easy.c:831
#7 0x080564e4 in operate_do (global=0xbfffe920, config=0x8072194)
    at /home/dan/src/curl-git/src/tool_operate.c:1404
#8 0x080571be in operate (config=0xbfffe920, argc=8, argv=0xbfffea14)
    at /home/dan/src/curl-git/src/tool_operate.c:1889
#9 0x08052620 in main (argc=8, argv=0xbfffea14) at /home/dan/src/curl-git/src/tool_main.c:252

>>> Dan
List admin:
Received on 2015-10-16