Debian Bug report logs - #521904
llvm-gcc-4.2: miscompiled code on amd64/sid

version graph

Package: llvm-gcc-4.2; Maintainer for llvm-gcc-4.2 is LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>;

Reported by: "brian m. carlson" <sandals@crustytoothpaste.net>

Date: Mon, 30 Mar 2009 20:03:01 UTC

Severity: normal

Found in version llvm-gcc-4.2/2.5-1

Fixed in version 2.7-3+rm

Done: Debian FTP Masters <ftpmaster@ftp-master.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, LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>:
Bug#521904; Package llvm-gcc-4.2. (Mon, 30 Mar 2009 20:03:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to "brian m. carlson" <sandals@crustytoothpaste.ath.cx>:
New Bug report received and forwarded. Copy sent to LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>. (Mon, 30 Mar 2009 20:03:04 GMT) Full text and rfc822 format available.

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

From: "brian m. carlson" <sandals@crustytoothpaste.ath.cx>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: llvm-gcc-4.2: miscompiled code on amd64/sid
Date: Mon, 30 Mar 2009 19:59:52 +0000
[Message part 1 (text/plain, inline)]
Package: llvm-gcc-4.2
Version: 2.5-1
Severity: normal

I have found a case where llvm-gcc-4.2 miscompiles code on amd64/sid.
The testcase is attached.  Unfortunately, the testcase requires Qt 4 (I
used 4.5.0 from experimental; I don't know if the version from sid will
work.)  I tried to remove the last dependency on QString from Token, but
when I did, the code no longer failed.  Thus, to compile it, you'll need
to use:

  /usr/lib/llvm/llvm/gcc-4.2/bin/x86_64-linux-gnu-llvm-g++ -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I/usr/include/qt4/QtCore -I/usr/include/qt4 -o troff foo.cxx -lQtCore -lpthread

I apologize in advance for this problem.

The bug occurs in TroffReadxer::parseRequestName.  m_compat is set to 4
by the TroffReader constructor.  Therefore, m_compat.getMode() returns
4.  CompatibilityMode::AllowLongNames is 8.  Therefore, maxtoke should
be 2, since (4 & 8) is false.  Instead, maxtoke is set to (size_t)-1.  A
couple of lines down, the code checks for this case and calls abort(3).

If you need anything else, please let me know.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.29-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages llvm-gcc-4.2 depends on:
ii  libc6                         2.9-6      GNU C Library: Shared libraries
ii  libgcc1                       1:4.3.3-5  GCC support library
ii  libstdc++6                    4.3.3-5    The GNU Standard C++ Library v3
ii  llvm                          2.5-2      Low-Level Virtual Machine (LLVM) c
ii  llvm-dev                      2.5-2      common libraries and headers for L

llvm-gcc-4.2 recommends no packages.

Versions of packages llvm-gcc-4.2 suggests:
pn  gcc-4.2-doc                   <none>     (no description available)

-- no debconf information

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 713 440 7475 | http://crustytoothpaste.ath.cx/~bmc | My opinion only
troff on top of XML: http://crustytoothpaste.ath.cx/~bmc/code/thwack
OpenPGP: RSA v4 4096b 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
[foo.cxx (text/x-c++src, attachment)]
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>:
Bug#521904; Package llvm-gcc-4.2. (Thu, 10 Dec 2009 10:03:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to aloiret@debian.org:
Extra info received and forwarded to list. Copy sent to LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>. (Thu, 10 Dec 2009 10:03:03 GMT) Full text and rfc822 format available.

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

From: Arthur Loiret <aloiret@debian.org>
To: 521904@bugs.debian.org
Subject: version 2.6 is sid
Date: Thu, 10 Dec 2009 10:59:21 +0100
Can you please re-check with llvm and llvm-gcc-4.2 from sid? Thanks!




Changed Bug submitter to '"brian m. carlson" <sandals@crustytoothpaste.net>' from '"brian m. carlson" <sandals@crustytoothpaste.ath.cx>' Request was from "brian m. carlson" <sandals@crustytoothpaste.net> to control@bugs.debian.org. (Thu, 03 Feb 2011 20:51:40 GMT) Full text and rfc822 format available.

Reply sent to Debian FTP Masters <ftpmaster@ftp-master.debian.org>:
You have taken responsibility. (Sat, 14 May 2011 09:54:03 GMT) Full text and rfc822 format available.

Notification sent to "brian m. carlson" <sandals@crustytoothpaste.net>:
Bug acknowledged by developer. (Sat, 14 May 2011 09:54:07 GMT) Full text and rfc822 format available.

Message #17 received at 521904-done@bugs.debian.org (full text, mbox):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 521904-done@bugs.debian.org,559385-done@bugs.debian.org,622526-done@bugs.debian.org,624929-done@bugs.debian.org,
Cc: llvm-gcc-4.2@packages.debian.org, llvm-gcc-4.2@packages.qa.debian.org
Subject: Bug#626007: Removed package(s) from unstable
Date: Sat, 14 May 2011 09:51:23 +0000
Version: 2.7-3+rm

Dear submitter,

as the package llvm-gcc-4.2 has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see http://bugs.debian.org/626007

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@debian.org.

Debian distribution maintenance software
pp.
Luca Falavigna (the ftpmaster behind the curtain)




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 12 Jun 2011 07:32:18 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Apr 17 07:30:09 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.