Re: [Gems-users] failed Simics session upon Ruby init


Date: Wed, 13 Sep 2006 19:15:05 -0500
From: Dan Gibson <degibson@xxxxxxxx>
Subject: Re: [Gems-users] failed Simics session upon Ruby init
Adam,

Thats interesting that the crash depends on Opal. It sounds rather reminiscent of the GLIBC error I mentioned earlier this week on this mailing list.

As far as using gdb, it usually is just as simple as attaching gdb to running Simics process....Ruby and Opal essentially become part of Simics' code, and although you won't get debugging symbols for Simics, you can compile Ruby/Opal with -ggdb -g3 and at least you should be able to find the location of the seg fault.

Please let me know what, if anything, you are able to learn/find. I'd like to be of greater assistance to the Simics 3.X users, but since we use Simics 2.X internally, I can't really test all possible host configurations.

Regards,
Dan

Adam Kaplan wrote:
Hi Dan,

Thanks so much for your time.  I verified both of the things you mentioned
(that I had setup the Gems/Simics-3 as per the instructions on the wiki,
and that my checkpoint was single-processor).  I also tried a couple of
other things, and noticed the following:
a) independent of cache-coherence protocol (I tried both the default
   MOSI_SMP_bcast and also MOESI_CMP_directory), I *can* get Ruby to
   load, initialize, and dump proper statistics as long as I do not load
   Opal at any point
b) if I load Opal, Ruby dies on init

Do you know any good method I could use to attach a debugger to the
proceedings and try and give more precise info? Is it as simple as
building Opal/Ruby with debug info and gdb'ing Simics?

Thanks again,
		Adam

  
Before I fly off the hinge and assume the worst (like I did with the
last gems-users segfault), can you verify the following for me?
    

  
1) your checkpoint has only one processor (I've done it before)
    

  
2) you modified the files in the Gems 1.3 release appropriately for
Simics 3.0. These should include:
    

  
$GEMS/common/Makefile.simics_version -- set the version string to 3.0
    

  
$GEMS/common/Makefile.common -- set the CC for your chosen compiler,
update the path for SIMICS_INCLUDE_ROOT to point to your Simics 3.0
installation's include/ directory. $GEMS/ruby/module/Makefile -- set the
runtime library path (not necessary if using native compiler), and use
the Simics-3.0-appropriate definition of GEMS_ROOT.
$GEMS/opal/module/Makefile
-- Use the Simics-3.0-appropriate definition of GEMS_ROOT.
    

  
Regards,
Dan
    
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.


  
[← Prev in Thread] Current Thread [Next in Thread→]