-
Notifications
You must be signed in to change notification settings - Fork 9
Segfault with test_logging #539
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workinggccLimited to the GCC compilerLimited to the GCC compilerioInput-output moduleInput-output modulemacosLimited to the macOS platformLimited to the macOS platform
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggccLimited to the GCC compilerLimited to the GCC compilerioInput-output moduleInput-output modulemacosLimited to the macOS platformLimited to the macOS platform
A segfault is issued with test_logging in macOS gcc under the following test:
The segfault in code appears as soon as we try to add custom keywords to the default keywords map.
I fail to see the problem since the keywords code is straightforward, but it seems that enqueue_println gives problems while an immediate println from the main thread does not. The dequeuing thread would seem not to be the issue given all the efforts done in simplifying for debug. Despite the actual test using extra threads, it is not necessary to supply them to give rise to the error: a print on main suffices, hence the problem must be with the dequeuing thread somehow.
Lifetime of the nonblocking scheduler is not a problem, since the issue appears before destruction of the class. Also the terminal is not given control yet. Return of the test executable instead might be a factor, since a sleep at the bottom of the test is sufficient to avoid the issue (most of the times).