NetBSD Problem Report #54226

From www@netbsd.org  Fri May 24 05:26:55 2019
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 95FFD7A1AC
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 24 May 2019 05:26:55 +0000 (UTC)
Message-Id: <20190524052654.78D5C7A1D7@mollari.NetBSD.org>
Date: Fri, 24 May 2019 05:26:54 +0000 (UTC)
From: coypu@sdf.org
Reply-To: coypu@sdf.org
To: gnats-bugs@NetBSD.org
Subject: address sanitizer doesn't work
X-Send-Pr-Version: www-1.0

>Number:         54226
>Category:       toolchain
>Synopsis:       address sanitizer doesn't work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 24 05:30:00 +0000 2019
>Closed-Date:    Sun May 26 12:59:20 +0000 2019
>Last-Modified:  Sun May 26 12:59:20 +0000 2019
>Originator:     coypu
>Release:        NetBSD 8.99.41
>Organization:
>Environment:
NetBSD plu 8.99.41 NetBSD 8.99.41 (GENERIC) #0: Thu May 23 18:48:19 IDT 2019  fly@plu:/home/fly/obj/sys/arch/amd64/compile/GENERIC amd64

>Description:


#!/bin/sh
cat << EOF > AAAtest.c
int main() { return 0; }
EOF
gcc AAAtest.c -fsanitize=address -lasan -o AAAtest
./AAAtest



Expected: zero exit status, no output.
Got: non-zero exit status, output about trace
[ 1067.4843830] sorry, pid 1842 was killed: orphaned traced process
[1]   Killed                  ./AAAtest
>How-To-Repeat:

>Fix:
I'm not sure. am I doing this wrong? 

>Release-Note:

>Audit-Trail:
From: coypu@sdf.org
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: toolchain/54226: address sanitizer doesn't work
Date: Fri, 24 May 2019 05:37:54 +0000

 I can live with ASAN_OPTIONS=detect_leaks=0 which seems to make it stop
 crashing. I think.

From: Kamil Rytarowski <n54@gmx.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: toolchain/54226: address sanitizer doesn't work
Date: Fri, 24 May 2019 09:49:19 +0200

 On 24.05.2019 07:40, coypu@sdf.org wrote:
 > The following reply was made to PR toolchain/54226; it has been noted by=
  GNATS.
 >
 > From: coypu@sdf.org
 > To: gnats-bugs@netbsd.org
 > Cc:
 > Subject: Re: toolchain/54226: address sanitizer doesn't work
 > Date: Fri, 24 May 2019 05:37:54 +0000
 >
 >  I can live with ASAN_OPTIONS=3Ddetect_leaks=3D0 which seems to make it =
 stop
 >  crashing. I think.
 >
 >

 LSan is not supported as of now.

 Please check this patch:

 http://netbsd.org/~kamil/patch-00114-disable-lsan.txt

From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/54226 CVS commit: src/external/gpl3/gcc/dist/libsanitizer/lsan
Date: Sat, 25 May 2019 13:54:38 +0000

 Module Name:	src
 Committed By:	maya
 Date:		Sat May 25 13:54:37 UTC 2019

 Modified Files:
 	src/external/gpl3/gcc/dist/libsanitizer/lsan: lsan_common.h

 Log Message:
 don't claim lsan support on netbsd.

 PR toolchain/54226: address sanitizer doesn't work


 To generate a diff of this commit:
 cvs rdiff -u -r1.3 -r1.4 \
     src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_common.h

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sun, 26 May 2019 12:59:20 +0000
State-Changed-Why:
fixed by christos presumably


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.