browsh icon indicating copy to clipboard operation
browsh copied to clipboard

M1 macOS 11.1 - zsh: segmentation fault browsh

Open andrewcrook opened this issue 4 years ago • 10 comments

Would be great to get the Intel version running under Rosetta 2 even better a universal 2 binary supporting both Intel and arm64

Used a terminal environment set to Intel support via Rosetta 2 Installed via homebrew
(https://github.com/browsh-org/browsh/releases/download/v1.6.4/browsh_1.6.4_darwin_amd64.tar.gz) Firefox 84.0.2 (universal 2 binary) Tried Firefox arm64 and intel binaries, the latter using Rosetta 2

error zsh: segmentation fault browsh

Crash report

Process:               browsh [18396]
Path:                  /usr/local/Cellar/browsh/1.6.4/bin/browsh
Identifier:            browsh
Version:               ???
Code Type:             X86-64 (Translated)
Parent Process:        zsh [7105]
Responsible:           iTerm2 [7101]
User ID:               501

Date/Time:             2021-01-11 13:57:43.300 +0000
OS Version:            macOS 11.1 (20C69)
Report Version:        12
Anonymous UUID:        50AFDA5B-F4DB-1D1A-5AF5-9B6769007F83

Sleep/Wake UUID:       A667D1AB-BCB2-4EFF-AE5B-A73F1CD54F1A

Time Awake Since Boot: 8200 seconds
Time Since Wake:       680 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000018
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [18396]

VM Regions Near 0x18:
--> 
    __TEXT                        1000000-17cb000      [ 7980K] r-x/rwx SM=COW  /usr/local/Cellar/browsh/1.6.4/bin/browsh

Application Specific Information:
dyld2 mode

Thread 0 Crashed:
0   runtime                       	0x00007ffdffe4f14c 0x7ffdffe3d000 + 74060
1   browsh                        	0x0000000001056083 runtime.bsdthread_register + 51
2   browsh                        	0x000000000102ba96 runtime.schedinit + 214

Thread 1:: com.apple.rosetta.exceptionserver
0   runtime                       	0x00007ffdffe3fa98 0x7ffdffe3d000 + 10904
1   runtime                       	0x00007ffdffe492b8 0x7ffdffe3d000 + 49848
2   runtime                       	0x00007ffdffe4a8e8 0x7ffdffe3d000 + 55528

Thread 0 crashed with unknown flavor: 7, state_count: 4


Binary Images:
         0x1000000 -          0x17cafff +browsh (???) /usr/local/bin/browsh
       0x101d1d000 -        0x101db8fff  dyld (832.7.1) <DEA51514-B4E8-3368-979B-89D0F8397ABC> /usr/lib/dyld
    0x7ffdffe3d000 -     0x7ffdffeb0fff +runtime (203.13.2) <3B9E4ADB-AB4E-30AD-A642-B74313FB48A8> /Library/Apple/*/runtime

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 8047
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=9.8M resident=0K(0%) swapped_out_or_unallocated=9.8M(100%)
Writable regions: Total=150.7M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=150.7M(100%)
 
                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Rosetta Arena                     2048K        1 
Rosetta Generic                    584K      143 
Rosetta IndirectBranch              32K        1 
Rosetta JIT                      128.0M        1 
Rosetta Return Stack                20K        2 
Rosetta Thread Context              20K        2 
VM_ALLOCATE                      528.5G        9 
VM_ALLOCATE (reserved)               8K        2         reserved VM address space (unallocated)
__DATA                            1280K        6 
__DATA_CONST                        32K        1 
__LINKEDIT                        1016K        5 
__TEXT                            9068K        3 
mapped file                        4.7G       12 
===========                     =======  ======= 
TOTAL                            533.3G      188 
TOTAL, minus reserved VM space   533.3G      188 

andrewcrook avatar Jan 11 '21 14:01 andrewcrook

Same deal for me.

Process:               browsh [15649]
Path:                  /usr/local/Cellar/browsh/1.6.4/bin/browsh
Identifier:            browsh
Version:               ???
Code Type:             X86-64 (Translated)
Parent Process:        zsh [15640]
Responsible:           Terminal [32643]
User ID:               501

Date/Time:             2021-02-08 15:18:57.395 -0500
OS Version:            macOS 11.1 (20C69)
Report Version:        12
Anonymous UUID:        07C8EA27-2ECF-45D7-9306-201D5E661185

Sleep/Wake UUID:       D305B9C5-9292-4F55-9D35-9B7F77703171

Time Awake Since Boot: 1000000 seconds
Time Since Wake:       1400 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000018
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [15649]

VM Regions Near 0x18:
--> 
    __TEXT                        1000000-17cb000      [ 7980K] r-x/rwx SM=COW  /usr/local/Cellar/browsh/1.6.4/bin/browsh

Application Specific Information:
dyld2 mode

Thread 0 Crashed:
0   runtime                       	0x00007ffdffe1314c 0x7ffdffe01000 + 74060
1   browsh                        	0x0000000001056083 runtime.bsdthread_register + 51
2   browsh                        	0x000000000102ba96 runtime.schedinit + 214

Thread 1:: com.apple.rosetta.exceptionserver
0   runtime                       	0x00007ffdffe03a98 0x7ffdffe01000 + 10904
1   runtime                       	0x00007ffdffe0d2b8 0x7ffdffe01000 + 49848
2   runtime                       	0x00007ffdffe0e8e8 0x7ffdffe01000 + 55528

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x800000010000fb90   x1: 0x0000000001056010   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x0000000000000000   x5: 0x0000000000000000   x6: 0x0000000000000000   x7: 0x000000c42001c000
    x8: 0x00007ffdffe769f0   x9: 0x00007ffdffe769f8  x10: 0x0000000000000000  x11: 0x0000000000000000
   x12: 0xffffffffffffffff  x13: 0x0000000000000009  x14: 0x0000000000000008  x15: 0x0000000000000100
   x16: 0x000000000000016e  x17: 0x0000000000000000  x18: 0x800000010000fb90  x19: 0x0000000100000000
   x20: 0x00000000000007ff  x21: 0x0000000100014fc0  x22: 0x0000000205d579e0  x23: 0x000000000215b198
   x24: 0x0000000001026ce0  x25: 0x00000000019bc1e8  x26: 0x00000000019b1464  x27: 0x0000000000000000
   x28: 0x0000000001056083   fp: 0x00007ffdffe13134   lr: 0x000000000215b1c8
    sp: 0x000000010000fb90   pc: 0x00007ffdffe1314c cpsr: 0x80000000
   far: 0x0000000000000018  esr: 0x92000006


Binary Images:
         0x1000000 -          0x17cafff +browsh (???) /usr/local/bin/browsh
       0x101c40000 -        0x101cdbfff  dyld (832.7.1) <DEA51514-B4E8-3368-979B-89D0F8397ABC> /usr/lib/dyld
    0x7ffdffe01000 -     0x7ffdffe74fff +runtime (203.13.2) <3B9E4ADB-AB4E-30AD-A642-B74313FB48A8> /Library/Apple/*/runtime

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 795966
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=9.8M resident=0K(0%) swapped_out_or_unallocated=9.8M(100%)
Writable regions: Total=150.7M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=150.7M(100%)
 
                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Rosetta Arena                     2048K        1 
Rosetta Generic                    584K      143 
Rosetta IndirectBranch              32K        1 
Rosetta JIT                      128.0M        1 
Rosetta Return Stack                20K        2 
Rosetta Thread Context              20K        2 
VM_ALLOCATE                      528.5G        9 
VM_ALLOCATE (reserved)               8K        2         reserved VM address space (unallocated)
__DATA                            1280K        6 
__DATA_CONST                        32K        1 
__LINKEDIT                        1016K        5 
__TEXT                            9068K        3 
mapped file                        4.7G       12 
===========                     =======  ======= 
TOTAL                            533.3G      188 
TOTAL, minus reserved VM space   533.3G      188 

avanavana avatar Feb 08 '21 20:02 avanavana

Process:               browsh [19569]
Path:                  /usr/local/Cellar/browsh/1.6.4/bin/browsh
Identifier:            browsh
Version:               ???
Code Type:             X86-64 (Translated)
Parent Process:        zsh [16359]
Responsible:           iTerm2 [645]
User ID:               501

Date/Time:             2021-03-08 10:51:43.322 -0500
OS Version:            macOS 11.2.1 (20D74)
Report Version:        12
Anonymous UUID:        3435F104-7299-287C-D325-3FA6492FD51D

Sleep/Wake UUID:       239B6014-5294-4C08-A3BF-E4C0032FFACB

Time Awake Since Boot: 72000 seconds
Time Since Wake:       10000 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000018
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [19569]

VM Regions Near 0x18:
--> 
    __TEXT                        1000000-17cb000      [ 7980K] r-x/rwx SM=COW  /usr/local/Cellar/browsh/1.6.4/bin/browsh

Application Specific Information:
dyld2 mode

Thread 0 Crashed:
0   runtime                       	0x00007ffdffed2bb0 0x7ffdffec1000 + 72624
1   browsh                        	0x0000000001056083 runtime.bsdthread_register + 51
2   browsh                        	0x000000000102ba96 runtime.schedinit + 214

Thread 1:: com.apple.rosetta.exceptionserver
0   runtime                       	0x00007ffdffec3238 0x7ffdffec1000 + 8760
1   runtime                       	0x00007ffdffecd354 0x7ffdffec1000 + 50004
2   runtime                       	0x00007ffdffece1f8 0x7ffdffec1000 + 53752

Thread 0 crashed with unknown flavor: 7, state_count: 4


Binary Images:
         0x1000000 -          0x17cafff +browsh (???) /usr/local/bin/browsh
       0x101afa000 -        0x101b95fff  dyld (832.7.3) <0D4EA85F-7E30-338B-9215-314A5A5539B6> /usr/lib/dyld
    0x7ffdffec1000 -     0x7ffdfff34fff +runtime (203.30) <C98E75A6-BDC8-3D5C-B95B-6422005E96D8> /Library/Apple/*/runtime

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 62896
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=9.8M resident=0K(0%) swapped_out_or_unallocated=9.8M(100%)
Writable regions: Total=150.7M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=150.7M(100%)
 
                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Rosetta Arena                     2048K        1 
Rosetta Generic                    584K      143 
Rosetta IndirectBranch              32K        1 
Rosetta JIT                      128.0M        1 
Rosetta Return Stack                20K        2 
Rosetta Thread Context              20K        2 
VM_ALLOCATE                      528.5G        9 
VM_ALLOCATE (reserved)               8K        2         reserved VM address space (unallocated)
__DATA                            1280K        6 
__DATA_CONST                        32K        1 
__LINKEDIT                        1016K        5 
__TEXT                            9068K        3 
mapped file                        4.7G       12 
===========                     =======  ======= 
TOTAL                            533.3G      188 
TOTAL, minus reserved VM space   533.3G      188 

typkrft avatar Mar 08 '21 15:03 typkrft

same deal for me

mrjones2014 avatar Nov 07 '21 21:11 mrjones2014

same deal for me

konerzajakub avatar Dec 09 '21 15:12 konerzajakub

same deal for me

OsKaR31415 avatar Jan 26 '22 13:01 OsKaR31415

same deal for me

danial2026 avatar Feb 20 '22 22:02 danial2026

same deal for me

y4code avatar Mar 02 '22 09:03 y4code

same deal for me

xereeto avatar Mar 08 '22 04:03 xereeto

same issue.

asherweintraub avatar Mar 24 '22 19:03 asherweintraub

Y'all a solution is available here: https://github.com/browsh-org/browsh/issues/388

dhnaranjo avatar Apr 09 '22 17:04 dhnaranjo