https://bugs.freedesktop.org/show_bug.cgi?id=99388
Bug ID: 99388
Summary: RHEL 7.3, Matlab 2016a Segmentation fault - glEnable
Product: Mesa
Version: 11.2
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: major
Priority: medium
Component: Mesa core
Assignee: mesa-dev@lists.freedesktop.org
Reporter: advor...@cs.princeton.edu
QA Contact: mesa-dev@lists.freedesktop.org
Created attachment 128918
--> https://bugs.freedesktop.org/attachment.cgi?id=128918=edit
Failing code
Hello.
Environment:
RHEL 7.3
Matlab 2016a
Osmesa - 11.2.2
It works without any issues on an older version of RHEL (6) and with Matlab
2014a.
I'm attaching the code.
I'm getting segmentation fault right before:
glEnable(GL_DEPTH_TEST);
glDisable(GL_LIGHTING);
glEnable(GL_CULL_FACE);
glCullFace(GL_BACK);
I have also compiled with mex -g and logs are below.
Thank you for your help,
Asya
>> [label,depth]=WarpMeshColor(P,outImsize(2),outImsize(1),XYZcamera);
MEX FILE: WarpMeshColor.mexa64 entry point located at address 0xb9396089
Add breakpoints at the debugger prompt and issue a "continue" to resume
execution of MATLAB.
Program received signal SIGUSR1, User defined signal 1.
0x7599f6d5 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib64/libpthread.so.0
(gdb) continue
Continuing.
output size:
m_width=400
m_height=640
Step 1: setup off-screen binding
Step 2
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffd392e700 (LWP 11194)]
0x7fffb8bdf170 inc () from /lib64/libOSMesa.so.8
(gdb) continue
Continuing.
Attempt to restart MATLAB? [y or n]>>n
Segmentation violation detected at Wed Jan 4 12:57:49 2017
Configuration:
Crash Decoding : Disabled
Crash Mode : continue (default)
Current Graphics Driver: Unknown software
Current Visual : None
Default Encoding: UTF-8
GNU C Library : 2.17 stable
Host Name : HOST
MATLAB Architecture : glnxa64
MATLAB Root : /usr/local/Matlab/R2016a
MATLAB Version : 9.0.0.341360 (R2016a)
OpenGL : software
Operating System: Linux 3.10.0-514.2.2.el7.x86_64 #1 SMP Wed Dec 7
11:19:34 EST 2016 x86_64
Processor ID: x86 Family 6 Model 37 Stepping 1, GenuineIntel
Window System : No active display
Fault Count: 1
Abnormal termination:
Segmentation violation
Register State (from fault):
RAX = ff08 RBX = 0b71
RCX = 75bab2e0 RDX = 0001
RSP = 7fffd392abc0 RBP =
RSI = 0b71 RDI =
R8 = 7598fa00 R9 = 7fffcd576f70
R10 = 7fffd392a970 R11 = 7fffb8bdf6f0
R12 = 0001 R13 = 7fffccfbea80
R14 = 7fffd392b4f8 R15 = 7fffd392b4f8
RIP = 7fffb8bdf170 EFL = 00010246
CS = 0033 FS = GS =
Stack Trace (from fault):
[ 0] 0x7fffb8bdf170
/lib64/libOSMesa.so.8+00553328
[ 1] 0x7fffb939623d WarpMeshColor.mexa64+4669
mexFunction+0436
[ 2] 0x7fffe0f868b0
/usr/local/Matlab/R2016a/bin/glnxa64/libmex.so+00149680 mexRunMexFile+0064
[ 3] 0x7fffe0f83214
/usr/local/Matlab/R2016a/bin/glnxa64/libmex.so+00135700
[ 4] 0x7fffe0f83db4
/usr/local/Matlab/R2016a/bin/glnxa64/libmex.so+00138676
[ 5] 0x7fffe1d2d505
/usr/local/Matlab/R2016a/bin/glnxa64/libmwm_dispatcher.so+00746757
_ZN8Mfh_file16dispatch_fh_implEMS_FviPP11mxArray_tagiS2_EiS2_iS2_+1509
[ 6] 0x7fffe1d2d9a0
/usr/local/Matlab/R2016a/bin/glnxa64/libmwm_dispatcher.so+00747936
_ZN8Mfh_file11dispatch_fhEiPP11mxArray_tagiS2_+0032
[ 7] 0x7fffded191c9
/usr/local/Matlab/R2016a/bin/glnxa64/libmwm_lxe.so+09232841
[ 8] 0x7fffdee45dbf
/usr/local/Matlab/R2016a/bin/glnxa64/libmwm_lxe.so+10464703
[ 9] 0x7fffdee3b8e6
/usr/local/Matlab/R2016a/bin/glnxa64/libmwm_lxe.so+10422502
[ 10] 0x7fffdee04891
/usr/local/Matlab/R2016a/bin/glnxa64/libmwm_lxe.so+10197137
[ 11] 0x7fffde8d2b2a
/usr/local/Matlab/R2016a/bin/glnxa64/libmwm_lxe.so+04750122
[ 12] 0x7fffde8d3a4c
/usr/local/Matlab/R2016a/bin/glnxa64/libmwm_lxe.so+04753996
[ 13] 0x7fffde8d1ebc
/usr/local/Matlab/R2016a/bin/glnxa64/libmwm_lxe.so+04746940
[ 14] 0x7fffde8cf9ea
/usr/local/Matlab/R2016a/bin/glnxa64/libmwm_lxe.so+04737514
[ 15] 0x7fffde8cfdb1
/usr/local/Matlab/R2016a/bin/glnxa64/libmwm_lxe.so+04738481
[ 16] 0x7fffde8d1a63
/usr/local/Matlab/R2016a/bin/glnxa64/libmwm_lxe.so+04745827
[ 17] 0x7fffde8d1be9
/usr/local/Matlab/R2016a/bin/glnxa64/libmwm_lxe.so+04746217
[ 18] 0x7fffde98216f
/usr/local/Matlab/R2016a/bin/glnxa64/libmwm_lxe.so+05468527
[ 19] 0x7fffde98522a