From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DD78D398242A; Thu, 17 Nov 2022 11:27:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DD78D398242A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668684433; bh=FpEg5H/uIj8sBOpqsy9M45Sa1KmnEbRHfkPI6NnZUbI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YD1cWlm/7P3kLn1yF6De8DZI+43ybKyCcFQGMd8HtWDDbkTwu/wRNHuJ56m+sputr 8QfgzRMpcIGu/7We0MZ/i9sGjSrW56/ZARADuHAAedVHUsQAOTfoSA5dVDkphENQW8 f1ZNHIPA/bs1o6GWItWFCIwRpMFBl/uoem6NGnBQ= From: "jengelh at inai dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/103930] asan intercepts fail if target library is only loaded (indirectly) through dlopen (e.g. plugin) Date: Thu, 17 Nov 2022 11:27:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 11.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jengelh at inai dot de 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: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103930 --- Comment #2 from Jan Engelhardt --- Subissue a) "the crash output is completely useless" seems to have been addressed in the past already; I observe in gcc 12 that Found plugin run function: 0x7fecaa0e01a0 AddressSanitizer:DEADLYSIGNAL =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D75097=3D=3DERROR: AddressSanitizer: SEGV on unknown address 0x0000000= 00000 (pc 0x000000000000 bp 0x7ffccfe3f0b0 sp 0x7ffccfe3f0a8 T0) =3D=3D75097=3D=3DHint: pc points to the zero page. =3D=3D75097=3D=3DThe signal is caused by a READ memory access. =3D=3D75097=3D=3DHint: address points to the zero page. #0 0x0 () #1 0x4010ea in main main.c:10 #2 0x7feca982c5af in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 (But yeah, I remember a time when calling null pointer functions often mean= t no usable stack trace, even in gdb. Not sure what that was about.)=