From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28553 invoked by alias); 7 Aug 2016 04:18:12 -0000 Mailing-List: contact overseers-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: , Sender: overseers-owner@sourceware.org Received: (qmail 28541 invoked by uid 89); 7 Aug 2016 04:18:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=UD:good, sometime, eofbit, petition X-HELO: mail-wm0-f42.google.com Received: from mail-wm0-f42.google.com (HELO mail-wm0-f42.google.com) (74.125.82.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Sun, 07 Aug 2016 04:18:00 +0000 Received: by mail-wm0-f42.google.com with SMTP id o80so86335585wme.1 for ; Sat, 06 Aug 2016 21:18:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=MRXaCJi4lw1vAqtWiyske7ACkY8/U793jrQzKRpvebw=; b=DQn/3jiIQteVAqf0Rk7a8S7+Q+f5iz5Ro+c/0YYL/1gj1Ak+28gE25aYomthNaDj+0 TCTkmGCM6/XTly2MQW+g7ucdoI3AQjLSlG1JEalbB7y8ky+DdUwXFYdQwfxTqH9GsQkZ UgIogsoBl/NrW46DTx2L0qiNdxkU5tkHEMH31Oi5Vh8Fz+8B/3YwaYrcnT0NtYGrSN32 qbywlkdG6e4i0LF0RYUiLHOID3lhY96nry8YnymgJHnwYdNbYPyczsagqqhnKScA4il9 q7B0+FiFs/cjkIi4pmeaMGpnRvFz5iDm0Y0Hv/N8QYNqX8faOfRbufupWHi3oxHKPIzW qvdw== X-Gm-Message-State: AEkooutiZQLdZZJpC2zLuKB9qDF56d5hhNSLLiPtz8IFkfZW+CpRZDlImfShr24kJbVfEMQgYBNKPIzu3kMpOA== X-Received: by 10.28.125.80 with SMTP id y77mr9441787wmc.25.1470543477602; Sat, 06 Aug 2016 21:17:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.52.200 with HTTP; Sat, 6 Aug 2016 21:17:37 -0700 (PDT) From: Alex Henrie Date: Sun, 07 Aug 2016 04:18:00 -0000 Message-ID: Subject: Bugzilla account request To: overseers@gcc.gnu.org Content-Type: multipart/mixed; boundary=001a114192189c1790053973953e X-SW-Source: 2016-q3/txt/msg00034.txt.bz2 --001a114192189c1790053973953e Content-Type: text/plain; charset=UTF-8 Content-length: 1713 Hello, I believe I have found a bug in GCC, but I am unable to report it for lack of a bugzilla account. I'm including below the text of the bug report that I'd like to add. At minimum, this issue needs to be discussed or documented. Would you please create a GCC bugzilla account for me? -Alex istream::seekg should not reset eofbit if -std=c++98 According to N3168 [1], as recently as 2010 the C++ standards did not permit istream::seekg to reset istream::eof. When the change to the standard was approved, libstdc++ started using the new behavior, even for programs compiled with -std=c++98. This caused the bioinformatics program GERMLINE [2] to break. In PEDIndividualsExtractor.cpp [3] we see: void PEDIndividualsExtractor::loadInput() { ... while (!stream.eof() ) { getIndividuals(); stream.seekg(numberOfMarkers*4 + 1,ios::cur); } ... } void PEDIndividualsExtractor::getIndividuals() { string discard, ID, famID; stream >> famID >> ID >> discard >> discard >> discard >> discard; if(!stream.good()) return; ... } This code stopped working sometime between GCC 4.4.5 / libstdc++ 6.0.13 and GCC 4.6.3 / libstdc++ 6.0.16. With the change to libstdc++, stream.eof() is always false, so loadInput() goes into an infinite loop. An simple test program is attached. I realize that I could petition the GERMLINE authors to change the loop condition (and I eventually will), but the fact that you can't get the old behavior even with -std=c++98 is a bug in GCC. [1] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3168.htm [2] http://www.cs.columbia.edu/~gusev/germline/ [3] http://www.cs.columbia.edu/~gusev/germline/germline-1-5-1.tar.gz --001a114192189c1790053973953e Content-Type: application/x-xz; name="seekg-test.tar.xz" Content-Disposition: attachment; filename="seekg-test.tar.xz" Content-Transfer-Encoding: base64 X-Attachment-Id: f_irk3l8020 Content-length: 452 /Td6WFoAAATm1rRGAgAhARYAAAB0L+Wj4Av/AQpdACaYSWZp2dmN5MBFtReP dUOjo4dtjvAfsWEKBHEvNQLElkpOnNiIyemqwxjTL9YHq1YsA5QTJx5nnmgt KbUYXPGZkKed51xszRC6DxSMla8GD/mOSAUrzV9Tra0m/LxfDfYS/XhLU0fb /dQ1UP2wCI5sEhAaf6yIGdGKM8z0x3VyOdqFFBoVYYy+qDOFw5IIYVZiY8VA 4zxJox1E5sqmCfwYEEWRlEoKi/y6bK/X8jMEPPB7fm2+k4rNj/8bKAz+4aSP a3AvDTDGQo8sc/DuwauJRs86Q8DtybLopSJMQ0WM2fxc+C0e8Tw8ospeseZ5 680haXwqmRzXRF6dYXTUdGwDJN2oOFgfB4QAAAAA9nYrEdPeufcAAaYCgBgA AL0xvImxxGf7AgAAAAAEWVo= --001a114192189c1790053973953e--