Reproduction steps:
1. Open the attached “CrashRepro” project
2. Open “Scripts/Editor/Builder.cs” Script
3. Set the build path in line 12
4. Close the project
5. Open the “Terminal” application
6. Execute this command: /Unity/Hub/Editor/2022.3.12f1/Editor$ ./Unity -quit -batchmode -nographics -projectPath "[path to project]" -executeMethod Builder.BuildWebGL -logFile "[path for log]/bapbap.log"
7. Observe the “Terminal” application
Expected result: The Player builds
Actual result: The Player build process crashes
Reproducible with: 2022.3.12f1
Reproducible on: Ubuntu 22.04, Ubuntu 20.04 (reported)
Not reproducible on: No other environment tested
First lines of the stack trace:
#0 0x0055e1c7952dec in burst_signal_handler(int, siginfo_t*, void*)
#1 0x007f3fca5a9420 in funlockfile
#2 0x0055e1ca7341db in d_cv_qualifiers
#3 0x0055e1ca73474d in d_name
#4 0x0055e1ca7339a2 in d_type
#5 0x0055e1ca733ba0 in d_type
#6 0x0055e1ca73412b in d_parmlist
Note: This issue does not reproduce all the time. One Ubuntu 22.04 machine was not able to reproduce the issue, while the other was able to, but with a different crash stack trace.