Dear devels
Running beta1 on Xubuntu 10.04, 64-bit.

On Mon, Nov 22, 2010 at 7:55 PM, Liviu Andronic <landronim...@gmail.com>
wrote:
> On Mon, Nov 22, 2010 at 5:47 PM, Pavel Sanda <sa...@lyx.org> wrote:
>> care to produce recipies or at least backtraces? they are not going to be
>> fixed unless somebody reports them...
>>
> Yes, I plan to do so. I tried with earlier alphas, but the traces
> weren't very informative. I have to study the steps necessary for
> debugging, and then I'll send something useful. As for a recipe, the
> crashes are not quite reproducible, but happen regularly. The most
> often case is when there is some problem in the Sweave code, and R
> halts execution and returns error.
>
I attempted to generate some debugging info. As expected, I needed a couple
of tries, but after persevering long enough the usual crash came. The
document is very simple (see attached) and contains an error in the R code.
Let me know if this is the proper way of debugging (no instructions found on
the site or the wiki):
l...@liv-laptop:~$ gdb lyx-svn
[..]
run
[.. crash ..]
backtrace
[..]
quit

Also, please tell me if I could provide more information. Regards
Liviu


### debug output ###
l...@liv-laptop:~$ gdb lyx-svn
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/bin/lyx-svn...done.
(gdb) run
Starting program: /usr/local/bin/lyx-svn
[Thread debugging using libthread_db enabled]
LyX: Unknown tag `-lpf' [around line 13 of file ~/.lyx-svn/lyxrc.defaults
current token: '-lpf' context: '']
LyX: Unknown tag `$$i' [around line 13 of file ~/.lyx-svn/lyxrc.defaults
current token: '$$i' context: '']
LyX: Unknown tag `-mode' [around line 13 of file ~/.lyx-svn/lyxrc.defaults
current token: '-mode' context: '']
LyX: Unknown tag `EditPosition' [around line 14 of file
~/.lyx-svn/lyxrc.defaults current token: 'EditPosition' context: '']
[New Thread 0x7fffedb0f710 (LWP 15155)]
[New Thread 0x7fffed30e710 (LWP 15156)]
[Thread 0x7fffedb0f710 (LWP 15155) exited]
[Thread 0x7fffed30e710 (LWP 15156) exited]
[New Thread 0x7fffed30e710 (LWP 15162)]
[New Thread 0x7fffedb0f710 (LWP 15163)]
Writing to file newfile1.tex
Processing code chunks ...
1 : echo term verbatim

You can now run LaTeX on 'newfile1.tex'
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
restricted \write18 enabled.
entering extended mode
(./newfile1.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang,
noh
yphenation, polish, loaded.

Writing to file newfile1.tex
Processing code chunks ...
1 : echo term verbatim

Error:  chunk 1
Error in eval(expr, envir, enclos) : object 'a' not found
Execution halted
Systemcall.cpp(237): Systemcall: 'Rscript --vanilla
"/usr/local/share/lyx-svn/scripts/lyxsweave.R" "newfile1.Rnw" ISO-8859-15'
finished with exit code 1
Error: Cannot convert file
----------------------------------------
An error occurred whilst running Rscript --vanilla
"/usr/local/share/lyx-svn/script
Writing to file newfile1.tex
Processing code chunks ...
1 : echo term verbatim

Error:  chunk 1
Error in eval(expr, envir, enclos) : object 'a' not found
Execution halted
Systemcall.cpp(237): Systemcall: 'Rscript --vanilla
"/usr/local/share/lyx-svn/scripts/lyxsweave.R" "newfile1.Rnw" ISO-8859-15'
finished with exit code 1
Error: Cannot convert file
----------------------------------------
An error occurred whilst running Rscript --vanilla
"/usr/local/share/lyx-svn/script
Error returned from iconv
E2BIG  There is not sufficient room at *outbuf.
Writing to file newfile1.tex
Processing code chunks ...
1 : echo term verbatim

Error:  chunk 1
Error in eval(expr, envir, enclos) : object 'a' not found
Execution halted
Systemcall.cpp(237): Systemcall: 'Rscript --vanilla
"/usr/local/share/lyx-svn/scripts/lyxsweave.R" "newfile1.Rnw" ISO-8859-15'
finished with exit code 1
Error: Cannot convert file
----------------------------------------
An error occurred whilst running Rscript --vanilla
"/usr/local/share/lyx-svn/script
Writing to file newfile1.tex
Processing code chunks ...
1 : echo term verbatim

Error:  chunk 1
Error in eval(expr, envir, enclos) : object 'a' not found
Execution halted
Systemcall.cpp(237): Systemcall: 'Rscript --vanilla
"/usr/local/share/lyx-svn/scripts/lyxsweave.R" "newfile1.Rnw" ISO-8859-15'
finished with exit code 1
Error: Cannot convert file
----------------------------------------
An error occurred whilst running Rscript --vanilla
"/usr/local/share/lyx-svn/script
Writing to file newfile1.tex
Processing code chunks ...
1 : echo term verbatim

Error:  chunk 1
Error in eval(expr, envir, enclos) : object 'a' not found
Execution halted
Systemcall.cpp(237): Systemcall: 'Rscript --vanilla
"/usr/local/share/lyx-svn/scripts/lyxsweave.R" "newfile1.Rnw" ISO-8859-15'
finished with exit code 1
Error: Cannot convert file
----------------------------------------
An error occurred whilst running Rscript --vanilla
"/usr/local/share/lyx-svn/script
Writing to file newfile1.tex
Processing code chunks ...
1 : echo term verbatim

Error:  chunk 1
Error in eval(expr, envir, enclos) : object 'a' not found
Execution halted
Systemcall.cpp(237): Systemcall: 'Rscript --vanilla
"/usr/local/share/lyx-svn/scripts/lyxsweave.R" "newfile1.Rnw" ISO-8859-15'
finished with exit code 1
Error: Cannot convert file
----------------------------------------
An error occurred whilst running Rscript --vanilla
"/usr/local/share/lyx-svn/script
Writing to file newfile1.tex
Processing code chunks ...
1 : echo term verbatim

Error:  chunk 1
Error in eval(expr, envir, enclos) : object 'a' not found
Execution halted
Systemcall.cpp(237): Systemcall: 'Rscript --vanilla
"/usr/local/share/lyx-svn/scripts/lyxsweave.R" "newfile1.Rnw" ISO-8859-15'
finished with exit code 1
Error: Cannot convert file
----------------------------------------
An error occurred whilst running Rscript --vanilla
"/usr/local/share/lyx-svn/script
Writing to file newfile1.tex
Processing code chunks ...
1 : echo term verbatim

Error:  chunk 1
Error in eval(expr, envir, enclos) : object 'a' not found
Execution halted
Systemcall.cpp(237): Systemcall: 'Rscript --vanilla
"/usr/local/share/lyx-svn/scripts/lyxsweave.R" "newfile1.Rnw" ISO-8859-15'
finished with exit code 1
Error: Cannot convert file
----------------------------------------
An error occurred whilst running Rscript --vanilla
"/usr/local/share/lyx-svn/script
Writing to file newfile1.tex
Processing code chunks ...
1 : echo term verbatim

Error:  chunk 1
Error in eval(expr, envir, enclos) : object 'a' not found
Execution halted
Systemcall.cpp(237): Systemcall: 'Rscript --vanilla
"/usr/local/share/lyx-svn/scripts/lyxsweave.R" "newfile1.Rnw" ISO-8859-15'
finished with exit code 1
Error: Cannot convert file
----------------------------------------
An error occurred whilst running Rscript --vanilla
"/usr/local/share/lyx-svn/script
Error returned from iconv
E2BIG  There is not sufficient room at *outbuf.
Error returned from iconv
E2BIG  There is not sufficient room at *outbuf.
Error returned from iconv
E2BIG  There is not sufficient room at *outbuf.
Error returned from iconv
E2BIG  There is not sufficient room at *outbuf.
Writing to file newfile1.tex
Processing code chunks ...
1 : echo term verbatim

Error:  chunk 1
Error in eval(expr, envir, enclos) : object 'a' not found
Execution halted
Systemcall.cpp(237): Systemcall: 'Rscript --vanilla
"/usr/local/share/lyx-svn/scripts/lyxsweave.R" "newfile1.Rnw" ISO-8859-15'
finished with exit code 1
Error: Cannot convert file
----------------------------------------
An error occurred whilst running Rscript --vanilla
"/usr/local/share/lyx-svn/script
Writing to file newfile1.tex
Processing code chunks ...
1 : echo term verbatim

Error:  chunk 1
Error in eval(expr, envir, enclos) : object 'a' not found
Execution halted
Systemcall.cpp(237): Systemcall: 'Rscript --vanilla
"/usr/local/share/lyx-svn/scripts/lyxsweave.R" "newfile1.Rnw" ISO-8859-15'
finished with exit code 1
Error: Cannot convert file
----------------------------------------
An error occurred whilst running Rscript --vanilla
"/usr/local/share/lyx-svn/script
*** glibc detected *** /usr/local/bin/lyx-svn: free(): invalid next size
(fast): 0x00007fffe8017170 ***

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff4ff2683 in mempcpy () from /lib/libc.so.6
(gdb) backtrace
#0  0x00007ffff4ff2683 in mempcpy () from /lib/libc.so.6
#1  0x00007ffff4f93ec3 in ?? () from /lib/libc.so.6
#2  0x00007ffff4f8f8a9 in ?? () from /lib/libc.so.6
#3  0x00007ffff4f8c18c in ?? () from /lib/libc.so.6
#4  0x00007ffff4f8b70c in iconv () from /lib/libc.so.6
#5  0x00000000009fb07f in lyx::IconvProcessor::convert (this=0xe599e0,
   buf=0x24d3dd8 "Command disabled", buflen=16, outbuf=0x250f9d8 "",
   maxoutsize=64) at unicode.cpp:135
#6  0x00000000009d050e in lyx::utf8_to_ucs4 (utf8=<value optimized out>,
   ucs4=...) at docstring.cpp:89
#7  0x00000000009d055a in lyx::from_utf8 (utf8=...) at docstring.cpp:99
#8  0x00000000007aff3b in lyx::frontend::GuiApplication::getStatus (
   this=<value optimized out>, cmd=...) at GuiApplication.cpp:922
#9  0x0000000000501140 in lyx::getStatus (action=...) at LyX.cpp:1221
#10 0x0000000000830728 in lyx::frontend::Action::update (this=0x13e8f10)
   at Action.cpp:46
#11 0x0000000000993b7b in lyx::frontend::GuiToolbar::update (this=0x12af1c0,

   in_math=240, in_table=<value optimized out>,
   in_review=<value optimized out>, in_mathmacrotemplate=false)
   at GuiToolbar.cpp:304
#12 0x00000000007d2d14 in lyx::frontend::GuiView::updateToolbars (
   this=<value optimized out>) at GuiView.cpp:1363
#13 0x00000000007d3c48 in lyx::frontend::GuiView::updateDialogs (
---Type <return> to continue, or q <return> to quit---
   this=0x12ada20) at GuiView.cpp:3784
#14 0x00000000007d3cce in lyx::frontend::GuiView::restartCursor (
   this=0x12ada20) at GuiView.cpp:3590
#15 0x00000000007ae3ad in lyx::frontend::GuiApplication::dispatch (
   this=0xea8990, cmd=...) at GuiApplication.cpp:1117
#16 0x00000000007aced0 in lyx::frontend::GuiApplication::processFuncRequest
(
   this=0xea8990, keysym=..., state=lyx::ControlModifier)
   at GuiApplication.cpp:1793
#17 lyx::frontend::GuiApplication::processKeySym (this=0xea8990, keysym=...,

   state=lyx::ControlModifier) at GuiApplication.cpp:1787
#18 0x00000000007f86d5 in lyx::frontend::GuiWorkArea::keyPressEvent (
   this=0xf87a00, ev=0x7fffffffd1b0) at GuiWorkArea.cpp:1011
#19 0x00007ffff635122e in QWidget::event(QEvent*) ()
  from /usr/lib/libQtGui.so.4
#20 0x00007ffff66f84e6 in QFrame::event(QEvent*) () from
/usr/lib/libQtGui.so.4
#21 0x00007ffff67838ab in QAbstractScrollArea::event(QEvent*) ()
  from /usr/lib/libQtGui.so.4
#22 0x00000000007f3773 in lyx::frontend::GuiWorkArea::event (this=0xf87a00,
   e=0x7fffffffd1b0) at GuiWorkArea.cpp:692
#23 0x00007ffff62fb22c in QApplicationPrivate::notify_helper(QObject*,
QEvent*)
   () from /usr/lib/libQtGui.so.4
#24 0x00007ffff6302ec5 in QApplication::notify(QObject*, QEvent*) ()
  from /usr/lib/libQtGui.so.4
---Type <return> to continue, or q <return> to quit---
#25 0x00000000007a82ad in lyx::frontend::GuiApplication::notify (
   this=0x7fffe8044110, receiver=0x7fffe8056ff0, event=0xffff80001a4f4848)
   at GuiApplication.cpp:2169
#26 0x00007ffff5e2806c in QCoreApplication::notifyInternal(QObject*,
QEvent*)
   () from /usr/lib/libQtCore.so.4
#27 0x00007ffff63a616a in ?? () from /usr/lib/libQtGui.so.4
#28 0x00007ffff63a86f0 in ?? () from /usr/lib/libQtGui.so.4
#29 0x00007ffff637f904 in QApplication::x11ProcessEvent(_XEvent*) ()
  from /usr/lib/libQtGui.so.4
#30 0x00007ffff63ab882 in ?? () from /usr/lib/libQtGui.so.4
#31 0x00007ffff75268c2 in g_main_context_dispatch () from
/lib/libglib-2.0.so.0
#32 0x00007ffff752a748 in ?? () from /lib/libglib-2.0.so.0
#33 0x00007ffff752a8fc in g_main_context_iteration ()
  from /lib/libglib-2.0.so.0
#34 0x00007ffff5e51513 in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
() from /usr/lib/libQtCore.so.4
#35 0x00007ffff63ab46e in ?? () from /usr/lib/libQtGui.so.4
#36 0x00007ffff5e26992 in
QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from
/usr/lib/libQtCore.so.4
#37 0x00007ffff5e26d6c in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from
/usr/lib/libQtCore.so.4
#38 0x00007ffff5e2aaab in QCoreApplication::exec() ()
  from /usr/lib/libQtCore.so.4
---Type <return> to continue, or q <return> to quit---
#39 0x0000000000509e68 in lyx::LyX::exec (this=<value optimized out>,
   argc=<value optimized out>, argv=<value optimized out>) at LyX.cpp:383
#40 0x000000000043b63a in main (argc=1, argv=0x7fffffffe318) at main.cpp:43
(gdb) quit
A debugging session is active.

Inferior 1 [process 15121] will be killed.

Quit anyway? (y or n) y

Attachment: newfile1.lyx
Description: Binary data

Reply via email to