gnupic: I'm crashing the GUI in gpsim 0.20.X. Any ideas?


Previous by date: 4 Oct 2001 13:21:27 -0000 Re: I'm crashing the GUI in gpsim 0.20.X. Any ideas?, Philip Restuccia
Next by date: 4 Oct 2001 13:21:27 -0000 Re: I'm crashing the GUI in gpsim 0.20.X. Any ideas?, Scott Dattalo
Previous in thread: 4 Oct 2001 13:21:27 -0000 Re: I'm crashing the GUI in gpsim 0.20.X. Any ideas?, Philip Restuccia
Next in thread: 4 Oct 2001 13:21:27 -0000 Re: I'm crashing the GUI in gpsim 0.20.X. Any ideas?, Scott Dattalo

Subject: Re: I'm crashing the GUI in gpsim 0.20.X. Any ideas?
From: ####@####.#### (Byron A Jeff)
Date: 4 Oct 2001 13:21:27 -0000
Message-Id: <200110041321.JAA16741@cleon.cc.gatech.edu>

> 
> > 
> > Any clues where I should start looking?
> 
> Try running gpsim with --sync, and see if it gives you a better backtrace.
> This will make gtk less smart and more direct.

No change. Here's the backtrace:

-------------------------------------------------------------
Program received signal SIGSEGV, Segmentation fault.
0x40085f04 in XrefObject::add (this=0x80d78a0, xref=0x80fc718)
    at /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/../../../../include/g++-3/stl_list.h:347
347         ((_Node*) (__position._M_node->_M_prev))->_M_next = __tmp;
(gdb) bt
#0  0x40085f04 in XrefObject::add (this=0x80d78a0, xref=0x80fc718)
    at /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/../../../../include/g++-3/stl_list.h:347
#1  0x40063d19 in gpsim_assign_program_xref (processor_id=1, address=490, 
    xref=0x80fc718) at interface.cc:666
#2  0x403a4340 in link_src_to_gpsim (gp=0x8079310) at gui_break.c:183
#3  0x403a4f6f in gui_new_program (pic_id=1) at gui_main.c:162
#4  0x4006219a in open_cod_file (pcpu=0x4036e63c, 
    filename=0x80a2b80 "npci877i.cod") at cod.cc:750
#5  0x40082875 in load_symbol_file (cpu=0x4036e63c, 
    filename=0x80a2b80 "npci877i.cod") at symbol.cc:392
#6  0x4035e7a7 in cmd_load::load (this=0x40377f00, bit_flag=3, 
    filename=0x80a2b80 "npci877i.cod") at cmd_load.cc:100
#7  0x40356d7c in yyparse () at parse.yy:310
#8  0x40364fac in parse_string (cmd_string=0xbffff82c "load s npci877i.cod")
    at input.cc:187
#9  0x8049057 in main (argc=4, argv=0xbffff994) at main.cc:239
#10 0x404c52eb in __libc_start_main (main=0x8048e48 <main>, argc=4, 
    ubp_av=0xbffff994, init=0x8048ab4 <_init>, fini=0x804910c <_fini>, 
    rtld_fini=0x4000c130 <_dl_fini>, stack_end=0xbffff98c)
    at ../sysdeps/generic/libc-start.c:129
-------------------------------------------------------------

Some additional notes that I should have added in my original post:

- This is gpsim 0.20.12. I got the same errors with 0.20.9 which I had beed
  working with.
- The above trace is for Slackware 8.0, gcc 2.95.3, libc-2.2.3.
- I can no longer get my original development machine: Slackware 7.1, 
  gcc 2.91.66, libc-2.1.2 to crash again. Totally weird and inconsistent.
- Both of these occured after adding my 16 bit integer code to the interpreter.
  This significantly changed the code size and list file size.
- The gpsim page needs to be update to indicate that gtk+extra requires the
  0.99.16 version. There's a header file missing in 99.9 that is required for
  gpsim 0.20.12.
- On both systems everything is fine with just the --cli option. The core
  never crashed.
-----------------------------------------------------------------
In truly typical fashion just talking about it make it start working again.
If I get another crash with my normal development box, I'll post it.

BAJ

Previous by date: 4 Oct 2001 13:21:27 -0000 Re: I'm crashing the GUI in gpsim 0.20.X. Any ideas?, Philip Restuccia
Next by date: 4 Oct 2001 13:21:27 -0000 Re: I'm crashing the GUI in gpsim 0.20.X. Any ideas?, Scott Dattalo
Previous in thread: 4 Oct 2001 13:21:27 -0000 Re: I'm crashing the GUI in gpsim 0.20.X. Any ideas?, Philip Restuccia
Next in thread: 4 Oct 2001 13:21:27 -0000 Re: I'm crashing the GUI in gpsim 0.20.X. Any ideas?, Scott Dattalo


Powered by ezmlm-browse 0.20.