Why does MATLAB crash when I display a cell array containing a 1-by-128 character array?
Show older comments
Why does MATLAB crash when I display a cell array containing a 1-by-128 character array?
Running the following script under these circumstances produces a segmentation violation on some systems.
1. Use Linux 2.4.7-10smp #1 SMP
2. Start MATLAB 6.5 (R13) with the -nodesktop and -nosplash options in an xterm window wider than 137 characters.
3. Execute the command "FORMAT LONG"
4. Run the following script, which creates a 1-by-128 cell array. It should generate a segmentation violation at the last line.
clear
a{1}=char(32*ones(1,128));
disp('a{1}=')
a{1}
disp('a=')
a
The Segmentation Violation follows:
------------
Segmentation violation detected at Tue Sep 16 13:33:31 2003
-----------
Configuration:
MATLAB Version: 6.5.0.180913a (R13)
Operating System: Linux 2.4.7-10smp #1 SMP Thu Sep 6 17:09:31 EDT 2001 i686
Window System: AT&T Laboratories Cambridge (3332), display walrus.clarendonphotonics.com:10
Current Visual: 0x22 (class 4, depth 24)
Processor ID: x86 Family 15 Model 2 Stepping 4, GenuineIntel
Virtual Machine: Java 1.3.1 with Blackdown Java-Linux Team Java HotSpot(TM) Server VM
(mixed mode)
Register State:
eax = 00000001 ebx = 4020de14
ecx = 00000000 edx = 00000000
esi = bfff7528 edi = 00000001
ebp = bf002720 esp = bfff7490
eip = 40204b11 flg = 00010286
Stack Trace:
Please follow these steps in reporting this problem to MathWorks so
that we have the best chance of correcting it:
1. Send this crash report to segv@mathworks.com for automated analysis.
For your convenience, this information has been recorded in:
/home/fried/matlab_crash_dump.661
[snip]
Accepted Answer
More Answers (0)
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!