GNOME Bugzilla – Bug 644938
generic type parameters with underscores seg fault
Last modified: 2016-11-04 08:04:19 UTC
Created attachment 183556 [details] test program The attached test program is fixed by removing the underscore in the type generic. If this isn't allowed vala should at least catch it. It took me a while to figure this out, so it's mostly likely not that trivial. Attached test program, and output.
Created attachment 183557 [details] program ran, gdb backtrace attached
Created attachment 253727 [details] [review] Allow underscores in type parameter names (includes testcase) Thank you for taking the time to report this bug. The compiled program crashes because it tries to register GObject properties whose names contain underscores, which are not allowed. Replacing the underscores in the code generator fixes the problem. Attached is a simple patch and a corresponding test case.
Created attachment 279359 [details] [review] codegen: Allow underscores in type parameter names Rebased, looks fine to me.
Created attachment 332938 [details] [review] fixes this bug Hey guys, I noticed this bug independently, fixed it and then found this bug report. I'm attaching a patch, it would be great if somebody could take a look… Cheers, Matthias
Sorry, I mixed up two completely unrelated bugs. Please ignore my comment and my patch.
Created attachment 339079 [details] [review] codegen: Allow underscores in type parameter names
Attachment 339079 [details] pushed as 457743f - codegen: Allow underscores in type parameter names