petdance/scratch — Issue #286: Parrot_compile_string does not properly catch errors thrown by causing IMCC syntax errors
Author: petdance
Created: 2011-11-01 04:25:34+00:00
State: open

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.