[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-bug: Bus error in gschem
Hi John,
did you changed the colornames in gschem-lightgb, gschem-darkbg, or
whatever scheme you are using?
I think that error could only happen when the colorname length is
greater than 30 characters... a long colorname!.
Anyway, I changed in CVS the x_color_get_name function so it doesn't use
fixed length strings anymore, so the bug should have gone. Please test
it.
Cheers,
Carlos
El vie, 02-12-2005 a las 21:06 -0500, John Doty escribiÃ:
> The "ex" command provokes a bus error in gschem 20050820 under MacOS
> 10.4.3:
>
> jpd% gdb gschem
> GNU gdb 6.1-20040303 (Apple version gdb-384) (Mon Mar 21 00:05:26 GMT
> 2005)
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you
> are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for
> details.
> This GDB was configured as "powerpc-apple-darwin"...Reading symbols for
> shared libraries .................................. done
>
> (gdb) run
> Starting program: /sw/bin/gschem
> Reading symbols for shared libraries
> .+++++++...............................................++++.+++++++ done
> gEDA/gschem version 20050820
> 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.
>
> Reading symbols for shared libraries . done
> Reading symbols for shared libraries . done
>
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> Reason: KERN_PROTECTION_FAILURE at address: 0x00000015
> 0x90002e44 in strcpy ()
> (gdb) bt
> #0 0x90002e44 in strcpy ()
> #1 0x00050ea4 in x_color_get_name (index=25, string=0xbfffe984 "") at
> ../noweb/x_color.nw:237
> #2 0x0003f330 in create_color_menu (w_current=0x175c000,
> select_index=0xbfffea2c) at ../noweb/x_dialog.nw:3539
> #3 0x00037d28 in text_edit_dialog (w_current=0x175c000, string=0x167be60
> "foo", text_size=10, text_alignment=0) at ../noweb/x_dialog.nw:983
> #4 0x0002faa0 in o_text_edit (w_current=0x175c000,
> o_current=0x1681050) at ../noweb/o_text.nw:711
> #5 0x0000ef2c in i_callback_edit_text (data=0x175c000, callback_action=0,
> widget=0x0) at ../noweb/i_callbacks.nw:1163
> #6 0x000093f4 in g_keys_edit_text () at ../noweb/g_keys.nw:208
> #7 0x0053bc44 in scm_ceval (x=0x1732be0, env=0x200b718) at eval.c:2732
> #8 0x00539c14 in scm_ceval (x=0x1732bb8, env=0x200b718) at eval.c:2017
> #9 0x00577158 in inner_eval_string (data=0x200b820) at strports.c:484
> #10 0x0053ece8 in scm_c_with_fluids (fluids=0x200b818, values=0x200b810,
> cproc=0x577138 <inner_eval_string>, cdata=0x200b820) at fluids.c:243
> #11 0x00008b10 in g_keys_execute (state=0, keyval=120) at
> ../noweb/g_keys.nw:136
> #12 0x00046d28 in x_event_key_press (widget=0x162ce10, event=0x1849e18,
> w_current=0x175c000) at ../noweb/x_event.nw:1462
> #13 0x01281100 in _gtk_marshal_BOOLEAN__BOXED ()
> #14 0x010617c8 in g_closure_invoke ()
> #15 0x01077ed0 in signal_emit_unlocked_R ()
> #16 0x01079550 in g_signal_emit_valist ()
> #17 0x01079994 in g_signal_emit ()
> #18 0x013cd7e0 in gtk_widget_event_internal ()
> #19 0x0127e4e8 in gtk_propagate_event ()
> #20 0x0127f508 in gtk_main_do_event ()
> #21 0x0074ff90 in gdk_event_dispatch ()
> #22 0x010cebf8 in g_main_dispatch ()
> #23 0x010d1b48 in g_main_context_iterate ()
> #24 0x010d1fb8 in g_main_loop_run ()
> #25 0x0127e8a4 in gtk_main ()
> #26 0x0000c614 in main_prog (closure=0x0, argc=1, argv=0xbffff7e4) at
> ../noweb/gschem.nw:377
> #27 0x0054f5f4 in scm_boot_guile (argc=-1073747580, argv=0x15,
> main_func=0x11c, closure=0xfefefeff) at init.c:636
> #28 0x0000c6dc in main (argc=1, argv=0xbffff7e4) at ../noweb/gschem.nw:422
>
> John Doty "You can't confuse me, that's my job."
> MIT-related mail: jpd@xxxxxxxxxxxxx
> Other mail: jpd@xxxxxxxxxxxxx
>
>
> _______________________________________________
> geda-bug mailing list
> geda-bug@xxxxxxxxxxxxxx
> http://www.seul.org/cgi-bin/mailman/listinfo/geda-bug
--
Carlos Nieves Ãnega <cnieves@xxxxxxxxxx>
_______________________________________________
geda-bug mailing list
geda-bug@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-bug