GNOME Bugzilla – Bug 627090
Infinite loop when returning non-literal from inside a catch block in a property accessor
Last modified: 2010-08-20 08:04:35 UTC
Created attachment 168015 [details] test case When catching an exception in a property accessor, valac gets stuck in an infinite loop with the following messages: ** (valac:4377): CRITICAL **: vala_symbol_get_scope: assertion `self != NULL' failed ** (valac:4377): CRITICAL **: vala_scope_lookup: assertion `self != NULL' failed ** (valac:4377): CRITICAL **: vala_code_node_get_parent_node: assertion `self != NULL' failed ** (valac:4377): CRITICAL **: vala_code_node_get_parent_node: assertion `self != NULL' failed ** (valac:4377): CRITICAL **: vala_symbol_get_parent_symbol: assertion `self != NULL' failed This used to work--I haven't bisected it, but I believe the regression occured during the recent codegen work.
Created attachment 168016 [details] [review] Fix handling of exceptions in property accessors.
(test case added to vala-tests)
commit 65e899135debb1138a16778796b959af9e041517 Author: Evan Nemerson <evan@coeus-group.com> Date: Mon Aug 16 14:50:27 2010 -0700 Fix handling of exceptions in property accessors Fixes bug 627090.