[Bug 204771] fetch(3): Segmentation fault in fetchReqHTTP

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Nov 23 20:17:58 UTC 2015


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 at FreeBSD.org
          Reporter: antoine at 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.


More information about the freebsd-bugs mailing list