Bug 1687: request for help. :-)
Hi, I am lost. :-) The bug is: http://bugzilla.lyx.org/show_bug.cgi?id=1687 In short, a user running a 64 bit plataform and lyx-1.3.4 has problems exporting any docbook document in any format. LyX always crashes, and the bug report is here: http://bugzilla.lyx.org/attachment.cgi?id=597&action=view What I find strange is the frame #5: #5 0x00456f50 in Buffer::makeDocBookFile (this=0xb38fc0, [EMAIL PROTECTED], nice=true, only_body=false) at buffer.C:2945 fname is supposed to be a reference to a constant string, yet it is null. The first code in makeDocBookFile that checks to see if the ostream was succefuly created does not fail. Then some of the values above are completly bogus, the depth for example. Clearly this does not happen on i368, or else I would have noticed, and I don't have also any x86_64 to test. -- José Abílio
Re: Bug 1687: request for help. :-)
On Mon, Oct 25, 2004 at 12:06:33PM +0100, Jos? Ab?lio Oliveira Matos wrote: >http://bugzilla.lyx.org/attachment.cgi?id=597&action=view > >What I find strange is the frame #5: > > #5 0x00456f50 in Buffer::makeDocBookFile (this=0xb38fc0, [EMAIL PROTECTED], > nice=true, only_body=false) at buffer.C:2945 Is the Buffer (this) valid? john
Re: Bug 1687: request for help. :-)
On Mon, Oct 25, 2004 at 01:20:26PM +0100, John Levon wrote: > On Mon, Oct 25, 2004 at 12:06:33PM +0100, Jos? Ab?lio Oliveira Matos wrote: > > >http://bugzilla.lyx.org/attachment.cgi?id=597&action=view > > > >What I find strange is the frame #5: > > > > #5 0x00456f50 in Buffer::makeDocBookFile (this=0xb38fc0, [EMAIL > > PROTECTED], > > nice=true, only_body=false) at buffer.C:2945 > > Is the Buffer (this) valid? #6 0x00478fd6 in Exporter::Export (buffer=0xb38fc0, [EMAIL PROTECTED], put_in_tempdir=false, [EMAIL PROTECTED]) at exporter.C:84 #7 0x00479677 in Exporter::Export (buffer=0x7fbfe3c3c8, [EMAIL PROTECTED], put_in_tempdir=false) at exporter.C:116 You are right. The buffer changed between these two calls, even weird. It shouldn't, right? > john -- José Abílio Matos LyX and docbook a perfect match. :-)
Re: Bug 1687: request for help. :-)
On Mon, Oct 25, 2004 at 01:28:15PM +0100, Jos? Ab?lio Oliveira Matos wrote: > > Is the Buffer (this) valid? > > You are right. The buffer changed between these two calls, even weird. > > It shouldn't, right? It shouldn't ;) john
Re: Bug 1687: request for help. :-)
On Mon, Oct 25, 2004 at 03:05:38PM +0100, John Levon wrote: > > It shouldn't ;) Any idea how to debug this? > john -- José Abílio Matos LyX and docbook a perfect match. :-)
Re: Bug 1687: request for help.
Josà AbÃlio Oliveira Matos <[EMAIL PROTECTED]> writes: > > On Mon, Oct 25, 2004 at 03:05:38PM +0100, John Levon wrote: > > > > It shouldn't ;) > > Any idea how to debug this? You could ask someone with a 64bit box for help! ;-P Sorry, I have my nasty day again, JosÃ. At our institute we ordered a couple of Athlon64s which should arrive in a few weeks if not next year (well, you know about university administration, no?) If the bug is still open at that time I'll give it a try. Ciao /Andreas
Re: Bug 1687: request for help.
On Mon, Oct 25, 2004 at 09:39:52PM +, Andreas Vox wrote: > > You could ask someone with a 64bit box for help! ;-P That would be nice. :-) > Sorry, I have my nasty day again, José. At our institute we ordered > a couple of Athlon64s which should arrive in a few weeks if not > next year (well, you know about university administration, no?) Someday I will be part of it. :-( > If the bug is still open at that time I'll give it a try. Thanks. :-) > Ciao > /Andreas -- José Abílio Matos LyX and docbook a perfect match. :-)
Re: Bug 1687: request for help. :-)
> "José" == José Abílio Oliveira Matos <[EMAIL PROTECTED]> writes: José> On Mon, Oct 25, 2004 at 01:20:26PM +0100, John Levon wrote: >> On Mon, Oct 25, 2004 at 12:06:33PM +0100, Jos? Ab?lio Oliveira Matos wrote: >> >> > http://bugzilla.lyx.org/attachment.cgi?id=597&action=view >> > >> > What I find strange is the frame #5: >> > >> > #5 0x00456f50 in Buffer::makeDocBookFile (this=0xb38fc0, >> [EMAIL PROTECTED], > nice=true, only_body=false) at buffer.C:2945 >> >> Is the Buffer (this) valid? José> You are right. The buffer changed between these two calls, José> even weird. José> It shouldn't, right? What you could try to test for: - is the compiler up to date? - Does disabling optimization help? - can valgrind run on x86_64? JMarc
Re: Bug 1687: request for help.
José Abílio Oliveira Matos wrote: > On Mon, Oct 25, 2004 at 09:39:52PM +, Andreas Vox wrote: >> >> You could ask someone with a 64bit box for help! ;-P > > That would be nice. :-) > >> Sorry, I have my nasty day again, José. At our institute we ordered >> a couple of Athlon64s which should arrive in a few weeks if not >> next year (well, you know about university administration, no?) > > Someday I will be part of it. :-( > >> If the bug is still open at that time I'll give it a try. José, Just for info: I use 1.3.x all the time on a 64bit Alpha machine and have never had the problem described in this bug report. -- Angus
Re: Bug 1687: request for help.
On Wed, Oct 27, 2004 at 05:36:08PM +0100, Angus Leeming wrote: > > José, Just for info: I use 1.3.x all the time on a 64bit Alpha > machine and have never had the problem described in this bug report. Thanks Angus, that information is useful. I will contact the guy who has this problems suggesting the steps pointed by Jean-Marc. > -- > Angus -- José Abílio Matos LyX and docbook a perfect match. :-)
Re: Bug 1687: request for help.
On Wed, Oct 27, 2004 at 05:36:08PM +0100, Angus Leeming wrote: > > José, Just for info: I use 1.3.x all the time on a 64bit Alpha > machine and have never had the problem described in this bug report. Just to be sure, could you export an empty document to docbook and see if it crashes lyx? > -- > Angus -- José Abílio Matos LyX and docbook a perfect match. :-)
Re: Bug 1687: request for help.
José Abílio Oliveira Matos wrote: > On Wed, Oct 27, 2004 at 05:36:08PM +0100, Angus Leeming wrote: >> >> José, Just for info: I use 1.3.x all the time on a 64bit Alpha >> machine and have never had the problem described in this bug report. > > Just to be sure, could you export an empty document to docbook and see > if it crashes lyx? Not easily. What would I need to install? However, I note that the guy said that exporting to DVI, PDF also crashed lyx. That doesn't happen here. Incidentally, trying to export an empty document as a DVI file results in a warning dialog: Alert The operation resulted in an empty file Dismiss What happens if you do this with docbook? -- Angus
Re: Bug 1687: request for help.
Angus Leeming <[EMAIL PROTECTED]> writes: > > Josà AbÃlio Oliveira Matos wrote: > > > On Wed, Oct 27, 2004 at 05:36:08PM +0100, Angus Leeming wrote: > >> > >> JosÃ, Just for info: I use 1.3.x all the time on a 64bit Alpha > >> machine and have never had the problem described in this bug report. > > > > Just to be sure, could you export an empty document to docbook and see > > if it crashes lyx? > > Not easily. What would I need to install? Don't ask! ;-) If you just want to see the XML/SGML files you could try to create a dummy 'sgmltools' script in your path and reconfigure. If LyX is fooled, it will offer Docbook classes after a restart. Export to XML / SGML does not need sgmltools, that's only for further processing. A minimal Docbook document should have a title, the highest sectioning command (chapter for Docbook (book) and section for Docbook (article)) and a non empty paragraph after that. If an "xmllint --valid mydb.xml" does not output only errormessages but also the document content, then the document was well formed. Don't expect validity (yet :-)). Ciao /Andreas
Re: Bug 1687: request for help.
On Wed, Oct 27, 2004 at 10:16:18PM +0100, Angus Leeming wrote: > José Abílio Oliveira Matos wrote: > > > On Wed, Oct 27, 2004 at 05:36:08PM +0100, Angus Leeming wrote: > >> > >> José, Just for info: I use 1.3.x all the time on a 64bit Alpha > >> machine and have never had the problem described in this bug report. > > > > Just to be sure, could you export an empty document to docbook and see > > if it crashes lyx? > > Not easily. What would I need to install? Put somewhere in your path some dummy script with execution permissions called sgmltools or db2dvi. When I want to test lyx in some machine but not install the docbook tools this is exactly what I do. That you will not be able to see the resulting dvi or pdf. But that is not the problem here. > However, I note that the guy said that exporting to DVI, PDF also crashed > lyx. That doesn't happen here. But from docbook, not from latex. That happens because the first export fails, I think. > Incidentally, trying to export an empty document as a DVI file results in a > warning dialog: > > Alert > The operation resulted in > an empty file > Dismiss > > What happens if you do this with docbook? It looks like the same, this is strange. Both for 1.3 and 1.4, so this means that no file is exported... File error. The specified file '/tmp/lyx_tmpdir5505ZkAmOy/lyx_tmpbuf0/newfile1.dvi' does not exist. KDVI already tried to add the ending '.dvi'. > -- > Angus -- José Abílio Matos LyX and docbook a perfect match. :-)
Re: Bug 1687: request for help.
Andreas Vox wrote: >> >> José, Just for info: I use 1.3.x all the time on a 64bit Alpha >> >> machine and have never had the problem described in this bug >> >> report. >> > >> > Just to be sure, could you export an empty document to docbook >> > and see if it crashes lyx? >> >> Not easily. What would I need to install? > > Don't ask! ;-) > > If you just want to see the XML/SGML files you could try to create a > dummy 'sgmltools' script in your path and reconfigure. If LyX is > fooled, it will offer Docbook classes after a restart. LyX is fooled. > Export to XML / SGML does not need sgmltools, that's only for > further processing. > > A minimal Docbook document should have a title, the highest > sectioning command (chapter for Docbook (book) and section for > Docbook (article)) and a non empty paragraph after that. Ok. I can confirm that a "DocBook article (SGML)" document exports to DocBook perfectly on my LinuxAlpha machine. No problems with with the XForms or the Qt versions of LyX 1.3.x cvs. -- Angus
Re: Bug 1687: request for help. :-)
On Tue, Oct 26, 2004 at 11:03:07AM +0200, Jean-Marc Lasgouttes wrote: > > - Does disabling optimization help? --- Additional Comments From [EMAIL PROTECTED] 2004-10-28 11:57 --- Turning off optimisation fixes the problem. Good thinking. > JMarc Thanks, Jean-Marc. -- José Abílio Matos LyX and docbook a perfect match. :-)