cURL / Mailing Lists / curl-library / Single Mail

curl-library

SIGSEGV at if(http->sending == HTTPSEND_REQUEST)

From: Darshan Ghumare <darshan.ghumare_at_gmail.com>
Date: Wed, 21 Jan 2015 15:24:58 +0530

Hello,

I am using curl's latest version (curl-7.40.0).

I am getting SIGSEGV at transfer.c:1075 when I am trying to put (HTTP PUT
request) a file to swift.

Following is the stack (Here, http i.e data->req.protop is NULL),

Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f377871d4d3 in readwrite_upload (data=0x14ac000, conn=0x14d0000,
k=0x14ac078, didwhat=0x7f376cd90694) at transfer.c:870
870 if(http->sending == HTTPSEND_REQUEST)
(gdb) where
#0 0x00007f377871d4d3 in readwrite_upload (data=0x14ac000, conn=0x14d0000,
k=0x14ac078, didwhat=0x7f376cd90694) at transfer.c:870
#1 0x00007f377871da78 in Curl_readwrite (conn=0x14d0000,
done=0x7f376cd9070b) at transfer.c:1075
#2 0x00007f3778729bc8 in multi_runsingle (multi=0x14be000, now=...,
data=0x14ac000) at multi.c:1521
#3 0x00007f377872a3b6 in curl_multi_perform (multi_handle=0x14be000,
running_handles=0x7f376cd908b0) at multi.c:1802
#4 0x00007f377871f755 in easy_transfer (multi=0x14be000) at easy.c:717
#5 0x00007f377871f956 in easy_perform (data=0x14ac000, events=false) at
easy.c:805
#6 0x00007f377871f9a9 in curl_easy_perform (easy=0x14ac000) at easy.c:824
#7 0x00007f377898cb85 in SwiftClient::execute (this=0x1476000,
    fn=0x7f377898fd61 <SwiftClient::put(SwiftClient::SwiftDataTypes, char
const*, char const*, unsigned long, BaseData const*, char
const*)::__func__> "put") at SwiftClient.cpp:778
#8 0x00007f377898ad3a in SwiftClient::put (this=0x1476000,
dataType=SwiftClient::STAGING_DATA,
    key=0x14781d8 "vdiskchunk0.img_snap0/sfile2_chunk000000",
value=0x2a684018 "\200\200\200\001\060", value_size=1091546, data=
    0x0, copyFrom=0x0) at SwiftClient.cpp:368
#9 0x00007f37795ec33a in SFile::writeFile (this=0x1332440,
dataBuffer=0x21243000 "", asyncContext=0x0) at SFile.cpp:496
#10 0x00007f37795ed498 in SFileIter::writeNextBlock (this=0x211cc000,
buf=0x2a474000 "", retBlk=..., asyncContext=0x0)
    at SFile.cpp:699
#11 0x00007f37795e54f0 in VDisk::flushWriteCache (this=0x16938c0,
job=0x14d4360) at VDisk.cpp:1276
#12 0x00007f37795dfc8c in StagingFlushJob::execute (this=0x14d4360) at
VDisk.cpp:33
#13 0x00007f37792f368f in Job::executeWrapper (this=0x14d4360,
thr=0x13327c0) at ThreadPool.cpp:216
#14 0x00007f37792f5a8d in ThreadPool::poolThreadFunc (arg=0x13327c0) at
ThreadPool.cpp:826
#15 0x00007f37784ca182 in start_thread (arg=0x7f376cd91700) at
pthread_create.c:312
#16 0x00007f37769c030d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thanks,
Darshan

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-01-21