Hello and thanks for answering,

Here is what I got when I did a backtrace:

$gdb ./lyx

GNU gdb Red Hat Linux (5.2-2)
Copyright 2002 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-redhat-linux"...

(gdb) run

Starting program: /home/amir/tmp/lyx-1.1.6fix4/src/lyx
[New Thread 1024 (LWP 8054)]
lyx: /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.
[Switching to Thread 1024 (LWP 8054)]
0x42029331 in kill () from /lib/i686/libc.so.6

(gdb) bt

#0  0x42029331 in kill () from /lib/i686/libc.so.6
#1  0x4202911a in raise () from /lib/i686/libc.so.6
#2  0x4202a8c2 in abort () from /lib/i686/libc.so.6
#3  0x42022ecb in __assert_fail () from /lib/i686/libc.so.6
#4  0x080579cf in basic_string<char, string_char_traits<char>, 
__default_alloc_template<true, 0> >::replace (this=0xbffff4d0, pos1=0, 
n1=4294967295,
     str=@0xbffff500, pos2=137466304, n2=137466364)
     at /usr/include/g++-3/std/bastring.cc:126
#5  0x082ac1fb in LSubstring::operator basic_string<char, 
string_char_traits<char>, __default_alloc_template<true, 0> > 
(this=0xbffff4c0)
     at /usr/include/g++-3/std/bastring.h:221
#6  0x080c5cc0 in CharacterSet::loadFile (this=0x83522cc, fname=@0x8310940)
     at /usr/include/g++-3/stl_vector.h:219
#7  0x08100066 in Intl::InitKeyMapper (this=0x8352240, on=false) at 
intl.C:379
#8  0x08087c5b in LyXView::init (this=0x832acb8) at LyXView.C:320
#9  0x0812746c in LyXGUI::init (this=0x8327820) at lyx_gui.C:264
#10 0x08129de1 in LyX::LyX (this=0xbffff8a0, argc=0xbffff8f0, 
argv=0xbffff954)
     at ../src/lyx_main.C:107
#11 0x08175ca0 in main (argc=1, argv=0xbffff954) at ../src/main.C:40
#12 0x42017589 in __libc_start_main () from /lib/i686/libc.so.6

(gdb)


After this the Lyx window was still visible but did not respond to 
anything (the words (at the top): File, Edit,... did not show).

I might also add, that after deleting the appropriate .lyx directory 
(.lyx-1.1.6fix4 in this case) and runing Lyx by typing lyx-1.1.6fix4 the 
program crashed. However if I typed src/lyx-1.1.6fix4 (after deleting 
the .lyx-1.1.6fix4 directory) the program didn't crash. Reruning lyx 
again, in both methods resulted in crashing.

Thanks again,

Amir.

Jean-Marc Lasgouttes wrote:
>>>>>>"Amir" == Amir Seginer <[EMAIL PROTECTED]> writes:
>>>>>
> 
> Amir> Hello, I'm trying to install Lyx-1.1.6fix4 in parallel to
> Amir> Lyx-1.2 (inorder to work on an older file), however right after
> Amir> starting the program it crashes with the message:
> 
> Amir> lyx-1.1.6fix4: /usr/include/g++-3/std/bastring.cc:126:
> Amir> basic_string<charT, traits, Allocator> &basic_string<charT,
> Amir> traits,
> Allocator> ::replace (unsigned int, unsigned int, const
> Amir> basic_string<charT, traits, Allocator> &, unsigned int, unsigned
> Amir> int) [with charT = char, traits = string_char_traits<char>,
> Amir> Allocator = __default_alloc_template<true, 0>]: Assertion
> Amir> `!(pos2 > len2)' failed. Aborted
> 
> It would be nice to have a backtrace to see where the assertion is
> triggered. Something like
> 
> gdb ./lyx
> (gdb) run
> [make it crash]
> (gdb) bt
> 
> JMarc
> 
> 



Reply via email to