Skip to content

{184399391} fix lua SPDEBUG NULL dereference on gbl_break_spname#5996

Open
mohitkhullar wants to merge 1 commit into
bloomberg:mainfrom
mohitkhullar:fix-spdebug-null-deref
Open

{184399391} fix lua SPDEBUG NULL dereference on gbl_break_spname#5996
mohitkhullar wants to merge 1 commit into
bloomberg:mainfrom
mohitkhullar:fix-spdebug-null-deref

Conversation

@mohitkhullar
Copy link
Copy Markdown
Contributor

gbl_break_spname can be NULL when debug_sp() sets it from an uninitialized local. Add NULL guards before strcasecmp/strncasecmp in db_debug() and InstructionCountHook() to prevent crash when SET SPDEBUG ON is used without a fully established debug session.

gbl_break_spname can be NULL when debug_sp() sets it from an
uninitialized local. Add NULL guards before strcasecmp/strncasecmp
in db_debug() and InstructionCountHook() to prevent crash when
SET SPDEBUG ON is used without a fully established debug session.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@roborivers roborivers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cbuild submission: Success ✓.
Regression testing: Success ✓.

The first 10 failing tests are:
recover_deadlock
triggersc_latency
consumer_non_atomic_default_consumer_generated **quarantined**
remotecreate_twopc_generated
remotecreate

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants