Hello, not being maintainer I tried to reproduce this issue. It looks like another case of pointer truncation due to "implicit declaration of function" in various files.
Attached patch adds an include to gdk/gdk.h in a global header file. With it applied no implicit declarations remain and the crash does not happen anymore. Kind regards, Bernhard Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007fa80d502566 in IA__gdk_gc_set_foreground (gc=0x26e37730, color=color@entry=0x563726dea028) at ./gdk/gdkgc.c:394 394 ./gdk/gdkgc.c: Datei oder Verzeichnis nicht gefunden. (gdb) bt #0 0x00007fa80d502566 in IA__gdk_gc_set_foreground (gc=0x26e37730, color=color@entry=0x563726dea028) at ./gdk/gdkgc.c:394 #1 0x000056372645fcbf in sc_window_paint_blank (w_=w_@entry=0x563726d6ec40) at spaint-gtk.c:733 #2 0x000056372645ddf5 in sc_window_main_menu (w_=0x563726d6ec40) at smainmenu-gtk.c:159 #3 0x0000563726450764 in _sc_state_prelude_begin (c=0x563726cf62e0, c=0x563726cf62e0, g=0x563726d08a70) at sstate.c:53 #4 0x0000563726450764 in sc_state_run (c=0x563726cf62e0, g=0x563726d08a70) at sstate.c:693 #5 0x0000563726463533 in _sc_window_timeout_gtk (data=0x563726d6ec40, data@entry=<error reading variable: value has been optimized out>) at swindow-gtk.c:64 #6 0x00007fa80be5e123 in g_timeout_dispatch (source=0x563726e3d010, callback=<optimized out>, user_data=<optimized out>) at ././glib/gmain.c:4674 #7 0x00007fa80be5d6aa in g_main_dispatch (context=0x563726d5f700) at ././glib/gmain.c:3203 #8 0x00007fa80be5d6aa in g_main_context_dispatch (context=context@entry=0x563726d5f700) at ././glib/gmain.c:3856 #9 0x00007fa80be5da60 in g_main_context_iterate (context=0x563726d5f700, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ././glib/gmain.c:3929 #10 0x00007fa80be5dd82 in g_main_loop_run (loop=0x563726df0940) at ././glib/gmain.c:4125 #11 0x00007fa80d8c03b7 in IA__gtk_main () at ./gtk/gtkmain.c:1268 #12 0x0000563726442d95 in main (argc=<optimized out>, argv=<optimized out>) at xscorch.c:91
From f0f67878e36abd8cd698976ea3ae5dd24bed790f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20=C3=9Cbelacker?= <bernha...@mailbox.org> Date: Sun, 7 May 2017 17:30:14 +0200 Subject: Avoid implicit declaration of functions leading to pointer truncation. https://bugs.debian.org/861978 --- sgtk/sgtk.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sgtk/sgtk.h b/sgtk/sgtk.h index 9e0e1da..2cb0174 100644 --- a/sgtk/sgtk.h +++ b/sgtk/sgtk.h @@ -24,6 +24,7 @@ #ifndef __sgtk_h_included #define __sgtk_h_included +#include <gdk/gdk.h> /* This file implies xscorch.h. */ #include <xscorch.h> -- 2.11.0