On latest -current netsurf crashes on loading

## Description

when loading some sites (I did not try extensively), netsurf crashes and
report an error about a curl call.

Crash with https://duckduckgo.com or https://google.com or
https://bsd.network

Doesn't crash on https://perso.pw

## How to reproduce:

$ netsurf-gtk https://bsd.network


## Trace:

(gdb) run
Starting program: /usr/local/bin/netsurf-gtk
assertion "codem == CURLM_OK || codem == CURLM_CALL_MULTI_PERFORM" failed: file 
"content/fetchers/curl.c", line 718, function "fetch_curl_initiate_fetch"
[New thread 578660]
[New thread 135033]

Thread 1 received signal SIGABRT, Aborted.
thrkill () at -:3
3       -: No such file or directory.
(gdb) bt
#0  thrkill () at -:3
#1  0x0000069c9d8706ee in _libc_abort () at /usr/src/lib/libc/stdlib/abort.c:51
#2  0x0000069c9d803a68 in _libc___assert2 (file=<optimized out>, 
line=<optimized out>, func=<optimized out>, failedexpr=<optimized out>) at 
/usr/src/lib/libc/gen/assert.c:52
#3  0x0000069a17edc159 in fetch_curl_initiate_fetch (fetch=0x69cd6b89800, 
handle=<optimized out>) at content/fetchers/curl.c:718
#4  fetch_curl_start (vfetch=0x69cd6b89800) at content/fetchers/curl.c:750
#5  0x0000069a17ed8e70 in fetch_dispatch_job (fetch=<optimized out>) at 
content/fetch.c:156
#6  fetch_choose_and_dispatch () at content/fetch.c:187
#7  fetch_dispatch_jobs () at content/fetch.c:247
#8  0x0000069a17ed935a in fetch_start (url=0x69cac002680, referer=0x0, 
callback=<optimized out>, p=<optimized out>, only_2xx=<optimized out>, 
post_urlenc=0x0, post_multipart=0x0, verifiable=<optimized out>,
    downgrade_tls=<optimized out>, headers=0x69ce2d103c0, 
fetch_out=0x69c72fa5d58) at content/fetch.c:573
#9  0x0000069a17fb50c6 in llcache_object_refetch (object=0x69c72fa5d00) at 
content/llcache.c:916
#10 0x0000069a17fb3c73 in llcache_object_fetch (object=0x69c72fa5d00, 
flags=<optimized out>, referer=<optimized out>, post=<optimized out>, 
redirect_count=<optimized out>, hsts_in_use=false)
    at content/llcache.c:979
#11 llcache_object_retrieve_from_cache (url=<optimized out>, flags=<optimized 
out>, referer=<optimized out>, post=<optimized out>, redirect_count=<optimized 
out>, result=<optimized out>,
    hsts_in_use=<optimized out>) at content/llcache.c:1767
#12 llcache_object_retrieve (url=<optimized out>, flags=<optimized out>, 
referer=0x0, post=<optimized out>, redirect_count=1, hsts_in_use=<optimized 
out>, result=0x7f7ffffb9370) at content/llcache.c:1865
#13 0x0000069a17fb608a in llcache_fetch_redirect (object=<optimized out>, 
target=<optimized out>, replacement=<optimized out>) at content/llcache.c:2110
#14 llcache_fetch_callback (msg=<optimized out>, p=0x69cbee84a00) at 
content/llcache.c:2810
#15 0x0000069a17edd7fe in fetch_curl_process_headers (f=0x69c90fb7e00) at 
content/fetchers/curl.c:930
#16 0x0000069a17edce83 in fetch_curl_data (
    data=0x69c92306204 "<html>\r\n<head><title>301 Moved 
Permanently</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>301 Moved 
Permanently</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n",
 size=1, nmemb=178, _f=0x69c90fb7e00) at content/fetchers/curl.c:1324
#17 0x0000069ce95b39b0 in Curl_client_write () from 
/usr/local/lib/libcurl.so.25.22
#18 0x0000069ce95c78bd in Curl_readwrite () from /usr/local/lib/libcurl.so.25.22
#19 0x0000069ce95d0cf0 in multi_runsingle () from 
/usr/local/lib/libcurl.so.25.22
#20 0x0000069ce95d00ac in curl_multi_perform () from 
/usr/local/lib/libcurl.so.25.22
#21 0x0000069a17edc4ef in fetch_curl_poll (scheme_ignored=<optimized out>) at 
content/fetchers/curl.c:1209
#22 0x0000069a17ed8b11 in fetch_fdset (read_fd_set=0x7f7ffffbd180, 
write_fd_set=0x7f7ffffbd090, except_fd_set=0x7f7ffffbd010, 
maxfd_out=0x7f7ffffbd208) at content/fetch.c:404
#23 0x0000069a17fec300 in nsgtk_main () at frontends/gtk/gui.c:404
#24 main (argc=<optimized out>, argv=0x7f7ffffbd2a8) at frontends/gtk/gui.c:1206

Reply via email to