{"record":{"id":"50d96a21c7981f12","repo":"apache/hadoop","slug":"error-signal-d","errorCode":null,"errorMessage":"Error: signal %d:","messagePattern":"Error: signal (.+?):","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/src/main/native/src/lib/NativeObjectFactory.cc","lineNumber":43,"sourceCode":"#include \"lib/NativeObjectFactory.h\"\n#include \"lib/NativeLibrary.h\"\n#include \"lib/BufferStream.h\"\n#include \"util/StringUtil.h\"\n#include \"util/SyncUtils.h\"\n#include \"util/WritableUtils.h\"\n#include \"handler/BatchHandler.h\"\n#include \"handler/MCollectorOutputHandler.h\"\n#include \"handler/CombineHandler.h\"\n\nusing namespace NativeTask;\n\n// TODO: just for debug, should be removed\nextern \"C\" void handler(int sig) {\n  void *array[10];\n  size_t size;\n\n  // print out all the frames to stderr\n  fprintf(stderr, \"Error: signal %d:\\n\", sig);\n\n#ifndef __CYGWIN__\n  // get void*'s for all entries on the stack\n  size = backtrace(array, 10);\n\n  backtrace_symbols_fd(array, size, 2);\n#endif\n\n  exit(1);\n}\n\nDEFINE_NATIVE_LIBRARY(NativeTask) {\n  REGISTER_CLASS(BatchHandler, NativeTask);\n  REGISTER_CLASS(CombineHandler, NativeTask);\n  REGISTER_CLASS(MCollectorOutputHandler, NativeTask);\n  NativeObjectFactory::SetDefaultClass(BatchHandlerType, \"NativeTask.BatchHandler\");\n}\n","sourceCodeStart":25,"sourceCodeEnd":61,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/src/main/native/src/lib/NativeObjectFactory.cc#L25-L61","documentation":"Error \"Error: signal %d:\" thrown in apache/hadoop.","triggerScenarios":"Raised in NativeObjectFactory.cc when the nativetask native library receives a fatal signal during object creation. Indicates a crash in native code; check native logs/core dump and ensure libnativetask.so matches the Hadoop version.","commonSituations":"See trigger scenarios.","solutions":["Inspect the native library crash: check the task's stderr/core dump for the signal and fix the underlying native fault (often memory or ABI mismatch).","Rebuild libnativetask for the current platform/Hadoop version if the signal stems from an incompatible binary."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2add9630210752f88ceb1bb74eb65e37bf41da8e","analyzedAt":"2026-08-22T19:55:07.957Z","schemaVersion":2},"datasetVersion":"2026-08-22T20:17:22.307Z"}