Hi, In http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg33826.html Jean-Marc Lasgouttes said : >>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> Seems that parseBibTeX is using string::replace wrong.
Except that it does not use string::replace at all... It would be nice to see the same backtrace, but with src/frontends/controllers/biblio.C compiled with debug information... Or to have a small bibtex file which has this problem (since it seems problems happen in the bibtex file). So here is the backtrace of the crash obtained with the attached file when you 1) click on the Citation reference 'CATNET' 2) click on 'GPS-GLONASS_RTK' inside the Citation Reference dialog Regards, Abdel. ************************************************** (gdb) r Starting program: /usr/local/bin/lyx-1.2.0cvs lyx-1.2.0cvs: /usr/include/g++-3/std/bastring.cc:126: basic_string<charT, traits, Allocator> &basic_string<charT, traits, Allocator>::replace (unsigned int, unsigned int, const basic_string<charT, traits, Allocator> &, unsigned int, unsigned int) [with charT = char, traits = string_char_traits<char>, Allocator = __default_alloc_template<true, 0>]: Assertion `!(pos2 > len2)' failed. 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 0x402b2162 in __assert_fail () from /lib/libc.so.6 #4 0x082ffb44 in basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::replace () at /usr/include/g++-3/std/bastring.cc:131 #5 0x0838a5d3 in basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::assign (this=0xbffff0b0, str=@0xbffff270, pos=4294967295, n=64) at /usr/include/g++-3/std/bastring.h:221 #6 0x08389b8f in basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::basic_string (this=0xbffff0b0, str=@0xbffff270, pos=4294967295, n=64) at /usr/include/g++-3/std/bastring.h:179 #7 0x08388ddc in basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::substr (this=0xbffff270, pos=4294967295, n=64) at /usr/include/g++-3/std/bastring.h:396 #8 0x082c6c3f in biblio::parseBibTeX (data=0xbffff270, findkey=@0xbffff300) at biblio.C:365 #9 0x082c5b8f in biblio::getInfo (map=@0x8462db0, key=@0x842c008) at biblio.C:264 #10 0x08242c2f in FormCitation::input () #11 0x08237491 in C_FormBaseInputCB () #12 0x40058048 in fl_object_qread () from /usr/X11R6/lib/libforms.so.0.89 #13 0x40067bfa in fl_check_forms () from /usr/X11R6/lib/libforms.so.0.89 #14 0x082b5e39 in GUIRunTime::runTime () #15 0x080f7353 in LyXGUI::runTime () #16 0x080f7e2e in LyX::LyX () #17 0x0813df52 in main () #18 0x402a65b0 in __libc_start_main () from /lib/libc.so.6 (gdb) On Friday 01 March 2002 11:52 am, Jean-Marc Lasgouttes wrote: \\ >>>>> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: \\ \\ Abdelrazak> 1) The status bar doesn't indicate anymore the keyboard \\ Abdelrazak> shortcuts for the \\ > actions done with the mouse, I miss \\ Abdelrazak> this a lot. \\ \\ This could be one of two things: \\ 1. \\ Abdelrazak> the update delay is still too long (someone else noticed \\ Abdelrazak> that there \\ was a 6 second delay but I thought this was \\ Abdelrazak> fixed recently \\ \\ Abdelrazak> My CVS is from yesterday morning (GMT) \\ \\ Could you describe a sequence of actions? I suspect we do not \\ understand what you mean. \\ \\ Abdelrazak> \\ > 2) The figure floats do not adapt their size to the \\ Abdelrazak> size of the graphics. \\ \\ Hmmm... \\ \\ Abdelrazak> When I suppress the space before the figure float, the \\ Abdelrazak> graphic redraws OK inside the float. \\ \\ It is known that there are problems in this area. \\ \\ Abdelrazak> There aren't any error boxes inside Lyx. \\ \\ Could you send a small file showing this, and the corresponding log \\ file? \\ \\ \\ Abdelrazak> I remember that once upon a time it was forbidden to put \\ Abdelrazak> space inside labels and my citations do have some. So I \\ Abdelrazak> put out the spaces inside a Citation and tried to insert a \\ Abdelrazak> Citation Reference and CRASH (without saving): \\ \\ Likewise, a step-by-step recipe to reproduce that would be great. \\ \\ JMarc \\ \\
#LyX 1.2 created this file. For more info see http://www.lyx.org/ \lyxformat 220 \textclass article \language french \inputencoding latin1 \fontscheme default \graphics default \float_placement h! \paperfontsize default \spacing single \papersize a4paper \paperpackage widemarginsa4 \use_geometry 0 \use_amsmath 1 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Title Blabla \layout Date \SpecialChar ~ \layout Standard First citation ref in alphabetical order : \begin_inset LatexCommand \cite{CATNET} \end_inset \layout Standard Try here to insert the second ref in alphabetical order (GPS-GLONASS_RTK) : \layout Standard The dvi file here indicates [?] instead of \begin_inset LatexCommand \cite{1 2} \end_inset ... The latex log file is attached. \layout Bibliography \bibitem [Macabiau1997]{Thèse_de_C_Macabiau} \begin_inset Quotes eld \end_inset Etude de l'applicabilité des techniques de lever d'ambiguité de la mesure de pahse GPS aux approches de précision \begin_inset Quotes erd \end_inset , \emph on Christophe Macabiau \emph default , Mémoire de Thèse, 29 septembre 1997 \layout Bibliography \bibitem [1 2]{1 2} toto \layout Bibliography \bibitem [Chauveau2002]{Thèse_de_JP_Chauveau} \begin_inset Quotes eld \end_inset Application des méthodes de résolution d'ambiguïtés sur la mesure de phase GPS à l'approche de précision \begin_inset Quotes erd \end_inset , \emph on Jean-Pierre Chauveau \emph default , Mémoire de Thèse, 22 janvier 2002 \layout Bibliography \bibitem [Pajarez2000]{Ionosperic_Tomography} \begin_inset Quotes eld \end_inset Application of ionosphéric tomography to real-time GPS carrier-phase ambiguïty resolution, at scales of 400-1000 km and with high geomagnetic activity \begin_inset Quotes erd \end_inset ; \emph on M. Hernandez-Pajarez, J. M. Juan and J. Sanz \emph default ; Geophysical Research Letters, Vol. 27, No. 13, Pages 2009-2012, July 1, 2000. \layout Bibliography \bibitem [Pajarez2001]{Water_vapor_determination_in_GPS_Networks} \begin_inset Quotes eld \end_inset A new strategy for real-time integrated water vapor determination in GPS networks \begin_inset Quotes erd \end_inset ; \emph on M. Hernandez-Pajarez, J.M. Juan and J. Sanz \emph default ; Geophysical Research Letters, Vol. 28, No. 17, Pages 3267-3270, September 1, 2001. \layout Bibliography \bibitem [OgajaBrownjohn]{RTK-GPS} \begin_inset Quotes eld \end_inset Towards the implementation of on-line structural monitoring using RTK-GPS and analysis of results using the wavelet transform \begin_inset Quotes erd \end_inset ; \emph on Clement Ogaja, Chris Rizos, Jinling Wang (School of Geomatic Engineering, Sydney) and James Brownjohn (School of Civil and Structural Engineering, Singapore) \emph default . \layout Bibliography \bibitem [PajarezColombo2000]{RTK_OTF_WADGPS_networks} \begin_inset Quotes eld \end_inset Real-time integrated water vaper determination using OTF carrier-phase ambiguity resolution in WADGPS networks \begin_inset Quotes erd \end_inset ; \emph on M. Hernandez-Pajarez, J.M. Juan and J. Sanz (Universitat Politecnica de Catalunya), O.L. Colombo (USRA/NASA GSFC) \emph default ; ION GPS 2000, 19-22 September2000. \layout Bibliography \bibitem [PajarezColombo2]{Precise_Iono_Determination_and_GPS_RTK} \begin_inset Quotes eld \end_inset Precise Ionospheric Determination and its Application to Real-Time GPS Ambiguity Resolution \begin_inset Quotes erd \end_inset , \emph on M. Hern'andez-Pajares, J. M. Juan, J. Sanz, \emph default Group of Astronomy and Geomatics, Universitat Polit`ecnica de Catalunya (gAGE/UPC \emph on ), \emph default Barcelona, Spain, \emph on O.L.Colombo, \emph default USRA/NASA GSFC, Maryland, USA, visiting at the Dept. of Electromagnetic Systems, Danish Center for RemoteSensing, Technical University of Denmark, Lyngby, Denmark. \emph on \layout Bibliography \bibitem [ColomboPajarez1999]{OTF_RTK_with_Tomography} \begin_inset Quotes eld \end_inset Resolving Carrier-Phase Ambiguities On TheFly, At More Than 100 km From Nearest Reference Site, With The Help OfIonospheric Tomography \begin_inset Quotes erd \end_inset , \emph on Oscar L. Colombo \emph default (USRA/NASA GSFC, Code 926, Greenbelt, Maryland, USA, visiting at the Danish Center for RemoteSensing, Electro-Magnetic Systems Institute (EMI),Technical University of Denmark, Lyngby, Denmark), \emph on Manuel Hernandez-Pajares, J. Miguel Juan, Jaume Sanz \emph default (Group of Astronomy and Geomatics, Universitat Polite`cnica deCatalunya (gAGE/UPC) , Barcelona, Spain), \emph on Julia Talaya \emph default (Institut Cartogra`fic de Catalunya, Barcelona, Spain), ION GPS '99, 14-17 September 1999, Nashville, TN. \layout Bibliography \bibitem [Talaya]{CATNET} \begin_inset Quotes eld \end_inset CATNET, a permanent GPS network with real-time capabilities \begin_inset Quotes erd \end_inset , Julia Talaya, Ernest Bosch, Institut Cartografic de Catalunya. \layout Bibliography \bibitem [Day]{GPS-GLONASS_RTK} \begin_inset Quotes eld \end_inset Performance Analysis of Integrated GPS/GLONASSCarrier Phase-Based Positioning \begin_inset Quotes erd \end_inset , \emph on Liwen Dai, Shaowei Han, Chris Rizos, \emph default School of Geomatic EngineeringThe University of New South Wales. \layout Bibliography \bibitem [Ruffiny1997]{GPS_Tomography} \begin_inset Quotes eld \end_inset GPS Tomography of the Ionosperic Electron Content with a Correlation Functional \begin_inset Quotes erd \end_inset , \emph on Giulio Ruffini, Alejandro Flores, Antonio Rius, \emph default Enstitut d'Estudis Espacials de Catalunya, CSIC Research Unit, January 17, 1997. \layout Bibliography \bibitem [Day2]{Real-time_GPS/GLONASS_RTK} \begin_inset Quotes eld \end_inset Real-Time Carrier Phase Ambiguity< Resolution for GPS/GLONASSReference Station Networks \begin_inset Quotes erd \end_inset , \emph on Liwen Dai, Jinling Wang, Chris Rizos and Shaowei Han, \emph default School of Geomatic Engineering, University of New South Wales, Syndey.key-27key-2 7key-27key-27key-27key-27 \layout Bibliography \bibitem [Day3]{RTK_OTF_GPS/GLONASS} \begin_inset Quotes eld \end_inset Predicting Atmospheric Biases for Real-Time Ambiguity Resolutionin GPS/Glonass Reference Station Networks \begin_inset Quotes erd \end_inset , \emph on Liwen Dai, Jinling Wang, Chris Rizos, Shaowei Han, \emph default School of Geomatic Engineering, University of New South Wales, Sydney, NSW 2052, Australia. \the_end
This is TeX, Version 3.14159 (Web2C 7.3.1) (format=latex 2001.9.17) 5 MAR 2002 12:03 **Citation-bug.tex (Citation-bug.tex LaTeX2e <2000/06/01> Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman, i talian, portuges, spanish, swedish, nohyphenation, loaded. (/usr/share/texmf/tex/latex/base/article.cls Document Class: article 2000/05/19 v1.4b Standard LaTeX document class (/usr/share/texmf/tex/latex/base/size10.clo File: size10.clo 2000/05/19 v1.4b Standard LaTeX file (size option) ) \c@part=\count79 \c@section=\count80 \c@subsection=\count81 \c@subsubsection=\count82 \c@paragraph=\count83 \c@subparagraph=\count84 \c@figure=\count85 \c@table=\count86 \abovecaptionskip=\skip41 \belowcaptionskip=\skip42 \bibindent=\dimen102 ) (/usr/share/texmf/tex/latex/base/fontenc.sty Package: fontenc 2000/08/30 v1.91 Standard LaTeX package (/usr/share/texmf/tex/latex/base/t1enc.def File: t1enc.def 2000/08/30 v1.91 Standard LaTeX file LaTeX Font Info: Redeclaring font encoding T1 on input line 38. )) (/usr/share/texmf/tex/latex/base/inputenc.sty Package: inputenc 2000/07/01 v0.996 Input encoding file (/usr/share/texmf/tex/latex/base/latin1.def File: latin1.def 2000/07/01 v0.996 Input encoding file )) (/usr/share/texmf/tex/latex/misc/a4wide.sty Package: a4wide 1994/08/30 (/usr/share/texmf/tex/latex/ntgclass/a4.sty Package: a4 1999/03/03 v1.2f A4 based page layout )) (/usr/share/texmf/tex/latex/amsmath/amsmath.sty Package: amsmath 2000/07/18 v2.13 AMS math features \@mathmargin=\skip43 For additional information on amsmath, use the `?' option. (/usr/share/texmf/tex/latex/amsmath/amstext.sty Package: amstext 2000/06/29 v2.01 (/usr/share/texmf/tex/latex/amsmath/amsgen.sty File: amsgen.sty 1999/11/30 v2.0 \@emptytoks=\toks14 \ex@=\dimen103 )) (/usr/share/texmf/tex/latex/amsmath/amsbsy.sty Package: amsbsy 1999/11/29 v1.2d \pmbraise@=\dimen104 ) (/usr/share/texmf/tex/latex/amsmath/amsopn.sty Package: amsopn 1999/12/14 v2.01 operator names ) \inf@bad=\count87 LaTeX Info: Redefining \frac on input line 211. \uproot@=\count88 \leftroot@=\count89 LaTeX Info: Redefining \overline on input line 307. \classnum@=\count90 \DOTSCASE@=\count91 LaTeX Info: Redefining \ldots on input line 379. LaTeX Info: Redefining \dots on input line 382. LaTeX Info: Redefining \cdots on input line 467. \Mathstrutbox@=\box26 \strutbox@=\box27 \big@size=\dimen105 LaTeX Font Info: Redeclaring font encoding OML on input line 567. LaTeX Font Info: Redeclaring font encoding OMS on input line 568. \macc@depth=\count92 \c@MaxMatrixCols=\count93 \dotsspace@=\muskip10 \c@parentequation=\count94 \dspbrk@lvl=\count95 \tag@help=\toks15 \row@=\count96 \column@=\count97 \maxfields@=\count98 \andhelp@=\toks16 \eqnshift@=\dimen106 \alignsep@=\dimen107 \tagshift@=\dimen108 \tagwidth@=\dimen109 \totwidth@=\dimen110 \lineht@=\dimen111 \@envbody=\toks17 \multlinegap=\skip44 \multlinetaggap=\skip45 \mathdisplay@stack=\toks18 LaTeX Info: Redefining \[ on input line 2666. LaTeX Info: Redefining \] on input line 2667. ) (/usr/share/texmf/tex/latex/amsfonts/amssymb.sty Package: amssymb 1996/11/03 v2.2b (/usr/share/texmf/tex/latex/amsfonts/amsfonts.sty Package: amsfonts 1997/09/17 v2.2e \symAMSa=\mathgroup4 \symAMSb=\mathgroup5 LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version `bold' (Font) U/euf/m/n --> U/euf/b/n on input line 133. )) (/usr/share/texmf/tex/generic/babel/babel.sty Package: babel 2001/03/01 v3.7h The Babel package (/usr/share/texmf/tex/generic/babel/frenchb.ldf Language: french 2001/03/01 v1.5e French support from the babel system (/usr/share/texmf/tex/generic/babel/babel.def File: babel.def 2001/03/01 v3.7h Babel common definitions \babel@savecnt=\count99 \U@D=\dimen112 ) Package babel Info: Making : an active character on input line 200. Package babel Info: Making ; an active character on input line 201. Package babel Info: Making ! an active character on input line 202. Package babel Info: Making ? an active character on input line 203. ************************************* * Local config file frenchb.cfg used * (/usr/share/texmf/tex/generic/babel/frenchb.cfg))) (Citation-bug.aux) \openout1 = `Citation-bug.aux'. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 19. LaTeX Font Info: ... okay on input line 19. LaTeX Font Info: Checking defaults for OT2/wncyr/m/n on input line 19. LaTeX Font Info: Try loading font information for OT2+wncyr on input line 19 . (/usr/share/texmf/tex/latex/cyrillic/ot2wncyr.fd File: ot2wncyr.fd 1999/12/17 v3.2a Computer Modern Cyrillic font definitions ) LaTeX Font Info: ... okay on input line 19. LaTeX Info: Redefining \dots on input line 19. LaTeX Font Info: Try loading font information for U+msa on input line 26. (/usr/share/texmf/tex/latex/amsfonts/umsa.fd File: umsa.fd 1995/01/05 v2.2e AMS font definitions ) LaTeX Font Info: Try loading font information for U+msb on input line 26. (/usr/share/texmf/tex/latex/amsfonts/umsb.fd File: umsb.fd 1995/01/05 v2.2e AMS font definitions ) LaTeX Warning: No \author given. LaTeX Warning: Citation `12' on page 1 undefined on input line 32. [1 ] Underfull \hbox (badness 10000) in paragraph at lines 87--91 []\T1/cmr/m/n/10 ``Real-Time Car-rier Phase Am-bi-guity< Re-so-lu-tion for [] [2] (Citation-bug.aux) LaTeX Warning: There were undefined references. ) Here is how much of TeX's memory you used: 1908 strings out of 20876 20433 string characters out of 195863 74903 words of memory out of 350001 4856 multiletter control sequences out of 10000+15000 13594 words of font info for 39 fonts, out of 400000 for 1000 16 hyphenation exceptions out of 1000 27i,6n,24p,228b,299s stack positions out of 1500i,100n,500p,50000b,4000s Output written on Citation-bug.dvi (2 pages, 5940 bytes).