Thanks Peter,

I’ve forwarded this along.   I’ll let you all know if we learn something.

Eric

From: Peter Mao [mailto:peter....@gmail.com]
Sent: Tuesday, November 15, 2016 11:42 AM
To: matlab-emacs-discuss@lists.sourceforge.net; Eric Ludlam 
<eric.lud...@mathworks.com>
Subject: Re: [Matlab-emacs-discuss] matlab-shell segfaults with matlab R2016b 
on Mac OS 10.11.6 Emacs 25.1

still crashing with JAVA_VERSION="1.8.0_111"

$ export MATLAB_JAVA="/Library/Internet 
Plug-Ins/JavaAppletPlugin.plugin/Contents/Home"
$ printenv MATLAB_JAVA
/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
$ /Applications/MATLAB_R2016b.app/bin/matlab -nodesktop
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; 
support was removed in 8.0

                                             < M A T L A B (R) >
                                   Copyright 1984-2016 The MathWorks, Inc.
                                    R2016b (9.1.0.441655) 64-bit (maci64)
                                              September 7, 2016


To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com<http://www.mathworks.com>.

objc[16791]: Class JavaLaunchHelper is implemented in both /Library/Internet 
Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java (0x107e6f4c0) and 
/Applications/MATLAB_R2016b.app/sys/java/jre/maci64/jre/lib/jli/libjli.dylib 
(0x1298a7480). One of the two will be used. Which one is undefined.

------------------------------------------------------------------------
       Segmentation violation detected at Tue Nov 15 08:36:47 2016
------------------------------------------------------------------------

Configuration:
  Crash Decoding      : Disabled - No sandbox or build area path
  Crash Mode          : continue (default)
  Current Graphics Driver: Unknown hardware
  Current Visual      : Quartz
  Default Encoding    : ISO-8859-1
  Deployed            : false
  Host Name           : papplebon.local
  MATLAB Architecture : maci64
  MATLAB Entitlement ID: 1475331
  MATLAB Root         : /Applications/MATLAB_R2016b.app
  MATLAB Version      : 9.1.0.441655 (R2016b)
  OpenGL              : hardware
  Operating System    : Darwin 16.0.0 Darwin Kernel Version 16.0.0: Mon Aug 29 
17:56:20 PDT 2016; root:xnu-3789.1.32~3/RELEASE_X86_64 x86_64
  Processor ID        : x86 Family 6 Model 58 Stepping 9, GenuineIntel
  Virtual Machine     : Java 1.8.0_111-b14 with Oracle Corporation Java 
HotSpot(TM) 64-Bit Server VM mixed mode
  Window System       : Quartz

Fault Count: 1


Abnormal termination:
Segmentation violation

Register State (from fault):
  RAX = 00007fffc244be00  RBX = 00000001119815dd
  RCX = 00000000000000fa  RDX = 0000000111981356
  RSP = 0000700001044280  RBP = 0000700001044290
  RSI = 00000001000004ff  RDI = 000000000000000e

   R8 = 00000001118fbbae   R9 = 0000000000000000
  R10 = 00000001119a0740  R11 = 00007f9483496501
  R12 = 00007000010443e0  R13 = 00007f9483038040
  R14 = 0000000111a8b738  R15 = 0000000111aa4de0

  RIP = 00007f94834965c0  RFL = 0000700001044334

   CS = 0000700001044330   FS = 0000700001044320   GS = 0000000000000000

Stack Trace (from fault):
[  0] 0x000000010eb6ed04 
/Applications/MATLAB_R2016b.app/bin/maci64/libmwfl.dylib+00036100 
_ZN2fl4diag15stacktrace_base7captureERKNS0_14thread_contextEm+00000052
[  1] 0x000000010eb71f9a 
/Applications/MATLAB_R2016b.app/bin/maci64/libmwfl.dylib+00049050 
_ZN2fl4test17terminate_handledEv+00000810
[  2] 0x000000010eb71a09 
/Applications/MATLAB_R2016b.app/bin/maci64/libmwfl.dylib+00047625 
_ZN2fl4diag13terminate_logEPKcPK17__darwin_ucontext+00000185
[  3] 0x0000000111ae6ba8 
/Applications/MATLAB_R2016b.app/bin/maci64/libmwmcr.dylib+00420776 
_Z32mnRunPathDependentInitializationN6mlutil10contextmgr5McrIDE+00003016
[  4] 0x0000000111ae64e0 
/Applications/MATLAB_R2016b.app/bin/maci64/libmwmcr.dylib+00419040 
_Z32mnRunPathDependentInitializationN6mlutil10contextmgr5McrIDE+00001280
[  5] 0x0000000111ae4f7a 
/Applications/MATLAB_R2016b.app/bin/maci64/libmwmcr.dylib+00413562 
mnFatalSignalHandler+00000154
[  6] 0x00007fffc3a3dbba           
/usr/lib/system/libsystem_platform.dylib+00011194 _sigtramp+00000026
[  7] 0x000000011191544a 
/Applications/MATLAB_R2016b.app/bin/maci64/libmwiqm.dylib+00185418 
_ZN5boost4bindIbN3iqm22IntermediatePacketInfoERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS_3argILi1EEES9_EENS_3_bi6bind_tIT_NS_4_mfi4cmf1ISG_T0_T1_EENSE_9list_av_2IT2_T3_E4typeEEEMSJ_KFSG_SK_ESN_SO_+00002378
[  8] 0x0000000111a8b467 
/Applications/MATLAB_R2016b.app/bin/maci64/libmwmcr.dylib+00046183 
_ZN5boost11unique_lockINS_5mutexEE4lockEv+00000039
[  9] 0x0000000111a8c543 
/Applications/MATLAB_R2016b.app/bin/maci64/libmwmcr.dylib+00050499 
_ZN5boost18condition_variable4waitERNS_11unique_lockINS_5mutexEEE+00000083
[ 10] 0x0000000111a8b3db 
/Applications/MATLAB_R2016b.app/bin/maci64/libmwmcr.dylib+00046043 
_ZN5boost6detail17shared_state_base13wait_internalERNS_11unique_lockINS_5mutexEEEb+00000091
[ 11] 0x00007fffc39b49d1             
/usr/lib/system/libsystem_malloc.dylib+00014801 
tiny_malloc_from_free_list+00000431
[ 12] 0x00007fffc39b3522             
/usr/lib/system/libsystem_malloc.dylib+00009506 
szone_malloc_should_clear+00000400
[ 13] 0x00007fffc39b3332             
/usr/lib/system/libsystem_malloc.dylib+00009010 malloc_zone_malloc+00000107
[ 14] 0x00007fffc39b22b0             
/usr/lib/system/libsystem_malloc.dylib+00004784 malloc+00000024
[ 15] 0x000000010ebd07d3 
/Applications/MATLAB_R2016b.app/bin/maci64/libmwfl.dylib+00436179 
_ZN2fl3mem6detail24default_vector_alignmentEv+00011603
[ 16] 0x000000010ed3342c 
/Applications/MATLAB_R2016b.app/bin/maci64/libmx.dylib+00005164 
_ZN6matrix6detail10noninlined12mx_array_api15mxMallocExCheckEm+00000044
[ 17] 0x0000000114e61210 
/Applications/MATLAB_R2016b.app/bin/maci64/libmwlxetypes.dylib+00061968 
_ZN9MathWorks3lxe22MxArrayToXvalueTypeMap24GetXvalueTypeFromMxArrayERNS_2ts12iTypeFactoryEPK11mxArray_tag+00000048
[ 18] 0x0000000114e69c87 
/Applications/MATLAB_R2016b.app/bin/maci64/libmwlxetypes.dylib+00097415 
_ZN9MathWorks3lxe6xvalue19InitializeToMxArrayENSt3__110unique_ptrI11mxArray_tagN6matrix6detail17mxDestroy_deleterEEE+00000071
[ 19] 0x0000000114e69dbd 
/Applications/MATLAB_R2016b.app/bin/maci64/libmwlxetypes.dylib+00097725 
_ZN9MathWorks3lxe6xvalueC2ENSt3__110unique_ptrI11mxArray_tagN6matrix6detail17mxDestroy_deleterEEE+00000029
[ 20] 0x00000001133a4885 
/Applications/MATLAB_R2016b.app/bin/maci64/libmwm_lxe.dylib+10565765 
_ZN9MathWorks3lxe14AllocateOutputIZNS0_21AllocateOutputForTempIbLb0EEEvlPNS0_24ElementwiseOperandLayoutEmPmPPPvPbbEUlNS_2ts4TypeEE_EEvPNS0_6xvalueES4_lT_mPKm9mxClassIDb+00000517
[ 21] 0x0000000113379f87 
/Applications/MATLAB_R2016b.app/bin/maci64/libmwm_lxe.dylib+10391431 
_ZN9MathWorks3lxe29elem_expression_check_anyTypeIbLb0EEEvPv+00000919


If this problem is reproducible, please submit a Service Request via:
    http://www.mathworks.com/support/contact_us/

A technical support engineer might contact you with further information.

Thank you for your help.** This crash report has been saved to disk as 
/Users/petermao/matlab_crash_dump.16728-1 **



MATLAB is exiting because of fatal error
Killed: 9

On Tue, Nov 15, 2016 at 8:02 AM, Peter Mao 
<peter....@gmail.com<mailto:peter....@gmail.com>> wrote:
Hi Eric,
I'm glad to see that you're on this problem.  I couldn't get any interest from 
emacs-devel.
Please see below -- I'm running 2016a right now under emacs, and it mostly 
behaves fine.  Diff-ing the sys/java directories, I see no differences!  Is it 
possible that this is not a java issue?  I can't make heads or tails of the 
segmentation fault stack trace.
I'll try the java 8 patch if I can find the time today.

Peter

On Mon, Nov 14, 2016 at 8:18 AM, Peter Mao 
<peter....@gmail.com<mailto:peter....@gmail.com>> wrote:
Further evidence (I hope this helps someone solve the problem):
1. 2016b works in NONE of the emacs terminals: shell, term or e-shell.
2. 2016b works fine (even with -nodesktop) from Xquartz's xterm or OSX's 
terminal
3. 2016a works fine in emacs
4. Running diff on the java directories (where the potentially offending files 
reside) shows NO difference between 2016a and 2016b!
    $ diff -ur /Applications/MATLAB_R2016b.app/sys/java 
/Applications/MATLAB_R2016a.app/sys/java
This might not be a Java issue.



------------------------------------------------------------------------------
_______________________________________________
Matlab-emacs-discuss mailing list
Matlab-emacs-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss

Reply via email to