Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Nov 2015 20:17:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 204771] fetch(3): Segmentation fault in fetchReqHTTP
Message-ID:  <bug-204771-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204771

            Bug ID: 204771
           Summary: fetch(3): Segmentation fault in fetchReqHTTP
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: antoine@FreeBSD.org

I have a segmenation fault in fetchReqHTTP for some websites:

% fetch http://klubok.com/
fetch: http://klubok.com/: size of remote file is not known
fetch.out                                                0  B    0 
BpsSegmentation fault (core dumped)

The backtrace:
(gdb) bt
#0  0x0000000800b88565 in memcpy () from /lib/libc.so.7
#1  0x000000080082dcdc in fetchReqHTTP () from /usr/lib/libfetch.so.6
#2  0x0000000800b8a080 in getdtablesize () from /lib/libc.so.7
#3  0x0000000800b72566 in __srget () from /lib/libc.so.7
#4  0x0000000800b6ec09 in fread () from /lib/libc.so.7
#5  0x0000000800b6eb11 in fread () from /lib/libc.so.7

curl has the following warning with the same website:
curl: (18) transfer closed with outstanding read data remaining

bapt@ provided this workaround:  https://people.freebsd.org/~bapt/fetch.diff

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-204771-8>