Hello

I'm using LyX 1.1.4 in FreeBSD 3.4-RELEASE, XFree86 3.3.5 and XForms 0.88:

$ ldd /usr/local/bin/lyx
/usr/local/bin/lyx:
        libxforms.so.0 => /usr/X11R6/lib/libxforms.so.0 (0x281d4000)
        libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x28282000)
        libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x2828f000)
        libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x28297000)
        libintl.so.1 => /usr/local/lib/libintl.so.1 (0x282ab000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x282af000)
        libm.so.2 => /usr/lib/libm.so.2 (0x28349000)
        libc.so.3 => /usr/lib/libc.so.3 (0x28364000)
        libXThrStub.so.6 => /usr/X11R6/lib/libXThrStub.so.6 (0x283e5000)

I found a bug that can be reproduced as shown below:

$ gdb /usr/local/bin/lyx
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...
(gdb) run new.lyx
Starting program: /usr/local/bin/lyx new.lyx

  [click in "Yes" to create new document]
  [select Insert->URL]
  [select a line of text in xterm]
  [paste it (MB2) to the URL field in the dialog box and click in "Close"]
  [select new text in xterm]
  [paste into LyX editing area]

lyx in realloc(): warning: chunk is already free.

Program received signal SIGSEGV, Segmentation fault.
0x282199d1 in paste_it () from /usr/X11R6/lib/libxforms.so.0
(gdb) bt
#0  0x282199d1 in paste_it () from /usr/X11R6/lib/libxforms.so.0
#1  0x28219b08 in gotit_cb () from /usr/X11R6/lib/libxforms.so.0
#2  0x281f29a5 in handle_clipboard_event () from /usr/X11R6/lib/libxforms.so.0
#3  0x282104a4 in do_interaction_step () from /usr/X11R6/lib/libxforms.so.0
#4  0x28210561 in fl_treat_interaction_events () from /usr/X11R6/lib/libxforms.so.0
#5  0x282105b2 in fl_check_forms () from /usr/X11R6/lib/libxforms.so.0
#6  0x80ae8ad in LyXGUI::runTime ()
#7  0x80afcb5 in LyX::LyX ()
#8  0x80d844f in main ()
#9  0x804f9ed in _start ()
(gdb) cont
Continuing.

lyx: SIGSEGV signal caught
Sorry, you have found a bug in LyX. If possible, please read 'Known bugs'
under the Help menu and then send us a full bug report. Thanks!
lyx: Attempting to save document /home/Devel/lyx-1.1.4/new.lyx as...
  1) /home/Devel/lyx-1.1.4/new.lyx.emergency
  Save seems successful. Phew.
Bye.

Program received signal SIGABRT, Aborted.
0x28397ae8 in kill () from /usr/lib/libc.so.3


I'm not sure if this helps to find the bug. Seems to be a problem in
XForms, not LyX.

Please CC to me if you reply because don't subscribe the list.


Casantos

Reply via email to