You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 6385 Reporter:@stedolan Status: closed (set by @xavierleroy on 2015-12-11T18:26:45Z) Resolution: fixed Priority: normal Severity: minor Fixed in version: 4.02.0+dev Category: runtime system and C interface Monitored by:@gasche
Bug description
If a function closes over more than Max_young_wosize variables, the CLOSURE opcode in interp.c will nonetheless try to allocate it on the minor heap.
When using the debug runtime, this causes an assertion failure. For a big enough function / unlucky enough minor heap state, I suspect it would cause memory corruption.
Original bug ID: 6385
Reporter: @stedolan
Status: closed (set by @xavierleroy on 2015-12-11T18:26:45Z)
Resolution: fixed
Priority: normal
Severity: minor
Fixed in version: 4.02.0+dev
Category: runtime system and C interface
Monitored by: @gasche
Bug description
If a function closes over more than Max_young_wosize variables, the CLOSURE opcode in interp.c will nonetheless try to allocate it on the minor heap.
When using the debug runtime, this causes an assertion failure. For a big enough function / unlucky enough minor heap state, I suspect it would cause memory corruption.
Steps to reproduce
Compile the attached file and run with ocamlrund.
File attachments
The text was updated successfully, but these errors were encountered: