Skip to content

node_mksnapshot path length limit (char buf[64]) is too SHORT #67929

Backlog

Description

@navegador5

What is the problem this feature will solve?

"nv_media_server/webvw-global/simple-single-json-observer/src/index"    .length = 66

node_mksnapshot

  #  D:\FFMPEG-RTSP-CLIENT\rtsp-win-server\rtsp_server\nodejs-release-as-builtin\node260200\out\Release\node_mksnapshot.exe[155512]: std::string __cdecl node::GetCodeCacheDefName(const std::string &) at src\node_snapshotable.cc:714
  #  Assertion failed: (size) < (sizeof(buf)) ==============>

----- Native stack trace -----

 1: 00007FF74C7C27A6 node::Assert+166 [D:\FFMPEG-RTSP-CLIENT\rtsp-win-server\rtsp_server\nodejs-release-as-builtin\node260200\src\node_errors.cc]:L409
 2: 00007FF74C7E0CE0 node::GetCodeCacheDefName+512 [D:\FFMPEG-RTSP-CLIENT\rtsp-win-server\rtsp_server\nodejs-release-as-builtin\node260200\src\node_snapshotable.cc]:L717
 3: 00007FF74C7E8771 node::SnapshotBuilder::GenerateAsSource+1761 [D:\FFMPEG-RTSP-CLIENT\rtsp-win-server\rtsp_server\nodejs-release-as-builtin\node260200\src\node_snapshotable.cc]:L1313
 4: 00007FF7498ACB51 BuildSnapshot+881 [D:\FFMPEG-RTSP-CLIENT\rtsp-win-server\rtsp_server\nodejs-release-as-builtin\node260200\tools\snapshot\node_mksnapshot.cc]:L104
 5: 00007FF74E1DCC2C __scrt_common_main_seh+268 [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl]:L288
 6: 00007FFDE0E9DDA7 BaseThreadInitThunk+23
 7: 00007FFDE2DF9C5C RtlUserThreadStart+44``

What is the feature you are proposing to solve the problem?

suggest to make it 128 or 256 to compatible with some automation tool generated path.

What alternatives have you considered?

No response

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

    feature request

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions