Summary
The statistic profiler gets stuck
Metadata
- Id: 1f7f65bf6e6560de4564c483aca7fbe8e69bbc45
- Trac id: 1414
- Type: defect
- Reporter: LemonBoy
- Owner:
- Cc: sjamaan
- Status: closed
- Component: compiler
- Estimated difficulty: medium
- Resolution: fixed
- Priority: major
- Milestone: 4.13.0
- Version: 4.12.0
- Changetime: 2017-09-17 12:33:13 UTC
- Created: 2017-09-15 20:21:09 UTC
- Keywords:
Description
`take_profile_sample`, which is called from within a signal handler, uses `malloc` to allocate new bins for its hash table. Doing so is frowned upon as the signal may be processed while the runtime owns the global malloc lock leading to an awful deadlock.
I can confirm that I've been able to do a profiled run by replacing the malloc with a simple arena allocator.
Changes and comments
[2017-09-17 12:33:13 UTC] sjamaan changed status from new to closed
[2017-09-17 12:33:13 UTC] sjamaan set resolution to fixed
[2017-09-17 12:33:13 UTC] sjamaan wrote:
Fixed with 40fe7dc9 and 41ca5155