Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 647916 - dev-java/ant-core-1.9.2 OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00006ee75d000000, 2555904, 1) failed; error='Operation not permitted' (errno=1)
Summary: dev-java/ant-core-1.9.2 OpenJDK 64-Bit Server VM warning: INFO: os::commit_me...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
Depends on:
Reported: 2018-02-17 05:59 UTC by Anton Kochkov
Modified: 2018-02-21 09:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

emerge --info output (emerge_info.log,4.51 KB, text/plain)
2018-02-17 05:59 UTC, Anton Kochkov
icedtea-bin emerge log (icedtea-bin.log,8.20 KB, text/x-log)
2018-02-21 09:45 UTC, Anton Kochkov

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Kochkov 2018-02-17 05:59:13 UTC
Created attachment 519868 [details]
emerge --info output

>>> Emerging (1 of 2) dev-java/ant-core-1.9.2::gentoo            
 * apache-ant-1.9.2-src.tar.bz2 BLAKE2B SHA512 size ;-) ...                                                                                                                                                                           [ ok ]
 * ant-1.9.2-gentoo.tar.bz2 BLAKE2B SHA512 size ;-) ...                                                                                                                                                                               [ ok ]
 * Using: icedtea-bin-8                      
>>> Unpacking source...                                                                                              
>>> Unpacking apache-ant-1.9.2-src.tar.bz2 to /var/tmp/portage/dev-java/ant-core-1.9.2/work
>>> Unpacking ant-1.9.2-gentoo.tar.bz2 to /var/tmp/portage/dev-java/ant-core-1.9.2/work
>>> Source unpacked in /var/tmp/portage/dev-java/ant-core-1.9.2/work                                                                                                                                                                        
>>> Preparing source in /var/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2 ...
 * Applying various patches (bugfixes/updates) ...                                          
 *   1.9.1-prefix.patch ...                                                                                                                                                                                                           [ ok ]
 * Done with patching                                                                                                   
 * Adjusting to prefix /                                                                      
 *   ant ...                                                                                                                                                                                                                          [ ok ]
Rewriting build.xml                                                                                                                                                                                                                         
Rewriting attributes                                                                                                                                                                                                                        
Rewriting build.xml                                                                                      
>>> Source prepared.                                                                                                                                                                                                                        
>>> Configuring source in /var/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2 ...                                                                                                                                                
Rewriting attributes                                                                                                                                                                                                                        
Rewriting ./build.xml                              
>>> Source configured.                                                                              
>>> Compiling source in /var/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2 ...      
... Bootstrapping Ant Distribution                                                  
... Compiling Ant Classes                                                               
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00006ee75d000000, 2555904, 1) failed; error='Operation not permitted' (errno=1)                                                                                                  
# There is insufficient memory for the Java Runtime Environment to continue.                                                                                                                                                                 # Native memory allocation (mmap) failed to map 2555904 bytes for committing reserved memory.      
# An error report file with more information is saved as:                  
# /var/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2/hs_err_pid1499696.log
... Failed compiling Ant classes !
Bootstrap FAILED                                            
 * ERROR: dev-java/ant-core-1.9.2::gentoo failed (compile phase):                                                                                                                                                                            
 *   build failed                                                                                
 * Call stack:                                                                                       
 *, line 124:  Called src_compile                                                             
 *   environment, line 3909:  Called die                                                  
 * The specific snippet of code:                                          
 *       CLASSPATH="$(java-config -t)" ./ ${bsyscp} jars internal_dist $(use_doc javadocs) || die "build failed"
 * If you need support, post the output of `emerge --info '=dev-java/ant-core-1.9.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/ant-core-1.9.2::gentoo'`.
!!! When you file a bug report, please include the following information:       
GENTOO_VM=icedtea-bin-8  CLASSPATH="" JAVA_HOME="/opt/icedtea-bin-3.6.0"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER=""                                                     
and of course, the output of emerge --info =ant-core-1.9.2                                                  
 * The complete build log is located at '/var/tmp/portage/dev-java/ant-core-1.9.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/ant-core-1.9.2/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2'
 * S: '/var/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2'
Comment 1 James Le Cuirot gentoo-dev 2018-02-18 10:49:32 UTC
This is almost certainly a hardened issue.

Please show the output of:
portageq envvar PAX_MARKINGS

Please also state whether you have /var/tmp/portage mounted as tmpfs and CONFIG_TMPFS_XATTR enabled in your kernel.
Comment 2 Anton Kochkov 2018-02-18 10:58:30 UTC
`portageq envvar PAX_MARKINGS` returns `XT`

/var/tmp/portage is an actual filesystem, not the tmpfs

zcat /proc/config.gz | grep TMPFS_XATTR
Comment 3 James Le Cuirot gentoo-dev 2018-02-18 11:11:30 UTC
That's all okay then. I should have asked what filesystem it is as xattr can sometimes be turned off in the kernel or per-mount .

Please also attach the output from emerging icedtea-bin.
Comment 4 Anton Kochkov 2018-02-21 09:45:09 UTC
Created attachment 520374 [details]
icedtea-bin emerge log

Attaching requested icedtea-bin emerge log.