<groan> what a pain ... 

#0  0x8205ca9 in memcpy (dstpp=0x83ea5a8, srcpp=0x83cdf48, len=116300)
    at ../sysdeps/generic/memcpy.c:51
#1  0x8115230 in LString::operator+= (this=0xbffff344, c=-1 'ÿ')
    at LString.C:268
#2  0x8140312 in InsetBibtex::getKeys (this=0x83ac430) at insetbib.C:425
#3  0x80fd02b in Buffer::getBibkeyList (this=0x83a6548, delim=44 ',')
    at buffer.C:3349
#4  0x8140a6c in BibitemUpdate (combox=0x83ac738) at insetbib.C:496
#5  0x813edfa in InsetCitation::Edit (this=0x83ac4e8) at insetbib.C:180
#6  0x80a8a16 in LyXFunc::Dispatch (this=0x8354530, ac=176, 
    do_not_use_this_arg=0x0) at lyxfunc.C:2140
#7  0x80b7a50 in Menus::ShowInsertMenu (ob=0x834d920) at menus.C:1347
#8  0x8172f67 in fl_object_qread () at chset.C:118
#9  0x8171c96 in fl_check_forms () at chset.C:118
#10 0x804e8f5 in LyXGUI::runTime (this=0x832c9e0) at lyx_gui.C:629
#11 0x80487ef in LyX::LyX (this=0xbffff700, argc=0xbffff7a0, argv=0xbffff7b4)
    at ../src/lyx_main.C:128
#12 0x8048206 in main (argc=1, argv=0xbffff7b4) at ../src/main.C:51

feof() in insetbib.C (line 408) isn't returning true because there's
an error...

(gdb) print errno
$6 = 21

21 => is a directory...

In my home directory, there's a directory called "um99".
LyX doesn't expect the file read to fail, hence it hangs.

I'm not quite sure how to put the fix in tho...

Probably something around line 405? or a better check on line 408?

403                     FilePtr file(tmp,FilePtr::read);
404                     char c;
405
406                     // On some systems where feof() is a macro,
407                     // the () after file is needed (JMarc)
408                     while (! feof(file())) {
409                             c = fgetc(file);

anyways... hope this helps...

Ben





Jean-Marc Lasgouttes said:
> >>>>> "Benjamin" == Benjamin Korvemaker <[EMAIL PROTECTED]> writes:
> 
> Benjamin> And I've just discovered (i think), the glitch..  named
> Benjamin> "um99.bib", lyx hangs..  named "um.bib", lyx parses it ok...
> Benjamin> But looking at the code, I can't see why this could possibly
> Benjamin> matter...
> 
> Benjamin> Can anyone duplicate this?
> 
> I cannot duplicate it. Could you try to run lyx under gdb and see
> where/why it hangs?
> 
> JMarc
> 


-- 
Benjamin Korvemaker,GSB 701,(780) 492-9596,(780) 439-6780
[EMAIL PROTECTED]
     If at first you don't succeed, then skydiving isn't for you.

Reply via email to