RE: Crash when trying to open a document on a Samba share

2011-03-24 Thread venom00
> Pavel Sanda wrote: > > veno...@arcadiaclub.com wrote: > > > > urmmm, Ale, please kill this "!"... > > > > pavel > > > > > > Tested: works! > > > > Ale, can you please try this patch? it may allow us > > to compute crc properly even on samba... > > pavel > > ping This patch works too. You can

Re: Crash when trying to open a document on a Samba share

2011-03-23 Thread Pavel Sanda
veno...@arcadiaclub.com wrote: > > urmmm, Ale, please kill this "!"... > > pavel > > Tested: works! Ale, can you please try this patch? it may allow us to compute crc properly even on samba... pavel diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp index 1650a5b..a16278f 100644 ---

RE: Crash when trying to open a document on a Samba share

2011-03-23 Thread venom00
> urmmm, Ale, please kill this "!"... > pavel Tested: works! venom00

Re: Crash when trying to open a document on a Samba share

2011-03-22 Thread Stephan Witt
Am 22.03.2011 um 08:13 schrieb : >> urmmm, Ale, please kill this "!"... >> pavel > > I'll do that tomorrow, today there's the conference about LyX and related > stuffs > that I've organized at my university! > It's the first time I have a talk in a public conference, I hope I won't > freeze > o

RE: Crash when trying to open a document on a Samba share

2011-03-22 Thread venom00
> urmmm, Ale, please kill this "!"... > pavel I'll do that tomorrow, today there's the conference about LyX and related stuffs that I've organized at my university! It's the first time I have a talk in a public conference, I hope I won't freeze or make people sleep too much. :) venom00, LyX Evang

Re: Crash when trying to open a document on a Samba share

2011-03-21 Thread Pavel Sanda
Enrico Forestieri wrote: > On Mon, Mar 21, 2011 at 11:42:30AM +0100, Pavel Sanda wrote: > > > Pavel Sanda wrote: > > > Vincent van Ravesteijn wrote: > > > > According to the code: bytes_end = bytes_begin + info.st_size, which > > > > would > > > > mean info.st_size is 150 MB ? > > > > > > > > Is

Re: Crash when trying to open a document on a Samba share

2011-03-21 Thread Enrico Forestieri
On Mon, Mar 21, 2011 at 11:42:30AM +0100, Pavel Sanda wrote: > Pavel Sanda wrote: > > Vincent van Ravesteijn wrote: > > > According to the code: bytes_end = bytes_begin + info.st_size, which > > > would > > > mean info.st_size is 150 MB ? > > > > > > Is fstat failing in this case, or did you rea

RE: Crash when trying to open a document on a Samba share

2011-03-21 Thread venom00
> > > According to the code: bytes_end = bytes_begin + > info.st_size, which would > > > mean info.st_size is 150 MB ? > > > > > > Is fstat failing in this case, or did you really have a > file of 150MB ? > > > > and in any case we do not check for return value of fstat, > which looks wrong. >

Re: Crash when trying to open a document on a Samba share

2011-03-21 Thread Pavel Sanda
Pavel Sanda wrote: > Vincent van Ravesteijn wrote: > > According to the code: bytes_end = bytes_begin + info.st_size, which would > > mean info.st_size is 150 MB ? > > > > Is fstat failing in this case, or did you really have a file of 150MB ? > > and in any case we do not check for return value

Re: Crash when trying to open a document on a Samba share

2011-03-21 Thread Pavel Sanda
Vincent van Ravesteijn wrote: > According to the code: bytes_end = bytes_begin + info.st_size, which would > mean info.st_size is 150 MB ? > > Is fstat failing in this case, or did you really have a file of 150MB ? and in any case we do not check for return value of fstat, which looks wrong. pave

Re: Crash when trying to open a document on a Samba share

2011-03-21 Thread Vincent van Ravesteijn
Op 21-3-2011 11:24, Pavel Sanda schreef: veno...@arcadiaclub.com wrote: i remember independent reports lately. if you are able to produce this crash it would be fine to provide backtrace or investigate whats going on. Here's the backtrace from gdb: thanks. perhaps we can't mmap files on samba

Re: Crash when trying to open a document on a Samba share

2011-03-21 Thread Pavel Sanda
veno...@arcadiaclub.com wrote: > > i remember independent reports lately. if you are able to > > produce this crash it would be fine > > to provide backtrace or investigate whats going on. > > Here's the backtrace from gdb: thanks. perhaps we can't mmap files on samba? when you replace #ifdef SU

RE: Crash when trying to open a document on a Samba share

2011-03-21 Thread venom00
> i remember independent reports lately. if you are able to > produce this crash it would be fine > to provide backtrace or investigate whats going on. Here's the backtrace from gdb: Program received signal SIGBUS, Bus error. 0x08359e78 in index (this=0xbfffb62c, bytes_begin=0xab81f000, bytes_en

Re: Crash when trying to open a document on a Samba share

2011-03-20 Thread Pavel Sanda
veno...@arcadiaclub.com wrote: > Whenever I try to open a file on a Samba share under Linux, LyX crashes > immediately with a "Bus error" on the console. > The same file, when copied on the local disk works fine. > > There's a similar bug but is targeted at 1.6.x, but it's still there on 2.0.0 >

Crash when trying to open a document on a Samba share

2011-03-20 Thread venom00
Whenever I try to open a file on a Samba share under Linux, LyX crashes immediately with a "Bus error" on the console. The same file, when copied on the local disk works fine. There's a similar bug but is targeted at 1.6.x, but it's still there on 2.0.0 post rc1, r37968: http://www.lyx.org/trac/