Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-17-2009, 03:07 AM   #1
LQ Newbie
Registered: Feb 2009
Posts: 2

Rep: Reputation: 0
segmentation fault error

I have installed ubuntu 8.10 on my computer from windows , like a program and i have a program installed on it that generate a matlab mex file but when i run this mex file in matlab , it crash and in terminal i have the segmentation fault error
can anyone help me to fix it
Old 02-17-2009, 03:37 PM   #2
Registered: Oct 2008
Distribution: Debian Lenny
Posts: 39

Rep: Reputation: 15
What program is crashing?

What is a matlab mex file?
Old 02-20-2009, 09:58 AM   #3
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,758

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
If the executable file, build with mex / Matlab on Ubuntu
makes the error on Ubuntu :

Make sure, that the Matlab install works with other files.
And, that the 'Matlab' itself works on other Linux's.

And that this particular program ( mex file ) will build
and run on another Linux.
( If the 'mex' was build on Windows, do not expect it to
work on Linux.)

Else : Fix the source file, not to make segmentation fault.

Last edited by knudfl; 02-20-2009 at 10:02 AM.
Old 02-20-2009, 10:17 AM   #4
LQ Guru
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
I'm not sure what versions of Matlab exist for Linux. I just know about problems we had with mex files in Matlab in Linux. These might or might not be relevant to the OP's problem.

We switched from gcc 3.2.3 to later versions (initially 3.4.6) and rebuilt mex files, which then didn't work. The version of Matlab we are using in Linux apparently is compatible with mex files built with gcc 3.2.3 but not with later versions.

This is not necessarily (or even likely) an issue of the compiler itself. More likely it is an issue in the includes and libs used with the compiler to build the mex file. We take a version of gcc as a whole package, a version of the compiler as well as associated version of all the includes and libs you need to make and run programs.


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 02:12 PM
segmentation fault error dianarani Linux - Hardware 16 02-28-2008 08:19 AM
getting segmentation fault error sanjuonline1 Programming 2 02-14-2007 06:27 AM
Segmentation Fault ERROR bluechicken Programming 8 06-30-2005 08:02 AM
Segmentation Fault Error ashwinipahuja Programming 1 03-29-2004 03:09 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:38 AM.

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