curl-users
Re: libcurl-7.8 PUT problem
Date: Wed, 13 Jun 2001 12:13:12 +0200
Daniel Stenberg a écrit :
>
> On Tue, 12 Jun 2001, Souk-Aloun Samuel wrote:
>
> > ok, it's a little bit complicated to describe everything because I have
> > three different platforms and different behaviours too, so, I will focus
> > on a problem which is common to all platforms:
> >
> > - the perl script is exiting with segfault (at perform())
>
> I'm not really into how the perl layer works, but I figure there's some
> general debugging moves we can do.
>
> Can you dig out any information from the core, like in which function it
> died? (compiling with debug, -g and re-doing this will give even more info)
>
> What if you use set CURLOPT_VERBOSE, how much (if any) info does it show
> before it dies?
>
> I think the problem is found in the fwrite_wrapper() function in easy.xs.
> Would be really cool to get to know which line that crashes...
>
> --
> Daniel Stenberg -- curl dude -- http://curl.haxx.se/
here is the result with a debug version and the CULOPT_VERBOSE flag:
./curl-put2.pl
MEM url.c:201 malloc(52200) = 0x8127c40
MEM url.c:207 malloc(256) = 0x8134830
MEM url.c:241 malloc(20) = 0x8134938
MEM url.c:1355 malloc(540) = 0x8134f60
MEM url.c:1405 malloc(256) = 0x8135180
MEM hostip.c:130 malloc(9000) = 0x8135288
FD url.c:1094 socket() = 4
* Connected to koyao.thinxshop.fr (192.168.11.5)
MEM http.c:394 malloc(76) = 0x8137700
MEM base64.c:65 malloc(16) = 0x8137750
MEM mprintf.c:1069 malloc(32) = 0x8137768
MEM mprintf.c:1078 realloc(0x8137768, 64) = 0x8137d18
MEM http.c:435 free(0x8137750)
MEM mprintf.c:1069 malloc(32) = 0x8137750
MEM http.c:116 malloc(12) = 0x8137778
MEM mprintf.c:1069 malloc(32) = 0x8137d60
MEM mprintf.c:1078 realloc(0x8137d60, 64) = 0x8137d60
MEM mprintf.c:1078 realloc(0x8137d60, 128) = 0x8137d60
MEM mprintf.c:1078 realloc(0x8137d60, 256) = 0x8137d60
MEM http.c:185 malloc(328) = 0x8137e68
MEM http.c:162 free(0x8137d60)
MEM mprintf.c:1069 malloc(32) = 0x8137d60
MEM http.c:162 free(0x8137d60)
> PUT /upload/test.xfer HTTP/1.1
Authorization: Basic YWtpbzpha2lv
Host: koyao
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Content-Length: 23
MEM http.c:140 free(0x8137e68)
MEM http.c:141 free(0x8137778)
Segmentation fault (core dumped)
---------------------------------
gdb -c core
Core was generated by `perl ./curl-put2.pl'.
Program terminated with signal 11, Segmentation fault.
#0 0x401a16ed in ?? ()
Received on 2001-06-13