Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16558 Discussions

Nios Eclipse crashes, free(): invalid pointer

SThor8
New Contributor I
3,789 Views

Hi

When starting nios ii from quartus the eclipse splash screen appear a short moment and then nothing happend.

Starting eclipse from the prompt result in the following error message

> ~/intelFPGA/20.1/nios2eds/bin$ ./eclipse-nios2 
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
free(): invalid pointer

 

Why the error message "free(): invalid pointer"?

Is it possible to get more information to trying trace the error?

Is there a fix?

 

 

 

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal

 

Quartus 20.1 Standard edition with valid license file

Quartus was installed according to the installation instructions with all lib add-on installations

Added fix according to

https://www.intel.com/content/altera-www/global/en_us/index/support/support-resources/knowledge-base/tools/2019/why-does-the-nios--ii-not-installed-after-full-installation-of-t.html

 

> java -version
openjdk version "1.8.0_265"
OpenJDK Runtime Environment (build 1.8.0_265-8u265-b01-0ubuntu2~20.04-b01)
OpenJDK 64-Bit Server VM (build 25.265-b01, mixed mode)

 

> javac -version
javac 1.8.0_265
> update-alternatives --config java
There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
Nothing to configure.

 



> ./eclipse-nios2 -debug
Start VM: /home/stefan/intelFPGA/20.1/quartus//linux64/jre64/bin/java
-Dosgi.requiredJavaVersion=1.7
-XX:MaxPermSize=256m
-Xms256m
-Xmx1024m
-Dosgi.configuration.cascaded=true
-Dosgi.instance.area.default=@user.home/sbt4e-20.1-workspace
-Dosgi.user.area=@user.home/.altera.sbt4e/20.1.0.711-linux64
-Dosgi.configuration.area=@user.home/.altera.sbt4e/20.1.0.711-linux64/configuration
-Dorg.eclipse.swt.internal.gtk.cairoGraphics=false
-jar /home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2//plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
-os linux
-ws gtk
-arch x86_64
-showsplash /home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2//plugins/org.eclipse.platform_4.5.2.v20160212-1500/splash.bmp
-launcher /home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2/eclipse
-name Eclipse
--launcher.library /home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.300.v20150602-1417/eclipse_1612.so
-startup /home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2//plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.appendVmargs
-exitdata 68008
-product org.eclipse.epp.package.cpp.product
-pluginCustomization /home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2/plugin_customization.ini
-debug
-vm /home/stefan/intelFPGA/20.1/quartus//linux64/jre64/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.7
-XX:MaxPermSize=256m
-Xms256m
-Xmx1024m
-Dosgi.configuration.cascaded=true
-Dosgi.instance.area.default=@user.home/sbt4e-20.1-workspace
-Dosgi.user.area=@user.home/.altera.sbt4e/20.1.0.711-linux64
-Dosgi.configuration.area=@user.home/.altera.sbt4e/20.1.0.711-linux64/configuration
-Dorg.eclipse.swt.internal.gtk.cairoGraphics=false
-jar /home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2//plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Configuration location:
file:/home/stefan/.altera.sbt4e/20.1.0.711-linux64/configuration/
Configuration file:
file:/home/stefan/.altera.sbt4e/20.1.0.711-linux64/configuration/config.ini loaded
Install location:
file:/home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2/
Configuration file:
file:/home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2/configuration/config.ini loaded
Loading timestamp file from:
file:/home/stefan/.altera.sbt4e/20.1.0.711-linux64/configuration/ .baseConfigIniTimestamp
No timestamp file found
Timestamps found:
config.ini in the base: 1591430169000
remembered -1
Shared configuration location:
file:/home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2/configuration/
Framework located:
file:/home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2/plugins/org.eclipse.osgi_3.10.102.v20160118-1700.jar
Loading extension: reference:file:org.eclipse.osgi.compatibility.state_1.0.100.v20150402-1551.jar
eclipse.properties not found
Framework classpath:
file:/home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2/plugins/org.eclipse.osgi_3.10.102.v20160118-1700.jar
file:/home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2/plugins/
file:/home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2/plugins/org.eclipse.osgi.compatibility.state_1.0.100.v20150402-1551.jar
Splash location:
/home/stefan/intelFPGA/20.1/nios2eds/bin/eclipse_nios2//plugins/org.eclipse.platform_4.5.2.v20160212-1500/splash.bmp
Debug options:
file:/home/stefan/intelFPGA/20.1/nios2eds/bin/.options not found
Time to load bundles: 34
Starting application: 2950
Application Started: 4714
free(): invalid pointer
0 Kudos
1 Solution
SThor8
New Contributor I
3,783 Views

 

The following workaround seems to work, it essentially replace Quartus included java engine with Java 8

 

cd ..../intelFPGA/20.1/quartus/linux64
mv jre64 jre64_old
ln -s /lib/jvm/java-1.8.0-openjdk-amd64/jre jre64

 

the path to Java 8 jre might be machine specific, mine is at least placed there

 

 

 

 

 

View solution in original post

2 Replies
SThor8
New Contributor I
3,784 Views

 

The following workaround seems to work, it essentially replace Quartus included java engine with Java 8

 

cd ..../intelFPGA/20.1/quartus/linux64
mv jre64 jre64_old
ln -s /lib/jvm/java-1.8.0-openjdk-amd64/jre jre64

 

the path to Java 8 jre might be machine specific, mine is at least placed there

 

 

 

 

 

BoonBengT_Intel
Moderator
3,754 Views

Good to know that it is working now, we would be closing the thread. If you have further queries, Please do post a response in the next 15 days.

After 15 days, this thread will be transitioned to community support. The community users will be able to help you with your follow-up questions.

 

Warm Regards

0 Kudos
Reply