-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multi/single.tcl segfaults #30
Comments
This is using the unmodified version of the Is this with the current master branch, or the another released version of this repo? Does this package work for you otherwise in your development work? |
Yes.
Yes, but it segfauls with and without a server, it segfaults if I give it a remote url too
Yes.
No. This is the first time I tried the package - I discovered it segfaulting in my code first. My own example to make it segfault: package require TclCurl
set m [curl::multiinit]
set h [curl::init]
$h configure -url https://api.ipify.org?format=json
$m addhandle $h
# $m methods work fine until you call $m perform
puts "active: [$m getinfo]"
while {1} {
set r [$m perform]
if {$r<=0} {
break
}
}
# the $h methods don't segfault
puts "code: [$h getinfo httpcode]"
# $m active doesn't segfault
puts "active: [$m active]"
# This will segfault
puts [$m getinfo]
# So will seemingly any other method of $m, like
$m removehandle $h
Also I poked around with the C code a bit - I made it print the output of |
We do have another ticket #12 that points out other issues with this test file, which might actually be the same underlying issue. |
I did build tclcurl-fa with
--enable-symbols
so not sure where that??
could be coming from. I get this error on archlinux, both with tclcurl built locally and with kitcreator's tclkits.The text was updated successfully, but these errors were encountered: