gEDA-dev: Gschem crash in compselect
Peter Clifton
pcjc2 at cam.ac.uk
Sat Aug 11 17:07:45 EDT 2007
This is difficult to reproduce, probably because its a race with a
timer. Normal running with valgrind / electric-fence don't show too much
complaining, however I did manage to get this after a LOT of poking
about.
PS... If anyone wants to run electric-fence with modern GLIB, I have
some code changes which make it work now ;) What a wild goose-chase!
Current glibc internationalises any error messages electric-fence wants
to print. This doesn't go down well if the error message was regarding a
failed malloc (as dcgettext calls malloc its self). The workaround was
set_locale (LC_ALL, "C") in gschem after all the other locale setup
stuff.
Steps to reproduce:
open component selector,
type something which doesn't exist in the filter box, delete back to the
start, then repeat. After you're feeling "lucky", close gschem with
ALT-F4 (window manager close), and see if it crashes.
I'm not entirely sure if this is the same crash PeterB saw, as obviously
he wasn't closing gschem at the time.
Starting program: /home/pcjc2/geda/bin/gschem
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread -1209780560 (LWP 16605)]
gEDA/gschem version 1.1.1.20070708
gEDA/gschem comes with ABSOLUTELY NO WARRANTY; see COPYING for more details.
This is free software, and you are welcome to redistribute it under certain
conditions; please see the COPYING file for more details.
Loading schematic [/home/pcjc2/untitled_1.sch]
(gschem:16605): Gtk-CRITICAL **: gtk_tree_model_row_has_child_toggled: assertion `path != NULL' failed
(gschem:16605): Gtk-CRITICAL **: gtk_tree_model_row_has_child_toggled: assertion `path != NULL' failed
(gschem:16605): GLib-GObject-WARNING **: invalid unclassed pointer in cast to `Compselect'
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1209780560 (LWP 16605)]
0x4b70ca13 in IA__gtk_tree_view_get_model (tree_view=0xaaaaaaaa) at /build/buildd/gtk+2.0-2.11.6/gtk/gtktreeview.c:10540
10540 /build/buildd/gtk+2.0-2.11.6/gtk/gtktreeview.c: No such file or directory.
in /build/buildd/gtk+2.0-2.11.6/gtk/gtktreeview.c
(gdb) bt
#0 0x4b70ca13 in IA__gtk_tree_view_get_model (tree_view=0xaaaaaaaa) at /build/buildd/gtk+2.0-2.11.6/gtk/gtktreeview.c:10540
#1 0x08092d72 in compselect_filter_timeout (data=0x836f840) at x_compselect.c:475
#2 0xb7e7df06 in g_timeout_dispatch (source=0x83c0e80, callback=0, user_data=0x836f840)
at /home/pcjc2/source/glib2.0-2.13.7/glib/gmain.c:3488
#3 0xb7e7d74c in IA__g_main_context_dispatch (context=0x812d010) at /home/pcjc2/source/glib2.0-2.13.7/glib/gmain.c:2061
#4 0xb7e80b8f in g_main_context_iterate (context=0x812d010, block=1, dispatch=1, self=0x810a860)
at /home/pcjc2/source/glib2.0-2.13.7/glib/gmain.c:2694
#5 0xb7e80f39 in IA__g_main_loop_run (loop=0x832b418) at /home/pcjc2/source/glib2.0-2.13.7/glib/gmain.c:2898
#6 0x4b5f12d4 in IA__gtk_main () at /build/buildd/gtk+2.0-2.11.6/gtk/gtkmain.c:1144
#7 0x0805daf3 in main_prog (closure=0x0, argc=1, argv=0xbf9eb914) at gschem.c:349
#8 0x4b3dd7d4 in scm_boot_guile (argc=1, argv=0xbf9eb914, main_func=0x805d730 <main_prog>, closure=0x0) at init.c:635
#9 0x0805d646 in main (argc=1, argv=0xbf9eb914) at gschem.c:374
--
Peter Clifton
Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA
Tel: +44 (0)7729 980173 - (No signal in the lab!)
More information about the geda-dev
mailing list