Skip to content

Conversation

@rustyconover
Copy link
Contributor

When NODE_DEBUG_NATIVE is enabled for tls a debug statement
is sometimes called with error_str set to null, this causes
a crash from glibc since string format parameters should not
be null.

  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows [commit guidelines]

When NODE_DEBUG_NATIVE is enabled for tls a debug statement
is sometimes called with error_str set to null, this causes
a crash from glibc since string format parameters should not
be null.
@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. tls Issues and PRs related to the tls subsystem. labels Jan 25, 2020
@rustyconover rustyconover requested a review from addaleax January 25, 2020 18:03
@addaleax
Copy link
Member

Sorry – this might be something I didn’t catch during #31446 – Maybe we could update the const char* variant in ToStringHelper (debug_utils-inl.h) to gracefully handle nullptr by returning a replacment string in that case, e.g. (null)? That would match the glibc behaviour…

@rustyconover
Copy link
Contributor Author

See PR #31523.

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

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. tls Issues and PRs related to the tls subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants