After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 627090 - Infinite loop when returning non-literal from inside a catch block in a property accessor
Infinite loop when returning non-literal from inside a catch block in a prope...
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Errors
0.9.x
Other Linux
: Normal major
: ---
Assigned To: Vala maintainers
Vala maintainers
regression test-case trivial-patch
Depends on:
Blocks:
 
 
Reported: 2010-08-16 21:49 UTC by Evan Nemerson
Modified: 2010-08-20 08:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test case (431 bytes, application/octet-stream)
2010-08-16 21:49 UTC, Evan Nemerson
  Details
Fix handling of exceptions in property accessors. (1.00 KB, patch)
2010-08-16 21:52 UTC, Evan Nemerson
none Details | Review

Description Evan Nemerson 2010-08-16 21:49:41 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.
Comment 1 Evan Nemerson 2010-08-16 21:52:32 UTC
Created attachment 168016 [details] [review]
Fix handling of exceptions in property accessors.
Comment 2 Marc-Andre Lureau 2010-08-17 00:45:34 UTC
(test case added to vala-tests)
Comment 3 Jürg Billeter 2010-08-20 08:04:35 UTC
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.