LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-10-2011, 09:43 PM   #1
thoufiq
LQ Newbie
 
Registered: Apr 2011
Posts: 22

Rep: Reputation: Disabled
Segmentation Fault - Error


Hello All,
I am the new user of linux and i have tried to install Eclipse IDE tool in ubuntu server. But i was lost, i got the error as segmentation fault. I have tried lots of times to resolve these error for 2 days but no improvement. Can anyone tell me that how to overcome this error. I have followed the steps given in link
http://docs.joomla.org/Setting_up_your_workstation_for_Joomla!_development.

Also in that link, they are given to create workspace launcher and how to create a new project for windows only and not given for linux. Is this possible to create a workspace launcher and to create a new project in ubuntu server. If possible pls let me know the commands.


Help me....


Thanks

Last edited by thoufiq; 05-10-2011 at 10:00 PM.
 
Old 05-11-2011, 12:32 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,686

Rep: Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657
be patient some of us just do not like the Eclipse IDE ( or java)

posting the FULL error would go a long way for some one to be able to help

Eclipse should be in the Ubuntu repos
do a search " add and remove software" or "apt-get"

there should be no need to use one of the different versions on the eclipse web site

also USE Google
there are many many how to's for it
 
Old 05-11-2011, 02:41 AM   #3
shqnayaz
LQ Newbie
 
Registered: Sep 2009
Location: Bangalore
Distribution: RedHat Fedora Centos
Posts: 9

Rep: Reputation: 1
Segmentation faults, are nothing but the inability of kernel to load the software module to the running version of kernel, this would have happened when a kernel update is happen Forcibly. a kernel package re-installation or a replacement of package will fix it, and do a reboot of your server,

Eclipse Will be available on Ubuntu's Repository do a apt-get install of the package.
 
Old 05-11-2011, 08:38 AM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by shqnayaz View Post
Segmentation faults, are nothing but the inability of kernel to load the software module to the running version of kernel, this would have happened when a kernel update is happen Forcibly. a kernel package re-installation or a replacement of package will fix it, and do a reboot of your server,
Either you're a spambot or have no clue what a segfault is.

Here's a slightly over-simplified explanation:

Processes can tell the kernel to allocate pieces of RAM for their own use, and tell the kernel that the memory isn't needed any more. When the process tries to write to a memory address that it has not allocated for itself, that's a segfault.

http://en.wikipedia.org/wiki/Segmentation_fault
http://en.wikipedia.org/wiki/Malloc

Last edited by MTK358; 05-11-2011 at 08:40 AM.
 
Old 05-11-2011, 09:55 AM   #5
hda7
Member
 
Registered: May 2009
Distribution: Debian wheezy
Posts: 252

Rep: Reputation: 31
It might be a good idea to enable core dumps (see man ulimit), recreate the error, and use a debugger (e.g., gdb) to inspect the resulting core dump. It should be able to tell you where the error was (although if eclipse was built without debugging information, you won't get human-readable information).
 
Old 05-17-2011, 02:00 AM   #6
thoufiq
LQ Newbie
 
Registered: Apr 2011
Posts: 22

Original Poster
Rep: Reputation: Disabled
Hi All,
I have installed sun-java6-jre,jdk,plugin and eciipse-ide in my ubuntu server 10.10. I had downloaded the file eclipse-php-helious-linux-gtk.tar.gz from eclipse website and extarcted it. I had followed the steps given in the link http://www.cyberciti.biz/faq/ubuntu-...ipse-java-ide/, then i installed eclipse and eclipse-jdt using sudo apt-get install eclipse eclipse-jdt. Upto this step all are fine but while running the eclipse, i got that segmentation fault error. I had stuckked in this for morethan a week and also my java is working fine. I had googlled lots of times but the answers are not good to resolve the error. Can anyone suggest me to resolve this error. Below i have pasted the result...

sam-osm@dhcppc4:usr/local/opt/eclipse$ sudo ./eclipse

(eclipse:2960): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(eclipse:2960): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE' (instance) failed

(eclipse:2960): Gtk-CRITICAL **: IA__gtk_screen_get_display: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gtk-WARNING **: Screen for GtkWindow not set; you must always set a screen for a GtkWindow before using the window

(eclipse:2960): Gtk-WARNING **: Screen for GtkWindow not set; you must always set a screen for a GtkWindow before using the window

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_display: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_display_get_pointer: assertion 'GDK_IS_DISPLAY (display)' failed

(eclipse:2960): Gtk-WARNING **: Screen for GtkWindow not set; you must always set a screen for a GtkWindow before using the window

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_n_monitors: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gtk-WARNING **: Screen for GtkWindow not set; you must always set a screen for a GtkWindow before using the window

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_monitors_geometry: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_default_colormap: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_colormap_get_visual: assertion 'GDK_IS_COLORMAP (colormap)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_default_colormap: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_window_new: assertion 'GDK_IS_WINDOW (parent)' failed
Segmentation fault


Anyone suggest me to overcome this error.

Thanks

Last edited by thoufiq; 05-17-2011 at 02:01 AM.
 
Old 05-17-2011, 04:36 AM   #7
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
There are two things that I can think of: one, this type of error is possibly caused by running the wrong version of eclipse for your system, e.g. a 64 bit version on a 32 bit system. I would uninstall (using apt-get) the eclipse AND uninstall via "make uninstall" the stuff the program that you downloaded from source and compiled, which by the way sounds like it may not have been properly configured for you system. Two, are you perchance running as root? The error and messages you are getting remind me of trying to run X as root, which is not only discouraged, but many times will fail. If you are, try running as a normal user (you should only run root when absolutely necessary).
 
Old 05-17-2011, 05:20 AM   #8
thoufiq
LQ Newbie
 
Registered: Apr 2011
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Noway2 View Post
There are two things that I can think of: one, this type of error is possibly caused by running the wrong version of eclipse for your system, e.g. a 64 bit version on a 32 bit system. I would uninstall (using apt-get) the eclipse AND uninstall via "make uninstall" the stuff the program that you downloaded from source and compiled, which by the way sounds like it may not have been properly configured for you system. Two, are you perchance running as root? The error and messages you are getting remind me of trying to run X as root, which is not only discouraged, but many times will fail. If you are, try running as a normal user (you should only run root when absolutely necessary).
Hello Noway2,
I had downloaded 32-bit eclipse version only and also now i made some changes in eclipse.ini file. Then i got a fatal error like this

sam-osm@dhcppc4:usr/local/opt/eclipse$ sudo ./eclipse

(eclipse:2960): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(eclipse:2960): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE' (instance) failed

(eclipse:2960): Gtk-CRITICAL **: IA__gtk_screen_get_display: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gtk-WARNING **: Screen for GtkWindow not set; you must always set a screen for a GtkWindow before using the window

(eclipse:2960): Gtk-WARNING **: Screen for GtkWindow not set; you must always set a screen for a GtkWindow before using the window

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_display: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_display_get_pointer: assertion 'GDK_IS_DISPLAY (display)' failed

(eclipse:2960): Gtk-WARNING **: Screen for GtkWindow not set; you must always set a screen for a GtkWindow before using the window

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_n_monitors: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gtk-WARNING **: Screen for GtkWindow not set; you must always set a screen for a GtkWindow before using the window

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_monitors_geometry: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_default_colormap: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_colormap_get_visual: assertion 'GDK_IS_COLORMAP (colormap)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_default_colormap: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed

(eclipse:2960): Gdk-CRITICAL **: IA__gdk_window_new: assertion 'GDK_IS_WINDOW (parent)' failed
#
# A fatal error has been detected by Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xb3f0abdd, pid=3399, tid=3067538288
#
# JRE version: 6.0_24-b07
# Java VM: Java HotSpot(TM) Client VM (19.1-b02 mixed mode, sharing linux-x86)
# Problematic frame:
# C [libgtk-x11-2.0.so.0+0x60bdd] gdk_window_enable_synchronized_configure+0x1d
#
# An error report file with more information is saved as hs_err_pid3399.log
#
# If you would like to submit a bug report, please visit:
# java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problamatic frame for where to report the bug.
#


Below i had pasted my eclipse.ini file

-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.0.v20 100503
-product
org.eclipse.epp.package.php.product
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512M
-vm
usr/lib/jvm/java-6-sun/jre/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms512m
-Xmx512m



Thanks
 
Old 05-18-2011, 04:02 AM   #9
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Taking a close look at your original post I noticed this:
Quote:
Is this possible to create a workspace launcher and to create a new project in ubuntu server.
Ubuntu Server edition does not have a GUI by default and it does not run X. This is by deliberate design and is a matter of philosophy that servers typically do not need these functions.

Looking again at the error message:
Quote:
(eclipse:2960): Gdk-CRITICAL **: IA__gdk_screen_get_monitors_geometry: assertion 'GDK_IS_SCREEN (screen)' failed
Suggests that you are lacking the underlying display mechanisms, presumably because you are running the server edition.

I can think of three solutions:
1 - do not use a GUI based IDE for your software development. Personally, I don't use them anyway. Use either VIM or Emacs, both of which support plug ins for source browsing and tag linkage
2 - Install the desktop environment onto your server, which effectively makes it a desktop edition. If you are using this system as a server there are performance and security implications to this decision.
3 - do you development on another system.
 
  


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
segmentation fault error mahmoud Linux - Software 11 02-24-2009 01:12 PM
segmentation fault error fatemi Linux - Newbie 3 02-20-2009 09:17 AM
getting segmentation fault error sanjuonline1 Programming 2 02-14-2007 05:27 AM
Segmentation Fault ERROR bluechicken Programming 8 06-30-2005 07:02 AM
Segmentation Fault Error ashwinipahuja Programming 1 03-29-2004 02:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:29 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
Open Source Consulting | Domain Registration