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 0x00019359b

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] 615EAFA2-4446-399