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

[-- Attachment #1 --]
Hi Ash:

I don't seem to be able to reproduce the problem from your description. Could you publish your script here?

Thanks!

—
Domagoj

> On 13 Jul 2018, at 19:54, Ash Gokhale <ashfixit@gmail.com> wrote:
> 
> 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 !=  "" / 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.
> 
> Has anyone else seen this crash? Has anyone noticed arbitrary size limit on
> dtrace scripts?
> 
> [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
> 
> Thread 1 (LWP 103111):
> #0  0x0000000800cf5910 in strchr () from /lib/libc.so.7
> #1  0x000000080090999f in ctf_lookup_by_name (fp=<optimized out>,
> name=<optimized out>) at
> /usr/src/cddl/contrib/opensolaris/common/ctf/ctf_lookup.c:138
> #2  0x00000008006b8716 in dtrace_lookup_by_type (dtp=0x801644000,
> object=<optimized out>, name=0x803bc8010 "str", tip=<optimized out>) at
> /usr/src/cddl/contrib
> /opensolaris/lib/libdtrace/common/dt_module.c:1639
> #3  0x000000080069c0ce in id_or_type (s=0x803bc8010 "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=<optimized out>, context=363,
> pspec=DTRACE_PROBESPEC_NAME, arg=0x0, cflags=0, argc=1, argv=0x80064c000,
> fp=<optimized
> out>, s=0x0) at
> /usr/src/cddl/contrib/opensolaris/lib/libdtrace/common/dt_cc.c:2457
> #6  0x00000008006aaf90 in dtrace_program_fcompile (dtp=0x803bc8fff,
> fp=0x803bc8010, cflags=114, argc=-2139062144, argv=0x3) at
> /usr/src/cddl/contrib/opensolari
> s/lib/libdtrace/common/dt_cc.c:2594
> #7  0x000000000040493f in compile_file (dcp=0x801638180) at
> /usr/src/cddl/contrib/opensolaris/cmd/dtrace/dtrace.c:805
> #8  0x000000000040311e in main (argc=4, argv=<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"


[-- Attachment #2 --]
-----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-----

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