New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on macOS when run from SMB network share #16855

Open
UnDifferential opened this Issue Feb 9, 2019 · 3 comments

Comments

3 participants
@UnDifferential
Copy link

UnDifferential commented Feb 9, 2019

  • Electron Version
    • v2.0.17, v3.1.3, v4.0.x, and v5.0.0-beta-2
  • Operating System
    • macOS 10.13.6 and 10.14.3

Expected behavior

App runs normally when run from a SMB share on macOS.

Actual behavior

Crashes. This issue is does not occur on Windows.

To Reproduce

Run any electron app from a SMB (Windows or Samba) network share on macOS.

Additional Information

Crash from electron v5.0.0-beta-2 test app:


Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000002, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Trace/BPT trap: 5
Termination Reason:    Namespace SIGNAL, Code 0x5
Terminating Process:   exc handler [11815]

Application Specific Information:
dyld2 mode

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.github.Electron.framework 	0x00000001094ed025 0x1076a3000 + 31760421
1   com.github.Electron.framework 	0x00000001094ee8d3 0x1076a3000 + 31766739
2   com.github.Electron.framework 	0x000000010b043e5c 0x1076a3000 + 60427868
3   com.github.Electron.framework 	0x00000001094ee014 0x1076a3000 + 31764500
4   com.github.Electron.framework 	0x00000001076a5214 AtomMain + 84
5   com.electron.test-app    	0x000000010769cf10 0x10769c000 + 3856
6   libdyld.dylib                 	0x00007fff5eaebed9 start + 1

Thread 1:
0   libsystem_pthread.dylib       	0x00007fff5ecde3f8 start_wqthread + 0
1   ???                           	0x0000000054485244 0 + 1414025796

Thread 2:
0   libsystem_pthread.dylib       	0x00007fff5ecde3f8 start_wqthread + 0
1   ???                           	0x0000000054485244 0 + 1414025796

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x000000010d710eb0  rbx: 0x0000600002149d80  rcx: 0x0000000000000017  rdx: 0x0000000000000000
  rdi: 0x00007ffee8563a60  rsi: 0x00007fff2f9353cb  rbp: 0x00007ffee8563600  rsp: 0x00007ffee8563600
   r8: 0x0000000000000000   r9: 0x0000000000000000  r10: 0x000000010f8554d0  r11: 0x00007fff317d46b2
  r12: 0x00007ffee8563620  r13: 0x0000000000000000  r14: 0x0000000000000000  r15: 0x00006000006458c0
  rip: 0x00000001094ed025  rfl: 0x0000000000000246  cr2: 0x000000010da5b9d0
  
Logical CPU:     1
Error Code:      0x00000000
Trap Number:     3

Crash from Visual Studio Code (I believe it is using electron v3.1.2):


Exception Type:        EXC_BAD_ACCESS (SIGBUS)
Exception Codes:       KERN_MEMORY_ERROR at 0x00000001040b6010
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Bus error: 10
Termination Reason:    Namespace SIGNAL, Code 0xa
Terminating Process:   exc handler [11845]

Backtrace not available

Unknown thread crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x00007ffeebb49c20  rcx: 0x0000000000000009  rdx: 0xca86f176c9840019
  rdi: 0x00000001040b6000  rsi: 0x00007ffeebb49ee3  rbp: 0x00007ffeebb49b10  rsp: 0x00007ffeebb49b10
   r8: 0x000000000000003d   r9: 0x000000010611d248  r10: 0x000000000000000c  r11: 0x0000000000000213
  r12: 0x0000000000000001  r13: 0x00000001040b6000  r14: 0x00007ffeebb49bc0  r15: 0x00007ffeebb49bb0
  rip: 0x000000010611e630  rfl: 0x0000000000010202  cr2: 0x00000001040b6010
  
Logical CPU:     3
Error Code:      0x00000004
Trap Number:     14
@welcome

This comment has been minimized.

Copy link

welcome bot commented Feb 9, 2019

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

To help make it easier for us to investigate your issue, please follow the contributing guidelines.

@mike-seekwell

This comment has been minimized.

Copy link

mike-seekwell commented Feb 11, 2019

@UnDifferential Is there any version of Electron you know of this not happening? I don't use an SMB network share, so I can't reproduce the error locally, but one of our users is reporting this error.

@UnDifferential

This comment has been minimized.

Copy link
Author

UnDifferential commented Feb 11, 2019

@mike-seekwell I have tested v2 through v5 and the issue is unfortunately present in all of them.

@sofianguy sofianguy added this to Unsorted Issues in 3.1.x Feb 13, 2019

@sofianguy sofianguy added this to Unsorted Issues in 5.0.x Feb 13, 2019

@sofianguy sofianguy moved this from Unsorted Issues to Doesn't Block Stable in 5.0.x Feb 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment