Opened 3 months ago

Closed 3 months ago

#1414 closed defect (fixed)

The statistic profiler gets stuck

Reported by: LemonBoy Owned by:
Priority: major Milestone: 4.13.0
Component: compiler Version: 4.12.0
Keywords: Cc: sjamaan
Estimated difficulty: medium

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.

Change History (1)

comment:1 Changed 3 months ago by sjamaan

  • Resolution set to fixed
  • Status changed from new to closed

Fixed with 40fe7dc9 and 41ca5155

Note: See TracTickets for help on using tickets.