| Summary: | Wget segfault while trying to continue a download and partial file get truncated | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Raphael Gertz <mageia> |
| Component: | RPM Packages | Assignee: | All Packagers <pkg-bugs> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | critical | ||
| Priority: | Normal | CC: | fundawang, luigiwalser, marja11, matteo.pasotti, pterjan, security, thierry.vignaud, zen25000 |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | wget-1.18-2.mga6.src.rpm | CVE: | |
| Status comment: | |||
| Attachments: | History of package install | ||
|
Description
Raphael Gertz
2016-10-08 13:01:52 CEST
This seems related to recent glibc update, it was working before. (but I don't know where to find old version so I can't revert to try) Barjac (on irc) made me try a rebuilded version, segfaulted too : Program received signal SIGSEGV, Segmentation fault. 0x00007ffff6ad872a in __GI__IO_fwrite (buf=0x67d670, size=1, count=1055, fp=0x677d90) at iofwrite.c:41 41 _IO_acquire_lock (fp); (gdb) bt #0 0x00007ffff6ad872a in __GI__IO_fwrite (buf=0x67d670, size=1, count=1055, fp=0x677d90) at iofwrite.c:41 #1 0x0000000000429c86 in fd_read_body () #2 0x000000000041a4f0 in read_response_body () #3 0x000000000041fd27 in gethttp () #4 0x000000000042026d in http_loop () #5 0x000000000042a74a in retrieve_url () #6 0x0000000000406f92 in main () Created attachment 8508 [details]
History of package install
[13:52] <barjac-pi2> rapsys core dumps with glibc-2.22.20 on system last updated on Sept 18th [13:53] <barjac-pi2> rapsys, So I guess it's not so recent an issue :( Confirmed this bug in two cauldron x86_64 systems. Resuming is working correctly in Mageia 5 with: wget-1.15-5.mga5 glibc-2.20-23.mga5 CC:
(none) =>
zen25000 It was the last security patch from opensuse that broke it: revision 1020975: rediff patch from opensuse to fix CVE-2016-7098 Building and installing the previous svn revision without the patch fixes this bug. Adding Luigi in cc. CC:
(none) =>
luigiwalser (In reply to Barry Jackson from comment #6) > It was the last security patch from opensuse that broke it: > > revision 1020975: rediff patch from opensuse to fix CVE-2016-7098 > > Building and installing the previous svn revision without the patch fixes > this bug. > So we'll still a better patch for CVE-2016-7098 ( http://lwn.net/Vulnerabilities/700395/ ) ..or can is it OK to drop it? Assigning to all packagers collectively, since there is no registered maintainer for this package. CC:
(none) =>
fundawang, marja11, matteo.pasotti, pterjan, security, thierry.vignaud s/still/need/ and s/can// ... I'll go have coffee :-( Patch looks obviously wrong (replacing *fp = fopen with fp = fopen), trying to fix it - *fp = fopen (hs->local_file, "ab"); + if (hs->temporary) + fp = fdopen (open (hs->local_file, O_BINARY | O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR | S_IWUSR), "wb"); + else + fp = fopen (hs->local_file, "wb"); Fixed in wget-1.18-3.mga6 Closing Status:
NEW =>
RESOLVED |