From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DBD2C384241E; Fri, 7 Aug 2020 13:14:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DBD2C384241E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1596806044; bh=pVnXVV4P9ldLxWcP0GSAlyI8lYRUMCScsJa8b2gqpE8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mP3MuUy6zSXvi/BTP5SU5zAAbr1niAeFvOcUZ0+KpranRMXPce8Fbrkt4uXVDJUjZ jXJ56/4Lep8qeGxOZLS/qGHimfAsWEq7xT9w8hUgQcls3eAaWGN/vzwlFhw+jv7/dF vQ3JXBznvTKvosjCZtY28Uj2+fA+oNG/X+F5skoY= From: "jussilehtola at fedoraproject dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/96486] get_environment_variable fails for zero-length values Date: Fri, 07 Aug 2020 13:14:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jussilehtola at fedoraproject dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Aug 2020 13:14:05 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96486 --- Comment #19 from Susi Lehtola -= -- (In reply to Steve Kargl from comment #17) > On Thu, Aug 06, 2020 at 08:33:12PM +0000, jussilehtola at fedoraproject d= ot > org wrote: > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96486 > >=20 > > --- Comment #16 from Susi Lehtola --- > > Yes, then I installed missing libgfortran debuginfos and the backtrace > > shortened to > >=20 > > #0 0x401267 in zerolen_value > > at /tmp/readvar2.f90:17 > > #1 0x4012c4 in main > > at /tmp/readvar2.f90:22 > >=20 >=20 > I cannot reproduce the issue. It already was reproduced in comment #9? The issue is not that the environment variable has not been set, but rather that it is set to an empty string.=