Hi,

I've compiled lyx with debug enabled in math_parser.C and formula.C, here is 
the backtrace of the crash obtained while loading the attached file.
The crash is due to the presence of '{' and '}' characters in the math-label.
I hope this help.

Regards,
Abdel.

(gdb) r
Starting program: /usr/local/bin/lyx-1.2.0cvs.math
found '}' unexpectedly, array: '[char k mathalpha][sup [par][char 2 
mathalpha]][char r mathalpha][char e mathalpha][char t mathalpha][char l 
mathalpha][char q mathalpha][char s mathalpha][char q mathalpha][char d 
mathalpha][char l mathalpha][char k mathalpha][char j mathalpha][char h 
mathalpha]'

Program received signal SIGABRT, Aborted.
0x402b8971 in kill () from /lib/libc.so.6
(gdb) bt
#0  0x402b8971 in kill () from /lib/libc.so.6
#1  0x402b8775 in raise () from /lib/libc.so.6
#2  0x402b9da3 in abort () from /lib/libc.so.6
#3  0x082e20aa in lyx::abort () at biblio.C:584
#4  0x0834e617 in void lyx::Assert<int> (assertion=0) at 
../../src/support/LAssert.h:24
#5  0x081c2bb3 in {anonymous}::Parser::parse_into1 (this=0xbfffca30, 
array=@0x84a5510, flags=128, code=LM_TC_MIN) at math_parser.C:993
#6  0x081c2478 in {anonymous}::Parser::parse_into (this=0xbfffca30, 
array=@0x84a5510, flags=128, code=LM_TC_MIN) at math_parser.C:893
#7  0x081c04ef in {anonymous}::Parser::parse_lines (this=0xbfffca30, 
t=@0x84af6b8, numbered=true, outmost=true) at math_parser.C:603
#8  0x081c176a in {anonymous}::Parser::parse_normal (this=0xbfffca30, 
matrix=@0x84af6b8) at math_parser.C:849
#9  0x081c4c79 in mathed_parse_normal (t=@0x84af6b8, lex=@0xbfffe050) at 
math_parser.C:1316
#10 0x08194849 in InsetFormula::read (this=0x84af658, lex=@0xbfffe050) at 
formula.C:323
#11 0x080b1db4 in Buffer::readInset ()
#12 0x080ae275 in Buffer::parseSingleLyXformat2Token ()
#13 0x080a73d8 in Buffer::readLyXformat2 ()
#14 0x080b24cf in Buffer::readFile ()
#15 0x080c8553 in BufferList::readFile ()
#16 0x080c99be in BufferList::loadLyXFile ()
#17 0x08117b7c in LyXFunc::open ()
#18 0x0810f2cd in LyXFunc::dispatch ()
#19 0x0810ac75 in LyXFunc::verboseDispatch ()
#20 0x0810abb1 in LyXFunc::verboseDispatch ()
#21 0x082b88b3 in Menubar::Pimpl::MenuCallback () at math_parser.C:365
#22 0x40058048 in fl_object_qread () from /usr/X11R6/lib/libforms.so.0.89
#23 0x40067be2 in fl_check_forms () from /usr/X11R6/lib/libforms.so.0.89
#24 0x082b16b9 in GUIRunTime::runTime () at math_parser.C:365
#25 0x080f7af3 in LyXGUI::runTime ()
#26 0x080f85ce in LyX::LyX ()
#27 0x0813e6f2 in main ()
#28 0x402a65b0 in __libc_start_main () from /lib/libc.so.6
(gdb)



On Friday 01 March 2002 07:55 am, Allan Rae wrote:
\\ On Thu, 28 Feb 2002, Abdelrazak Younes wrote:
\\ 
\\ > Hi,
\\ >
\\ > I tested the lastest CVS to see what's up with lyx. And my verdict is:
\\ > WONDERFUL
\\ > I like the new features and dialogs a lot.
\\ 
\\ We must be doing something right then!
\\ 
\\ > I don't know if this is the right time to report bugs but anyway
\\ > here is it:
\\ 
\\ There is never a wrong time to report bugs -- although sometimes
\\ people report known bugs.
\\ 
\\ > There are some problems compared to 1.1.6fix3:
\\ > 1) The status bar doesn't indicate anymore the keyboard shortcuts for the
\\ > actions done with the mouse, I miss this a lot.
\\ 
\\ This could be one of two things:
\\ 1. the update delay is still too long (someone else noticed that there
\\    was a 6 second delay but I thought this was fixed recently
\\ 2. your preferences has defaulted to "don't show status bar shortcuts"
\\      Edit->Preferences->Misc->Display Keyboard Shortcuts
\\ 
\\ > 2) The figure floats do not adapt their size to the size of the graphics.
\\ 
\\ Hmmm...
\\ 
\\ > 3) When I insert a citation reference it doesn't show up in the dvi file 
nor
\\ > in the ps file. It just show [?]
\\ 
\\ LyX is a lot fussier about error and warnings although it seems we
\\ don't always report all of them.  In fact at present it seems we don't
\\ report duplicate label errors so we don't do enough LaTeX runs.
\\ Check your View->LaTeX Log and see if there any error/warning messages
\\ that LyX didn't provide error boxes for. (and tell us what they are
\\ -- cut-n-paste the messages)
\\ 
\\ > 4) Lyx crashes while opening some of my old documents (see below)
\\ >
\\ > My system
\\ > - MDK 8.1 linux system
\\ > - gcc version 2.96 20000731 (Mandrake Linux 8.1 2.96-0.62mdk)
\\ > - xforms 0.89.5
\\ > - TeX, Version 3.14159
\\ >
\\ > lyx was build with the config:
\\ >  ./configure --with-pspel --enable-optimization="-fno-exceptions -Wall 
-O3
\\ > -mcpu=k6 -march=k6"  --with-version-suffix
\\ >
\\ > I am sorry but I can't compile lyx with debug enabled because it needs 
too
\\ > much disk space but I switched to cvs now so I can update it regurlarly 
and
\\ > test it again if you desire so.
\\ >
\\ > Thanks,
\\ > Abdel.
\\ >
\\ > About the crashes:
\\ >
\\ > When I try to open a big document (> 200p full of math and graphics) 
which I
\\ > could open with my previous build of lyx (02152002), lyx now crash before
\\ > opening it with the message:
\\ 
\\ What would be really helpful if you don't mind is to make a copy of
\\ the files and cut them down to the minimum required to trigger a
\\ fault.  Use the same LyX version you used to create them (I imagine
\\ this was 116fix3 if not please say which) and send us the minimal
\\ documents.  For the maths stuff that should hopefully just mean having
\\ a single formula in the document.
\\ 
\\ Our resident Mathed expert is away on holidays at present so if you
\\ could do this to help us out that will make things considerably easier
\\ for those of us unfamiliar with the code.
\\ 
\\ Thanks,
\\ Allan. (ARRae)
\\ 
\\ 
#LyX 1.2 created this file. For more info see http://www.lyx.org/
\lyxformat 220
\textclass scrbook
\language english
\inputencoding latin1
\fontscheme default
\graphics default
\float_placement H
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage widemarginsa4
\use_geometry 1
\use_amsmath 1
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 2
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 2
\paperpagestyle default

\layout Standard

lalalsdfm 
\begin_inset LatexCommand \ref{toto{} ret lqsqd lkjh}

\end_inset 

qsefml mlkd, 
\begin_inset LatexCommand \ref{Mlgsdfdf lkjbbdf lkjf}

\end_inset 

 et 
\begin_inset LatexCommand \ref{dglkj-ilmf ùsmelf mlomsdf}

\end_inset 

 ekgksd 
\layout Standard


\begin_inset Formula \begin{eqnarray}
\frac{(x_{1}-\theta _{x_{1}})^{2}}{\sigma _{x_{1}}^{2}}+\frac{(y_{1}-\theta _{y_{1}})^{2}}{\sigma _{y_{1}}^{2}} & = & k^{2}\label{toto{} ret lqsqd lkjh}
\end{eqnarray}

\end_inset 


\layout Standard

Mlg
\begin_inset LatexCommand \label{Mlgsdfdf lkjbbdf lkjf}

\end_inset 


\layout Standard

sdflkh
\layout Standard

dglkj ilmf 
\begin_inset LatexCommand \label{dglkj-ilmf ùsmelf mlomsdf}

\end_inset 


\the_end

Reply via email to