#361 snprintf(.. "%lf"...) format interpretation change causes runtests failure

2.6
open-fixed
Chris Radek
None
5
2014-02-17
2014-02-17
Michael Haberler
No

observed on unified-build-candidate-3 running on
('Linux', 'wheezy', '3.2.0-4-rt-686-pae', '#1 SMP PREEMPT RT Debian 3.2.51-1', 'i686')

Running test: /home/mah/linuxcnc-ubc3/tests/interp/g10/g10-with-g92
--- /home/mah/linuxcnc-ubc3/tests/interp/g10/g10-with-g92/expected 2014-01-25 14:40:17.823745465 +0100
+++ /home/mah/linuxcnc-ubc3/tests/interp/g10/g10-with-g92/result 2014-02-17 08:29:48.758404624 +0100
@@ -82,7 +82,7 @@
N..... SET_G92_OFFSET(-0.1000, -0.2000, -10.3000, 0.0000, 0.0000, 0.0000)
N..... SET_XY_ROTATION(10.0000)
N..... SET_G92_OFFSET(0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
- N..... MESSAGE(" X0.000000 Y0.000000 Z-10.000000")
+ N..... MESSAGE(" X-0.000000 Y0.000000 Z-10.000000")
N..... SET_G5X_OFFSET(2, 4.0000, 5.0000, 6.0000, 0.0000, 0.0000, 0.0000)
N..... SET_G92_OFFSET(0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
N..... SET_XY_ROTATION(20.0000)
*** /home/mah/linuxcnc-ubc3/tests/interp/g10/g10-with-g92: FAIL: result differed from expected

this comes from: http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=blob;f=src/emc/rs274ngc/interp_convert.cc;h=43193340d656edf6bc248286b25afc9778042ace;hb=aa05c938aedbcf4d0b4f7dffcb3962d8ed6b1111#l1294

I guess there was a subtle change in printf formatting, libc version is:

ah@wheezy:~/linuxcnc-ubc3/src$ /lib/i386-linux-gnu/libc-2.17.so
GNU C Library (Debian EGLIBC 2.17-97) stable release version 2.17, by Roland McGrath et al.
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.7.3.
Compiled on a Linux 3.11.8 system on 2013-11-29.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
libc ABIs: UNIQUE IFUNC
For bug reporting instructions, please see:
http://www.debian.org/Bugs/.

not sure how to fix this one.

Discussion

    • status: open --> open-fixed
    • assigned_to: Chris Radek