[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
gpsim 0.21.2 crashes on MacOS 10.3
From: Easy B ####@####.#### Date: 14 Feb 2004 12:04:22 -0000 Message-Id: <8FCE0D84-5EE1-11D8-94DB-003065B74C10@freesurf.ch> Hi everybody. Today I intensively tried gpsim and It worked fine until I clicked into the symbols window to add a symbol to the watch. The app freezes for a while and exits with: Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkSheet' ** CRITICAL **: file gtksheet.c: line 4356 (gtk_sheet_select_range): assertion `sheet != NULL' failed. Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkSheet' Bus error Anybody experienced this before? Is it a problem because of the 0/NULL thing we are heavily discussing? Or am I doing something wrong? Or is it my gtk? I have no idea, but maybe you guys. I installed gpsim with the help of the fink files from Mikey Sklar. Would be cool if anyone could help me. gpsim look pretty cool to me. Thanx, Ezra. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: gpsim 0.21.2 crashes on MacOS 10.3
From: Michiel Boerman ####@####.#### Date: 14 Feb 2004 14:16:46 -0000 Message-Id: <0F13EC36-5EF4-11D8-9F54-000502D16926@id5r.nl> Just tried and I get the same error the moment I select a symbol in the symbols window. So it's not specific for your environment... Michiel On 14-feb-04, at 12:33, Easy B wrote: > Hi everybody. > Today I intensively tried gpsim and It worked fine until I clicked > into the symbols window to add a symbol to the watch. The app freezes > for a while and exits with: > > Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkSheet' > > ** CRITICAL **: file gtksheet.c: line 4356 (gtk_sheet_select_range): > assertion `sheet != NULL' failed. > > Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkSheet' > Bus error > > Anybody experienced this before? Is it a problem because of the 0/NULL > thing we are heavily discussing? Or am I doing something wrong? Or is > it my gtk? I have no idea, but maybe you guys. > > I installed gpsim with the help of the fink files from Mikey Sklar. > Would be cool if anyone could help me. gpsim look pretty cool to me. > Thanx, > Ezra. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: gpsim 0.21.2 crashes on MacOS 10.3
From: Scott Dattalo ####@####.#### Date: 14 Feb 2004 15:51:26 -0000 Message-Id: <Pine.LNX.4.44.0402140719190.16655-100000@ruckus.brouhaha.com> On Sat, 14 Feb 2004, Michiel Boerman wrote: > Just tried and I get the same error the moment I select a symbol in the > symbols window. So it's not specific for your environment... If either one of you can send me a gdb back trace, I'll look into this. Scott | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: gpsim 0.21.2 crashes on MacOS 10.3
From: Mikey Sklar ####@####.#### Date: 14 Feb 2004 16:09:01 -0000 Message-Id: <Pine.LNX.4.50.0402140730190.3113-100000@b7.d13.com> On Sat, 14 Feb 2004, Scott Dattalo wrote: > If either one of you can send me a gdb back trace, I'll look into this. > Scott I get the same behavior as Easy B, and Michiel. gdb changes things a bit, but this is what I managed to capture. (gdb) run -p 16f84 -s led_jumpsuit.cod led_jumpsuit.hex Starting program: /sw/bin/gpsim -p 16f84 -s led_jumpsuit.cod led_jumpsuit.hex gpsim - the GNUPIC simulator version: 0.21.2 type help for help gpsim> Processor List (empty) Hex file "led_jumpsuit.hex" No cpu has been selected No cpu has been selected Loading led_jumpsuit.cod processing cod file led_jumpsuit.cod Found pic16f84 f84 construct TMRO::start Cycle break point was ignored because cycle 0 has already gone by current cycle is 0 ** SETTING CONFIG address = 0x2007 value = 0x3ffa symbol at address 23 name deco symbol at address 21 name loadn symbol at address 18 name patchn symbol at address 1f name pause symbol at address 12 name rainbow symbol at address f name scanbut --- Reset gpsim> Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkSheet' ** CRITICAL **: file gtksheet.c: line 4356 (gtk_sheet_select_range): assertion `sheet != NULL' failed. Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkSheet' Program received signal EXC_BAD_ACCESS, Could not access memory. 0x000a7f64 in Register_Window::SelectRegister(int) (this=0x2825400, regnumber=1) at gui_regwin.cc:1442 1442 gui_regwin.cc: No such file or directory. in gui_regwin.cc (gdb) bt #0 0x000a7f64 in Register_Window::SelectRegister(int) (this=0x2825400, regnumber=1) at gui_regwin.cc:1442 #1 0x000650cc in symbol_list_row_selected(_GtkCList*, int, int, _GdkEvent*, Symbol_Window*) (symlist=0x0, row=2, column=1, event=0x80808080, sw=0x211ad60) at gui_symbols.cc:314 #2 0x01ce0954 in gtk_handlers_run (handlers=0x2819ae0, signal=0xbfffea70, object=0x2140b80, params=0xbfffeb10, after=0) at gtksignal.c:1917 #3 0x01cdfa54 in gtk_signal_real_emit (object=0x2819ae0, signal_id=78, params=0x2140b80) at gtksignal.c:1477 #4 0x01cdd13c in gtk_signal_emit (object=0x2819ae0, signal_id=3221219952) at gtksignal.c:552 #5 0x01c49a80 in gtk_clist_button_release (widget=0x4e, event=0xbfffea70) at gtkclist.c:5237 #6 0x01ca5310 in gtk_marshal_BOOL__POINTER (object=0x0, func=0, func_data=0x1, args=0x80808080) at gtkmarshal.c:28 #7 0x01cdfa98 in gtk_signal_real_emit (object=0x2819ae0, signal_id=78, params=0x2140b80) at gtksignal.c:1492 #8 0x01cdd13c in gtk_signal_emit (object=0x2819ae0, signal_id=3221219952) at gtksignal.c:552 #9 0x01d1f178 in gtk_widget_event (widget=0x4e, event=0x2819ae0) at gtkwidget.c:2864 #10 0x01ca5260 in gtk_propagate_event (widget=0x2819ae0, event=0x4e) at gtkmain.c:1378 #11 0x01ca40c8 in gtk_main_do_event (event=0xbfffea70) at gtkmain.c:818 #12 0x00f70290 in gdk_event_dispatch (source_data=0x0, current_time=0x0, user_data=0x1) at gdkevents.c:2139 #13 0x00e71f08 in g_main_dispatch (dispatch_time=0xbffff530) at gmain.c:656 #14 0x00e725f4 in g_main_iterate (block=0, dispatch=-1073747184) at gmain.c:877 #15 0x00e7280c in g_main_run (loop=0x4e) at gmain.c:935 #16 0x01ca3890 in gtk_main () at gtkmain.c:524 #17 0x00003164 in main (argc=-1073747344, argv=0x2140b80) at main.cc:275 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: gpsim 0.21.2 crashes on MacOS 10.3
From: Scott Dattalo ####@####.#### Date: 14 Feb 2004 16:56:22 -0000 Message-Id: <Pine.LNX.4.44.0402140759510.16655-100000@ruckus.brouhaha.com> On Sat, 14 Feb 2004, Mikey Sklar wrote: > On Sat, 14 Feb 2004, Scott Dattalo wrote: > > If either one of you can send me a gdb back trace, I'll look into this. > > Scott > > I get the same behavior as Easy B, and Michiel. gdb changes things a bit, > but this is what I managed to capture. > > (gdb) run -p 16f84 -s led_jumpsuit.cod led_jumpsuit.hex > Starting program: /sw/bin/gpsim -p 16f84 -s led_jumpsuit.cod > led_jumpsuit.hex oops gpsim should only be invoked with a .cod file or a .hex file - not both! gpsim -s led_jumpsui.cod <snip> > > Program received signal EXC_BAD_ACCESS, Could not access memory. > 0x000a7f64 in Register_Window::SelectRegister(int) (this=0x2825400, > regnumber=1) at gui_regwin.cc:1442 > 1442 gui_regwin.cc: No such file or directory. > in gui_regwin.cc > (gdb) bt > #0 0x000a7f64 in Register_Window::SelectRegister(int) (this=0x2825400, regnumber=1) at gui_regwin.cc:1442 Mikey I see two problems in the back trace. Maybe we should take this offline, but could you try applying these two patches: --- gui/gui_regwin.cc 13 Feb 2004 01:23:13 -0000 1.24 +++ gui/gui_regwin.cc 14 Feb 2004 16:18:01 -0000 @@ -1451,9 +1451,10 @@ return; } - if(registers[regnumber] == 0) - return; - + if(!gp || !gp->cpu ||!registers || !registers[regnumber]) { + printf("SelectRegister is not ready yet\n"); + return; + } row=registers[regnumber]->row; col=registers[regnumber]->col; range.row0=range.rowi=row; --- gui/gui_symbols.cc 13 Feb 2004 01:23:13 -0000 1.16 +++ gui/gui_symbols.cc 14 Feb 2004 16:18:27 -0000 @@ -314,11 +314,14 @@ static gint symbol_list_row_selected(GtkCList *symlist,gint row, gint column,GdkEvent *event, Symbol_Window *sw) { - sym *e=(sym*)gtk_clist_get_row_data(symlist,row); - sw->current_row=row; - do_symbol_select(sw,e); - update_menus(sw); + if(!symlist || !sw) return 0; + + sym *e=(sym*)gtk_clist_get_row_data(symlist,row); + sw->current_row=row; + do_symbol_select(sw,e); + update_menus(sw); + return 0; } Thanks Scott | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: gpsim 0.21.2 crashes on MacOS 10.3
From: Easy B ####@####.#### Date: 14 Feb 2004 17:50:04 -0000 Message-Id: <DB7F919E-5F11-11D8-84B8-003065B74C10@freesurf.ch> Good to see the reaction. I'll be ready for testing. Thanx, Ezra. Am 14.02.2004 um 17:25 schrieb Scott Dattalo: > On Sat, 14 Feb 2004, Mikey Sklar wrote: > >> On Sat, 14 Feb 2004, Scott Dattalo wrote: >>> If either one of you can send me a gdb back trace, I'll look into >>> this. >>> Scott >> >> I get the same behavior as Easy B, and Michiel. gdb changes things a >> bit, >> but this is what I managed to capture. >> >> (gdb) run -p 16f84 -s led_jumpsuit.cod led_jumpsuit.hex >> Starting program: /sw/bin/gpsim -p 16f84 -s led_jumpsuit.cod >> led_jumpsuit.hex > > oops > > gpsim should only be invoked with a .cod file or a .hex file - not > both! > > gpsim -s led_jumpsui.cod > > > <snip> > >> >> Program received signal EXC_BAD_ACCESS, Could not access memory. >> 0x000a7f64 in Register_Window::SelectRegister(int) (this=0x2825400, >> regnumber=1) at gui_regwin.cc:1442 >> 1442 gui_regwin.cc: No such file or directory. >> in gui_regwin.cc >> (gdb) bt >> #0 0x000a7f64 in Register_Window::SelectRegister(int) >> (this=0x2825400, regnumber=1) at gui_regwin.cc:1442 > > Mikey I see two problems in the back trace. > > Maybe we should take this offline, but could you try applying these two > patches: > > > --- gui/gui_regwin.cc 13 Feb 2004 01:23:13 -0000 1.24 > +++ gui/gui_regwin.cc 14 Feb 2004 16:18:01 -0000 > @@ -1451,9 +1451,10 @@ > return; > } > > - if(registers[regnumber] == 0) > - return; > - > + if(!gp || !gp->cpu ||!registers || !registers[regnumber]) { > + printf("SelectRegister is not ready yet\n"); > + return; > + } > row=registers[regnumber]->row; > col=registers[regnumber]->col; > range.row0=range.rowi=row; > > > --- gui/gui_symbols.cc 13 Feb 2004 01:23:13 -0000 1.16 > +++ gui/gui_symbols.cc 14 Feb 2004 16:18:27 -0000 > @@ -314,11 +314,14 @@ > > static gint symbol_list_row_selected(GtkCList *symlist,gint row, gint > column,GdkEvent *event, Symbol_Window *sw) > { > - sym *e=(sym*)gtk_clist_get_row_data(symlist,row); > - sw->current_row=row; > - do_symbol_select(sw,e); > - update_menus(sw); > + if(!symlist || !sw) > return 0; > + > + sym *e=(sym*)gtk_clist_get_row_data(symlist,row); > + sw->current_row=row; > + do_symbol_select(sw,e); > + update_menus(sw); > + return 0; > } > > > Thanks > Scott > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ####@####.#### > For additional commands, e-mail: ####@####.#### > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |