Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jul 2018 19:57:42 +0200
From:      Domagoj Stolfa <domagoj.stolfa@gmail.com>
To:        Ash Gokhale <ashfixit@gmail.com>
Cc:        freebsd-dtrace@freebsd.org
Subject:   Re: dtrace compiler crash compiling additional identical predicates.
Message-ID:  <D5C9CC20-E20B-42D7-980A-3136FC1AE095@gmail.com>
In-Reply-To: <CAHpe%2B0Y158uwwPR6wbZmp%2BE1_uKBABBBnY3n3j-S-imyxmiUqg@mail.gmail.com>
References:  <CAHpe%2B0Y158uwwPR6wbZmp%2BE1_uKBABBBnY3n3j-S-imyxmiUqg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <ashfixit@gmail.com> 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<optimized out>,
> name=3D<optimized out>) at
> /usr/src/cddl/contrib/opensolaris/common/ctf/ctf_lookup.c:138
> #2  0x00000008006b8716 in dtrace_lookup_by_type (dtp=3D0x801644000,
> object=3D<optimized out>, name=3D0x803bc8010 "str", tip=3D<optimized =
out>) 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<optimized out>, =
context=3D363,
> pspec=3DDTRACE_PROBESPEC_NAME, arg=3D0x0, cflags=3D0, argc=3D1, =
argv=3D0x80064c000,
> fp=3D<optimized
> 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<optimized out>) 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D5C9CC20-E20B-42D7-980A-3136FC1AE095>