[Bug 1718687] Re: crash on amd64
Ubuntu 17.10 (Artful Aardvark) has reached end of life, so this bug will not be fixed for that specific release. ** Changed in: discover (Ubuntu Artful) Status: New => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1718687 Title: crash on amd64 To manage notifications about this bug go to: https://bugs.launchpad.net/discover/+bug/1718687/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1718687] Re: crash on amd64
** Changed in: discover (Debian) Status: New => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1718687 Title: crash on amd64 To manage notifications about this bug go to: https://bugs.launchpad.net/discover/+bug/1718687/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1718687] Re: crash on amd64
Unsubscribing ~ubuntu-sponsors as there's nothing left to sponsor. If someone would like this in Artful, please fill out the SRU bug template as described here: https://wiki.ubuntu.com/StableReleaseUpdates Thank you! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1718687 Title: crash on amd64 To manage notifications about this bug go to: https://bugs.launchpad.net/discover/+bug/1718687/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1718687] Re: crash on amd64
This bug was fixed in the package discover - 2.1.2-7.1ubuntu1 --- discover (2.1.2-7.1ubuntu1) bionic; urgency=high * Apply patch from Anatoly Borodin fixing segmentation faults (LP: #1718687) -- Simon Quigley Sun, 05 Nov 2017 10:12:35 -0600 ** Changed in: discover (Ubuntu Bionic) Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1718687 Title: crash on amd64 To manage notifications about this bug go to: https://bugs.launchpad.net/discover/+bug/1718687/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1718687] Re: crash on amd64
** Also affects: discover (Ubuntu Bionic) Importance: Undecided Status: Confirmed ** Also affects: discover (Ubuntu Artful) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1718687 Title: crash on amd64 To manage notifications about this bug go to: https://bugs.launchpad.net/discover/+bug/1718687/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1718687] Re: crash on amd64
** Changed in: discover (Debian) Status: Unknown => New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1718687 Title: crash on amd64 To manage notifications about this bug go to: https://bugs.launchpad.net/discover/+bug/1718687/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1718687] Re: crash on amd64
Thanks for reporting. I can confirm the segfault on Ubuntu artful. I've subscribed the ubuntu- sponsors team which review patches. ** Bug watch added: Debian Bug tracker #876388 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876388 ** Also affects: discover (Debian) via https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876388 Importance: Unknown Status: Unknown ** Tags added: artful patch ** Changed in: discover (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1718687 Title: crash on amd64 To manage notifications about this bug go to: https://bugs.launchpad.net/discover/+bug/1718687/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1718687] Re: crash on amd64
Here is the fix of the problem: Use the right type for `len`, avoid segmentation fault `getline()` requires its second parameter to be `size_t *`. On the amd64 platform the size of `unsigned int` is 4 and the size of `size_t` is 8 bytes. Using a wrong pointer type can lead to a stack variables corruption (overwriting with zeros) and a segmentation fault later. See also similar `len` declarations in `_discover_get_pci_raw_sys()` in the docs and `_discover_get_ata_raw()` / `discover_get_pci_raw_proc()` / `discover_get_usb_raw()` in the source code. ** Patch added: "0001-Use-the-right-type-for-len-avoid-segmentation-fault.diff" https://bugs.launchpad.net/discover/+bug/1718687/+attachment/4954403/+files/0001-Use-the-right-type-for-len-avoid-segmentation-fault.diff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1718687 Title: crash on amd64 To manage notifications about this bug go to: https://bugs.launchpad.net/discover/+bug/1718687/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs