BUG with array of PostField

36 views
Skip to first unread message

Florian

unread,
Mar 3, 2009, 7:53:42 PM3/3/09
to Curb - Ruby libcurl Bindings
Hi,
i have a bunch of key-values that I put into an array
(e.g. tmp << Curl::PostField.content(i[0],i[1]) ) upon printing or
submitting the array (e.g. conn.http_post(tmp) or p tmp),
i get a SEGFAULT (/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/core_ext/array/conversions.rb:71: [BUG] Segmentation
fault)

Does anyone know what the cause for this is?

Thanks,
Florian

taf2

unread,
Mar 13, 2009, 7:44:55 AM3/13/09
to Curb - Ruby libcurl Bindings
Hi Florian,

Can you post a sample program that reproduces the crash.

Thanks,
Todd

taf2

unread,
Mar 17, 2009, 11:09:13 AM3/17/09
to Curb - Ruby libcurl Bindings
Are you using an integer value in the array? I have made a recent fix
in my github branch to fix this. It should now correctly convert the
integer or any value that responds_to to_s correctly. Otherwise, it
will raise a runtime exception.

Hope this fixes your issue,
Todd

On Mar 3, 8:53 pm, Florian <floleib...@gmail.com> wrote:

Florian

unread,
Apr 1, 2009, 3:25:20 PM4/1/09
to Curb - Ruby libcurl Bindings
Yeah, that was the problem :)
Thanks for the fix!
Reply all
Reply to author
Forward
0 new messages