On May 22, 5:43pm, [email protected] (Thomas Klausner) wrote: -- Subject: Re: PaX mprotect now on for amd64
| On Sun, May 22, 2016 at 03:13:55PM +0000, Christos Zoulas wrote: | > In article <[email protected]>, | > Christos Zoulas <[email protected]> wrote: | > >On May 22, 4:49pm, [email protected] (Thomas Klausner) wrote: | > >-- Subject: Re: PaX mprotect now on for amd64 | > > | > >| On Sat, May 14, 2016 at 01:09:53PM -0400, Christos Zoulas wrote: | > >| > This breaks programs that need to map segments both writable and executable, | > >| > for example java. To fix them you can: | > >| > | > >| > paxctl +m /path/to/bin/java | > >| | > >| libreoffice is not building on -current for me. | > >| | > >| The first error is that java is detected as 32-bit version instead of | > >| 64-bit. That's a bogus result, and the paxctl above fixes it. | > >| | > >| However, next libreoffice wants to use ant, and that doesn't start either: | > >| | > >| # ant | > >| Error occurred during initialization of VM | > >| Could not reserve enough space for code cache | > >| | > >| What's the fix for that? | > >| Thomas | > > | > >Turn off ASLR for it? | > | > It == java? Try that. | | 'ant' is just a shell script. | | I tried paxctl +a on the java binary, but see the same issue. | | Just install apache-ant (using oracle jre 8) and run 'ant'. | Thomas Works here. 12:20pm] 271#ant Buildfile: build.xml does not exist! Build failed christos
