tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

converters/unoconv wants mprotect-disabled python



Hello

I had trouble making converters/unoconv run on NetBSD 10.0. Any
attempt to use the client side raised an unhelpful eception message:
uno.com.sun.star.uno.RuntimeException: C++ code threw St9bad_alloc: std::bad_alloc at /pkg_comp/obj/pkgsrc/misc/libreoffice/default/libreoffice-24.2.2.2/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx:243

It seems to require mprotect to be disabled. Setting sysctl 
security.pax.mprotect.enabled=0 let it work as it did on NetBSD 9.3. 
Alternatively it can work with security.pax.mprotect.enabled=1
if the python interpreter has mprotect disabled by paxctl +m

It also works by using a mprotect-disabled copy of the python interpreter,
just for unoconv. This has the merit to avoid disabling mprotect for
any python program.

How can I deal with this cleanly?


-- 
Emmanuel Dreyfus
manu%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index