Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-10-2011, 09:43 PM
|
#1
|
LQ Newbie
Registered: Apr 2011
Posts: 22
Rep: 
|
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.
|
|
|
05-11-2011, 12:32 AM
|
#2
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,686
|
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
|
|
|
05-11-2011, 02:41 AM
|
#3
|
LQ Newbie
Registered: Sep 2009
Location: Bangalore
Distribution: RedHat Fedora Centos
Posts: 9
Rep:
|
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.
|
|
|
05-11-2011, 08:38 AM
|
#4
|
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
|
Quote:
Originally Posted by shqnayaz
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.
|
|
|
05-11-2011, 09:55 AM
|
#5
|
Member
Registered: May 2009
Distribution: Debian wheezy
Posts: 252
Rep:
|
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).
|
|
|
05-17-2011, 02:00 AM
|
#6
|
LQ Newbie
Registered: Apr 2011
Posts: 22
Original Poster
Rep: 
|
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.
|
|
|
05-17-2011, 04:36 AM
|
#7
|
Senior Member
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125
|
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).
|
|
|
05-17-2011, 05:20 AM
|
#8
|
LQ Newbie
Registered: Apr 2011
Posts: 22
Original Poster
Rep: 
|
Quote:
Originally Posted by Noway2
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
|
|
|
05-18-2011, 04:02 AM
|
#9
|
Senior Member
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125
|
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.
|
|
|
All times are GMT -5. The time now is 02:29 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|