swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DEC Alpha libtclobjc-1.1b6 patch (was: Dec Alpha problems)


From: glen e. p. ropella
Subject: DEC Alpha libtclobjc-1.1b6 patch (was: Dec Alpha problems)
Date: Tue, 5 Aug 1997 06:36:47 -0600

Larry E. Whitman writes:
 > We have installed Swarm on a DEC/ALPHA (tried on our old HP but it would 
 > not work).

First off, is it Swarm-1.0.2?  That is the only version that will
work on an Alpha.

 > The first few tutorials seem to work, but the observer swarms crash with a 
 > core dump (segmentation fault). Also, heatbugs and mousetrap do not work 
 > (the initial panel comes up but when I select GO it crashes also). Market 
 > works initially (unless I try to change a parameter then I get the same 
 > core dump).
 > 
 > I read the previous messages and saw some of the same problems, but did not 
 > notice any solutions posted.
 > 
 > Any ideas?

Yep!  I published all the requisite changes to Swarm for the Alpha
in Swarm-1.0.2; but, I did not publish the changes to libtclobjc-1.1b6,
because the package was such a complete mess.  I intended to fix the
entire package and then output a libtclobjc-1.1b7; but, I haven't
gotten around to that, yet. [story of my life!]  The change is 
really trivial, but, causes Swarm apps to crash.  Here's the patch:

-----------------------------------------cut here------------------
diff -ru libtclobjc-1.1b6-alpha/tclObjc.m 
/net/user/swarm/support-swarm/libtclobjc-1.1b6/tclObjc.m
--- libtclobjc-1.1b6-alpha/tclObjc.m    Tue Apr 22 12:39:47 1997
+++ /net/user/swarm/support-swarm/libtclobjc-1.1b6/tclObjc.m    Sun Sep 22 
19:27:48 1996
@@ -77,7 +77,7 @@
   static char name[512];
   if (obj)
     {
-      sprintf(name, "address@hidden", obj->class_pointer->name, obj);
+      sprintf(name, "address@hidden", obj->class_pointer->name, (unsigned)obj);
       return name;
     }
   return "nil";
----------------------------------------cut here------------------------

The problem is in that "%x" format specifier, it truncates 64 bit
pointers to 32 bit integers.  Using the "%p" specifier fixes it.

Let me know if this works.  Sorry I took so long to reply!

 > Larry Whitman              817-272-5947  address@hidden
 > http://arrirs02.uta.edu/eif/index.html
 > Automation & Robotics Research Institute  (ARRI)
 > The University of Texas at Arlington
 > 7300 Jack Newell Blvd S.
 > Fort Worth, TX 76118

I attended UTA for a few semesters.  It's nice to see people from 
there getting involved in SFI's research.  There was a neural net
guy from uta here awhile back, as well... Daniel Levine.  He was hosted by
Melanie Mitchell, I believe.  I talked to him for awhile; but, he
didn't seem like he was intending to use Swarm.
glen
-- 
{glen e. p. ropella <address@hidden> |  Send lawyers, guns, and money!  }
{Hive Drone, SFI Swarm Project         |            Hail Eris!            }
{http://www.trail.com/~gepr/home.html  |               =><=               }

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]