linux - GTK2 multthreaded app crash -


i new gtk. have started looking large piece of multithreaded gtk2 application code developed , tested using gtk2-2.18.x (gtk2 version 2.18) on proprietary system running linux.

i have upgraded gtk2 version 2.22. can’t upgrade 2.24 or 3.0 there issues proprietary hardware has drivers work older x server , older packages.

after upgrade 2.18 2.22 see random crashes in gtk2 application. believe crashes due heap corruption. gdb stack trace shows crash inside libc realloc function. gtk functions code called before libc realloc crash vary.

i enabled malloc_check_ , enabled gtk_debug. below logs (taken stderr) after 3 random crashes. have used valgrind without success.

has seen these errors before? appreciate in resolving issue.

-------------------------  crash 1 -  (app:3490): gtk-critical **: ia__gtk_main_quit: assertion `main_loops != null' failed  **  gdk:error:gdkregion-generic.c:1110:miunionnono: assertion failed: (y1 < y2)    crash 2 -  (app:5155): pango-critical **: pango_layout_get_context: assertion `layout != null' failed    (app:5155): pango-critical **: pango_context_get_language: assertion `context != null' failed    (app:5155): pango-critical **: pango_context_get_metrics: assertion `pango_is_context (context)' failed    (app:5155): pango-critical **: pango_font_metrics_get_approximate_char_width: assertion `metrics != null' failed    (app:5155): pango-critical **: pango_font_metrics_get_approximate_digit_width: assertion `metrics != null' failed    (app:5155): pango-critical **: pango_layout_set_width: assertion `layout != null' failed    (app:5155): pango-critical **: pango_layout_get_extents: assertion `layout != null' failed  **  gdk:error:gdkregion-generic.c:1110:miunionnono: assertion failed: (y1 < y2)    crash 3 -  (app:5883): pango-critical **: pango_layout_set_width: assertion `layout != null' failed    (app:5883): pango-critical **: pango_layout_get_extents: assertion `layout != null' failed    gdk:error:gdkregion-generic.c:1110:miunionnono: assertion failed: (y1 < y2) 


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -