Hi Stuart,
El dom, 20-02-2005 a las 08:10 -0500, Stuart Brorson escribi�:
> Hi Carlos --
>
> > Regarding gattrib, I couldn't test it. Stuart, I don't know what is the
> > problem, but gattrib has always segfaults or seems to enter into a
> > infinite loop when loading a schematic, even before I made any changes
> > to it.=20
> > One example is trying to load flipflop_1.sch in the gschem/examples
> > directory after adding a description to one arbitrary symbol (gattrib
> > refuses to load if an attribute is not added).
>
> 1. Is this before or after your changes? flipflop_1.sch works for
> be, but I haven't updated locally from CVS yet.
This happened before I made any changes, and it's happened with the CVS
version.
> 2. Please try this: In config.h, please insert the line
>
> #define DEBUG 1
>
> recompile, and then run gattrib again. This will turn on the debug
> spew. Then please send me the debug spew & I can take a look at it to
> see where gattrib is dying.
When I tried to load gschem/flipflop_1.sch, I got this message (just the
last lines):
--------------------- log message begin
Entered x_window_add_items . . . . . ..
No configurable component attributes found in entire design!
Please attach at least some attributes before running gattrib.
Exiting. . . .
--------------------- log message end
so I loaded it into gschem, doubleclicked on U16 (for example) and added
a "description=description" attribute. Then I saved it.
Now I tried to load the saved schematic into gattrib, and (notice the
GTK warnings) I got this message (just the last lines):
--------------------- log message begin
In x_gtksheet_init, placing labels on sheet no 2.
In x_gtksheet_init, working on sheet 2. About to add sheet to
scrolled_window.
In x_gtksheet_init, working on sheet 2. About to get new label and call
gtk_notebook_append_page.
In x_window_add_items, now load up the row and column labels.
In x_window_add_items, now put comp attrib values in the comp sheet.
In x_window_add_items, now put net attrib values in the net sheet.
In x_window_add_items, now put pin attrib values in the pin sheet.
(gattrib:2077): Gtk-WARNING **: gtkwidget.c:7100: widget class
`GtkSheet' has no property named `default_border'
(gattrib:2077): Gtk-WARNING **: gtkwidget.c:7100: widget class
`GtkSheet' has no property named `default_outside_border'
--------------------- log message end
It didn't display any window, neither exit. So I interrupted it
(Control-C) and typed gdb 'where' command:
Program received signal SIGINT, Interrupt.
[Switching to Thread -1217578944 (LWP 2077)]
0xb793994f in mallopt () from /lib/tls/libc.so.6
(gdb) where
#0 0xb793994f in mallopt () from /lib/tls/libc.so.6
#1 0xb79388c3 in malloc () from /lib/tls/libc.so.6
#2 0xb792f983 in vasprintf () from /lib/tls/libc.so.6
#3 0xb7b70a87 in g_vasprintf () from /usr/lib/libglib-2.0.so.0
#4 0xb7b61976 in g_strdup_vprintf () from /usr/lib/libglib-2.0.so.0
#5 0xb7b53ce4 in g_logv () from /usr/lib/libglib-2.0.so.0
#6 0xb7b53e96 in g_log () from /usr/lib/libglib-2.0.so.0
#7 0xb7b53efc in g_return_if_fail_warning ()
from /usr/lib/libglib-2.0.so.0
#8 0xb7e6a2b5 in _gtk_style_peek_property_value ()
from /usr/lib/libgtk-x11-2.0.so.0
#9 0xb7f0beaa in gtk_widget_style_get_valist ()
from /usr/lib/libgtk-x11-2.0.so.0
#10 0xb7f0c0d3 in gtk_widget_style_get ()
from /usr/lib/libgtk-x11-2.0.so.0
#11 0xb7537053 in g_module_check_init ()
from /usr/lib/gtk-2.0/2.4.0/engines/libsmooth.so
#12 0xb7537441 in g_module_check_init ()
from /usr/lib/gtk-2.0/2.4.0/engines/libsmooth.so
#13 0xb7e74842 in gtk_paint_box () from /usr/lib/libgtk-x11-2.0.so.0
#14 0x08064755 in gtk_sheet_button_draw (sheet=0x82ba810,
row=137078800,
column=0) at gtksheet_2_2.c:6528
#15 0x08064482 in row_button_set (sheet=0x82ba810, row=-1214281144)
at gtksheet_2_2.c:6433
#16 0x0805c860 in gtk_sheet_draw_active_cell (sheet=0x82ba810)
at gtksheet_2_2.c:4186
#17 0x0805c697 in gtk_sheet_show_active_cell (sheet=0x82ba810)
at gtksheet_2_2.c:4162
#18 0x0805a05c in gtk_sheet_range_draw (sheet=0x82ba810, range=0x0)
at gtksheet_2_2.c:3374
#19 0x08058c48 in gtk_sheet_map (widget=0x8120e48) at
gtksheet_2_2.c:2881
#20 0xb7bc81f6 in g_cclosure_marshal_VOID__VOID ()
from /usr/lib/libgobject-2.0.so.0
#21 0xb7bb6919 in g_cclosure_new_swap ()
from /usr/lib/libgobject-2.0.so.0
#22 0xb7bb6686 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#23 0xb7bc75a1 in g_signal_emit_by_name ()
from /usr/lib/libgobject-2.0.so.0
#24 0xb7bc6dec in g_signal_emit_valist ()
from /usr/lib/libgobject-2.0.so.0
#25 0xb7bc7076 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#26 0xb7f049d5 in gtk_widget_map () from /usr/lib/libgtk-x11-2.0.so.0
#27 0xb7d8db1c in gtk_container_get_focus_hadjustment ()
from /usr/lib/libgtk-x11-2.0.so.0
#28 0xb7d4c4dc in gtk_bin_get_type () from /usr/lib/libgtk-x11-2.0.so.0
#29 0xb7e56b4c in gtk_scrolled_window_get_shadow_type ()
from /usr/lib/libgtk-x11-2.0.so.0
#30 0xb7d8befd in gtk_container_forall ()
from /usr/lib/libgtk-x11-2.0.so.0
#31 0xb7d8db59 in gtk_container_get_focus_hadjustment ()
from /usr/lib/libgtk-x11-2.0.so.0
#32 0xb7bc81f6 in g_cclosure_marshal_VOID__VOID ()
from /usr/lib/libgobject-2.0.so.0
#33 0xb7bb6919 in g_cclosure_new_swap ()
from /usr/lib/libgobject-2.0.so.0
#34 0xb7bb6686 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#35 0xb7bc75a1 in g_signal_emit_by_name ()
from /usr/lib/libgobject-2.0.so.0
#36 0xb7bc6dec in g_signal_emit_valist ()
from /usr/lib/libgobject-2.0.so.0
#37 0xb7bc7076 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#38 0xb7f049d5 in gtk_widget_map () from /usr/lib/libgtk-x11-2.0.so.0
#39 0xb7e2cbe2 in gtk_notebook_new () from /usr/lib/libgtk-x11-2.0.so.0
#40 0xb7bc81f6 in g_cclosure_marshal_VOID__VOID ()
from /usr/lib/libgobject-2.0.so.0
#41 0xb7bb6919 in g_cclosure_new_swap ()
from /usr/lib/libgobject-2.0.so.0
#42 0xb7bb6686 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#43 0xb7bc75a1 in g_signal_emit_by_name ()
from /usr/lib/libgobject-2.0.so.0
#44 0xb7bc6dec in g_signal_emit_valist ()
from /usr/lib/libgobject-2.0.so.0
#45 0xb7bc7076 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#46 0xb7f049d5 in gtk_widget_map () from /usr/lib/libgtk-x11-2.0.so.0
#47 0xb7d8db1c in gtk_container_get_focus_hadjustment ()
from /usr/lib/libgtk-x11-2.0.so.0
#48 0xb7d50055 in gtk_box_set_child_packing ()
from /usr/lib/libgtk-x11-2.0.so.0
#49 0xb7d8befd in gtk_container_forall ()
from /usr/lib/libgtk-x11-2.0.so.0
#50 0xb7d8db59 in gtk_container_get_focus_hadjustment ()
from /usr/lib/libgtk-x11-2.0.so.0
#51 0xb7bc81f6 in g_cclosure_marshal_VOID__VOID ()
from /usr/lib/libgobject-2.0.so.0
#52 0xb7bb6919 in g_cclosure_new_swap ()
from /usr/lib/libgobject-2.0.so.0
#53 0xb7bb6686 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#54 0xb7bc75a1 in g_signal_emit_by_name ()
from /usr/lib/libgobject-2.0.so.0
#55 0xb7bc6dec in g_signal_emit_valist ()
from /usr/lib/libgobject-2.0.so.0
#56 0xb7bc7076 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#57 0xb7f049d5 in gtk_widget_map () from /usr/lib/libgtk-x11-2.0.so.0
#58 0xb7f12b25 in gtk_window_reshow_with_initial_size ()
from /usr/lib/libgtk-x11-2.0.so.0
#59 0xb7bc81f6 in g_cclosure_marshal_VOID__VOID ()
from /usr/lib/libgobject-2.0.so.0
#60 0xb7bb6919 in g_cclosure_new_swap ()
from /usr/lib/libgobject-2.0.so.0
#61 0xb7bb6686 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#62 0xb7bc75a1 in g_signal_emit_by_name ()
from /usr/lib/libgobject-2.0.so.0
#63 0xb7bc6dec in g_signal_emit_valist ()
from /usr/lib/libgobject-2.0.so.0
#64 0xb7bc7076 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#65 0xb7f049d5 in gtk_widget_map () from /usr/lib/libgtk-x11-2.0.so.0
#66 0xb7f1284e in gtk_window_reshow_with_initial_size ()
from /usr/lib/libgtk-x11-2.0.so.0
#67 0xb7bc81f6 in g_cclosure_marshal_VOID__VOID ()
from /usr/lib/libgobject-2.0.so.0
#68 0xb7bb6919 in g_cclosure_new_swap ()
from /usr/lib/libgobject-2.0.so.0
#69 0xb7bb6686 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#70 0xb7bc75a1 in g_signal_emit_by_name ()
from /usr/lib/libgobject-2.0.so.0
#71 0xb7bc6dec in g_signal_emit_valist ()
from /usr/lib/libgobject-2.0.so.0
#72 0xb7bc7076 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#73 0xb7f044d6 in gtk_widget_show () from /usr/lib/libgtk-x11-2.0.so.0
#74 0x080709c1 in x_window_add_items () at x_window.c:355
#75 0x0807982c in gattrib_main (closure=0x0, argc=2, argv=0xbffffab4)
at gattrib.c:309
#76 0xb7a8599f in scm_init_guile () from /usr/lib/libguile.so.12
#77 0xb7a8595c in scm_init_guile () from /usr/lib/libguile.so.12
#78 0xb7a85630 in scm_boot_guile () from /usr/lib/libguile.so.12
#79 0x08079b4a in main (argc=-1214282208, argv=0xb79f8620) at
gattrib.c:378
Hope this helps. If you need more details, just drop an email.
Regards,
Carlos
--
Carlos Nieves �nega <[EMAIL PROTECTED]>