dpkg coredumps if FIGETBSZ ioctl return -ENOTTY
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
---
root@localhost:~# strace dpkg -S libc.so.6
...
open("/
ioctl(3, FIGETBSZ, 0xbfe0463c) = -1 ENOTTY (Inappropriate ioctl for device)
open("/
fstat64(4, {st_mode=
mmap2(NULL, 4096, PROT_READ|
read(4, "MemTotal: 262144 kB\nMemF"..., 1024) = 532
close(4) = 0
munmap(0xb77fb000, 4096) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Segmentation fault
---
This may happens on some virtual filesystems because
---
if (!blocksize && ioctl(fd, FIGETBSZ, &blocksize) < 0)
break;
---
code in src/filesdb.c leave only first pkg->clientdata defined. Seems like continue; should be there.
Please fix.
Changed in dpkg (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
The attachment "fix-block- size-ioctl- error-handing. patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-sponsors please also unsubscribe the team from this bug report.
[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]