Hi all,
whilst I can launch the Balsa address book from the Balsa menu, running it from the command line always segfaults. I noticed
that in src/ab-main.c, line 582, the resource path is defined as “/org/desktop/BalsaAb/ab-main.ui”, but in the file
ui/balsa-ab.gresource.xml it is “<gresource prefix="/org/desktop/Balsa">”. Might this be the reason?
Cheers,
Albrecht.
---
Running the master branch on stretch:
Starting program: /home/test/balsa/src/balsa-ab
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe9521700 (LWP 2785)]
[New Thread 0x7fffe8d20700 (LWP 2786)]
get_main_menu error: The resource at '/org/desktop/BalsaAb/ab-main.ui' does not exist
Thread 1 "balsa-ab" received signal SIGSEGV, Segmentation fault.
0x00007ffff6a1ffb0 in g_menu_model_get_n_items () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
(gdb) bt full
#0 0x00007ffff6a1ffb0 in g_menu_model_get_n_items () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
No symbol table info available.
#1 0x000055555555eb87 in set_address_book_menu_items () at ab-main.c:261
string = <optimized out>
l = <optimized out>
pos = <optimized out>
s = <optimized out>
builder = <optimized out>
menu_model = <optimized out>
#2 0x000055555555dfe0 in get_main_menu (application=<optimized out>) at ab-main.c:602
builder = 0x5555558dd460
err = 0x5555558578c0
win_entries = {{name = 0x555555571462 "file-new-vcard", activate = 0x55555555f530 <file_new_vcard_activated>,
parameter_type = 0x0, state = 0x0, change_state = 0x0, padding = {0, 0, 0}}, {name = 0x555555571471 "file-new-external", activate =
0x55555555f510 <file_new_extern_activated>, parameter_type = 0x0,
state = 0x0, change_state = 0x0, padding = {0, 0, 0}}, {name = 0x555555571483 "file-new-ldif", activate =
0x55555555f4f0 <file_new_ldif_activated>, parameter_type = 0x0, state = 0x0, change_state = 0x0, padding = {0, 0, 0}}, {name =
0x555555571491 "file-new-ldap",
activate = 0x55555555f4d0 <file_new_ldap_activated>, parameter_type = 0x0, state = 0x0, change_state = 0x0,
padding = {0, 0, 0}}, {name = 0x55555557149f "file-new-gpe", activate = 0x55555555f4b0 <file_new_gpe_activated>,
parameter_type = 0x0, state = 0x0, change_state = 0x0, padding = {0, 0, 0}}, {
name = 0x5555555714ac "file-new-rubrica", activate = 0x55555555f490 <file_new_rubrica_activated>, parameter_type
= 0x0, state = 0x0, change_state = 0x0, padding = {0, 0, 0}}, {name = 0x5555555714bd "file-properties", activate = 0x55555555f460
<file_properties_activated>, parameter_type = 0x0,
state = 0x0, change_state = 0x0, padding = {0, 0, 0}}, {name = 0x5555555714cd "file-delete", activate = 0x55555555f3b0
<file_delete_activated>, parameter_type = 0x0, state = 0x0, change_state = 0x0, padding = {0, 0, 0}}, {name = 0x5555555714d9
"file-quit", activate = 0x55555555ea50 <file_quit_activated>,
parameter_type = 0x0, state = 0x0, change_state = 0x0, padding = {0, 0, 0}}, {name = 0x5555555714e3 "entry-new",
activate = 0x55555555f310 <entry_new_activated>, parameter_type = 0x0, state = 0x0, change_state = 0x0, padding = {0, 0, 0}},
{name = 0x5555555714ed "entry-delete",
activate = 0x55555555f0d0 <entry_delete_activated>, parameter_type = 0x0, state = 0x0, change_state = 0x0,
padding = {0, 0, 0}}, {name = 0x5555555714fa "help-about", activate = 0x55555555ea10 <help_about_activated>,
parameter_type = 0x0, state = 0x0, change_state = 0x0, padding = {0, 0, 0}}, {
name = 0x555555571217 "address-book", activate = 0x55555556d490 <libbalsa_radio_activated>, parameter_type = 0x5555555733e2
"s", state = 0x555555571505 "''", change_state = 0x55555555f9b0 <address_book_change_state>, padding = {0, 0, 0}}}
resource_path = "/org/desktop/BalsaAb/ab-main.ui"
win_entries = {{name = 0x555555571462 "file-new-vcard", activate = 0x55555555f530 <file_new_vcard_activated>,
parameter_type = 0x0, state = 0x0, change_state = 0x0, padding = {0, 0, 0}}, {name = 0x555555571471 "file-new-external", activate =
0x55555555f510 <file_new_extern_activated>, parameter_type = 0x0,
state = 0x0, change_state = 0x0, padding = {0, 0, 0}}, {name = 0x555555571483 "file-new-ldif", activate =
0x55555555f4f0 <file_new_ldif_activated>, parameter_type = 0x0, state = 0x0, change_state = 0x0, padding = {0, 0, 0}}, {name =
0x555555571491 "file-new-ldap",
activate = 0x55555555f4d0 <file_new_ldap_activated>, parameter_type = 0x0, state = 0x0, change_state = 0x0,
padding = {0, 0, 0}}, {name = 0x55555557149f "file-new-gpe", activate = 0x55555555f4b0 <file_new_gpe_activated>,
parameter_type = 0x0, state = 0x0, change_state = 0x0, padding = {0, 0, 0}}, {
name = 0x5555555714ac "file-new-rubrica", activate = 0x55555555f490 <file_new_rubrica_activated>, parameter_type
= 0x0, state = 0x0, change_state = 0x0, padding = {0, 0, 0}}, {name = 0x5555555714bd "file-properties", activate = 0x55555555f460
<file_properties_activated>, parameter_type = 0x0,
state = 0x0, change_state = 0x0, padding = {0, 0, 0}}, {name = 0x5555555714cd "file-delete", activate = 0x55555555f3b0
<file_delete_activated>, parameter_type = 0x0, state = 0x0, change_state = 0x0, padding = {0, 0, 0}}, {name = 0x5555555714d9
"file-quit", activate = 0x55555555ea50 <file_quit_activated>,
parameter_type = 0x0, state = 0x0, change_state = 0x0, padding = {0, 0, 0}}, {name = 0x5555555714e3 "entry-new",
activate = 0x55555555f310 <entry_new_activated>, parameter_type = 0x0, state = 0x0, change_state = 0x0, padding = {0, 0, 0}},
{name = 0x5555555714ed "entry-delete",
activate = 0x55555555f0d0 <entry_delete_activated>, parameter_type = 0x0, state = 0x0, change_state = 0x0,
padding = {0, 0, 0}}, {name = 0x5555555714fa "help-about", activate = 0x55555555ea10 <help_about_activated>,
parameter_type = 0x0, state = 0x0, change_state = 0x0, padding = {0, 0, 0}}, {
name = 0x555555571217 "address-book", activate = 0x55555556d490 <libbalsa_radio_activated>, parameter_type = 0x5555555733e2
"s", state = 0x555555571505 "''", change_state = 0x55555555f9b0 <address_book_change_state>, padding = {0, 0, 0}}}
#3 bab_window_new (application=<optimized out>) at ab-main.c:927
wnd = 0x555555a0a2a0
main_vbox = <optimized out>
browse_widget = <optimized out>
edit_widget = <optimized out>
scroll = <optimized out>
#4 main (argc=<optimized out>, argv=<optimized out>) at ab-main.c:1133
application = <optimized out>
ab = 0x5555559896a0
l = <optimized out>Attachment:
pgpVNLJRPITcg.pgp
Description: PGP signature