http://bugzilla.novell.com/show_bug.cgi?id=498789
User per.jessen@enidan.com added comment http://bugzilla.novell.com/show_bug.cgi?id=498789#c1
Summary: DocumentConverter.py segfaults Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: OpenOffice.org AssignedTo: bnc-team-ooo@forge.provo.novell.com ReportedBy: per.jessen@enidan.com QAContact: kyu@novell.com Found By: ---
Created an attachment (id=288579) --> (http://bugzilla.novell.com/attachment.cgi?id=288579) glibc backtrace
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.8.1.6) Gecko/20070730 SUSE/2.0.0.6-25 Firefox/2.0.0.6
I convert from sxw to pdf like this:
#!/bin/sh export URE_BOOTSTRAP=vnd.sun.star.pathname:/usr/lib/ooo3/program/fundamentalrc export PYTHONPATH=/usr/lib/ooo3/basis3.0/program python /usr/share/ooo3/program/DocumentConverter.py $@
Every now and then, fairly regularly, I get a segfault or similar when running this.
Ex#1: sxw2pdf mar2009.1.sxw mar2009.1.pdf python: tpp.c:63: __pthread_tpp_change_priority: Assertion `new_prio == -1 || (new_prio >= __sched_fifo_min_prio && new_prio <= __sched_fifo_max_prio)' failed. /usr/lib/spamchek/bin/sxw2pdf: line 8: 11726 Aborted (core dumped) python /usr/share/ooo3/program/DocumentConverter.py $@
I have the core dump if it's of any interest.
Other times I just get the segfault and the coredump, and some times I get a glibc traceback, see attached.
Reproducible: Sometimes
http://bugzilla.novell.com/show_bug.cgi?id=498789
User per.jessen@enidan.com added comment http://bugzilla.novell.com/show_bug.cgi?id=498789#c1
--- Comment #1 from Per Jessen per.jessen@enidan.com 2009-04-28 08:22:36 MDT --- I've been googling, and the assertion in my first example is quite common, and usually due to someone haven forgotten to call pthread_mutexattr_init().
http://bugzilla.novell.com/show_bug.cgi?id=498789
User pmladek@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=498789#c2
Petr Mladek pmladek@novell.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High CC| |pmladek@novell.com
--- Comment #2 from Petr Mladek pmladek@novell.com 2009-04-28 09:17:23 MDT --- I take this bug.
The backtrace did not hep much. It would help a lot if I could reproduce it here.
Per, could you please provide some more information?
1. What distribution are you using? (openSUSE-11.1GM or Factory or ???) 2. Is your system x86_64 or i586? 3. What OpenOffice_org version are you using and from what repository? 4. DocumentConverter.py requires a running OOo. What options are you using to start it? 5. Could you please attach a document that caused a crash?
Hmm, you mentioned in the bug #440090 that the script ooconvert did not work for you. It works here, so I would like to know:
6. Did you modified any OOo or python files? 7. Could you please try to verify the isnstallation? You might use the command:
rpm -V `rpm -qa | grep -e OpenOffice_org -e python`
http://bugzilla.novell.com/show_bug.cgi?id=498789
User pmladek@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=498789#c3
Petr Mladek pmladek@novell.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |per.jessen@enidan.com
--- Comment #3 from Petr Mladek pmladek@novell.com 2009-04-28 09:30:26 MDT --- Ah, I have just seen your uno.py in the bug#440090. There is missing fix for python-2.6, see the bug #448776. It might cause the problems.
Per, could you please try to apply the following diff against /usr/lib/ooo3/basis-link/program/uno.py?
http://bugzilla.novell.com/show_bug.cgi?id=498789
User pmladek@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=498789#c4
--- Comment #4 from Petr Mladek pmladek@novell.com 2009-04-28 09:31:06 MDT --- Created an attachment (id=288644) --> (http://bugzilla.novell.com/attachment.cgi?id=288644) Possible fix.
http://bugzilla.novell.com/show_bug.cgi?id=498789
User per.jessen@enidan.com added comment http://bugzilla.novell.com/show_bug.cgi?id=498789#c5
Per Jessen per.jessen@enidan.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|per.jessen@enidan.com |
--- Comment #5 from Per Jessen per.jessen@enidan.com 2009-04-28 10:14:34 MDT --- Answers to questions from comment #2:
1. vanilla openSUSE 11.1GM 2. i586 3. OpenOffice 3.0.0.9 4. -headless -nologo -norestore -accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager 5. I can send you one off-line, but I'd prefer not to attach it here.
Note - I'm not using ooconvert, I'm running my own three-line script which calls DocumentConverter.py
6. I only updated the converter package to 3.0-5.1
# rpm -V `rpm -qa | grep -e OpenOffice_org -e python` ......T /usr/share/ooo3/program/DocumentConverter.py S.5....T /usr/lib/ooo3/basis3.0/program/uno.py
http://bugzilla.novell.com/show_bug.cgi?id=498789
User per.jessen@enidan.com added comment http://bugzilla.novell.com/show_bug.cgi?id=498789#c6
--- Comment #6 from Per Jessen per.jessen@enidan.com 2009-04-29 00:19:10 MDT --- I've managed to reproduce this by simply running many conversions, one of the other, i.e. while true; do conversion(same document); done. I've sent you a test document off-line.
http://bugzilla.novell.com/show_bug.cgi?id=498789
User per.jessen@enidan.com added comment http://bugzilla.novell.com/show_bug.cgi?id=498789#c7
--- Comment #7 from Per Jessen per.jessen@enidan.com 2009-04-29 07:19:30 MDT --- This probably doesn't make any difference, but I've just tried running the DocumentConverter.py script on an openSUSE 11.0 system with openoffice 2.4 - works just fine.
http://bugzilla.novell.com/show_bug.cgi?id=498789
Petr Mladek pmladek@novell.com changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-ooo@forge.provo.no |pmladek@novell.com |vell.com |
http://bugzilla.novell.com/show_bug.cgi?id=498789
User per.jessen@enidan.com added comment http://bugzilla.novell.com/show_bug.cgi?id=498789#c8
--- Comment #8 from Per Jessen per.jessen@enidan.com 2009-04-29 11:15:46 MDT --- I took the same openSUSE 11.0 system and upgraded to the latest OpenOffice from the Build Service (3.0.1 I think), and it is still working fine. I'll upgrade my 11.1 system to the same OpenOffice version/build and see if that improves things.
http://bugzilla.novell.com/show_bug.cgi?id=498789
User per.jessen@enidan.com added comment http://bugzilla.novell.com/show_bug.cgi?id=498789#c9
--- Comment #9 from Per Jessen per.jessen@enidan.com 2009-04-29 12:45:15 MDT --- I upgraded my openSUSE 11.1 system to OpenOffice 3.0.1, which didn't make things much better. I still saw the occasional segfault. The only important difference that remains between my 11.0 and my 11.1 system is now python. (11.0 has 2.5.2, 11.1 has 2.6). I can't downgrade the target system to 11.0, it's too late for that, but maybe I'll try downgrading python. Or upgrading perhaps.
http://bugzilla.novell.com/show_bug.cgi?id=498789
User per.jessen@enidan.com added comment http://bugzilla.novell.com/show_bug.cgi?id=498789#c10
--- Comment #10 from Per Jessen per.jessen@enidan.com 2009-04-30 03:25:54 MDT --- Okay, I have upgraded my openSUSE 11.1 system to python 2.6.2 from Factory. I now get a msg saying "ERROR! ErrorCodeIOException 1287" when I attempt to run DocumentConverter.py. I'm thinking of downgrading python to 2.5.2 - that worked on y, 11.0 system, so there's a pretty good chance it will work on 11.1 too. I wonder what the dependencies might be.
http://bugzilla.novell.com/show_bug.cgi?id=498789
User per.jessen@enidan.com added comment http://bugzilla.novell.com/show_bug.cgi?id=498789#c11
--- Comment #11 from Per Jessen per.jessen@enidan.com 2009-04-30 07:11:42 MDT --- I've now copied the python 2.5.2 files from my 11.0 system on to my 11.1 system. I changed the symlinks, and then I reinstalled OpenOffice 3.0.1 from the Build Service. That means I've got virtually the same python+OO setup on my 11.0 and my 11.1 system. On my 11.0 system, I can run conversions continually without ever seeing a segfault or assertion. On my 11.1 system, I get frequent core dumps. The main difference between the two systems is that the 11.0 system is single CPU Celeron 2.53GHz, whereas the 11.1 is dual CPU 900MHz Xeons.
http://bugzilla.novell.com/show_bug.cgi?id=498789
User per.jessen@enidan.com added comment http://bugzilla.novell.com/show_bug.cgi?id=498789#c12
--- Comment #12 from Per Jessen per.jessen@enidan.com 2009-05-01 03:24:29 MDT --- Last update for now: I think this is almost certainly related to whether the system is SMP or not. I have been unable to make it fail on single-CPU systems (tried two), whereas it fails consistently on my target SMP system. I then tried setting the cpu affinity to avoid switching, and that reduced the segfaults to almost none. I still get the occasional "glibc detected double free or corruption", but otherwise I can run document conversions non-stop.
http://bugzilla.novell.com/show_bug.cgi?id=498789
User per.jessen@enidan.com added comment http://bugzilla.novell.com/show_bug.cgi?id=498789#c13
--- Comment #13 from Per Jessen per.jessen@enidan.com 2009-06-05 00:01:48 MDT --- Have upgraded to latest stable 3.1 from the build service. Running DocumentConverter.py now produces this:
Traceback (most recent call last): File "/usr/share/ooo3/program/DocumentConverter.py", line 13, in <module> import uno File "/usr/lib/ooo3/basis3.0/program/uno.py", line 37, in <module> ImportError: No module named pyuno
http://bugzilla.novell.com/show_bug.cgi?id=498789
User per.jessen@enidan.com added comment http://bugzilla.novell.com/show_bug.cgi?id=498789#c14
--- Comment #14 from Per Jessen per.jessen@enidan.com 2009-06-05 00:07:16 MDT --- Sorry, in the above I had PYTHONPATH wrongly set to:
/usr/lib/ooo3/basis3.0/program/
I changed this to
/usr/lib/ooo3/basis3.1/program/
and got the following output instead:
Traceback (most recent call last): File "/usr/share/ooo3/program/DocumentConverter.py", line 161, in <module> converter.convert(argv[1], argv[2]) File "/usr/share/ooo3/program/DocumentConverter.py", line 100, in convert filterName = self._filterName(document, outputExt) File "/usr/share/ooo3/program/DocumentConverter.py", line 108, in _filterName family = self._detectFamily(document) File "/usr/share/ooo3/program/DocumentConverter.py", line 119, in _detectFamily if document.supportsService("com.sun.star.text.GenericTextDocument"): AttributeError: 'NoneType' object has no attribute 'supportsService'
http://bugzilla.novell.com/show_bug.cgi?id=498789
User per.jessen@enidan.com added comment http://bugzilla.novell.com/show_bug.cgi?id=498789#c15
--- Comment #15 from Per Jessen per.jessen@enidan.com 2009-06-05 03:16:39 MDT --- Please ignore comment 13 and comment 14 - I forgot to restart the openoffice daemon.
http://bugzilla.novell.com/show_bug.cgi?id=498789
User per.jessen@enidan.com added comment http://bugzilla.novell.com/show_bug.cgi?id=498789#c16
--- Comment #16 from Per Jessen per.jessen@enidan.com 2009-06-06 10:05:21 MDT --- Issue also reported here: http://www.openoffice.org/issues/show_bug.cgi?id=102568
https://bugzilla.novell.com/show_bug.cgi?id=498789
https://bugzilla.novell.com/show_bug.cgi?id=498789#c18
Petr Mladek pmladek@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|pmladek@suse.com |bnc-team-ooo@forge.provo.no | |vell.com
--- Comment #18 from Petr Mladek pmladek@suse.com 2014-04-11 08:49:01 UTC --- I do not longer work on LibreOffice, so I put back the default assignee.
Anyway, DocumentConverter is obsoleted. LibreOffice is able to convert documents from the commandline out of box now.
https://bugzilla.novell.com/show_bug.cgi?id=498789
https://bugzilla.novell.com/show_bug.cgi?id=498789#c19
Petr Mladek pmladek@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX
--- Comment #19 from Petr Mladek pmladek@suse.com 2014-04-14 11:33:59 UTC --- The converter is obsolete as mentioned in the comment #18. We have even removed it from Factory. I am afraid that nobody would want to invest time into fixing it.
https://bugzilla.novell.com/show_bug.cgi?id=498789
https://bugzilla.novell.com/show_bug.cgi?id=498789#c20
--- Comment #20 from Per Jessen per@computer.org 2014-04-14 13:21:17 UTC --- (In reply to comment #18)
I do not longer work on LibreOffice, so I put back the default assignee.
Anyway, DocumentConverter is obsoleted. LibreOffice is able to convert documents from the commandline out of box now.
Could you quickly describe how it is done now? Thanks.
https://bugzilla.novell.com/show_bug.cgi?id=498789
https://bugzilla.novell.com/show_bug.cgi?id=498789#c21
--- Comment #21 from Petr Mladek pmladek@suse.com 2014-04-15 09:23:23 UTC --- For example, the following command converts file.odt into file.pdf:
libreoffice --headless --convert-to pdf voda-v-garazi.odt
It is even more powerful. Please, refer "man libreoffice" for the options:
--convert-to --infilter --headless
If something does not work as expected, please report it upstream at https://bugs.freedesktop.org/ against the project "LibreOffice".