petdance/scratch — Issue #624: Parrot_compile_string does not properly catch errors thrown by causing IMCC syntax errors
Author: petdance
Created: 2011-11-01 05:35:28+00:00
State: open
Labels: bug, imcc, Pri-major, Sev-medium

Parrot_compile_string is supposed to fill an error_string with error messages, which it does in certain cases, but if an IMCC syntax error occurs, the exception bubbles up out of Parrot_compile_string. This currently causes PL/Parrot to coredump PostgreSQL for stored procedures that have incorrect syntax.

chromatic++ suggested installing a C exception handler with Parrot_ex_add_c_handler into Parrot_compile_string, but I have not been able to get it to work yet.
Trac ID #1610