GNU bug report logs - #35762
When `test-driver` script + `check` testing framework are writing to same logfile = corrupted output

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: automake; Reported by: howaboutsynergy@HIDDEN; dated Thu, 16 May 2019 14:32:01 UTC; Maintainer for automake is bug-automake@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 16 May 2019 14:31:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 16 10:31:57 2019
Received: from localhost ([127.0.0.1]:56013 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hRHQJ-0006MR-VC
	for submit <at> debbugs.gnu.org; Thu, 16 May 2019 10:31:56 -0400
Received: from eggs.gnu.org ([209.51.188.92]:43059)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <howaboutsynergy@HIDDEN>) id 1hRBQo-00054i-KS
 for submit <at> debbugs.gnu.org; Thu, 16 May 2019 04:08:03 -0400
Received: from lists.gnu.org ([209.51.188.17]:46923)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <howaboutsynergy@HIDDEN>)
 id 1hRBQj-0007XB-ID
 for submit <at> debbugs.gnu.org; Thu, 16 May 2019 04:07:57 -0400
Received: from eggs.gnu.org ([209.51.188.92]:57440)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <howaboutsynergy@HIDDEN>) id 1hRBQi-0000WY-CC
 for bug-automake@HIDDEN; Thu, 16 May 2019 04:07:57 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_20,FREEMAIL_FROM,
 RCVD_IN_DNSWL_LOW,URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <howaboutsynergy@HIDDEN>) id 1hRBQh-0007WP-8k
 for bug-automake@HIDDEN; Thu, 16 May 2019 04:07:56 -0400
Received: from mail-40133.protonmail.ch ([185.70.40.133]:53070)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <howaboutsynergy@HIDDEN>)
 id 1hRBQg-0007Sm-Jz
 for bug-automake@HIDDEN; Thu, 16 May 2019 04:07:55 -0400
Date: Thu, 16 May 2019 08:07:36 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
 s=default; t=1557994063;
 bh=DOIScjXl3qv8tdOMmIZpB/Grfr3o/fmFM37BzcwbeTY=;
 h=Date:To:From:Reply-To:Subject:Feedback-ID:From;
 b=jnL1Gr3R2EsYgqC60Y3LrvMMfbAkAEYuj4UAEYuCRkea6OiCNumzPbxB7x9uwkwr5
 YXJjR8wkUmecM5uHzFSB9dHDAa1wGAvtNm0EcIz+DalF+G+oYJxkmaaAyN9YcQ0X+a
 dZEUX1ADHgZ9mf0XjXGM4ZKV9ARRsvpVMMcbRGJg=
To: "bug-automake@HIDDEN" <bug-automake@HIDDEN>
From: howaboutsynergy@HIDDEN
Subject: When `test-driver` script + `check` testing framework are writing to
 same logfile = corrupted output
Message-ID: <a6hJ-uWELrq2PHST6dP5WmK2ayvVYcLVfmNPViQsI7pRN-bx-M8kW8btEdSl98M1QKpL_m8K2WL0-fmLFWxy8FDZ2Ge98fEoUyOzx1nx_PU=@protonmail.com>
Feedback-ID: cNV1IIhYZ3vPN2m1zihrGlihbXC6JOgZ5ekTcEurWYhfLPyLhpq0qxICavacolSJ7w0W_XBloqfdO_txKTblOQ==:Ext:ProtonMail
MIME-Version: 1.0
Content-Type: multipart/signed; protocol="application/pgp-signature";
 micalg=pgp-sha256;
 boundary="---------------------7ac6eb7581f5bbcd2093303080207b42";
 charset=UTF-8
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 185.70.40.133
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 16 May 2019 10:31:54 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: howaboutsynergy@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
-----------------------7ac6eb7581f5bbcd2093303080207b42
Content-Type: multipart/mixed;boundary=---------------------99c292a5d5dab43ddd9b40d3169a8a43

-----------------------99c292a5d5dab43ddd9b40d3169a8a43
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;charset=utf-8

Hi. This isn't a bug, but just to inform you that `test-driver` redirectin=
g stdout(and stderr) to the log file, coupled with  the test itself also w=
riting to the same log file(for whatever reason), will result in them both=
 using the same outfile (with different descriptors) thus corrupted output=
 is the result.

For an example of what happens, see this comment: https://github.com/libch=
eck/check/issues/188#issuecomment-492794060 which I'll reproduce below for=
 easy reading.

For exact reproduction steps with using `check` (the unit test framework f=
or C) see the previous comment aka https://github.com/libcheck/check/issue=
s/188#issuecomment-492782675

#include <stdio.h>
  =


int main() {
  FILE *f=3DNULL;
  f =3D fopen("/tmp/a_out_.log", "w");
  if (NULL =3D=3D f) {
    fprintf(stderr,"oopsie\n");
  } else {
    fprintf(stdout, "Something");
    fprintf(f," messy ");
    fprintf(f," jessy\n");
    fprintf(stdout, " or another\n");
    fprintf(f,"More stuff\n");
    fclose(f);                                                            =
                                                      =


  }
}

$ gcc a.c && { ./a.out >/tmp/a_out_.log ; cat /tmp/a_out_.log ; }
Something or another
uff

That's basically what happens.

I'm on Arch Linux, and have the following versions:

local/autoconf 2.69-5 (base-devel)
    A GNU tool for automatically configuring source code
local/autoconf2.13 2.13-5
    A GNU tool for automatically configuring source code (Legacy 2.1x vers=
ion)
local/automake 1.16.1-1 (base-devel)
    A GNU tool for automatically creating Makefiles

$ automake --version
automake (GNU automake) 1.16.1

$ autoconf --version
autoconf (GNU Autoconf) 2.69

$ make --version
GNU Make 4.2.1
Built for x86_64-pc-linux-gnu

  # test-driver - basic testsuite driver script.
  =


  scriptversion=3D2018-03-07.03; # UTC

Thanks.
-----------------------99c292a5d5dab43ddd9b40d3169a8a43
Content-Type: application/pgp-keys; filename="publickey - howaboutsynergy@HIDDEN - 0x947B9B34.asc"; name="publickey - howaboutsynergy@HIDDEN - 0x947B9B34.asc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="publickey - howaboutsynergy@HIDDEN - 0x947B9B34.asc"; name="publickey - howaboutsynergy@HIDDEN - 0x947B9B34.asc"

LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tDQpWZXJzaW9uOiBPcGVuUEdQLmpz
IHY0LjUuMQ0KQ29tbWVudDogaHR0cHM6Ly9vcGVucGdwanMub3JnDQoNCnhzRk5CRnlmMlFnQkVB
RGhNTmIvSnlDcXkyeXhQeUxBckNSK1dkZnVOc1ZqZ05LMGZhaktDSm9uVWllNw0KRldXYVJhQzhs
RTg0MGkzQ0I1dlpSS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name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: ProtonMail
Comment: https://protonmail.com

wsFcBAEBCAAGBQJc3RpFAAoJEBz9yWB4WvJMVLQQAMqwCjlRWXFyLreNZ7AJ
GNt4zxEUZ7npxKYVRfMrCCjvzMQxO43K2dEWSGEGbyYs/oaTmWybhTYQ4bcU
EBgbIVvj5l7YmjUMvH6wLst4UlRLQPanScv7fYkUH8xqgwQuAnGmccR8T7FY
R8p02j6p4aLzwevyHD9egNS29lcc9uh2Prm6SQ5yzX1xXRPAzzibHI5cYTZt
Lstma2ZQXrUI9KRt5ofo+yx9aq2sJ38HhNdtScmTanXRL3ve6C/TZ2cfqrH2
lC4UPljSzfGHPKT7oHgKVCTIpoyJmAX4wqKUHZGeQFeHxbRu6hU94GbRq/nn
9V5aPVq8P8foxmkLh8idgc2xIAoQdVNr3E9L+ndPIyGyhPpHut6YhKVpCRhZ
zVQSGSiLjIBRxQf1KhtBgVsM3McsMJmE4EzL5qN3SnEi3zTZL/D7T4Bfqeur
sl3eCsk47pg4YnRPmgrpo7nG7XYbhWp/uwByzo1hrvsktYc4T9FBZCRuBsdU
1m90KQ73vth5OVb87KUTW0srCJfVXoJpzDClbqiIIQsSqyFPDaNaK2YjZV1b
4q+Ge/6n35qTMDX/vKXkfgHD9AjWgkGW0SN8Y9ivUkb+7vsRgVznk5DQrpt8
aVfq0tJrDW7S6jzxaGWa9nEThLIhDaAzWSnD/2wraBZZr4bN1ZxeFOGvLkgr
Q/Jz
=xcTE
-----END PGP SIGNATURE-----


-----------------------7ac6eb7581f5bbcd2093303080207b42--





Acknowledgement sent to howaboutsynergy@HIDDEN:
New bug report received and forwarded. Copy sent to bug-automake@HIDDEN. Full text available.
Report forwarded to bug-automake@HIDDEN:
bug#35762; Package automake. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 16 May 2019 14:45:01 UTC

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