Debian Bug report logs - #851764
src:hhsuite: type mismatch in printf(3); affects manpage

version graph

Package: hhsuite; Maintainer for hhsuite is Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>; Source for hhsuite is src:hhsuite (PTS, buildd, popcon).

Reported by: Daniel Shahaf <danielsh@apache.org>

Date: Wed, 18 Jan 2017 15:30:01 UTC

Severity: minor

Tags: patch, upstream

Found in version hhsuite/3.0~beta2+dfsg-1

Fixed in version hhsuite/3.0~beta2+dfsg-3

Done: Andreas Tille <tille@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, danielsh@apache.org, reproducible-bugs@lists.alioth.debian.org, Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>:
Bug#851764; Package hhsuite. (Wed, 18 Jan 2017 15:30:04 GMT) (full text, mbox, link).


Acknowledgement sent to Daniel Shahaf <danielsh@apache.org>:
New Bug report received and forwarded. Copy sent to danielsh@apache.org, reproducible-bugs@lists.alioth.debian.org, Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>. (Wed, 18 Jan 2017 15:30:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Daniel Shahaf <danielsh@apache.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: src:hhsuite: type mismatch in printf(3); affects manpage
Date: Wed, 18 Jan 2017 15:22:26 +0000
Package: hhsuite
Version: 3.0~beta2+dfsg-1
Severity: minor
Tags: upstream patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: randomness

Dear Maintainer,

hhblits.cpp uses the %i printf(3) conversion to format a 'double' value:

src/hhblits.cpp:333:    printf(" -pre_evalue_thresh        max E-value threshold of Smith-Waterman prefilter score (default=%i)\n", par.prefilter_evalue_thresh);

Formally that's undefined behaviour, although in practice it simply
prints a garbage value.  That garbage value is also embedded into the
hhblits_omp(1) man page. 

Furthermore, hhsuite-userguide.tex specifies the default value as '0'
whereas the code uses '1000'.

The attached patch should fix both issues.

Cheers,

Daniel

P.S. ViterbiRunner::calculateEarlyStop() puts the return value of log(3)
into a 'float' variable, even though that function returns double.  I'm
not sure whether that's intentional or what effect it may have.



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>:
Bug#851764; Package hhsuite. (Wed, 18 Jan 2017 15:33:06 GMT) (full text, mbox, link).


Acknowledgement sent to Daniel Shahaf <danielsh@apache.org>:
Extra info received and forwarded to list. Copy sent to Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>. (Wed, 18 Jan 2017 15:33:06 GMT) (full text, mbox, link).


Message #10 received at 851764@bugs.debian.org (full text, mbox, reply):

From: Daniel Shahaf <danielsh@apache.org>
To: Debian Bug Tracking System <851764@bugs.debian.org>
Subject: Re: Bug#851764: src:hhsuite: type mismatch in printf(3); affects manpage
Date: Wed, 18 Jan 2017 15:27:48 +0000
Daniel Shahaf wrote on Wed, Jan 18, 2017 at 15:22:26 +0000:
> The attached patch should fix both issues.

--- a/doc/hhsuite-userguide.tex
+++ b/doc/hhsuite-userguide.tex
@@ -1466,7 +1466,7 @@
  -maxfilt                  max number of hits allowed to pass 2nd prefilter (default=20000)   
  -min_prefilter_hits       min number of hits to pass prefilter (default=100)               
  -prepre_smax_thresh       min score threshold of ungapped prefilter (default=10)               
- -pre_evalue_thresh        max E-value threshold of Smith-Waterman prefilter score (default=0)
+ -pre_evalue_thresh        max E-value threshold of Smith-Waterman prefilter score (default=1000.0)
  -pre_bitfactor            prefilter scores are in units of 1 bit / pre_bitfactor (default=4)
  -pre_gap_open             gap open penalty in prefilter Smith-Waterman alignment (default=20)
  -pre_gap_extend           gap extend penalty in prefilter Smith-Waterman alignment (default=4)
--- a/src/hhblits.cpp
+++ b/src/hhblits.cpp
@@ -330,7 +330,7 @@
     printf(" -maxfilt                  max number of hits allowed to pass 2nd prefilter (default=%i)   \n", par.maxnumdb);
     printf(" -min_prefilter_hits       min number of hits to pass prefilter (default=%i)               \n", par.min_prefilter_hits);
     printf(" -prepre_smax_thresh       min score threshold of ungapped prefilter (default=%i)               \n", par.preprefilter_smax_thresh);
-    printf(" -pre_evalue_thresh        max E-value threshold of Smith-Waterman prefilter score (default=%i)\n", par.prefilter_evalue_thresh);
+    printf(" -pre_evalue_thresh        max E-value threshold of Smith-Waterman prefilter score (default=%.1f)\n", par.prefilter_evalue_thresh);
     printf(" -pre_bitfactor            prefilter scores are in units of 1 bit / pre_bitfactor (default=%i)\n", par.prefilter_bit_factor);
     printf(" -pre_gap_open             gap open penalty in prefilter Smith-Waterman alignment (default=%i)\n", par.prefilter_gap_open);
     printf(" -pre_gap_extend           gap extend penalty in prefilter Smith-Waterman alignment (default=%i)\n", par.prefilter_gap_extend);



Reply sent to Andreas Tille <tille@debian.org>:
You have taken responsibility. (Wed, 18 Jan 2017 16:21:10 GMT) (full text, mbox, link).


Notification sent to Daniel Shahaf <danielsh@apache.org>:
Bug acknowledged by developer. (Wed, 18 Jan 2017 16:21:10 GMT) (full text, mbox, link).


Message #15 received at 851764-close@bugs.debian.org (full text, mbox, reply):

From: Andreas Tille <tille@debian.org>
To: 851764-close@bugs.debian.org
Subject: Bug#851764: fixed in hhsuite 3.0~beta2+dfsg-3
Date: Wed, 18 Jan 2017 16:18:36 +0000
Source: hhsuite
Source-Version: 3.0~beta2+dfsg-3

We believe that the bug you reported is fixed in the latest version of
hhsuite, 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 851764@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Tille <tille@debian.org> (supplier of updated hhsuite 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 ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 18 Jan 2017 16:52:21 +0100
Source: hhsuite
Binary: hhsuite hhsuite-doc hhsuite-data
Architecture: source all amd64
Version: 3.0~beta2+dfsg-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
Changed-By: Andreas Tille <tille@debian.org>
Description:
 hhsuite    - sensitive protein sequence searching based on HMM-HMM alignment
 hhsuite-data - sensitive protein sequence searching based on HMM-HMM alignment (
 hhsuite-doc - documentation for HHsuite for HMM-HMM comparisons
Closes: 851764
Changes:
 hhsuite (3.0~beta2+dfsg-3) unstable; urgency=medium
 .
   * Specify correct format in printf statement (Thanks for the patch to
     Daniel Shahaf <danielsh@apache.org>)
     Closes: #851764
Checksums-Sha1:
 b75ac23389da450eac4d40fa73b8cecf04fe8b8f 2282 hhsuite_3.0~beta2+dfsg-3.dsc
 00d096466d1b2d45d3469de169b9c9cbc1467005 14552 hhsuite_3.0~beta2+dfsg-3.debian.tar.xz
 4cc0f531228964c74d47ad7d256ece48e5f39229 2164028 hhsuite-data_3.0~beta2+dfsg-3_all.deb
 6f4f26340d699e7ae0c0a416b8f335910013c591 22163222 hhsuite-dbgsym_3.0~beta2+dfsg-3_amd64.deb
 038eecb8456a08dea9061151446907e4e4b54862 349082 hhsuite-doc_3.0~beta2+dfsg-3_all.deb
 f6b5f8944cbcdd134bcbf6050c574e09ca5a6d41 8635 hhsuite_3.0~beta2+dfsg-3_amd64.buildinfo
 1585c3119c79b01649e22f736993d41f4b96ded0 1004592 hhsuite_3.0~beta2+dfsg-3_amd64.deb
Checksums-Sha256:
 456fa64c3b2b01c4da028a63584d08ce49096bd1c0d81850a19457564d48fa83 2282 hhsuite_3.0~beta2+dfsg-3.dsc
 224c8e03a76364647ab35694cc42f0ef0c09e40fc4db55bda25129af0a597318 14552 hhsuite_3.0~beta2+dfsg-3.debian.tar.xz
 2e33056d02c4028f1ab947e4c450999d2e99002a26e058927bc36e2b22f55a1c 2164028 hhsuite-data_3.0~beta2+dfsg-3_all.deb
 780e08e43a4c4e9f8e65de6133ef013bc6eaffa4fe7b442731417f555131f8f7 22163222 hhsuite-dbgsym_3.0~beta2+dfsg-3_amd64.deb
 dccff9ba255f9548303811bedbd341cf3a045b2b15e9c79a4626f8204c5bf047 349082 hhsuite-doc_3.0~beta2+dfsg-3_all.deb
 892956723c42cc9e7cb4f5f95379fed94215b4ace1ef76e785e1fd01d76bd33a 8635 hhsuite_3.0~beta2+dfsg-3_amd64.buildinfo
 487f861232b9d87ca82eed43ae161ebad4ef01e3604dcd1db777fae5c623a571 1004592 hhsuite_3.0~beta2+dfsg-3_amd64.deb
Files:
 dde7c43cd6a64e7849ed7a4c85d02785 2282 science optional hhsuite_3.0~beta2+dfsg-3.dsc
 ea3a333ce35e1b37ebb0f36a2110597a 14552 science optional hhsuite_3.0~beta2+dfsg-3.debian.tar.xz
 42ae2e7c8511ae86f8faf170ea512457 2164028 science optional hhsuite-data_3.0~beta2+dfsg-3_all.deb
 b97a3f511328a138570001eccb5e2f39 22163222 debug extra hhsuite-dbgsym_3.0~beta2+dfsg-3_amd64.deb
 044347eb944abe84d755872f10cecf17 349082 doc optional hhsuite-doc_3.0~beta2+dfsg-3_all.deb
 dfd46f0c9ea84e09cd31c4fd2f95f7b4 8635 science optional hhsuite_3.0~beta2+dfsg-3_amd64.buildinfo
 4665c1d057686f650ad05b4e9beff1b3 1004592 science optional hhsuite_3.0~beta2+dfsg-3_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJYf5EjAAoJEFeKBJTRxkbRlxEQAJa/AyC4TFLHKFAqduFjqxKW
exSOL5qMst0EKQHXdNqwEC5f3+R3uKID/yfYUt6Cdu0ybAlMRU/PCOI64oSbZpAe
/cwcIK8ttqj2TWEHepyTGkBzmQcMtSO0Gs5yFKFogMw7Afjt0kwUcOBgvCwtT+G5
XK+tbSNwr3JFARdHHNGsUPvdkqW5fvP6JZb8w2zV8d3Ruyfk3XNRolHK6L0eNi+0
DEIBHcDGS4hcZl7uigIyyMaBbtQHbmse8nOzU95HQwSdQuhEup+PPRMkylG7w6QE
L5oCqwAGwki1VzolM2Asb+RPt/XP91dlQKz2dWL0pPYfUNZUVWfKlAUzz7wAEV7e
zP0MjPssv3eBOwrENsQARCFIkX9Ep4ZrCZ9tl6m1oLSdrrLGjAcq6J0Z8+bdkipj
AiHM18IBmLsrcBitFbhIzwcNJmlM/RrqRn3uIJTgVZbptcB+XvHxD4ux8aZxBI9I
Ce2vGI4YUk4J/6jG13ku6xEmcq3M39szlknzj3lsGXyUKFE6zx2z7th0WHcalGr9
OgCgc7ZVrNr+mqYCCmRWXWGJMpOrf9QePRlLc+f0aLAm4WeNOWYq7fuwa10NzS5N
NPoMn6Xr1LSKysfns55amuN+9KgoM3MPunBqpKWI4NFyrNHpyQN0C7jIiNPIQlrS
nB7mOpbrPg08T+07A6d7
=k2e6
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 16 Feb 2017 07:32:29 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 13:44:44 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.