Skip to content

NodeJS segfaults for some tests on big-endian linux-ppc64 #58277

Description

@glaubitz

Trying to build node on big-endian linux-ppc64 (PowerPC 970 baseline) fails with:

(sid_ppc64-dchroot)glaubitz@perotto:~/node$ LD_LIBRARY_PATH=/home/glaubitz/node/out/Release/lib.host:/home/glaubitz/node/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../tools/v8_gypfiles; mkdir -p /home/glaubitz/node/out/Release/obj.target/v8_snapshot/geni; "/home/glaubitz/node/out/Release/mksnapshot" --turbo_instruction_scheduling --stress-turbo-late-spilling "--target_os=linux" "--target_arch=ppc64" --startup_src "/home/glaubitz/node/out/Release/obj.target/v8_snapshot/geni/snapshot.cc" --embedded_variant Default --embedded_src "/home/glaubitz/node/out/Release/obj.target/v8_snapshot/geni/embedded.S" --concurrent-builtin-generation "--concurrent-turbofan-max-threads=0" --no-native-code-counters
-bash: cd: ../tools/v8_gypfiles: No such file or directory


#
# Fatal error in , line 0
# MemoryOptimizationReducer could not remove write barrier for operation
  #22: Store *(#21 + 55 + #14*8) = #20 [raw, AnyTagged, AssertNoWriteBarrier, element size: 2^3, offset: 55]

#
#
#
#FailureMessage Object: 0x7fff8b7ec940
==== C stack trace ===============================



#
# Fatal error in , line 0
# MemoryOptimizationReducer could not remove write barrier for operation
  #21: Store *(#20 + 55 + #3*8) = #19 [raw, AnyTagged, AssertNoWriteBarrier, element size: 2^3, offset: 55]

#
#
#
#FailureMessage Object: 0x7fff954ec940
==== C stack trace ===============================



#
# Fatal error in , line 0
# MemoryOptimizationReducer could not remove write barrier for operation
  #22: Store *(#21 + 55 + #14*8) = #20 [raw, AnyTagged, AssertNoWriteBarrier, element size: 2^3, offset: 55]

#
#
#
#FailureMessage Object: 0x7fff8afdc940
==== C stack trace ===============================



#
# Fatal error in , line 0
# MemoryOptimizationReducer could not remove write barrier for operation
  #21: Store *(#20 + 55 + #3*8) = #19 [raw, AnyTagged, AssertNoWriteBarrier, element size: 2^3, offset: 55]

#
#
#
#FailureMessage Object: 0x7fff94cdc940
==== C stack trace ===============================



#
# Fatal error in , line 0
# MemoryOptimizationReducer could not remove write barrier for operation
  #21: Store *(#20 + 55 + #3*8) = #19 [raw, AnyTagged, AssertNoWriteBarrier, element size: 2^3, offset: 55]

#
#
#
#FailureMessage Object: 0x7fff8a7cc940
==== C stack trace ===============================



#
# Fatal error in , line 0
# MemoryOptimizationReducer could not remove write barrier for operation
  #22: Store *(#21 + 55 + #14*8) = #20 [raw, AnyTagged, AssertNoWriteBarrier, element size: 2^3, offset: 55]

#
#
#
#FailureMessage Object: 0x7fff8bffc940
==== C stack trace ===============================



#
# Fatal error in , line 0
# MemoryOptimizationReducer could not remove write barrier for operation
  #22: Store *(#21 + 55 + #6*8) = #20 [raw, AnyTagged, AssertNoWriteBarrier, element size: 2^3, offset: 55]

#
#
#
#FailureMessage Object: 0x7fff95cfc940
==== C stack trace ===============================

    /home/glaubitz/node/out/Release/mksnapshot(v8::base::debug::StackTrace::StackTrace()-0x7d6eac) [0x11596cd14]
    /home/glaubitz/node/out/Release/mksnapshot(+0x1c051f4) [0x113ee51f4]
    /home/glaubitz/node/out/Release/mksnapshot(V8_Fatal(char const*, ...)-0x219df1c) [0x113ed0014]
    /home/glaubitz/node/out/Release/mksnapshot(v8::internal::compiler::turboshaft::MemoryAnalyzer::SkipWriteBarrier(v8::internal::compiler::turboshaft::StoreOp const&)-0x16228b0) [0x114ad2b00]
    /home/glaubitz/node/out/Release/mksnapshot(v8::internal::compiler::turboshaft::MemoryAnalyzer::ProcessStore(v8::internal::compiler::turboshaft::StoreOp const&)-0x162198c) [0x114ad3a6c]
    /home/glaubitz/node/out/Release/mksnapshot(v8::internal::compiler::turboshaft::MemoryAnalyzer::Process(v8::internal::compiler::turboshaft::Operation const&)-0x1620dbc) [0x114ad4684]
    /home/glaubitz/node/out/Release/mksnapshot(v8::internal::compiler::turboshaft::MemoryAnalyzer::Run()-0x1620c54) [0x114ad4804]
    /home/glaubitz/node/out/Release/mksnapshot(+0x27de618) [0x114abe618]
    /home/glaubitz/node/out/Release/mksnapshot(v8::internal::compiler::turboshaft::BuiltinPipeline::OptimizeBuiltin()-0x1d03ebc) [0x1143bbf2c]
    /home/glaubitz/node/out/Release/mksnapshot(v8::internal::compiler::CodeAssemblerTurboshaftCompilationJob::ExecuteJobImpl(v8::internal::RuntimeCallStats*, v8::internal::LocalIsolate*)-0x1fc7f5c) [0x1140dfcdc]
    /home/glaubitz/node/out/Release/mksnapshot(v8::internal::OptimizedCompilationJob::ExecuteJob(v8::internal::RuntimeCallStats*, v8::internal::LocalIsolate*)-0x2e17128) [0x1131c2d70]
    /home/glaubitz/node/out/Release/mksnapshot(v8::internal::OptimizingCompileTaskExecutor::CompileNext(v8::internal::Isolate*, v8::internal::LocalIsolate&, v8::internal::TurbofanCompilationJob*)-0x2dddb84) [0x113200bd4]
    /home/glaubitz/node/out/Release/mksnapshot(v8::internal::OptimizingCompileTaskExecutor::CompileTask::Run(v8::JobDelegate*)-0x2ddd998) [0x113200dd8]
    /home/glaubitz/node/out/Release/mksnapshot(v8::platform::DefaultJobWorker::Run()-0x218998c) [0x113ee6644]
    /home/glaubitz/node/out/Release/mksnapshot(v8::platform::DefaultWorkerThreadsTaskRunner::WorkerThread::Run()-0x21865f8) [0x113ee9c30]
    /home/glaubitz/node/out/Release/mksnapshot(+0x1bfd1f4) [0x113edd1f4]
    /lib/powerpc64-linux-gnu/libc.so.6(+0xa43b4) [0x7fff980843b4]

It has worked in the past but I have not verified yet when it broke on this target.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ppcIssues and PRs related to the Power architecture.staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.v8 engineIssues and PRs related to the V8 dependency.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions