From owner-freebsd-dtrace@freebsd.org Fri Jul 13 17:57:47 2018 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1C042104646A for ; Fri, 13 Jul 2018 17:57:47 +0000 (UTC) (envelope-from domagoj.stolfa@gmail.com) Received: from mail-wm0-x232.google.com (mail-wm0-x232.google.com [IPv6:2a00:1450:400c:c09::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7F5E27156F for ; Fri, 13 Jul 2018 17:57:46 +0000 (UTC) (envelope-from domagoj.stolfa@gmail.com) Received: by mail-wm0-x232.google.com with SMTP id 69-v6so10104455wmf.3 for ; Fri, 13 Jul 2018 10:57:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=whYA8zpYefYMKuttlvjsBCAOadDMNnmYPdcL+WyvaOE=; b=ZVNc3q3DtvJZz7Ytb7qc7ZZAUMB9B8X4Nz3v03FE8iyrpECdtbPa3HQEn3sCyMw+sh 3TnBfq7vNLRLyhaU2VK3EvKgu+7paThfBlmMyziAKgVhk93+nA7u7eaojLgIUpLzwtwa KVX6wfIojVEMqXK8jg6YA8mgEoVnYq24HfCg5QZ2bc3t8ARvuppnhDnyqnqO++gzx3ha rANNzm/SiBBZX44GOwQW+sP21q+aIefRzaMIt4p+2f8g5w3GvGKXF7VIxz6o2HSbvzxG Ux5XecS4F3GeIW9+QnUnatGXTC3as4oLTxqR8wmOcxreFsRlRjKi3Yl5qBJdN0MHY3eH jh3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=whYA8zpYefYMKuttlvjsBCAOadDMNnmYPdcL+WyvaOE=; b=slEtYe+/l+5jbed5b/Ta968r2SpdlLdjCp8He9FeCovm9VtZmi8Xn1laM6XI/yzRa5 deIGhLR0v3EIFiGgZShcciBrkeXwyje7d7MF/OKg7fWKain773uE9lHRPuNjL+4E+FnT rFXO5rFrcUFUDCo/57YEBTlvqBe5R0eE3f1rgIg1h34kZewW2DJsf02EgsLjuznbaJju fVNvgTcQSiO3Ed5UspYGL7qK58ZRrotapOOhKtja7M6eCyVjRqBsD0UTAbu8f9zlwvZR bSvWaLaZPpCLhbFSXC+fBOEnmGUyRa8bqQW549fmdjMjmxl2wlOIZYmXC7TE0mjN+wS+ YYsg== X-Gm-Message-State: AOUpUlH0r6ScUZTu52k3o6H2Cy+g3ILYTq3224NX7dxZj9XB7elYnefP 89WmLkNoquhfWZ1U66Xxbgvoqm0P X-Google-Smtp-Source: AAOMgpet26xcmST456uHNcAu2bLCnM1hEhX975dB7GdD7W25uY0PT8KvVqyI75UGW35zNwekzyTBvA== X-Received: by 2002:a1c:9ec5:: with SMTP id h188-v6mr4819227wme.76.1531504665056; Fri, 13 Jul 2018 10:57:45 -0700 (PDT) Received: from [192.168.10.115] (130-204.dsl.iskon.hr. [89.164.130.204]) by smtp.gmail.com with ESMTPSA id 5-v6sm13640841wmv.48.2018.07.13.10.57.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Jul 2018 10:57:44 -0700 (PDT) From: Domagoj Stolfa Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_0F7E7895-11CF-4EDB-8392-0318FEE7884D"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: dtrace compiler crash compiling additional identical predicates. Date: Fri, 13 Jul 2018 19:57:42 +0200 In-Reply-To: Cc: freebsd-dtrace@freebsd.org To: Ash Gokhale References: X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2018 17:57:47 -0000 --Apple-Mail=_0F7E7895-11CF-4EDB-8392-0318FEE7884D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Ash: I don't seem to be able to reproduce the problem from your description. = Could you publish your script here? Thanks! =E2=80=94 Domagoj > On 13 Jul 2018, at 19:54, Ash Gokhale wrote: >=20 > While developing a long dtrace script; I seem to be tripping over a > compiler bug. I can tickle the bug by using this in a predicate / > self->thing_var !=3D "" / one too many times. Although I use that = exact > construction many times. Changing the probe , or even providing an = invalid > probe does not change the crash. Commenting out the predicate saves = the > compile. Comparing self->var to an integer compiles ok, ( while not = really > making sense in the context). The compiler will segv when asked to = produce > the IR via 'dtrace -S -ls srcipt.dt' > Efforts to reproduce the crash with a reduced dtrace file have been = futile > and the system is sufficiently custom that sharing the script may not = be > useful. >=20 > Has anyone else seen this crash? Has anyone noticed arbitrary size = limit on > dtrace scripts? >=20 > [New LWP 103111] > Core was generated by `dtrace -v -s drive-lifecycle.dt'. > Program terminated with signal SIGSEGV, Segmentation fault. > #0 0x0000000800cf5910 in strchr () from /lib/libc.so.7 >=20 > Thread 1 (LWP 103111): > #0 0x0000000800cf5910 in strchr () from /lib/libc.so.7 > #1 0x000000080090999f in ctf_lookup_by_name (fp=3D, > name=3D) at > /usr/src/cddl/contrib/opensolaris/common/ctf/ctf_lookup.c:138 > #2 0x00000008006b8716 in dtrace_lookup_by_type (dtp=3D0x801644000, > object=3D, name=3D0x803bc8010 "str", tip=3D) at > /usr/src/cddl/contrib > /opensolaris/lib/libdtrace/common/dt_module.c:1639 > #3 0x000000080069c0ce in id_or_type (s=3D0x803bc8010 "str") at > /usr/src/cddl/contrib/opensolaris/lib/libdtrace/common/dt_lex.l:775 > #4 0x00000008006ade05 in yyparse () at dt_grammar.c:1388 > #5 0x00000008006a973f in dt_compile (dtp=3D, = context=3D363, > pspec=3DDTRACE_PROBESPEC_NAME, arg=3D0x0, cflags=3D0, argc=3D1, = argv=3D0x80064c000, > fp=3D out>, s=3D0x0) at > /usr/src/cddl/contrib/opensolaris/lib/libdtrace/common/dt_cc.c:2457 > #6 0x00000008006aaf90 in dtrace_program_fcompile (dtp=3D0x803bc8fff, > fp=3D0x803bc8010, cflags=3D114, argc=3D-2139062144, argv=3D0x3) at > /usr/src/cddl/contrib/opensolari > s/lib/libdtrace/common/dt_cc.c:2594 > #7 0x000000000040493f in compile_file (dcp=3D0x801638180) at > /usr/src/cddl/contrib/opensolaris/cmd/dtrace/dtrace.c:805 > #8 0x000000000040311e in main (argc=3D4, argv=3D) at > /usr/src/cddl/contrib/opensolaris/cmd/dtrace/dtrace.c:1725 > _______________________________________________ > freebsd-dtrace@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-dtrace > To unsubscribe, send any mail to = "freebsd-dtrace-unsubscribe@freebsd.org" --Apple-Mail=_0F7E7895-11CF-4EDB-8392-0318FEE7884D Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE37fRcHC0Iwiz+ZVEg+gksMBgNd0FAltI6BYACgkQg+gksMBg Nd38yg/+KgjB8sirEeasDaCfoXpV1pdVP3FUDnEFlfnXNDJ5MIajoMF+tMincAua zgAduwRkQvXIkfCCB8gy5UbAPO3pp1CBBOSknEldz5eYDAnVOOmhLUTFflblB6Pk A90G16Z9GKpX1XfPwqpEh+OLuJ3Qk5saO6LyDpNDv8/56jSEQnogX24AF4jAdBvs YqxT3G7/0JFLBsMZXUwCEBGoRPfI0Rm3+2aIH2joDLUfPViG7Lhv/rpv0B1UnOy9 mzIR7yK8Ck4M4W3fPazPDE41vkIKwZLzvlVTXTnkmtdm2BBTFNpkL6bFGw8myF3g PYKBiCjobuNauylCyEYd6bEK6fujKLPPXSaBXFUuz7wR7QRIH+kKemCK1rMwfEzJ 21Z+cYJWYInmbUD9EmUts0Mz174RYgyiLn8uX9knfNL5ys6sw+dvfMLd4oKvdFR3 fXgDXtdNSMpQxjMna5wyZ2BMk3W4sCkUNbw06vKsizYyQ8SaNG/8DlrkaRVM3bgN 4uw0DhuPAJyBRnqHX79f8f1f+sbSmz0h9RmpMBYuog0dUHw8M3gjtBMyXffmZnUb 8L8zkKqEqaVff5Ez0FJhVuPkG112juWC7VFM8ur91ujVe+mynWSxFg83giGYMhzX ZoB+e2AKdVpQ0D3jsfRqiyWKuuib28z+ozgMIwF1a1+csGGOPqI= =p938 -----END PGP SIGNATURE----- --Apple-Mail=_0F7E7895-11CF-4EDB-8392-0318FEE7884D--