[sylpheed:36761] Re: Strange bug with small screen

Michael Shell list1 at michaelshell.org
Wed Dec 26 07:07:02 JST 2018


On Sun, 23 Dec 2018 12:26:41 -0500
Stefan Vorkoetter <stefan at capable.ca> wrote:


> Program received signal SIGSEGV, Segmentation fault.
> 0x0007b170 in compose_update_signature_menu (compose=0x20fcb80)
>     at compose.c:3027
> 3027                        compose->account->sig_names[i][0] != '\0') {


   Stefan,

Great investigating!

What exactly is in your sylpheed source code in src/compose.c around that
area? For my sylpheed-3.7.0 source tree, that code is around line 3008
rather than 3027 and is:


	for (i = 0; valid && i < sizeof(compose->account->sig_names) /
		sizeof(compose->account->sig_names[0]); i++) {
		if (compose->account->sig_names[i] &&
		    compose->account->sig_names[i][0] != '\0') {
			name = g_strdup_printf
				("%s", compose->account->sig_names[i]);
		} else {
			name = g_strdup_printf(_("Signature %d"), i + 1);
		}
		gtk_list_store_set(store, &iter, 0, name, -1);
		g_free(name);
		valid = gtk_tree_model_iter_next(model, &iter);
	}



As a test, I would try setting

valid = 0;

before the above conditional to see if that stops the crash (at least
when entering the compose mode), even though signature handling would
be disabled as a result.

Another thing to try is to restore your entire  .sylpheed-2.0
directory, not just accountrc. Does that result in a non-crashing
sylpheed?


   Mike




More information about the Sylpheed mailing list