From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8FDF138515D7; Fri, 17 Feb 2023 11:24:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8FDF138515D7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676633040; bh=Xywrv6lXuOiih1HNo5+s5u0fzYR1uMKchlPcJgOX5wQ=; h=From:To:Subject:Date:From; b=ZMfkjX+oVx8aOkW2jJf6y6JxjDyoq0TxzVqjE/+3q60KYD5It+eVrr8LWI3yqddFt PkbnJSLxI5T482j15Oc9+TQlN26RWHmYl+A9ZV+x/3fqLqqgBZ/+MWu/SNEDsEjBUN 5ZqlDhzBog8MlaoexDTfsYjTXUU3rPic0r3KkQlE= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/108834] New: LTO: ltrans temporary file is used as module name in ASAN Date: Fri, 17 Feb 2023 11:23:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108834 Bug ID: 108834 Summary: LTO: ltrans temporary file is used as module name in ASAN Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxi= n at gcc dot gnu.org Target Milestone: --- We originally noticed that accidentally in openSUSE bugzilla: https://bugzilla.opensuse.org/show_bug.cgi?id=3D1208386 $ cat jhead.i int foo; $ gcc -flto -fsanitize=3Daddress jhead.i -shared -fPIC -o jhead && md5sum j= head 4e0fb88f928272b4962c6dcd8b845d71 jhead $ gcc -flto -fsanitize=3Daddress jhead.i -shared -fPIC -o jhead && md5sum j= head e3c77e7ce9d54afb812add5b87a254d1 jhead $ strings jhead | grep ltrans /tmp/ccIzP3oh.ltrans0.o it comes from ASAN module name: ... .LC2: .string "./jhead.ltrans0.o" .section .data.rel,"aw" .align 32 .type .LASAN0.2, @object .size .LASAN0.2, 64 .LASAN0.2: .quad .LASAN1.0 .quad 4 .quad 64 .quad .LC1 .quad .LC2 which is main_input_filename: gcc/asan.cc:3290 Anyway, I can fix it.=