MATLAB Answers

Why do I receive a segmentation violation when I clear variables or quit MATLAB 7.0 (R14) on my Linux machine (which uses glibc version 2.3.2)?

3 views (last 30 days)
I am running MATLAB 7.0 (R14) on my Linux machine, which has glibc 2.3.2. I sometimes experience crashes when I clear memory or shutdown. For example, the following MATLAB code will reproduce this behavior:
clear all
Although the code above will close MATLAB, a file called MATLAB_CRASH_DUMP.XXXX (where XXXX was MATLAB's pid) will be created in the user’s home directory, with contents similar to the following:
Segmentation violation detected at Sat Jul 3 10:19:59 2004
MATLAB Version: (R14)
Operating System: Linux 2.4.20-28.9custom #12 Sat Jan 31 12:08:58 PST 2004 i686
Window System: (1074332980), display ìÔ'
Current Visual: 0x61 (class 1397036928, depth 151)
Processor ID: x86 Family 6 Model 7 Stepping 3, GenuineIntel
Virtual Machine: Java 1.4.2_02 with Sun Microsystems Inc. Java HotSpot(TM) Client VM
(mixed mode)
Default Charset: ISO-8859-1
Stack Trace:
[0], 0xbfff9290, 0x4009cedc, 0x400433f2) + 16 bytes
[1], 0x4082721c, 0xbfff92d8, 0x40822f70) + 46 bytes
[2], 0x402f9fb4, 1025, 0x53453598) + 468 bytes
[3], 0x52c90910, 0xbfff93a8, 0x402c3c9a) + 30 bytes
[4], 0x0832c2a8, 8716, 0x402c267a) + 63 bytes
[5] const*)(0x52c90910, 0, 0, 0x402a5f6c) + 295 bytes
[6], 0x40578a00, 0xbfffa548, 0x40359354) + 68 bytes

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 21 Apr 2011
This bug has been fixed for MATLAB 7.0.1 (R14SP1). For previous releases, read below for any possible workarounds:
These errors appear to arise as a result of an incompatibility between glibc version 2.3.2 and MATLAB 7.0 (R14).
Updating the libg2c runtime libraries will resolve this issue. The library that needs to be updated is the following:
This library is located in $MATLABROOT/sys/os/glnx86, where $MATLABROOT is the MATLAB installation directory.
In order to update to the libraries:
1. Rename the existing library (in $MATLABROOT/sys/os/glnx86) as follows: ->
2. Download the file,, from the bottom of the page and save it in that directory.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!