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 644275 - Async Bus.get_proxy() call crashes valac
Async Bus.get_proxy() call crashes valac
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: D-Bus
0.11.x
Other Linux
: Normal major
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2011-03-09 04:55 UTC by Travis Reitter
Modified: 2011-05-20 21:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Simplified program that causes crasher (764 bytes, text/x-vala)
2011-03-09 04:55 UTC, Travis Reitter
Details

Description Travis Reitter 2011-03-09 04:55:24 UTC
Created attachment 182919 [details]
Simplified program that causes crasher

When I compile the attached program with:

valac --pkg gobject-2.0 --pkg gio-2.0 -C broken-dbus-example.vala

valac crashes on:

ERROR:arraylist.c:348:vala_array_list_real_get: assertion failed: (_tmp0_)

Program received signal SIGABRT, Aborted.
0x00007ffff6a36165 in raise (sig=<value optimized out>)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64	../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
	in ../nptl/sysdeps/unix/sysv/linux/raise.c
(gdb) bt
  • #0 raise
    at ../nptl/sysdeps/unix/sysv/linux/raise.c line 64
  • #1 abort
    at abort.c line 92
  • #2 g_assertion_message
  • #3 g_assertion_message_expr
    at gtestutils.c line 1369
  • #4 vala_array_list_real_get
    at arraylist.c line 348
  • #5 vala_gd_bus_client_module_real_visit_method_call
    at valagdbusclientmodule.c line 1739
  • #6 vala_gd_bus_server_module_real_visit_method_call
    at valagdbusservermodule.c line 6230
  • #7 vala_method_call_real_emit
    at valamethodcall.c line 4286
  • #8 vala_ccode_base_module_real_visit_local_variable
    at valaccodebasemodule.c line 8307
  • #9 vala_ccode_base_module_real_visit_block
    at valaccodebasemodule.c line 7843
  • #10 vala_gerror_module_real_visit_try_statement
    at valagerrormodule.c line 1483
  • #11 vala_ccode_base_module_real_visit_block
    at valaccodebasemodule.c line 7843
  • #12 vala_ccode_method_module_real_visit_method
    at valaccodemethodmodule.c line 2820
  • #13 vala_class_real_accept_children
    at valaclass.c line 1824
  • #14 vala_gtype_module_real_visit_class
    at valagtypemodule.c line 2968
  • #15 vala_gobject_module_real_visit_class
    at valagobjectmodule.c line 510
  • #16 vala_gd_bus_server_module_real_visit_class
    at valagdbusservermodule.c line 6402
  • #17 vala_source_file_accept_children
    at valasourcefile.c line 429
  • #18 vala_ccode_base_module_real_visit_source_file
    at valaccodebasemodule.c line 1952
  • #19 vala_ccode_base_module_real_emit
    at valaccodebasemodule.c line 1402
  • #20 vala_compiler_run
    at valacompiler.c line 997
  • #21 vala_compiler_main
    at valacompiler.c line 1627
  • #22 main
    at valacompiler.c line 1636

Comment 1 Jürg Billeter 2011-05-20 21:57:35 UTC
commit c75ee551466b00d87b236efb1449341997cbe42a
Author: Jürg Billeter <j@bitron.ch>
Date:   Fri May 20 23:54:49 2011 +0200

    D-Bus: Fix use of Bus.get_proxy outside async methods
    
    Fixes bug 644275.