VM warning on a 64-bit Java HotSpot (TM) server, CentOS, SmartGit, SmartSvn

When you run the shell script that comes with SmartGit,

Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /home/User/.smartgit/6/jna-tmp/com/sun/jna/linux-i386/libjnidispatch.so which might have disabled stack guard. The VM will try to fix the stack guard now. It highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'. 

Although it opens perfectly when I commit,

 java: cairo-misc.c:380: _cairo_operator_bounded_by_source: Assertion `NOT_REACHED' failed. smartgithg.sh: line 100: 394 Aborted $_JAVA_EXEC $_VM_PROPERTIES -Xmx${SMARTGITHG_MAX_HEAP_SIZE} -Xverify:none -Dsmartgit.vm-xmx=${SMARTGITHG_MAX_HEAP_SIZE} -jar "$SMARTGIT_HOME/lib/bootloader.jar" " $@ 

When researching a bit, I found

  • Use a 64-bit library. (if this is the reason, let me know how to do it).

  • The correct JRE was not found. We downloaded the new JRE and gave our way in the shell script. The same warning and failure.

what could be the reason for this and how to fix it?

+6
source share
2 answers

To prevent SmartGit 6.0.7 from crashing when I open the commit dialog as a workflow, I modified smartgithg.sh to add -Dorg.eclipse.swt.internal.gtk.cairoGraphics=false to the Java command. those. changed the command to:

 $_JAVA_EXEC $_VM_PROPERTIES -Xmx${SMARTGITHG_MAX_HEAP_SIZE} -Xverify:none -Dsmartgit.vm-xmx=${SMARTGITHG_MAX_HEAP_SIZE} -Dorg.eclipse.swt.internal.gtk.cairoGraphics=false -jar "$SMARTGIT_HOME/lib/bootloader.jar" " $@ " 

I found this work for another Eclipse-based software item described at http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/379466.aspx

[I also posted this information in support of syntevo]

+6
source

Same as above for SmartSvn in smartsvn.sh

$ _ JAVA_EXEC $ _VM_PROPERTIES -Xmx $ {SMARTSVN_MAX_HEAP_SIZE} -Dsmartsvn.vm-xmx = $ {SMARTSVN_MAX_HEAP_SIZE} -Dorg. @ "

0
source

Source: https://habr.com/ru/post/977539/


All Articles