Re: [webkit-dev] jsc bus error EXC_BAD_ACCESS with jsc-only build on Mac

2024-04-25 Thread Steve Glass via webkit-dev
Hi Keith

I can confirm this fixed this problem.

All the best

Steve

On Tue, 23 Apr 2024 at 04:35, Keith Miller  wrote:

> Hi folks,
>
> Looks like this happened during our adoption of the BrowserEngine API. I
> have a PR to fix it https://github.com/WebKit/WebKit/pull/27587
>
> There was also an unrelated build breakage for the JSCOnly port, which I
> also fixed in that PR.
>
> Cheers,
> Keith
>
> On Apr 22, 2024, at 11:53 AM, Alexey Proskuryakov  wrote:
>
> + Keith for visibility
>
> 16 апр. 2024 г., в 3:01 PM, Steve Glass via webkit-dev <
> webkit-dev@lists.webkit.org> написал(а):
>
> Hi,
>
> Hi, I’m trying to build jsc on my M1 Mac following the instructions at
>> https://trac.webkit.org/wiki/JSCOnly and https://webkit
>> .org/getting-started/ .
>> However when I run the built binary it exits immediately with a bus error
>> which lldb shows to be EXC_BAD_ACCESS.
>
>
> I'm also trying to build JSC on my M1 Mac and my experience is the *exact* 
> same
> error as Laurence has reported above.
>
> When I run I get a bus error at the same location in the code:
>
> [27467]>DYLD_FRAMEWORK_PATH=/users/stevie/git/WebKit/WebKitBuild/JSCOnly/Debug
>> lldb WebKitBuild/JSCOnly/Debug/bin/jsc
>> (lldb) target create "WebKitBuild/JSCOnly/Debug/bin/jsc"
>> Current executable set to 
>> '/Users/stevie/git/WebKit/WebKitBuild/JSCOnly/Debug/bin/jsc'
>> (arm64).
>> (lldb) target create Web
>> Available completions:
>> WebKitBuild/
>> WebDriverTests/
>> WebKit.xcworkspace/
>> WebKitLibraries/
>> Websites/
>> (lldb) target create WebKitBuild/JSCOnly/Debug/b
>> Available completions:
>> WebKitBuild/JSCOnly/Debug/bmalloc/
>> WebKitBuild/JSCOnly/Debug/bin/
>> WebKitBuild/JSCOnly/Debug/build-webkit-options.txt
>> (lldb) target create WebKitBuild/JSCOnly/Debug/bin/jsc
>> Current executable set to 
>> '/Users/stevie/git/WebKit/WebKitBuild/JSCOnly/Debug/bin/jsc'
>> (arm64).
>> (lldb) run
>> Process 86562 launched: 
>> '/Users/stevie/git/WebKit/WebKitBuild/JSCOnly/Debug/bin/jsc'
>> (arm64)
>> Process 86562 stopped
>> * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS
>> (code=2, address=0x133804000)
>> frame #0: 0x00018696f248 libsystem_platform.dylib`_platform_memmove
>> + 168
>> libsystem_platform.dylib`:
>> ->  0x18696f248 <+168>: stpq2, q3, [x0]
>> 0x18696f24c <+172>: subs   x2, x2, #0x40
>> 0x18696f250 <+176>: b.ls   0x18696f26c   ; <+204>
>> 0x18696f254 <+180>: stpq0, q1, [x3]
>> Target 1: (jsc) stopped.
>>
>
> This is what 'image list' reports at this point:
>
>
>> (lldb) image list
>> [  0] 7A464963-87D0-342F-BF0D-B030FC8488D4 0x0001
>> /Users/stevie/git/WebKit/WebKitBuild/JSCOnly/Debug/bin/jsc
>> [  1] F6DD3EC2-85A4-3AB1-8486-B189CD980EBE 0x0001865b
>> /usr/lib/dyld
>> [  2] BDD21D2C-3C16-3379-9501-D64F8AFA3C0E 0x00010781c000
>> /Users/stevie/git/WebKit
>> /WebKitBuild/JSCOnly/Debug/lib/JavaScriptCore.framework/Versions/1.0.0/JavaScriptCore
>> [  3] A356C2AE-08AC-30C6-B3D2-89535B87B958 0x0001d1096000
>> /usr/lib/libedit.3.dylib
>> [  4] 27A49F84-CD29-3448-BE8C-ED4240A78C9C 0x0001b06d7000
>> /usr/lib/libncurses.5.4.dylib
>> [  5] BE250157-7A2B-39DA-B404-983D7989DFC6 0x0001935ae000
>> /usr/lib/libSystem.B.dylib
>> [  6] C0BCBAE5-4913-3D80-8E3A-9D4DEC1EA827 0x0001935a8000
>> /usr/lib/system/libcache.dylib
>> [  7] 0BA453ED-E5A2-3C2F-86F4-CFCFFA6C1879 0x000193563000
>> /usr/lib/system/libcommonCrypto.dylib
>> [  8] DE476BC5-36E2-3F7A-87C8-1EF2BE6ADFDA 0x00019358f000
>> /usr/lib/system/libcompiler_rt.dylib
>> [  9] 3DF60503-459B-3DA5-BD91-E72518FA9370 0x000193585000
>> /usr/lib/system/libcopyfile.dylib
>> [ 10] 95C1D199-1B36-32B2-9BE7-5723A58D0D96 0x0001866a4000
>> /usr/lib/system/libcorecrypto.dylib
>> [ 11] 7F973554-8168-35BF-AE86-2E9123E81BF7 0x00018678a000
>> /usr/lib/system/libdispatch.dylib
>> [ 12] 72199A80-9C55-376D-8ECF-EE68AFA57B7A 0x000186945000
>> /usr/lib/system/libdyld.dylib
>> [ 13] 291CFCDE-CF87-3F39-A3E3-36C4303BEC16 0x00019359e000
>> /usr/lib/system/libkeymgr.dylib
>> [ 14] DD2A9F47-7F80-344C-B6FE-82682F8AAB4A 0x00019353b000
>> /usr/lib/system/libmacho.dylib
>> [ 15] 158A39C2-F9C6-32CA-845B-F1DFB711718A 0x000192a1c000
>> /usr/lib/system/libquarantine.dylib
>> [ 16] 92A7E10F-1F6C-30D5-9C44-D42352D3A674 0x00019359b000
>> /usr/lib/system/libremovefile.dylib
>> [ 17] B8B21C7C-4530-3EA2-AB35-BA98B82F33D0 0x00018c0bc000
>> /usr/lib/system/libsystem_asl.dylib
>> [ 18] E9F1A3B9-AE38-3F4C-BF14-8A6E012AD36C 0x000186639000
>> /usr/lib/system/libsystem_blocks.dylib
>> [ 19] 49477E07-E77B-332F-B98D-79CA210A866D 0x0001867d5000
>> /usr/lib/system/libsystem_c.dylib
>> [ 20] 2EA02C23-E13C-39AE-B850-82CEABACE7A6 0x000193593000
>> /usr/lib/system/libsystem_collections.dylib
>> [ 21] D57D8736-2800-3066-82D4-C433A2DC10C4 0x000191bf6000
>> /usr/lib/system/libsystem_configuration.dylib
>> [ 22] C9DB5B40-6F90-348A-A518-3ACFB49B39FE 0x000190c34000
>> 

Re: [webkit-dev] jsc bus error EXC_BAD_ACCESS with jsc-only build on Mac

2024-04-22 Thread Keith Miller via webkit-dev
Hi folks, 

Looks like this happened during our adoption of the BrowserEngine API. I have a 
PR to fix it https://github.com/WebKit/WebKit/pull/27587

There was also an unrelated build breakage for the JSCOnly port, which I also 
fixed in that PR.

Cheers,
Keith

> On Apr 22, 2024, at 11:53 AM, Alexey Proskuryakov  wrote:
> 
> + Keith for visibility
> 
>> 16 апр. 2024 г., в 3:01 PM, Steve Glass via webkit-dev 
>>  написал(а):
>> 
>> Hi,
>> 
>>> Hi, I’m trying to build jsc on my M1 Mac following the instructions at
>>> https://trac.webkit.org/wiki/JSCOnly and 
>>> https://webkit.org/getting-started/ .
>>> However when I run the built binary it exits immediately with a bus error
>>> which lldb shows to be EXC_BAD_ACCESS.
>> 
>> I'm also trying to build JSC on my M1 Mac and my experience is the exact 
>> same error as Laurence has reported above.
>> 
>> When I run I get a bus error at the same location in the code:
>> 
>>> [27467]>DYLD_FRAMEWORK_PATH=/users/stevie/git/WebKit/WebKitBuild/JSCOnly/Debug
>>>  lldb WebKitBuild/JSCOnly/Debug/bin/jsc 
>>> (lldb) target create "WebKitBuild/JSCOnly/Debug/bin/jsc"
>>> Current executable set to 
>>> '/Users/stevie/git/WebKit/WebKitBuild/JSCOnly/Debug/bin/jsc' (arm64).
>>> (lldb) target create Web
>>> Available completions:
>>> WebKitBuild/   
>>> WebDriverTests/
>>> WebKit.xcworkspace/
>>> WebKitLibraries/   
>>> Websites/  
>>> (lldb) target create WebKitBuild/JSCOnly/Debug/b
>>> Available completions:
>>> WebKitBuild/JSCOnly/Debug/bmalloc/
>>> WebKitBuild/JSCOnly/Debug/bin/
>>> WebKitBuild/JSCOnly/Debug/build-webkit-options.txt
>>> (lldb) target create WebKitBuild/JSCOnly/Debug/bin/jsc 
>>> Current executable set to 
>>> '/Users/stevie/git/WebKit/WebKitBuild/JSCOnly/Debug/bin/jsc' (arm64).
>>> (lldb) run
>>> Process 86562 launched: 
>>> '/Users/stevie/git/WebKit/WebKitBuild/JSCOnly/Debug/bin/jsc' (arm64)
>>> Process 86562 stopped
>>> * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS 
>>> (code=2, address=0x133804000)
>>> frame #0: 0x00018696f248 libsystem_platform.dylib`_platform_memmove 
>>> + 168
>>> libsystem_platform.dylib`:
>>> ->  0x18696f248 <+168>: stpq2, q3, [x0]
>>> 0x18696f24c <+172>: subs   x2, x2, #0x40
>>> 0x18696f250 <+176>: b.ls    0x18696f26c   ; 
>>> <+204>
>>> 0x18696f254 <+180>: stpq0, q1, [x3]
>>> Target 1: (jsc) stopped.
>> 
>> This is what 'image list' reports at this point:
>>  
>>> (lldb) image list
>>> [  0] 7A464963-87D0-342F-BF0D-B030FC8488D4 0x0001 
>>> /Users/stevie/git/WebKit/WebKitBuild/JSCOnly/Debug/bin/jsc 
>>> [  1] F6DD3EC2-85A4-3AB1-8486-B189CD980EBE 0x0001865b /usr/lib/dyld 
>>> [  2] BDD21D2C-3C16-3379-9501-D64F8AFA3C0E 0x00010781c000 
>>> /Users/stevie/git/WebKit/WebKitBuild/JSCOnly/Debug/lib/JavaScriptCore.framework/Versions/1.0.0/JavaScriptCore
>>>  
>>> [  3] A356C2AE-08AC-30C6-B3D2-89535B87B958 0x0001d1096000 
>>> /usr/lib/libedit.3.dylib 
>>> [  4] 27A49F84-CD29-3448-BE8C-ED4240A78C9C 0x0001b06d7000 
>>> /usr/lib/libncurses.5.4.dylib 
>>> [  5] BE250157-7A2B-39DA-B404-983D7989DFC6 0x0001935ae000 
>>> /usr/lib/libSystem.B.dylib 
>>> [  6] C0BCBAE5-4913-3D80-8E3A-9D4DEC1EA827 0x0001935a8000 
>>> /usr/lib/system/libcache.dylib 
>>> [  7] 0BA453ED-E5A2-3C2F-86F4-CFCFFA6C1879 0x000193563000 
>>> /usr/lib/system/libcommonCrypto.dylib 
>>> [  8] DE476BC5-36E2-3F7A-87C8-1EF2BE6ADFDA 0x00019358f000 
>>> /usr/lib/system/libcompiler_rt.dylib 
>>> [  9] 3DF60503-459B-3DA5-BD91-E72518FA9370 0x000193585000 
>>> /usr/lib/system/libcopyfile.dylib 
>>> [ 10] 95C1D199-1B36-32B2-9BE7-5723A58D0D96 0x0001866a4000 
>>> /usr/lib/system/libcorecrypto.dylib 
>>> [ 11] 7F973554-8168-35BF-AE86-2E9123E81BF7 0x00018678a000 
>>> /usr/lib/system/libdispatch.dylib 
>>> [ 12] 72199A80-9C55-376D-8ECF-EE68AFA57B7A 0x000186945000 
>>> /usr/lib/system/libdyld.dylib 
>>> [ 13] 291CFCDE-CF87-3F39-A3E3-36C4303BEC16 0x00019359e000 
>>> /usr/lib/system/libkeymgr.dylib 
>>> [ 14] DD2A9F47-7F80-344C-B6FE-82682F8AAB4A 0x00019353b000 
>>> /usr/lib/system/libmacho.dylib 
>>> [ 15] 158A39C2-F9C6-32CA-845B-F1DFB711718A 0x000192a1c000 
>>> /usr/lib/system/libquarantine.dylib 
>>> [ 16] 92A7E10F-1F6C-30D5-9C44-D42352D3A674 0x00019359b000 
>>> /usr/lib/system/libremovefile.dylib 
>>> [ 17] B8B21C7C-4530-3EA2-AB35-BA98B82F33D0 0x00018c0bc000 
>>> /usr/lib/system/libsystem_asl.dylib 
>>> [ 18] E9F1A3B9-AE38-3F4C-BF14-8A6E012AD36C 0x000186639000 
>>> /usr/lib/system/libsystem_blocks.dylib 
>>> [ 19] 49477E07-E77B-332F-B98D-79CA210A866D 0x0001867d5000 
>>> /usr/lib/system/libsystem_c.dylib 
>>> [ 20] 2EA02C23-E13C-39AE-B850-82CEABACE7A6 0x000193593000 
>>> /usr/lib/system/libsystem_collections.dylib 
>>> [ 21] D57D8736-2800-3066-82D4-C433A2DC10C4 0x000191bf6000 
>>> /usr/lib/system/libsystem_configuration.dylib 
>>> [ 

Re: [webkit-dev] jsc bus error EXC_BAD_ACCESS with jsc-only build on Mac

2024-04-22 Thread Alexey Proskuryakov via webkit-dev
+ Keith for visibility

16 апр. 2024 г., в 3:01 PM, Steve Glass via webkit-dev 
 написал(а):

Hi,

Hi, I’m trying to build jsc on my M1 Mac following the instructions at
https://trac.webkit.org/wiki/JSCOnly and https://webkit.org/getting-started/ .
However when I run the built binary it exits immediately with a bus error
which lldb shows to be EXC_BAD_ACCESS.
I'm also trying to build JSC on my M1 Mac and my experience is the exact same 
error as Laurence has reported above.

When I run I get a bus error at the same location in the code:

[27467]>DYLD_FRAMEWORK_PATH=/users/stevie/git/WebKit/WebKitBuild/JSCOnly/Debug 
lldb WebKitBuild/JSCOnly/Debug/bin/jsc 
(lldb) target create "WebKitBuild/JSCOnly/Debug/bin/jsc"
Current executable set to 
'/Users/stevie/git/WebKit/WebKitBuild/JSCOnly/Debug/bin/jsc' (arm64).
(lldb) target create Web
Available completions:
WebKitBuild/       
WebDriverTests/    
WebKit.xcworkspace/
WebKitLibraries/   
Websites/          
(lldb) target create WebKitBuild/JSCOnly/Debug/b
Available completions:
WebKitBuild/JSCOnly/Debug/bmalloc/                
WebKitBuild/JSCOnly/Debug/bin/                    
WebKitBuild/JSCOnly/Debug/build-webkit-options.txt
(lldb) target create WebKitBuild/JSCOnly/Debug/bin/jsc 
Current executable set to 
'/Users/stevie/git/WebKit/WebKitBuild/JSCOnly/Debug/bin/jsc' (arm64).
(lldb) run
Process 86562 launched: 
'/Users/stevie/git/WebKit/WebKitBuild/JSCOnly/Debug/bin/jsc' (arm64)
Process 86562 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS 
(code=2, address=0x133804000)
    frame #0: 0x00018696f248 libsystem_platform.dylib`_platform_memmove + 
168
libsystem_platform.dylib`:
->  0x18696f248 <+168>: stp    q2, q3, [x0]
    0x18696f24c <+172>: subs   x2, x2, #0x40
    0x18696f250 <+176>: b.ls     0x18696f26c               ; 
<+204>
    0x18696f254 <+180>: stp    q0, q1, [x3]
Target 1: (jsc) stopped.

This is what 'image list' reports at this point:
 (lldb) image list
[  0] 7A464963-87D0-342F-BF0D-B030FC8488D4 0x0001 
/Users/stevie/git/WebKit/WebKitBuild/JSCOnly/Debug/bin/jsc 
[  1] F6DD3EC2-85A4-3AB1-8486-B189CD980EBE 0x0001865b /usr/lib/dyld 
[  2] BDD21D2C-3C16-3379-9501-D64F8AFA3C0E 0x00010781c000 
/Users/stevie/git/WebKit/WebKitBuild/JSCOnly/Debug/lib/JavaScriptCore.framework/Versions/1.0.0/JavaScriptCore
 
[  3] A356C2AE-08AC-30C6-B3D2-89535B87B958 0x0001d1096000 
/usr/lib/libedit.3.dylib 
[  4] 27A49F84-CD29-3448-BE8C-ED4240A78C9C 0x0001b06d7000 
/usr/lib/libncurses.5.4.dylib 
[  5] BE250157-7A2B-39DA-B404-983D7989DFC6 0x0001935ae000 
/usr/lib/libSystem.B.dylib 
[  6] C0BCBAE5-4913-3D80-8E3A-9D4DEC1EA827 0x0001935a8000 
/usr/lib/system/libcache.dylib 
[  7] 0BA453ED-E5A2-3C2F-86F4-CFCFFA6C1879 0x000193563000 
/usr/lib/system/libcommonCrypto.dylib 
[  8] DE476BC5-36E2-3F7A-87C8-1EF2BE6ADFDA 0x00019358f000 
/usr/lib/system/libcompiler_rt.dylib 
[  9] 3DF60503-459B-3DA5-BD91-E72518FA9370 0x000193585000 
/usr/lib/system/libcopyfile.dylib 
[ 10] 95C1D199-1B36-32B2-9BE7-5723A58D0D96 0x0001866a4000 
/usr/lib/system/libcorecrypto.dylib 
[ 11] 7F973554-8168-35BF-AE86-2E9123E81BF7 0x00018678a000 
/usr/lib/system/libdispatch.dylib 
[ 12] 72199A80-9C55-376D-8ECF-EE68AFA57B7A 0x000186945000 
/usr/lib/system/libdyld.dylib 
[ 13] 291CFCDE-CF87-3F39-A3E3-36C4303BEC16 0x00019359e000 
/usr/lib/system/libkeymgr.dylib 
[ 14] DD2A9F47-7F80-344C-B6FE-82682F8AAB4A 0x00019353b000 
/usr/lib/system/libmacho.dylib 
[ 15] 158A39C2-F9C6-32CA-845B-F1DFB711718A 0x000192a1c000 
/usr/lib/system/libquarantine.dylib 
[ 16] 92A7E10F-1F6C-30D5-9C44-D42352D3A674 0x00019359b000 
/usr/lib/system/libremovefile.dylib 
[ 17] B8B21C7C-4530-3EA2-AB35-BA98B82F33D0 0x00018c0bc000 
/usr/lib/system/libsystem_asl.dylib 
[ 18] E9F1A3B9-AE38-3F4C-BF14-8A6E012AD36C 0x000186639000 
/usr/lib/system/libsystem_blocks.dylib 
[ 19] 49477E07-E77B-332F-B98D-79CA210A866D 0x0001867d5000 
/usr/lib/system/libsystem_c.dylib 
[ 20] 2EA02C23-E13C-39AE-B850-82CEABACE7A6 0x000193593000 
/usr/lib/system/libsystem_collections.dylib 
[ 21] D57D8736-2800-3066-82D4-C433A2DC10C4 0x000191bf6000 
/usr/lib/system/libsystem_configuration.dylib 
[ 22] C9DB5B40-6F90-348A-A518-3ACFB49B39FE 0x000190c34000 
/usr/lib/system/libsystem_containermanager.dylib 
[ 23] 324A6A0A-BBDE-3257-9A75-6A74C85E3430 0x0001931d2000 
/usr/lib/system/libsystem_coreservices.dylib 
[ 24] 8DB1E11F-85AB-3699-AD96-228BE7D8C715 0x000189d5b000 
/usr/lib/system/libsystem_darwin.dylib 
[ 25] 0395D567-DBD9-3F03-A9E0-A0969963A834 0x00024d32a000 
/usr/lib/system/libsystem_darwindirectory.dylib 
[ 26] 4D030E4B-27FC-3C22-8467-A8CAFECA7761 0x00019359f000 
/usr/lib/system/libsystem_dnssd.dylib 
[ 27] 6C663441-D4D5-361C-ABE7-B68D7B6E5B9B 0x00024d32e000 
/usr/lib/system/libsystem_eligibility.dylib 
[ 28] D8AF5585-B9E4-38C0-B48B-CFD5C13DEB82 0x0001867d2000 
/usr/lib/system/libsystem_featureflags.dylib 

Re: [webkit-dev] jsc bus error EXC_BAD_ACCESS with jsc-only build on Mac

2024-04-16 Thread Steve Glass via webkit-dev
Hi,

Hi, I’m trying to build jsc on my M1 Mac following the instructions at
> https://trac.webkit.org/wiki/JSCOnly and https://webkit
> .org/getting-started/ .
> However when I run the built binary it exits immediately with a bus error
> which lldb shows to be EXC_BAD_ACCESS.


I'm also trying to build JSC on my M1 Mac and my experience is the *exact* same
error as Laurence has reported above.

When I run I get a bus error at the same location in the code:

[27467]>DYLD_FRAMEWORK_PATH=/users/stevie/git/WebKit/WebKitBuild/JSCOnly/Debug
> lldb WebKitBuild/JSCOnly/Debug/bin/jsc
> (lldb) target create "WebKitBuild/JSCOnly/Debug/bin/jsc"
> Current executable set to 
> '/Users/stevie/git/WebKit/WebKitBuild/JSCOnly/Debug/bin/jsc'
> (arm64).
> (lldb) target create Web
> Available completions:
> WebKitBuild/
> WebDriverTests/
> WebKit.xcworkspace/
> WebKitLibraries/
> Websites/
> (lldb) target create WebKitBuild/JSCOnly/Debug/b
> Available completions:
> WebKitBuild/JSCOnly/Debug/bmalloc/
> WebKitBuild/JSCOnly/Debug/bin/
> WebKitBuild/JSCOnly/Debug/build-webkit-options.txt
> (lldb) target create WebKitBuild/JSCOnly/Debug/bin/jsc
> Current executable set to 
> '/Users/stevie/git/WebKit/WebKitBuild/JSCOnly/Debug/bin/jsc'
> (arm64).
> (lldb) run
> Process 86562 launched: 
> '/Users/stevie/git/WebKit/WebKitBuild/JSCOnly/Debug/bin/jsc'
> (arm64)
> Process 86562 stopped
> * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS
> (code=2, address=0x133804000)
> frame #0: 0x00018696f248 libsystem_platform.dylib`_platform_memmove
> + 168
> libsystem_platform.dylib`:
> ->  0x18696f248 <+168>: stpq2, q3, [x0]
> 0x18696f24c <+172>: subs   x2, x2, #0x40
> 0x18696f250 <+176>: b.ls   0x18696f26c   ; <+204>
> 0x18696f254 <+180>: stpq0, q1, [x3]
> Target 1: (jsc) stopped.
>

This is what 'image list' reports at this point:


> (lldb) image list
> [  0] 7A464963-87D0-342F-BF0D-B030FC8488D4 0x0001
> /Users/stevie/git/WebKit/WebKitBuild/JSCOnly/Debug/bin/jsc
> [  1] F6DD3EC2-85A4-3AB1-8486-B189CD980EBE 0x0001865b
> /usr/lib/dyld
> [  2] BDD21D2C-3C16-3379-9501-D64F8AFA3C0E 0x00010781c000
> /Users/stevie/git/WebKit
> /WebKitBuild/JSCOnly/Debug/lib/JavaScriptCore.framework/Versions/1.0.0/JavaScriptCore
> [  3] A356C2AE-08AC-30C6-B3D2-89535B87B958 0x0001d1096000
> /usr/lib/libedit.3.dylib
> [  4] 27A49F84-CD29-3448-BE8C-ED4240A78C9C 0x0001b06d7000
> /usr/lib/libncurses.5.4.dylib
> [  5] BE250157-7A2B-39DA-B404-983D7989DFC6 0x0001935ae000
> /usr/lib/libSystem.B.dylib
> [  6] C0BCBAE5-4913-3D80-8E3A-9D4DEC1EA827 0x0001935a8000
> /usr/lib/system/libcache.dylib
> [  7] 0BA453ED-E5A2-3C2F-86F4-CFCFFA6C1879 0x000193563000
> /usr/lib/system/libcommonCrypto.dylib
> [  8] DE476BC5-36E2-3F7A-87C8-1EF2BE6ADFDA 0x00019358f000
> /usr/lib/system/libcompiler_rt.dylib
> [  9] 3DF60503-459B-3DA5-BD91-E72518FA9370 0x000193585000
> /usr/lib/system/libcopyfile.dylib
> [ 10] 95C1D199-1B36-32B2-9BE7-5723A58D0D96 0x0001866a4000
> /usr/lib/system/libcorecrypto.dylib
> [ 11] 7F973554-8168-35BF-AE86-2E9123E81BF7 0x00018678a000
> /usr/lib/system/libdispatch.dylib
> [ 12] 72199A80-9C55-376D-8ECF-EE68AFA57B7A 0x000186945000
> /usr/lib/system/libdyld.dylib
> [ 13] 291CFCDE-CF87-3F39-A3E3-36C4303BEC16 0x00019359e000
> /usr/lib/system/libkeymgr.dylib
> [ 14] DD2A9F47-7F80-344C-B6FE-82682F8AAB4A 0x00019353b000
> /usr/lib/system/libmacho.dylib
> [ 15] 158A39C2-F9C6-32CA-845B-F1DFB711718A 0x000192a1c000
> /usr/lib/system/libquarantine.dylib
> [ 16] 92A7E10F-1F6C-30D5-9C44-D42352D3A674 0x00019359b000
> /usr/lib/system/libremovefile.dylib
> [ 17] B8B21C7C-4530-3EA2-AB35-BA98B82F33D0 0x00018c0bc000
> /usr/lib/system/libsystem_asl.dylib
> [ 18] E9F1A3B9-AE38-3F4C-BF14-8A6E012AD36C 0x000186639000
> /usr/lib/system/libsystem_blocks.dylib
> [ 19] 49477E07-E77B-332F-B98D-79CA210A866D 0x0001867d5000
> /usr/lib/system/libsystem_c.dylib
> [ 20] 2EA02C23-E13C-39AE-B850-82CEABACE7A6 0x000193593000
> /usr/lib/system/libsystem_collections.dylib
> [ 21] D57D8736-2800-3066-82D4-C433A2DC10C4 0x000191bf6000
> /usr/lib/system/libsystem_configuration.dylib
> [ 22] C9DB5B40-6F90-348A-A518-3ACFB49B39FE 0x000190c34000
> /usr/lib/system/libsystem_containermanager.dylib
> [ 23] 324A6A0A-BBDE-3257-9A75-6A74C85E3430 0x0001931d2000
> /usr/lib/system/libsystem_coreservices.dylib
> [ 24] 8DB1E11F-85AB-3699-AD96-228BE7D8C715 0x000189d5b000
> /usr/lib/system/libsystem_darwin.dylib
> [ 25] 0395D567-DBD9-3F03-A9E0-A0969963A834 0x00024d32a000
> /usr/lib/system/libsystem_darwindirectory.dylib
> [ 26] 4D030E4B-27FC-3C22-8467-A8CAFECA7761 0x00019359f000
> /usr/lib/system/libsystem_dnssd.dylib
> [ 27] 6C663441-D4D5-361C-ABE7-B68D7B6E5B9B 0x00024d32e000
> /usr/lib/system/libsystem_eligibility.dylib
> [ 28] D8AF5585-B9E4-38C0-B48B-CFD5C13DEB82 0x0001867d2000
> /usr/lib/system/libsystem_featureflags.dylib
> [ 29] 

Re: [webkit-dev] jsc bus error EXC_BAD_ACCESS with jsc-only build on Mac

2023-03-29 Thread Adrian Perez de Castro via webkit-dev
Hi Laurence,

On Tue, 28 Mar 2023 18:57:48 -0500 Laurence Rowe via webkit-dev 
 wrote:
 
> So build-jsc without the —jsc-only works:
> 
> lrowe@Laurences-MacBook-Air WebKit %
> ./WebKitBuild/Release/JavaScriptCore.framework/Helpers/jsc
> 
> >>> print(1+1)
> 2
> 
> I was hoping to try and wrap the jsc-only build into a rust crate since the
> existing rust wrappers either include gtk dependencies or only wrap the
> lower level api and link against the system libraries. Though it is looking
> like I lack the C++ build experience to pull that off!

In the case of the WebKit GTK port, there is a “libjavascriptcoregtk-X.Y”
(where X.Y is the API level) that you can link to without pulling in the
GTK librariesa. For example on my Linux box this is what pkg-config will
bring in for linking:

  % pkg-config javascriptcoregtk-4.1 --libs
  -ljavascriptcoregtk-4.1 -lgobject-2.0 -lglib-2.0
  %

Note how there is no GUI libraries there at all. If existing Rust wrappers
are linking also the rest of the GTK libraries, probably they are using the
“webkit2gtk-X.Y” pkg-config module instead. That sounds like a bug in how
the Rust crates are being built and linked.

Cheers,
—Adrián


signature.asc
Description: PGP signature
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] jsc bus error EXC_BAD_ACCESS with jsc-only build on Mac

2023-03-28 Thread Darin Adler via webkit-dev
> On Mar 28, 2023, at 4:57 PM, Laurence Rowe via webkit-dev 
>  wrote:
> 
> I was hoping to try and wrap the jsc-only build into a rust crate since the 
> existing rust wrappers either include gtk dependencies or only wrap the lower 
> level api and link against the system libraries.

What’s the benefit here? How would this be better than linking against the 
JavaScriptCore framework?

— Darin
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] jsc bus error EXC_BAD_ACCESS with jsc-only build on Mac

2023-03-28 Thread Michael Saboff via webkit-dev
Laurence,

It grabbed the correct JavaScriptCore framework, so the issue is something else.

After the crash, provide the output of the lldb “bt” command,  Also, after it 
crashes in another terminal window run the command “vmmap jsc”.  This will give 
the memory regions of the process and allow you to see what memory region the 
faulting address is in, in the output below that is 0x10d5ac000,

- Michael

> On Mar 28, 2023, at 3:02 PM, Laurence Rowe  wrote:
> 
> Here is the lldb image list output. It seems to be the same whether I specify 
> DYLD_FRAMEWORK_PATH or not:
> 
> lrowe@Laurences-MacBook-Air WebKit % 
> DYLD_FRAMEWORK_PATH=/Users/lrowe/scratch/WebKit/WebKitBuild/Release lldb 
> ./WebKitBuild/Release/bin/jsc
> (lldb) target create "./WebKitBuild/Release/bin/jsc"
> Current executable set to 
> '/Users/lrowe/scratch/WebKit/WebKitBuild/Release/bin/jsc' (arm64).
> 
> (lldb) run
> Process 91742 launched: 
> '/Users/lrowe/scratch/WebKit/WebKitBuild/Release/bin/jsc' (arm64)
> Process 91742 stopped
> * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS 
> (code=2, address=0x10d5ac000)
> frame #0: 0x0001a1b43f78 libsystem_platform.dylib`_platform_memmove + 
> 168
> libsystem_platform.dylib`:
> ->  0x1a1b43f78 <+168>: stpq2, q3, [x0]
> 0x1a1b43f7c <+172>: subs   x2, x2, #0x40
> 0x1a1b43f80 <+176>: b.ls    0x1a1b43f9c   ; 
> <+204>
> 0x1a1b43f84 <+180>: stpq0, q1, [x3]
> Target 0: (jsc) stopped.
> 
> (lldb) image list
> [  0] 064A1932-6DA6-30DA-AAE0-6E48255D19E9 0x0001 
> /Users/lrowe/scratch/WebKit/WebKitBuild/Release/bin/jsc 
> [  1] 191E84F1-4B95-39C8-B253-1C1EF56C0FA8 0x0001a17e6000 /usr/lib/dyld 
> [  2] 2965B7D1-7C3C-3AC2-BF1B-C787A98082F0 0x000101b38000 
> /Users/lrowe/scratch/WebKit/WebKitBuild/Release/lib/JavaScriptCore.framework/Versions/1.0.0/JavaScriptCore
>  
> [  3] C317087F-0609-39AA-844D-9378CB52F508 0x0001e381e000 
> /usr/lib/libedit.3.dylib 
> [  4] 61BADBC5-2602-32FD-A771-1A5DF3E268B6 0x0001c70d3000 
> /usr/lib/libncurses.5.4.dylib 
> [  5] 75D125D4-CB3B-3D71-B5A9-454DE0731FEB 0x0001ad1cc000 
> /usr/lib/libSystem.B.dylib 
> [  6] 671A562C-829A-378C-92D5-68BF20D9B10D 0x0001ad1c6000 
> /usr/lib/system/libcache.dylib 
> [  7] 83AB18AB-518C-33A3-9401-9811A372021D 0x0001ad17f000 
> /usr/lib/system/libcommonCrypto.dylib 
> [  8] 1045AD14-6370-3C2B-8B00-8C4C10610516 0x0001ad1ad000 
> /usr/lib/system/libcompiler_rt.dylib 
> [  9] E5136197-CE86-3F9D-82FD-85127BF03D8F 0x0001ad1a3000 
> /usr/lib/system/libcopyfile.dylib 
> [ 10] B315532A-683B-36D0-9EAB-43B5BB417CB6 0x0001a18d4000 
> /usr/lib/system/libcorecrypto.dylib 
> [ 11] 4D52C3A5-32E6-37A2-9D6C-23C612038354 0x0001a198a000 
> /usr/lib/system/libdispatch.dylib 
> [ 12] 3ECAE184-B3F4-38BA-A9F3-629F01DAA4D3 0x0001a1b1c000 
> /usr/lib/system/libdyld.dylib 
> [ 13] 3FEBE2F0-6CDF-3D7F-9B65-4D0D1C39C49F 0x0001ad1bc000 
> /usr/lib/system/libkeymgr.dylib 
> [ 14] 48DD5AF4-3485-3705-BCEE-1EF259F40AE8 0x0001ad15d000 
> /usr/lib/system/libmacho.dylib 
> [ 15] EA65D28B-25C1-39EE-A71E-91B940DE96B5 0x0001ac81b000 
> /usr/lib/system/libquarantine.dylib 
> [ 16] 39212493-0C60-3913-BA8F-DE930523BA84 0x0001ad1b9000 
> /usr/lib/system/libremovefile.dylib 
> [ 17] 97E87061-20ED-3FA4-A5D2-5AA78A2AA0DB 0x0001a67e4000 
> /usr/lib/system/libsystem_asl.dylib 
> [ 18] DC0068A7-D49A-34B6-A296-6CA3913D9467 0x0001a1871000 
> /usr/lib/system/libsystem_blocks.dylib 
> [ 19] 14CD841B-0C7B-34A2-A342-CC6796EF9259 0x0001a19d5000 
> /usr/lib/system/libsystem_c.dylib 
> [ 20] B5DCE8FF-ACAD-3FA2-AA13-09CF57E260B8 0x0001ad1b1000 
> /usr/lib/system/libsystem_collections.dylib 
> [ 21] CC84D310-8C96-3321-8DC7-46CCB412546C 0x0001abd3b000 
> /usr/lib/system/libsystem_configuration.dylib 
> [ 22] 9D25ADF2-0895-323A-9274-DC4BBA3E3E93 0x0001aadaa000 
> /usr/lib/system/libsystem_containermanager.dylib 
> [ 23] 84CD7D6F-D943-3988-BED8-7D0759C412A3 0x0001ace5c000 
> /usr/lib/system/libsystem_coreservices.dylib 
> [ 24] 3298B664-57B0-3F23-841F-787D8934187E 0x0001a4975000 
> /usr/lib/system/libsystem_darwin.dylib 
> [ 25] 287985EB-DCA6-3851-887A-F6DF5A99F220 0x0001ad1bd000 
> /usr/lib/system/libsystem_dnssd.dylib 
> [ 26] F8C4FA4C-C898-379D-8275-4D67C026F041 0x0001a19d2000 
> /usr/lib/system/libsystem_featureflags.dylib 
> [ 27] 0B8128B1-BE39-33DE-AA69-9FC1BF3C4F7B 0x0001a1b48000 
> /usr/lib/system/libsystem_info.dylib 
> [ 28] 1CE3B16D-4433-3A27-8978-94C653F7B6EE 0x0001ad124000 
> /usr/lib/system/libsystem_m.dylib 
> [ 29] FA535B05-4593-3A78-93D7-7BCFF7431DF6 0x0001a195e000 
> /usr/lib/system/libsystem_malloc.dylib 
> [ 30] F32A2564-6ED1-3DB9-8987-DCF48DBB8BE1 0x0001a6764000 
> /usr/lib/system/libsystem_networkextension.dylib 
> [ 31] C6B67595-08FF-3268-A400-0C0C89F541A8 0x0001a4ddf000 
> /usr/lib/system/libsystem_notify.dylib 
> [ 32] 4593512A-A84B-3D4A-B95A-860679313411 

Re: [webkit-dev] jsc bus error EXC_BAD_ACCESS with jsc-only build on Mac

2023-03-28 Thread Laurence Rowe via webkit-dev
Here is the lldb image list output. It seems to be the same whether I
specify DYLD_FRAMEWORK_PATH or not:


lrowe@Laurences-MacBook-Air WebKit %
DYLD_FRAMEWORK_PATH=/Users/lrowe/scratch/WebKit/WebKitBuild/Release lldb
./WebKitBuild/Release/bin/jsc

(lldb) target create "./WebKitBuild/Release/bin/jsc"

Current executable set to
'/Users/lrowe/scratch/WebKit/WebKitBuild/Release/bin/jsc' (arm64).


(lldb) run

Process 91742 launched:
'/Users/lrowe/scratch/WebKit/WebKitBuild/Release/bin/jsc' (arm64)

Process 91742 stopped

* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS
(code=2, address=0x10d5ac000)

frame #0: 0x0001a1b43f78 libsystem_platform.dylib`_platform_memmove
+ 168

libsystem_platform.dylib`:

->  0x1a1b43f78 <+168>: stpq2, q3, [x0]

0x1a1b43f7c <+172>: subs   x2, x2, #0x40

0x1a1b43f80 <+176>: b.ls   0x1a1b43f9c   ; <+204>

0x1a1b43f84 <+180>: stpq0, q1, [x3]

Target 0: (jsc) stopped.


(lldb) image list

[  0] 064A1932-6DA6-30DA-AAE0-6E48255D19E9 0x0001
/Users/lrowe/scratch/WebKit/WebKitBuild/Release/bin/jsc

[  1] 191E84F1-4B95-39C8-B253-1C1EF56C0FA8 0x0001a17e6000 /usr/lib/dyld

[  2] 2965B7D1-7C3C-3AC2-BF1B-C787A98082F0 0x000101b38000
/Users/lrowe/scratch/WebKit/WebKitBuild/Release/lib/JavaScriptCore.framework/Versions/1.0.0/JavaScriptCore

[  3] C317087F-0609-39AA-844D-9378CB52F508 0x0001e381e000
/usr/lib/libedit.3.dylib

[  4] 61BADBC5-2602-32FD-A771-1A5DF3E268B6 0x0001c70d3000
/usr/lib/libncurses.5.4.dylib

[  5] 75D125D4-CB3B-3D71-B5A9-454DE0731FEB 0x0001ad1cc000
/usr/lib/libSystem.B.dylib

[  6] 671A562C-829A-378C-92D5-68BF20D9B10D 0x0001ad1c6000
/usr/lib/system/libcache.dylib

[  7] 83AB18AB-518C-33A3-9401-9811A372021D 0x0001ad17f000
/usr/lib/system/libcommonCrypto.dylib

[  8] 1045AD14-6370-3C2B-8B00-8C4C10610516 0x0001ad1ad000
/usr/lib/system/libcompiler_rt.dylib

[  9] E5136197-CE86-3F9D-82FD-85127BF03D8F 0x0001ad1a3000
/usr/lib/system/libcopyfile.dylib

[ 10] B315532A-683B-36D0-9EAB-43B5BB417CB6 0x0001a18d4000
/usr/lib/system/libcorecrypto.dylib

[ 11] 4D52C3A5-32E6-37A2-9D6C-23C612038354 0x0001a198a000
/usr/lib/system/libdispatch.dylib

[ 12] 3ECAE184-B3F4-38BA-A9F3-629F01DAA4D3 0x0001a1b1c000
/usr/lib/system/libdyld.dylib

[ 13] 3FEBE2F0-6CDF-3D7F-9B65-4D0D1C39C49F 0x0001ad1bc000
/usr/lib/system/libkeymgr.dylib

[ 14] 48DD5AF4-3485-3705-BCEE-1EF259F40AE8 0x0001ad15d000
/usr/lib/system/libmacho.dylib

[ 15] EA65D28B-25C1-39EE-A71E-91B940DE96B5 0x0001ac81b000
/usr/lib/system/libquarantine.dylib

[ 16] 39212493-0C60-3913-BA8F-DE930523BA84 0x0001ad1b9000
/usr/lib/system/libremovefile.dylib

[ 17] 97E87061-20ED-3FA4-A5D2-5AA78A2AA0DB 0x0001a67e4000
/usr/lib/system/libsystem_asl.dylib

[ 18] DC0068A7-D49A-34B6-A296-6CA3913D9467 0x0001a1871000
/usr/lib/system/libsystem_blocks.dylib

[ 19] 14CD841B-0C7B-34A2-A342-CC6796EF9259 0x0001a19d5000
/usr/lib/system/libsystem_c.dylib

[ 20] B5DCE8FF-ACAD-3FA2-AA13-09CF57E260B8 0x0001ad1b1000
/usr/lib/system/libsystem_collections.dylib

[ 21] CC84D310-8C96-3321-8DC7-46CCB412546C 0x0001abd3b000
/usr/lib/system/libsystem_configuration.dylib

[ 22] 9D25ADF2-0895-323A-9274-DC4BBA3E3E93 0x0001aadaa000
/usr/lib/system/libsystem_containermanager.dylib

[ 23] 84CD7D6F-D943-3988-BED8-7D0759C412A3 0x0001ace5c000
/usr/lib/system/libsystem_coreservices.dylib

[ 24] 3298B664-57B0-3F23-841F-787D8934187E 0x0001a4975000
/usr/lib/system/libsystem_darwin.dylib

[ 25] 287985EB-DCA6-3851-887A-F6DF5A99F220 0x0001ad1bd000
/usr/lib/system/libsystem_dnssd.dylib

[ 26] F8C4FA4C-C898-379D-8275-4D67C026F041 0x0001a19d2000
/usr/lib/system/libsystem_featureflags.dylib

[ 27] 0B8128B1-BE39-33DE-AA69-9FC1BF3C4F7B 0x0001a1b48000
/usr/lib/system/libsystem_info.dylib

[ 28] 1CE3B16D-4433-3A27-8978-94C653F7B6EE 0x0001ad124000
/usr/lib/system/libsystem_m.dylib

[ 29] FA535B05-4593-3A78-93D7-7BCFF7431DF6 0x0001a195e000
/usr/lib/system/libsystem_malloc.dylib

[ 30] F32A2564-6ED1-3DB9-8987-DCF48DBB8BE1 0x0001a6764000
/usr/lib/system/libsystem_networkextension.dylib

[ 31] C6B67595-08FF-3268-A400-0C0C89F541A8 0x0001a4ddf000
/usr/lib/system/libsystem_notify.dylib

[ 32] 4593512A-A84B-3D4A-B95A-860679313411 0x0001abd4
/usr/lib/system/libsystem_sandbox.dylib

[ 33] 09FD13E7-266A-38B8-B797-EA32EDFBFB7F 0x0001ad1b6000
/usr/lib/system/libsystem_secinit.dylib

[ 34] 3DCD49B9-B3C5-3D90-BE40-A3B807CB9CD7 0x0001a1ad5000
/usr/lib/system/libsystem_kernel.dylib

[ 35] 4CF75103-429D-3AAE-BA13-2C1F67E47DBB 0x0001a1b4
/usr/lib/system/libsystem_platform.dylib

[ 36] 9F3B729A-ED04-3E65-ADAC-D75AD06EBBDC 0x0001a1b0f000
/usr/lib/system/libsystem_pthread.dylib

[ 37] FFDC0C2D-5E65-32F7-B687-99313DD7CCD0 0x0001a7fb9000
/usr/lib/system/libsystem_symptoms.dylib

[ 38] E71E8D9E-3A87-33E0-B198-31666F5A6FF1 0x0001a18ba000
/usr/lib/system/libsystem_trace.dylib

[ 39] 

Re: [webkit-dev] jsc bus error EXC_BAD_ACCESS with jsc-only build on Mac

2023-03-28 Thread Michael Saboff via webkit-dev
Laurence,

When you try to run the jsc command, are you setting DYLD_FRAMEWORK_PATH to the 
location of the built frameworks?  You can either set it and export it in your 
shell environment, e.g.

 % export DYLD_FRAMEWORK_PATH=/Users/lrowe/scratch/WebKit/WebKitBuild/Release

Or prepend the setting of it in your command string:

 % DYLD_FRAMEWORK_PATH=/Users/lrowe/scratch/WebKit/WebKitBuild/Release lldb 
./WebKitBuild/Release/bin/jsc

I that doesn’t work, a backtrace at the time of the crash and the output of the 
lldb command “image list” would be helpful.

- Michael


> On Mar 27, 2023, at 11:11 PM, Laurence Rowe via webkit-dev 
>  wrote:
> 
> Hi, I’m trying to build jsc on my M1 Mac following the instructions at 
> https://trac.webkit.org/wiki/JSCOnly and https://webkit.org/getting-started/ 
> . However when I run the built binary it exits immediately with a bus error 
> which lldb shows to be EXC_BAD_ACCESS.
> 
> lrowe@Laurences-MacBook-Air WebKit % git reset --hard origin/main
> HEAD is now at b2362a5d6b [UI-side compositing] Safari occasionally crashes 
> when scrolling underneath `NSScrollerImpPair` 
> https://bugs.webkit.org/show_bug.cgi?id=254484 rdar://107139674
> lrowe@Laurences-MacBook-Air WebKit % git clean -Xf
> lrowe@Laurences-MacBook-Air WebKit % sudo xcode-select -s 
> /Applications/Xcode.app/Contents/Developer
> lrowe@Laurences-MacBook-Air WebKit % Tools/Scripts/build-jsc --jsc-only
> # build log below
> lrowe@Laurences-MacBook-Air WebKit % ./WebKitBuild/Release/bin/jsc 
> zsh: bus error  ./WebKitBuild/Release/bin/jsc
> 
> lrowe@Laurences-MacBook-Air WebKit % lldb ./WebKitBuild/Release/bin/jsc
> (lldb) target create "./WebKitBuild/Release/bin/jsc"
> Current executable set to 
> '/Users/lrowe/scratch/WebKit/WebKitBuild/Release/bin/jsc' (arm64).
> (lldb) run
> Process 73062 launched: 
> '/Users/lrowe/scratch/WebKit/WebKitBuild/Release/bin/jsc' (arm64)
> Process 73062 stopped
> * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS 
> (code=2, address=0x10d5ac000)
> frame #0: 0x0001a1b43f78 libsystem_platform.dylib`_platform_memmove + 
> 168
> libsystem_platform.dylib`:
> ->  0x1a1b43f78 <+168>: stpq2, q3, [x0]
> 0x1a1b43f7c <+172>: subs   x2, x2, #0x40
> 0x1a1b43f80 <+176>: b.ls    0x1a1b43f9c   ; 
> <+204>
> 0x1a1b43f84 <+180>: stpq0, q1, [x3]
> Target 0: (jsc) stopped.
> 
> Versions:
> WebKit main (b2362a5d6b)
> Xcode 14.2 (14C18)
> macOS 13.2.1
> CMake.app 3.26.1 (not mentioned at https://webkit.org/build-tools/ but 
> required)
> 
> I’ve also tried variously with Xcode command line tools, homebrew cmake, 
> WebKit tag WebKit-7615.1.26.10.23, and adding the —debug flag to the build 
> but I see the same error.
> 
> Is there anything else I should be doing to build jsc?
> 
> Thanks,
> 
> Laurence Rowe
> 
> 
> # build log
> +  cmake --build /Users/lrowe/scratch/WebKit/WebKitBuild/Release --config 
> Release -- jsc testb3 testair testapi testmasm testdfg -j8
> [  0%] Built target JavaScriptCore_CopyHeaders
> [  1%] Built target JavaScriptCoreSharedScripts
> [  1%] Built target JSCBuiltins
> [  1%] Built target Bytecodes
> [ 35%] Built target WTF_CopyHeaders
> [ 38%] Built target bmalloc_CopyHeaders
> [ 46%] Built target bmalloc
> [ 53%] Built target WTF
> [ 53%] Built target LLIntSettingsExtractor
> [ 53%] Building CXX object 
> Source/JavaScriptCore/CMakeFiles/LLIntOffsetsExtractor.dir/llint/LLIntOffsetsExtractor.cpp.o
> [ 53%] Linking CXX executable ../../bin/LLIntOffsetsExtractor
> [ 53%] Built target LLIntOffsetsExtractor
> [ 53%] Generating ../../JavaScriptCore/DerivedSources/LLIntAssembly.h
> [ 53%] Building CXX object 
> Source/JavaScriptCore/CMakeFiles/LowLevelInterpreterLib.dir/llint/LowLevelInterpreter.cpp.o
> [ 53%] Built target LowLevelInterpreterLib
> [ 53%] Building CXX object 
> Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-f0a787a9-7.cpp.o
> [ 53%] Building CXX object 
> Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-f0a787a9-11.cpp.o
> [ 53%] Building CXX object 
> Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-bfc896e1-4.cpp.o
> [ 53%] Building CXX object 
> Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-bfc896e1-3.cpp.o
> [ 53%] Building CXX object 
> Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-bfc896e1-9.cpp.o
> [ 53%] Building CXX object 
> Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/dfg/DFGSpeculativeJIT.cpp.o
> [ 54%] Building CXX object 
> Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/dfg/DFGSpeculativeJIT32_64.cpp.o
> [ 54%] Building CXX object 
>