Skip to content

Conversation

@jesson1
Copy link
Contributor

@jesson1 jesson1 commented Dec 29, 2025

What problem does this PR solve?

Issue Number: resolve #3183

Problem Summary:
When /proc/self/io is inaccessible, read_proc_io calls PLOG during global static construction. If glog is not yet initialized, it triggers a SIGSEGV.

What is changed and the side effects?

Changed:
Replace PLOG_ONCE with a guarded fprintf(stderr, ...) to ensure safety during early startup. A static flag is used to maintain the "print once" behavior.

Side effects:

  • Performance effects: none

  • Breaking backward compatibility: none


Check List:

Signed-off-by: jiasheng.yu <jiashengyu@deepglint.com>
@wwbmmm
Copy link
Contributor

wwbmmm commented Dec 29, 2025

LGTM

Copy link
Contributor

@chenBright chenBright left a comment

Choose a reason for hiding this comment

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

LGTM

@chenBright chenBright merged commit 9f4947c into apache:master Dec 29, 2025
17 checks passed
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.

Fix SIGSEGV during static initialization when /proc/self/io is missing (glog uninitialized)

3 participants