Skip to content

static initialization order fiasco #26

@pippocao

Description

@pippocao

see src/bq_common/utils/util.cpp

static bq::platform::mutex _assert_mutex_; static uint32_t rand_seed = 0; static bq::array<char> device_console_buffer_({ '\0' });

assert_mutex is referenced in some functions which would be called in other global variable's constructors.
This would lead to crash in initialization.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions