#1610: Parrot_compile_string does not properly catch errors thrown by causing 
IMCC
syntax errors
----------------------+-----------------------------------------------------
 Reporter:  dukeleto  |       Owner:  plobsing
     Type:  bug       |      Status:  new     
 Priority:  major     |   Milestone:          
Component:  imcc      |     Version:  2.3.0   
 Severity:  medium    |    Keywords:          
     Lang:            |       Patch:          
 Platform:  all       |  
----------------------+-----------------------------------------------------

Comment(by plobsing):

 Replying to [ticket:1610 dukeleto]:
 > 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.

 Here's a patch that fixes this issue slightly by changing IMCC's yyerror
 to not fprintf(stderr,...).

 It changes the format of error messages slightly, causing some tests to
 fail.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1610#comment:4>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to