Re: www/netsurf crashes on loading pages

2019-07-30 Thread Anthony J. Bentley
On Tuesday, July 30, 2019, Solene Rapenne  wrote:

> 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
>

Given the set of sites affected, this could be an HTTP2 issue. If so, I
believe this bug has been fixed upstream.

I am currently traveling. Although NetSurf released a new version a few
days ago, I didn't have time to update the package before I left, and my
laptop went kaput so I won't work on it till next week at the earliest.


www/netsurf crashes on loading pages

2019-07-30 Thread Solene Rapenne
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  0x069c9d8706ee in _libc_abort () at /usr/src/lib/libc/stdlib/abort.c:51
#2  0x069c9d803a68 in _libc___assert2 (file=, 
line=, func=, failedexpr=) at 
/usr/src/lib/libc/gen/assert.c:52
#3  0x069a17edc159 in fetch_curl_initiate_fetch (fetch=0x69cd6b89800, 
handle=) at content/fetchers/curl.c:718
#4  fetch_curl_start (vfetch=0x69cd6b89800) at content/fetchers/curl.c:750
#5  0x069a17ed8e70 in fetch_dispatch_job (fetch=) 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  0x069a17ed935a in fetch_start (url=0x69cac002680, referer=0x0, 
callback=, p=, only_2xx=, 
post_urlenc=0x0, post_multipart=0x0, verifiable=,
downgrade_tls=, headers=0x69ce2d103c0, 
fetch_out=0x69c72fa5d58) at content/fetch.c:573
#9  0x069a17fb50c6 in llcache_object_refetch (object=0x69c72fa5d00) at 
content/llcache.c:916
#10 0x069a17fb3c73 in llcache_object_fetch (object=0x69c72fa5d00, 
flags=, referer=, post=, 
redirect_count=, hsts_in_use=false)
at content/llcache.c:979
#11 llcache_object_retrieve_from_cache (url=, flags=, referer=, post=, redirect_count=, result=,
hsts_in_use=) at content/llcache.c:1767
#12 llcache_object_retrieve (url=, flags=, 
referer=0x0, post=, redirect_count=1, hsts_in_use=, result=0x7f7b9370) at content/llcache.c:1865
#13 0x069a17fb608a in llcache_fetch_redirect (object=, 
target=, replacement=) at content/llcache.c:2110
#14 llcache_fetch_callback (msg=, p=0x69cbee84a00) at 
content/llcache.c:2810
#15 0x069a17edd7fe in fetch_curl_process_headers (f=0x69c90fb7e00) at 
content/fetchers/curl.c:930
#16 0x069a17edce83 in fetch_curl_data (
data=0x69c92306204 "\r\n301 Moved 
Permanently\r\n\r\n301 Moved 
Permanently\r\nnginx\r\n\r\n\r\n",
 size=1, nmemb=178, _f=0x69c90fb7e00) at content/fetchers/curl.c:1324
#17 0x069ce95b39b0 in Curl_client_write () from 
/usr/local/lib/libcurl.so.25.22
#18 0x069ce95c78bd in Curl_readwrite () from /usr/local/lib/libcurl.so.25.22
#19 0x069ce95d0cf0 in multi_runsingle () from 
/usr/local/lib/libcurl.so.25.22
#20 0x069ce95d00ac in curl_multi_perform () from 
/usr/local/lib/libcurl.so.25.22
#21 0x069a17edc4ef in fetch_curl_poll (scheme_ignored=) at 
content/fetchers/curl.c:1209
#22 0x069a17ed8b11 in fetch_fdset (read_fd_set=0x7f7bd180, 
write_fd_set=0x7f7bd090, except_fd_set=0x7f7bd010, 
maxfd_out=0x7f7bd208) at content/fetch.c:404
#23 0x069a17fec300 in nsgtk_main () at frontends/gtk/gui.c:404
#24 main (argc=, argv=0x7f7bd2a8) at frontends/gtk/gui.c:1206