Results 1 to 7 of 7
im trying to install Triangle mesh generator in my Fedora 11, i've compiled successfully but when i try to run, it showed segmentation fault. what should i do to solve ...
- 11-15-2009 #1Just Joined!
- Join Date
- Nov 2009
- Posts
- 4
segmentation fault
im trying to install Triangle mesh generator in my Fedora 11, i've compiled successfully but when i try to run, it showed segmentation fault. what should i do to solve this problem??
- 11-15-2009 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,975
The segmentation fault means that there is a memory violation in the code. Build it for debugging (-g option) and then you can run gdb against the core file when it crashes in order to see where it failed and why.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 11-16-2009 #3Just Joined!
- Join Date
- Nov 2009
- Posts
- 4
im running the Triangle mesh generator with 64 bits linux computer, is it i have to edit the following command :
CSWITCHES = -O -DLINUX -I/usr/X11R6/include -L/usr/X11R6/lib
any problem with d DLINUX in my case??
- 11-16-2009 #4Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,975
You shouldn't need the -DLINUX, but it shouldn't be a problem either. However, you might want to make sure you aren't linking the 32bit libraries.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 11-16-2009 #5Just Joined!
- Join Date
- Nov 2009
- Posts
- 4
i'd run the gdb successfully, it give me the result as follow :
Program received signal SIGSEGV, Segmentation fault.
showme_window (argc=256, argv=0x60fa00) at ./showme.c:2276
2276 fontvalues.font = font ->fid;
what should be the next step??
- 11-16-2009 #6Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,975
My guess is that the variable 'font' is either NULL (0) or some other invalid address, so when the program tries to access it on line 2276 it segfaults on you. Without looking at the program, I can't say anything further. Software failure analysis of this sort is part of what I do for a living. Major companies pay me $200-300 USD per hour to tell them how to fix this stuff. So, considering that this is a non-trivial application, and probably not well-written given that there are over 2000 lines in one translation unit (source file - showme.c), I don't think I'll take much time to review it for you...
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 05-21-2010 #7Just Joined!
- Join Date
- May 2010
- Posts
- 1
The problem is you don't have the correct font (9x15) installed, on Fedora 12 it was the xorg-x11-fonts-misc package that had it. If you don't have permissions to install font packages, you could edit the showme.c file on line 2274, changing the "9x15" to "fixed".


Reply With Quote