Skip to content
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

segmentation fault if host unknown #3

Open
GoogleCodeExporter opened this issue Sep 7, 2015 · 0 comments
Open

segmentation fault if host unknown #3

GoogleCodeExporter opened this issue Sep 7, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

When specifying an unknown host, a segmentation fault occurs:
mysql> select http_get('http://example.invalid/');
ERROR 2013 (HY000): Lost connection to MySQL server during query
mysql> 

The mysql error log says "mysqld got signal 11 ;"


After some debugging I found that in that case result->res ist still NULL after 
curl_easy_perform. The error is caused by 
strcopy(res->result, "")


The attached mysql-udf-http.c resolves the issue.

Original issue reported on code.google.com by mindw...@web.de on 22 Aug 2013 at 3:00

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant