Your message dated Fri, 12 Jun 2015 11:23:18 +0000 with message-id <[email protected]> and subject line Bug#788517: fixed in avrdude 6.1-4 has caused the Debian Bug report #788517, regarding Floating point exception on 0 eeprom size to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 788517: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=788517 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: avrdude Version: 6.1-2 Severity: important Tags: patch Avrdude is crashing on a zero eeprom size: avrdude -pm128rfa1 -c arduino -P/dev/ttyUSB5 -b57600 -e -U \ flash:w:foo.hex:a -U \ eeprom:w:foo.eep:a avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.00s avrdude: Device signature = 0x1ea701 avrdude: erasing chip avrdude: reading input file "foo.hex" avrdude: input file foo.hex auto detected as Intel Hex avrdude: writing flash (60774 bytes): Writing | ################################################## | 100% 14.50s avrdude: 60774 bytes of flash written avrdude: verifying flash memory against foo.hex: avrdude: load data flash data from input file foo.hex: avrdude: input file foo.hex auto detected as Intel Hex avrdude: input file foo.hex contains 60774 bytes avrdude: reading on-chip flash data: Reading | ################################################## | 100% 11.19s avrdude: verifying ... avrdude: 60774 bytes of flash verified avrdude: reading input file "foo.eep" avrdude: input file foo.eep auto detected as Intel Hex avrdude: writing eeprom (0 bytes): Writing | ################################################## | 100% 0.00s avrdude: 0 bytes of eeprom written avrdude: verifying eeprom memory against foo.eep: avrdude: load data eeprom data from input file foo.eep: avrdude: input file foo.eep auto detected as Intel Hex avrdude: input file foo.eep contains 0 bytes avrdude: reading on-chip eeprom data: Reading | | 0% 0.00sMakefile:88: recipe for target 'flash' failed make: *** [flash] Floating point exception (core dumped) This is fixed by upstream revision 1340. Tested patch attached. Cheers, -- Guido -- System Information: Debian Release: 8.0 APT prefers stable APT policy: (990, 'stable'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.16.0-rc6 (SMP w/4 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages avrdude depends on: ii libc6 2.19-18 ii libelf1 0.159-4.2 ii libftdi1 0.20-2 ii libncurses5 5.9+20140913-1+b1 ii libreadline6 6.3-8+b3 ii libtinfo5 5.9+20140913-1+b1 ii libusb-0.1-4 2:0.1.12-25 avrdude recommends no packages. Versions of packages avrdude suggests: pn avrdude-doc <none> -- no debconf information>From 921d13272d55f8bc1baaf9f86b9fc2b6ee960ca9 Mon Sep 17 00:00:00 2001 Message-Id: <921d13272d55f8bc1baaf9f86b9fc2b6ee960ca9.1434100250.git....@sigxcpu.org> From: =?UTF-8?q?Guido=20G=C3=BCnther?= <[email protected]> Date: Fri, 12 Jun 2015 10:51:02 +0200 Subject: [PATCH] Avoid division by zero on empty size --- .../Avoid-division-by-zero-on-empty-size.patch | 25 ++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 26 insertions(+) create mode 100644 debian/patches/Avoid-division-by-zero-on-empty-size.patch diff --git a/debian/patches/Avoid-division-by-zero-on-empty-size.patch b/debian/patches/Avoid-division-by-zero-on-empty-size.patch new file mode 100644 index 0000000..62e7992 --- /dev/null +++ b/debian/patches/Avoid-division-by-zero-on-empty-size.patch @@ -0,0 +1,25 @@ +From: =?utf-8?q?Guido_G=C3=BCnther?= <[email protected]> +Date: Fri, 12 Jun 2015 10:49:52 +0200 +Subject: Avoid division by zero on empty size + +Basically a cherry-pick of revision 1340 in SVN fixing a +floating point exception. + +Bug: http://savannah.nongnu.org/bugs/?40142 +--- + avr.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/avr.c b/avr.c +index 3b4c872..a04b2da 100644 +--- a/avr.c ++++ b/avr.c +@@ -1238,7 +1238,7 @@ void report_progress (int completed, int total, char *hdr) + { + static int last = 0; + static double start_time; +- int percent = (completed * 100) / total; ++ int percent = (total > 0) ? ((completed * 100) / total) : 100; + struct timeval tv; + double t; + diff --git a/debian/patches/series b/debian/patches/series index 999888d..b742fde 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ 0001-Fix-paths-in-the-man-page.patch 0002-FT245R-correct-reset-ftdi_syncbb.patch 0003-Fix-Linux-GPIO-pindefs-typo.patch +Avoid-division-by-zero-on-empty-size.patch -- 2.1.4
--- End Message ---
--- Begin Message ---Source: avrdude Source-Version: 6.1-4 We believe that the bug you reported is fixed in the latest version of avrdude, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Michael Biebl <[email protected]> (supplier of updated avrdude package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Fri, 12 Jun 2015 12:49:43 +0200 Source: avrdude Binary: avrdude avrdude-doc Architecture: source all amd64 Version: 6.1-4 Distribution: unstable Urgency: medium Maintainer: Michael Biebl <[email protected]> Changed-By: Michael Biebl <[email protected]> Description: avrdude - software for programming Atmel AVR microcontrollers avrdude-doc - documentation for avrdude Closes: 788517 Changes: avrdude (6.1-4) unstable; urgency=medium . [ Michael Biebl ] * Update watch file to also track .bz2 and .xz tarballs. * Add cryptographic signature verification for upstream tarball. * Make no-patch-numbers the default for gbp. . [ Guido Günther ] * Avoid division by zero on empty size. Patch cherry-picked from upstream. (Closes: #788517) Checksums-Sha1: 13ab5225092e7febd169b9db4d5d218511d8ef20 2019 avrdude_6.1-4.dsc 6226c0329d2aefff1a68543ed28fa9a2e40ac93b 8144 avrdude_6.1-4.debian.tar.xz 89a94eb9b581a9d9c2d2e43dbde59e60269e4a53 579546 avrdude-doc_6.1-4_all.deb c58a2c5559b8d96050e4e98b1ed744d07ac60475 270604 avrdude_6.1-4_amd64.deb Checksums-Sha256: 539e3742fff17c0c0dc2f10699be2609036503cf1e5c833dd909e41a6b7b0e8a 2019 avrdude_6.1-4.dsc d05ff759f65f7de0e3e0e5bc47e60074a722b43741740ec47b4463c1e1f26642 8144 avrdude_6.1-4.debian.tar.xz 34380975699f33117d74df9054a8e287280ec04ff08a629f7122d5df21d228eb 579546 avrdude-doc_6.1-4_all.deb d15dd552474666d0cd564356f149d3af912c6a71f0642913138f727fba46fa9d 270604 avrdude_6.1-4_amd64.deb Files: 270ce140d5f4d3f394d2c848ceb775de 2019 electronics extra avrdude_6.1-4.dsc bd7bf70f8f5d47a086463d7136766002 8144 electronics extra avrdude_6.1-4.debian.tar.xz 249f1659a80297c50cb593f265c40cef 579546 doc extra avrdude-doc_6.1-4_all.deb 28af7eb02be91241afbbff2455f13cbe 270604 electronics extra avrdude_6.1-4_amd64.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJVeroNAAoJEGrh3w1gjyLc2TMQAIyjBwmjUfZQvqABiICnFrgH LbM87axnW4G+6eIhKPq/FNh1vlhowN8hMmhPuvZM3pAi4YvBYw6tb3FwkN6UAf3w OkMo2vunPpRdWcYIHX7oN7tzvY2YB/HojfdLTipWPzB3wqTE9HXnjdkEhLfLzj33 F4mpc7p9lNIvhUCGxId6ZwQpcqgZzyHwCHuDezvqsV16aiXiwRmMx5dJiCBzCMYN s8A5djO6+sNGLlnS3/JjrRcA3QVxXzvCQ/pFlJeK9pSTJMfEuMgQNz7IK3qNSOyz 9xD/0Pa7+vL/kjr/YTq20MpKch0W3EuD5Z0anjPmzTnVsJC55TqjwN6jknJ9sl5I uOVGkTLItnMO+CQKTyayWl759GefGiJmEC7B8Junj2/T9ZwqB5aT2P5D9YwEoHuL J9rCDJhLxpVp0Na1SY/O/AlapTsJCuxB0MnYzWvAQEzGj2XHesEfTNsfv/rWUOtH iv3xWEDfzu2jr3KhaHgsJeZ+0FSOO2etP6Yd2xaTS5G6CNaEBfFByWCP0jly/AEr naWXumLM3IHprBcIbcW98HLBD/sDjtdpB5Q8F1sJstHCjzap04fVa7zFF1/V+cxX zsPrBjgvyi6EtJc3Mmg2pmQLTERSExod0iCuTjAOUAxoJepG1QhbPbb6JkHoYAPN UU4h73PNP46jir4wnHRE =I0UX -----END PGP SIGNATURE-----
--- End Message ---

