kou commented on issue #15:
URL: https://github.com/apache/arrow-js/issues/15#issuecomment-3125767553

   Could you try this?
   
   
[generated_null.json](https://github.com/user-attachments/files/21462712/generated_null.json)
   
   ```bash
   bin/json-to-arrow.ts -a /dev/null -j generated_null.json
   ```
   
   Backtrace on my environment (Debian GNU/Linux sid, Node.js v20.19.2):
   
   ```text
   #
   # Fatal error in , line 0
   # unreachable code
   #
   #
   #
   #FailureMessage Object: 0x7f1fe86bec80
   ----- Native stack trace -----
   
    1: 0x7f1fee9ecaa5  [/lib/x86_64-linux-gnu/libnode.so.115]
    2: 0x7f1fef7b68a8 V8_Fatal(char const*, ...) 
[/lib/x86_64-linux-gnu/libnode.so.115]
    3: 0x7f1fef45b3ec int 
v8::internal::Deserializer<v8::internal::Isolate>::ReadSingleBytecodeData<v8::internal::SlotAccessorForHeapObject>(unsigned
 char, v8::internal::SlotAccessorForHeapObject) 
[/lib/x86_64-linux-gnu/libnode.so.115]
    4: 0x7f1fef45cc20 
v8::internal::Deserializer<v8::internal::Isolate>::ReadObject(v8::internal::SnapshotSpace)
 [/lib/x86_64-linux-gnu/libnode.so.115]
    5: 0x7f1fef45c315 int 
v8::internal::Deserializer<v8::internal::Isolate>::ReadSingleBytecodeData<v8::internal::SlotAccessorForHeapObject>(unsigned
 char, v8::internal::SlotAccessorForHeapObject) 
[/lib/x86_64-linux-gnu/libnode.so.115]
    6: 0x7f1fef45cc20 
v8::internal::Deserializer<v8::internal::Isolate>::ReadObject(v8::internal::SnapshotSpace)
 [/lib/x86_64-linux-gnu/libnode.so.115]
    7: 0x7f1fef45c315 int 
v8::internal::Deserializer<v8::internal::Isolate>::ReadSingleBytecodeData<v8::internal::SlotAccessorForHeapObject>(unsigned
 char, v8::internal::SlotAccessorForHeapObject) 
[/lib/x86_64-linux-gnu/libnode.so.115]
    8: 0x7f1fef45cc20 
v8::internal::Deserializer<v8::internal::Isolate>::ReadObject(v8::internal::SnapshotSpace)
 [/lib/x86_64-linux-gnu/libnode.so.115]
    9: 0x7f1fef45b4d0 int 
v8::internal::Deserializer<v8::internal::Isolate>::ReadSingleBytecodeData<v8::internal::SlotAccessorForHeapObject>(unsigned
 char, v8::internal::SlotAccessorForHeapObject) 
[/lib/x86_64-linux-gnu/libnode.so.115]
   10: 0x7f1fef45cc20 
v8::internal::Deserializer<v8::internal::Isolate>::ReadObject(v8::internal::SnapshotSpace)
 [/lib/x86_64-linux-gnu/libnode.so.115]
   11: 0x7f1fef45c315 int 
v8::internal::Deserializer<v8::internal::Isolate>::ReadSingleBytecodeData<v8::internal::SlotAccessorForHeapObject>(unsigned
 char, v8::internal::SlotAccessorForHeapObject) 
[/lib/x86_64-linux-gnu/libnode.so.115]
   12: 0x7f1fef45cc20 
v8::internal::Deserializer<v8::internal::Isolate>::ReadObject(v8::internal::SnapshotSpace)
 [/lib/x86_64-linux-gnu/libnode.so.115]
   13: 0x7f1fef45c315 int 
v8::internal::Deserializer<v8::internal::Isolate>::ReadSingleBytecodeData<v8::internal::SlotAccessorForHeapObject>(unsigned
 char, v8::internal::SlotAccessorForHeapObject) 
[/lib/x86_64-linux-gnu/libnode.so.115]
   14: 0x7f1fef45cc20 
v8::internal::Deserializer<v8::internal::Isolate>::ReadObject(v8::internal::SnapshotSpace)
 [/lib/x86_64-linux-gnu/libnode.so.115]
   15: 0x7f1fef45c315 int 
v8::internal::Deserializer<v8::internal::Isolate>::ReadSingleBytecodeData<v8::internal::SlotAccessorForHeapObject>(unsigned
 char, v8::internal::SlotAccessorForHeapObject) 
[/lib/x86_64-linux-gnu/libnode.so.115]
   16: 0x7f1fef45cc20 
v8::internal::Deserializer<v8::internal::Isolate>::ReadObject(v8::internal::SnapshotSpace)
 [/lib/x86_64-linux-gnu/libnode.so.115]
   17: 0x7f1fef45c315 int 
v8::internal::Deserializer<v8::internal::Isolate>::ReadSingleBytecodeData<v8::internal::SlotAccessorForHeapObject>(unsigned
 char, v8::internal::SlotAccessorForHeapObject) 
[/lib/x86_64-linux-gnu/libnode.so.115]
   18: 0x7f1fef45cc20 
v8::internal::Deserializer<v8::internal::Isolate>::ReadObject(v8::internal::SnapshotSpace)
 [/lib/x86_64-linux-gnu/libnode.so.115]
   19: 0x7f1fef45c315 int 
v8::internal::Deserializer<v8::internal::Isolate>::ReadSingleBytecodeData<v8::internal::SlotAccessorForHeapObject>(unsigned
 char, v8::internal::SlotAccessorForHeapObject) 
[/lib/x86_64-linux-gnu/libnode.so.115]
   20: 0x7f1fef45cc20 
v8::internal::Deserializer<v8::internal::Isolate>::ReadObject(v8::internal::SnapshotSpace)
 [/lib/x86_64-linux-gnu/libnode.so.115]
   21: 0x7f1fef45c315 int 
v8::internal::Deserializer<v8::internal::Isolate>::ReadSingleBytecodeData<v8::internal::SlotAccessorForHeapObject>(unsigned
 char, v8::internal::SlotAccessorForHeapObject) 
[/lib/x86_64-linux-gnu/libnode.so.115]
   22: 0x7f1fef45cc20 
v8::internal::Deserializer<v8::internal::Isolate>::ReadObject(v8::internal::SnapshotSpace)
 [/lib/x86_64-linux-gnu/libnode.so.115]
   23: 0x7f1fef45c315 int 
v8::internal::Deserializer<v8::internal::Isolate>::ReadSingleBytecodeData<v8::internal::SlotAccessorForHeapObject>(unsigned
 char, v8::internal::SlotAccessorForHeapObject) 
[/lib/x86_64-linux-gnu/libnode.so.115]
   24: 0x7f1fef45cc20 
v8::internal::Deserializer<v8::internal::Isolate>::ReadObject(v8::internal::SnapshotSpace)
 [/lib/x86_64-linux-gnu/libnode.so.115]
   25: 0x7f1fef45c315 int 
v8::internal::Deserializer<v8::internal::Isolate>::ReadSingleBytecodeData<v8::internal::SlotAccessorForHeapObject>(unsigned
 char, v8::internal::SlotAccessorForHeapObject) 
[/lib/x86_64-linux-gnu/libnode.so.115]
   26: 0x7f1fef45cc20 
v8::internal::Deserializer<v8::internal::Isolate>::ReadObject(v8::internal::SnapshotSpace)
 [/lib/x86_64-linux-gnu/libnode.so.115]
   27: 0x7f1fef45c315 int 
v8::internal::Deserializer<v8::internal::Isolate>::ReadSingleBytecodeData<v8::internal::SlotAccessorForHeapObject>(unsigned
 char, v8::internal::SlotAccessorForHeapObject) 
[/lib/x86_64-linux-gnu/libnode.so.115]
   28: 0x7f1fef45cc20 
v8::internal::Deserializer<v8::internal::Isolate>::ReadObject(v8::internal::SnapshotSpace)
 [/lib/x86_64-linux-gnu/libnode.so.115]
   29: 0x7f1fef45c315 int 
v8::internal::Deserializer<v8::internal::Isolate>::ReadSingleBytecodeData<v8::internal::SlotAccessorForHeapObject>(unsigned
 char, v8::internal::SlotAccessorForHeapObject) 
[/lib/x86_64-linux-gnu/libnode.so.115]
   30: 0x7f1fef45cc20 
v8::internal::Deserializer<v8::internal::Isolate>::ReadObject(v8::internal::SnapshotSpace)
 [/lib/x86_64-linux-gnu/libnode.so.115]
   31: 0x7f1fef45c315 int 
v8::internal::Deserializer<v8::internal::Isolate>::ReadSingleBytecodeData<v8::internal::SlotAccessorForHeapObject>(unsigned
 char, v8::internal::SlotAccessorForHeapObject) 
[/lib/x86_64-linux-gnu/libnode.so.115]
   32: 0x7f1fef45cc20 
v8::internal::Deserializer<v8::internal::Isolate>::ReadObject(v8::internal::SnapshotSpace)
 [/lib/x86_64-linux-gnu/libnode.so.115]
   33: 0x7f1fef45cfbc int 
v8::internal::Deserializer<v8::internal::Isolate>::ReadSingleBytecodeData<v8::internal::SlotAccessorForHandle<v8::internal::Isolate>
 >(unsigned char, v8::internal::SlotAccessorForHandle<v8::internal::Isolate>) 
[/lib/x86_64-linux-gnu/libnode.so.115]
   34: 0x7f1fef45d841 
v8::internal::Deserializer<v8::internal::Isolate>::ReadObject() 
[/lib/x86_64-linux-gnu/libnode.so.115]
   35: 0x7f1fef462e26 v8::internal::ObjectDeserializer::Deserialize() 
[/lib/x86_64-linux-gnu/libnode.so.115]
   36: 0x7f1fef462faf 
v8::internal::ObjectDeserializer::DeserializeSharedFunctionInfo(v8::internal::Isolate*,
 v8::internal::SerializedCodeData const*, 
v8::internal::Handle<v8::internal::String>) 
[/lib/x86_64-linux-gnu/libnode.so.115]
   37: 0x7f1fef454d4e 
v8::internal::CodeSerializer::Deserialize(v8::internal::Isolate*, 
v8::internal::AlignedCachedData*, v8::internal::Handle<v8::internal::String>, 
v8::ScriptOriginOptions, v8::internal::MaybeHandle<v8::internal::Script>) 
[/lib/x86_64-linux-gnu/libnode.so.115]
   38: 0x7f1feeebd6a7  [/lib/x86_64-linux-gnu/libnode.so.115]
   39: 0x7f1feeebd9cd 
v8::internal::Compiler::GetSharedFunctionInfoForScriptWithCachedData(v8::internal::Isolate*,
 v8::internal::Handle<v8::internal::String>, v8::internal::ScriptDetails 
const&, v8::internal::AlignedCachedData*, v8::ScriptCompiler::CompileOptions, 
v8::ScriptCompiler::NoCacheReason, v8::internal::NativesFlag) 
[/lib/x86_64-linux-gnu/libnode.so.115]
   40: 0x7f1feee0edee v8::ScriptCompiler::CompileUnboundInternal(v8::Isolate*, 
v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions, 
v8::ScriptCompiler::NoCacheReason) [/lib/x86_64-linux-gnu/libnode.so.115]
   41: 0x7f1fee95c2da 
node::contextify::ContextifyScript::New(v8::FunctionCallbackInfo<v8::Value> 
const&) [/lib/x86_64-linux-gnu/libnode.so.115]
   42: 0x7f1feee551ec 
v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) 
[/lib/x86_64-linux-gnu/libnode.so.115]
   43: 0x7f1feee55c1e  [/lib/x86_64-linux-gnu/libnode.so.115]
   44: 0x7f1feee55ee4 v8::internal::Builtin_HandleApiCall(int, unsigned long*, 
v8::internal::Isolate*) [/lib/x86_64-linux-gnu/libnode.so.115]
   45: 0x7f1feecdadf6  [/lib/x86_64-linux-gnu/libnode.so.115]
   Trace/breakpoint trap
   ```
   
   I could reproduce this failure easily (I just need a few loops) by:
   
   ```bash
   while (. ~/arrow-dev/bin/activate && ARROW_JS_ROOT=$PWD archery integration 
--with-cpp=yes --with-js=yes --run-ipc >& log); do :; done
   ```
   
   but I could reproduce this failure by ...:
   
   ```bash
   while bin/json-to-arrow.ts -a /dev/null -j generated_null.json; do :; done
   ```
   
   So, I couldn't debug this...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to