Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: mata" crashes Stata


From   [email protected] (Roberto G. Gutierrez, StataCorp)
To   [email protected]
Subject   Re: st: mata" crashes Stata
Date   Thu, 02 Feb 2006 15:56:37 -0600

German Rodriguez <[email protected]> has discovered a somewhat embarassing, 
yet technically interesting bug (for us at least) in Mata:

> Be careful not to type mata" when you mean mata: (the keys are next to each
> other), as this appears to crash Stata and you may lose your work.

The first time you launch Mata within Stata, the Mata compiler first scans for
a token (a word, quoted string, special characeter, etc.) before it
initializes itself.  Presumably you can always successfully scan for such a
token, but German reproduced the one situation when this fails, namely a
dangling open quote.  Since scanning for the token failed before the compiler
initialized itself, Mata and Stata crashed.

This bug occurs only if the very first thing you type in Mata is an unclosed
quoted string, thus up until now it has gone undiscovered.  In any case, we
have fixed the bug and the fix will be available in the next executable
update.

--Bobby					--Bill
[email protected]                    [email protected]
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index