Thread 1 "node" received signal SIGSEGV, Segmentation fault.
0x0000000001c9c72d in nghttp2_map_find ()
(gdb) bt
#0 0x0000000001c9c72d in nghttp2_map_find ()
#1 0x0000000001c85a29 in nghttp2_session_get_stream ()
#2 0x0000000001c923d7 in nghttp2_session_set_local_window_size ()
#3 0x00007f40b03cf6a3 in ?? () from /usr/lib/x86_64-linux-gnu/libcurl.so.4
#4 0x00007f40b03b6222 in curl_easy_pause () from /usr/lib/x86_64-linux-gnu/libcurl.so.4
#5 0x00007f40b04502c7 in NodeLibcurl::Easy::Pause(Nan::FunctionCallbackInfo<v8::Value> const&) () from /usr/src/app/node_modules/node-libcurl/lib/binding/node_libcurl.node
#6 0x00007f40b045a47f in Nan::imp::FunctionCallbackWrapper(v8::FunctionCallbackInfo<v8::Value> const&) () from /usr/src/app/node_modules/node-libcurl/lib/binding/node_libcurl.node
#7 0x0000000000db0230 in v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) ()
#8 0x0000000000db176f in v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) ()
#9 0x00000000016ef579 in Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit ()
#10 0x00000000016734d0 in Builtins_InterpreterEntryTrampoline ()
#11 0x00002b7c35f815b9 in ?? ()
#12 0x00000b7113183dd9 in ?? ()
#13 0x0000000600000000 in ?? ()
#14 0x00002b7c35f81689 in ?? ()
#15 0x00002b4476ca6e41 in ?? ()
#16 0x0000000000000000 in ?? ()
Describe the bug
Uploading to sftp causes segmentation fault.
To Reproduce
Run SFTP server using docker:
docker run -v /tmp:/home/foo -p 2222:22 -it atmoz/sftp foo:pass:::upload
Upload file:
Version information:
Version:
OS: Linux / docker (base image
node:18.13.0
) Node.js Version: v18.13.0Additional context
curl -kv sftp://foo:pass@10.0.1.21:2222/upload/clip.mp4 -T ./test.mp4
Debugging with GDB: