Package: digitemp
Version: 3.5.0ds1-1
Severity: important
Tags: patch

Hello,

When running digitemp with a USB-adapter on a 64-bit machine, no devices
are found when walking the bus. Sometimes, very sporadic communication
is possible, but not reliably.


System setup to prevent ds2490.ko from being loaded and to allow access
to the adapter as a normal user:

$ cat /etc/modprobe.d/digitemp.conf
# Stop the Linux kernel module grabbing this device
blacklist ds2490

$ cat /etc/udev/rules.d/25-digitemp.rules
# udev rules file for digitemp
#
ACTION!="add", GOTO="digitemp_rules_end"
SUBSYSTEM=="usb_device", GOTO="digitemp_rules_real"
SUBSYSTEM=="usb", GOTO="digitemp_rules_real"
BUS!="usb", GOTO="digitemp_rules_end"

LABEL="digitemp_rules_real"

SYSFS{idVendor}=="04fa", SYSFS{idProduct}=="2490", MODE="0660",
GROUP="digitemp", OWNER="root"

LABEL="digitemp_rules_end"


Steps to reproduce error:

$ digitemp_DS2490 -w
DigiTemp v3.5.0 Copyright 1996-2007 by Brian C. Lane
GNU Public License v2.0 - http://www.digitemp.com
Found DS2490 device #1 at 001/016
Turning off all DS2409 Couplers
.
Devices on the Main LAN


Expected a list of devices connected to the bus at this point. If
executed under a 32-bit live-environment (same hardware), this works.

Applying the attached patch, which changes the compiler optimization on
amd64 machines to -O0 (from -O2) corrects this issue.

Best regards,
Olaf Mandel

-- System Information:
Debian Release: squeeze/sid
  APT prefers lucid-updates
  APT policy: (500, 'lucid-updates'), (500, 'lucid-security'), (500,
'lucid')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-22-generic (SMP w/2 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages digitemp depends on:
ii  libc6                  2.11.1-0ubuntu7.1 Embedded GNU C Library:
Shared lib
ii  libusb-0.1-4           2:0.1.12-14       userspace USB programming
library

digitemp recommends no packages.

Versions of packages digitemp suggests:
ii  mysql-server          5.1.41-3ubuntu12.3 MySQL database server
(metapackage
ii  mysql-server-5.1 [mys 5.1.41-3ubuntu12.3 MySQL database server binaries
ii  python                2.6.5-0ubuntu1     An interactive high-level
object-o
ii  rrdtool               1.3.8-1ubuntu1     Time-series data storage
and displ

-- no debconf information
-- 
http://www.quantummetrology.de/
Olaf Mandel
QUEST Institute of Experimental Quantum Metrology
PTB and Leibniz University of Hannover
Bundesallee 100
D-38116 Braunschweig, Germany
Phone: +49-531-592-4706
Fax: +49-531-592-694706
--- debian/rules
+++ debian/rules
@@ -19,7 +19,11 @@
 ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
     CFLAGS += -O0
 else
-    CFLAGS += -O2
+    ifneq (,$(filter amd64,$(DEB_HOST_ARCH_CPU)))
+        CFLAGS += -O0
+    else
+        CFLAGS += -O2
+    endif
 endif
 ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
 	INSTALL_PROGRAM += -s

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to