Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 253896

Summary: Python-uno bridge breaks in hardened openoffice-bin
Product: Gentoo Linux Reporter: Dani Church <dani.church>
Component: HardenedAssignee: The Gentoo Linux Hardened Team <hardened>
Status: RESOLVED NEEDINFO    
Severity: critical CC: office
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description Dani Church 2009-01-05 19:37:41 UTC
Trying to use the included Python interpreter in app-office/openoffice-bin-3.0.0 to load the Python-uno bridge crashes with a reference to std::bad_alloc.  Disabling mprotect() restrictions fixes the problem.

# /usr/lib/openoffice/program/python
Python 2.3.4 (#1, Jul 29 2008, 14:55:12)
[GCC 4.2.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import uno
terminate called after throwing an instance of 'std::bad_alloc'
  what():  St9bad_alloc
Aborted

# chpax -m /usr/lib/openoffice/basis-link/program/python.bin
# /usr/lib/openoffice/program/python 
Python 2.3.4 (#1, Jul 29 2008, 14:55:12)
[GCC 4.2.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import uno
>>> 


Reproducible: Always

Steps to Reproduce:
Comment 1 Gordon Malm (RETIRED) gentoo-dev 2009-01-06 00:18:35 UTC
emerge --info please.
Comment 2 Dani Church 2009-01-06 00:27:56 UTC
Created attachment 177528 [details]
emerge --info
Comment 3 Andreas Proschofsky (RETIRED) gentoo-dev 2009-11-25 12:34:48 UTC
Anyone tried this recently?
Comment 4 Andreas Proschofsky (RETIRED) gentoo-dev 2011-02-05 19:24:35 UTC
No Feedback, closing