GNU bug report logs - #29576
crasher in preopen.c

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: libtool; Reported by: Arun Raghavan <arun@HIDDEN>; dated Tue, 5 Dec 2017 07:03:01 UTC; Maintainer for libtool is bug-libtool@HIDDEN.

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


Received: (at submit) by debbugs.gnu.org; 5 Dec 2017 07:02:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 05 02:02:14 2017
Received: from localhost ([127.0.0.1]:46314 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eM7F8-0001Ml-1x
	for submit <at> debbugs.gnu.org; Tue, 05 Dec 2017 02:02:14 -0500
Received: from eggs.gnu.org ([208.118.235.92]:57018)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <arun@HIDDEN>) id 1eM6tk-0000pD-9N
 for submit <at> debbugs.gnu.org; Tue, 05 Dec 2017 01:40:08 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <arun@HIDDEN>) id 1eM6te-0006DY-7J
 for submit <at> debbugs.gnu.org; Tue, 05 Dec 2017 01:40:03 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:59847)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <arun@HIDDEN>)
 id 1eM6te-0006DS-3T
 for submit <at> debbugs.gnu.org; Tue, 05 Dec 2017 01:40:02 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:47966)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <arun@HIDDEN>) id 1eM6tc-0002nb-Ry
 for bug-libtool@HIDDEN; Tue, 05 Dec 2017 01:40:01 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <arun@HIDDEN>) id 1eM6tZ-0006CL-PQ
 for bug-libtool@HIDDEN; Tue, 05 Dec 2017 01:40:00 -0500
Received: from out4-smtp.messagingengine.com ([66.111.4.28]:54389)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <arun@HIDDEN>)
 id 1eM6tZ-0006C4-Il
 for bug-libtool@HIDDEN; Tue, 05 Dec 2017 01:39:57 -0500
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43])
 by mailout.nyi.internal (Postfix) with ESMTP id EFBFC20C61
 for <bug-libtool@HIDDEN>; Tue,  5 Dec 2017 01:39:53 -0500 (EST)
Received: from web6 ([10.202.2.216])
 by compute3.internal (MEProxy); Tue, 05 Dec 2017 01:39:53 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 arunraghavan.net; h=content-transfer-encoding:content-type:date
 :from:message-id:mime-version:subject:to:x-me-sender:x-me-sender
 :x-sasl-enc; s=mesmtp; bh=68jBUdZ5GZ+DDeQ26/o9VK8nZVYe2wtJqSIdYl
 X7d/k=; b=PvzwzqQQm9p2r4hG4dXtKGf1pf3Lqq4agM8GWSKjq568sEicP+Xsht
 0/w97x5navfIZUDRVwV2aQORVdt3o2ouwf1gy3ZW+3GjcoZvVRf1xF8jTDbN18vY
 YX1RIC+yfxXkC2WcSYYEbta1MkWVGRnqvlEqSGxl609r3/x778tUA=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=content-transfer-encoding:content-type
 :date:from:message-id:mime-version:subject:to:x-me-sender
 :x-me-sender:x-sasl-enc; s=fm1; bh=68jBUdZ5GZ+DDeQ26/o9VK8nZVYe2
 wtJqSIdYlX7d/k=; b=Ay6cOgHbRgGu2x9RXNCZTlx3Y0l9AieoZ2ArseAJOxCFN
 dv20QYsA6mpKPVTML/nfFKZAg7gtIrmNvoW9UsAO8XTDP3cxLTCdkPW3tImu6lNq
 hBFSucxRCNemxngfpW2GtYbQysOqEw+WS+ANFEyIhXt4IEBYcksHFipUtK1+NtGN
 +FWC3QahmYqt1Of2C4xDe0ynB3J6GZN8lSr0rN5bx7CJ5R86RyLJ6+dZ1vVcUohY
 eeemXtL/lb2RGFEtkTV6BG9wiNadFALFbRiH90uHY1Gm2sQDaiPH3zsVD9pGfcMZ
 hpj0Fgxix3pFMvqJAygdckrMfrSVSS7IfSQjoj72g==
X-ME-Sender: <xms:OT8mWihlbmqQ8AEkgI5osgnIEffTg9VhZr4ijhdXg_7xuRQQJFISqQ>
Received: by mailuser.nyi.internal (Postfix, from userid 99)
 id B161B4083; Tue,  5 Dec 2017 01:39:53 -0500 (EST)
Message-Id: <1512455993.3567862.1194296528.0A74A2DC@HIDDEN>
From: Arun Raghavan <arun@HIDDEN>
To: bug-libtool@HIDDEN
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="utf-8"
X-Mailer: MessagingEngine.com Webmail Interface - ajax-1b87d328
Subject: crasher in preopen.c
Date: Tue, 05 Dec 2017 12:09:53 +0530
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.4 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 05 Dec 2017 02:02:11 -0500
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>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.4 (----)

Hello,
I found the following bug in the preopen loader.

The precise point of the crash is:

  http://git.savannah.gnu.org/cgit/libtool.git/tree/libltdl/loaders/preopen.c#n282

Pasting the code here for reference:

   if (symlist[1].name && STREQ (symlist[1].name, "@INIT@"))

This is triggered when my program sets:

  const lt_dlsymlist lt_preloaded_symbols[] = { { 0, 0 } };

The cause is clearly the use of symlist[1] om that code. Presumably it
should be symlist[0]?

Cheers,
Arun




Acknowledgement sent to Arun Raghavan <arun@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-libtool@HIDDEN. Full text available.
Report forwarded to bug-libtool@HIDDEN:
bug#29576; Package libtool. 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: Mon, 25 Nov 2019 12:00:02 UTC

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