GNOME Bugzilla – Bug 530212
rethrowing exceptions from the catch block no longer works
Last modified: 2008-05-17 13:14:11 UTC
Please describe the problem: Code like this (compiled using the vala from SVN): public bool connect() throws GLib.Error { try { throw new ServerError.FATAL("Invalid credentials."); } catch (GLib.Error e) { throw e; } } produces infinite loop, because throw e generates goto __catch3_g_error; Steps to reproduce: Try to run the code. Actual results: Infinite loop, out of memory condition, my machine locks up and I must wait awful lot of time for e2fsck to complete after reboot. Muhahaha. :) Expected results: Does this happen every time? Yes Other information:
Confirming.
2008-05-02 Jürg Billeter <j@bitron.ch> * vala/valacatchclause.vala: * gobject/valaccodegenerator.vala: Fix error handling in catch and finally clauses, fixes bug 530212 Fixed in r1334.
*** Bug 505557 has been marked as a duplicate of this bug. ***