LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-03-2015, 01:38 PM   #1
RuijunFan
LQ Newbie
 
Registered: Oct 2014
Posts: 13

Rep: Reputation: Disabled
on Linux , running Eclipse crash my program.


Hello,
I have a program running on my Linux server , working fine ,
but when I launch Eclipse by typing :eclipse & , memory crash happened , in other word ,core dump on my program.

if I launch Eclipse using other way, java -jar /usr/lib64/eclipse/plugins/org.eclipse.equinox,launcher_1.1.0.v20100507.jar -clean -showSplash my_code_folder -vmargs -Xms384m -Xmx1024m &
my code and eclipse work fine .

I am new with Eclipse, anybody has any idea about this?

Thanks in advance.

Ray
 
Old 02-06-2015, 08:37 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,087
Blog Entries: 10

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
If you received a core file you could try to use gdb to analyze that core file:
Code:
$ gdb eclipse core
##  Bunch of stuff printed as gdb loads up
gdb> bt  --> the 'bt' command in gdb will print the stack back trace as
             best as it can and maybe this will show you something about
             why it crashed, you can post the outcome of that for opinions
             here if that helps
It will likely be difficult to do much more than that analysis without the specific code that eclipse was built with. Sure you can download the eclipse source, but nothing saying it will match the executable which you're using.

The other thing is that using java to run it is vastly different from running an executable.

Actually: What is eclipse running from? If you give it the "which" command is eclipse somewhere in your system, is it purely an executable file, or is it a symbolic link?

The case may be that it was not intended to be run from the shell as you're doing, even though you have that allowance. Or that it requires arguments and it's poorly constructed so that when you don't give it arguments, it has a crash.
 
Old 02-06-2015, 09:41 AM   #3
RuijunFan
LQ Newbie
 
Registered: Oct 2014
Posts: 13

Original Poster
Rep: Reputation: Disabled
Hello
Thanks
Could you tell me more about below?
using java to run it is vastly different from running an executable.

Probably this could shed some light on mycase.

Thanks.
Ray
 
Old 02-06-2015, 09:50 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,087
Blog Entries: 10

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Not sure if this is a fully correct description, but Java is an interpreted language, therefore when you invoke Java and pass it the name of a file, that file is usually a set of instructions or pre-interpreted commands which only the Java engine, also known as the Java Virtual Machine (JVM) can properly interpret and run. This behavior also makes Java somewhat more portable from platform to platform because the idea is that the Java engine has been compiled and installed to run on your current OS and machine, but the way it accepts instructions for interpretation and running is intended to always be the same. So a given Java applet should be able to run on any machine which has Java properly installed. Meanwhile taking something which is a Java applet and trying to execute it directly will likely end up not working at all, or so badly that you may end up with a core dump. I'm guessing that the core dump may have been from the shell itself, but just a guess.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Eclipse crash with my running application on linux RuijunFan Linux - Newbie 1 01-05-2015 07:13 PM
running 32 bit eclipse in 64bit linux wagmare Linux - Newbie 2 01-09-2013 12:38 AM
[SOLVED] eclipse crash on fedora 15 mario.almeida Linux - Software 2 08-18-2011 03:30 AM
Running GUI wxWidgets program on eclipse mohtasham1983 Programming 2 06-23-2007 02:49 PM
Problem running Eclipse 3.0 on RedHat Linux 9.0 kasturiranganr Linux - Software 3 09-02-2004 04:14 PM


All times are GMT -5. The time now is 04:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration