<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.3.2">
</HEAD>
<BODY>
Well, its good we know this ---- there is zero hope of getting Elephant to work until<BR>
we solve this problem.<BR>
<BR>
My hunch would be this has to do with the AMD64.<BR>
<BR>
It is entirely possible that the serializer makes some assumption that isn't true on AMD64;<BR>
the serializer gets into some byte-representation issues that could fail there.<BR>
<BR>
If you would like to debug it, I would be happy to answer your questions. I hope to use<BR>
a 64-bit processor in my own business soon, but I don't have one available now.<BR>
<BR>
Does anyone else have this working on a 64 bit processor?<BR>
<BR>
<BR>
On Fri, 2006-08-18 at 22:37 +0200, Petter Egesund wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Thanks for answering!</FONT>
<FONT COLOR="#000000">I did run one test, the not-so-good result was like below. Any clues?</FONT>
<FONT COLOR="#000000">Cheers,</FONT>
<FONT COLOR="#000000">Petter</FONT>
<FONT COLOR="#000000">------------</FONT>
<FONT COLOR="#000000"> </FONT>
<FONT COLOR="#000000">; SLIME 2006-04-20</FONT>
<FONT COLOR="#000000">CL-USER> (asdf:operate 'asdf:load-op :ele-bdb)</FONT>
<FONT COLOR="#000000">; loading system definition from /home/pe/.sbcl/systems/ele-bdb.asd into</FONT>
<FONT COLOR="#000000">; #<PACKAGE "ASDF0"></FONT>
<FONT COLOR="#000000">; loading system definition from /home/pe/.sbcl/systems/uffi.asd into</FONT>
<FONT COLOR="#000000">; #<PACKAGE "ASDF1"></FONT>
<FONT COLOR="#000000">; registering #<SYSTEM UFFI {1002EB0B41}> as UFFI</FONT>
<FONT COLOR="#000000">; registering #<SYSTEM ELE-BDB {10034A6441}> as ELE-BDB</FONT>
<FONT COLOR="#000000">; loading system definition from /home/pe/.sbcl/systems/elephant.asd into</FONT>
<FONT COLOR="#000000">; #<PACKAGE "ASDF0"></FONT>
<FONT COLOR="#000000">; registering #<SYSTEM ELEPHANT {100260E571}> as ELEPHANT</FONT>
<FONT COLOR="#000000">STYLE-WARNING: implicitly creating new generic function PERSISTENT-SLOTS</FONT>
<FONT COLOR="#000000">STYLE-WARNING:</FONT>
<FONT COLOR="#000000"> implicitly creating new generic function OLD-PERSISTENT-SLOTS</FONT>
<FONT COLOR="#000000">STYLE-WARNING:</FONT>
<FONT COLOR="#000000"> implicitly creating new generic function UPDATE-PERSISTENT-SLOTS</FONT>
<FONT COLOR="#000000">STYLE-WARNING: implicitly creating new generic function INDEXED-RECORD</FONT>
<FONT COLOR="#000000">STYLE-WARNING: implicitly creating new generic function OLD-INDEXED-RECORD</FONT>
<FONT COLOR="#000000">STYLE-WARNING:</FONT>
<FONT COLOR="#000000"> implicitly creating new generic function UPDATE-INDEXED-RECORD</FONT>
<FONT COLOR="#000000">STYLE-WARNING:</FONT>
<FONT COLOR="#000000"> implicitly creating new generic function MAKE-NEW-INDEXED-RECORD</FONT>
<FONT COLOR="#000000">STYLE-WARNING: implicitly creating new generic function REMOVED-INDEXING?</FONT>
<FONT COLOR="#000000">STYLE-WARNING:</FONT>
<FONT COLOR="#000000"> implicitly creating new generic function REGISTER-INDEXED-SLOT</FONT>
<FONT COLOR="#000000">STYLE-WARNING:</FONT>
<FONT COLOR="#000000"> implicitly creating new generic function UNREGISTER-INDEXED-SLOT</FONT>
<FONT COLOR="#000000">STYLE-WARNING:</FONT>
<FONT COLOR="#000000"> implicitly creating new generic function REGISTER-DERIVED-INDEX</FONT>
<FONT COLOR="#000000">STYLE-WARNING:</FONT>
<FONT COLOR="#000000"> implicitly creating new generic function UNREGISTER-DERIVED-INDEX</FONT>
<FONT COLOR="#000000">STYLE-WARNING: implicitly creating new generic function PREVIOUSLY-INDEXED</FONT>
<FONT COLOR="#000000">; loading system definition from /home/pe/.sbcl/systems/cl-base64.asd into</FONT>
<FONT COLOR="#000000">; #<PACKAGE "ASDF0"></FONT>
<FONT COLOR="#000000">; registering #<SYSTEM CL-BASE64 {1003993E91}> as CL-BASE64</FONT>
<FONT COLOR="#000000">; registering #<SYSTEM CL-BASE64-TESTS {1003C546C1}> as CL-BASE64-TESTS</FONT>
<FONT COLOR="#000000">; loading system definition from /home/pe/.sbcl/systems/kmrcl.asd into</FONT>
<FONT COLOR="#000000">; #<PACKAGE "ASDF0"></FONT>
<FONT COLOR="#000000">; registering #<SYSTEM KMRCL {1003345D31}> as KMRCL</FONT>
<FONT COLOR="#000000">STYLE-WARNING: implicitly creating new generic function GET-CON</FONT>
<FONT COLOR="#000000">STYLE-WARNING:</FONT>
<FONT COLOR="#000000"> implicitly creating new generic function CONTROLLER-PROPERTIES</FONT>
<FONT COLOR="#000000">STYLE-WARNING: implicitly creating new generic function SET-ELE-PROPERTY</FONT>
<FONT COLOR="#000000">STYLE-WARNING: implicitly creating new generic function GET-ELE-PROPERTY</FONT>
<FONT COLOR="#000000">STYLE-WARNING:</FONT>
<FONT COLOR="#000000"> implicitly creating new generic function ENSURE-MARKED-VERSION</FONT>
<FONT COLOR="#000000">STYLE-WARNING: implicitly creating new generic function CONTROLLER-VERSION</FONT>
<FONT COLOR="#000000">STYLE-WARNING: implicitly creating new generic function UP-TO-DATE-P</FONT>
<FONT COLOR="#000000">STYLE-WARNING: implicitly creating new generic function UPGRADABLE-P</FONT>
<FONT COLOR="#000000">STYLE-WARNING: implicitly creating new generic function UPGRADE</FONT>
<FONT COLOR="#000000">STYLE-WARNING:</FONT>
<FONT COLOR="#000000"> implicitly creating new generic function FLUSH-INSTANCE-CACHE</FONT>
<FONT COLOR="#000000">STYLE-WARNING: implicitly creating new generic function DROP-POBJECT</FONT>
<FONT COLOR="#000000">STYLE-WARNING: implicitly creating new generic function MAP-BTREE</FONT>
<FONT COLOR="#000000">STYLE-WARNING: implicitly creating new generic function EMPTY-BTREE-P</FONT>
<FONT COLOR="#000000">STYLE-WARNING: implicitly creating new generic function CLASS-INDEX-CACHED?</FONT>
<FONT COLOR="#000000">STYLE-WARNING:</FONT>
<FONT COLOR="#000000"> implicitly creating new generic function DETERMINE-SYNCH-METHOD</FONT>
<FONT COLOR="#000000">STYLE-WARNING: implicitly creating new generic function SET-DB-SYNCH</FONT>
<FONT COLOR="#000000">STYLE-WARNING: implicitly creating new generic function INDEXED-SLOT-WRITER</FONT>
<FONT COLOR="#000000">STYLE-WARNING:</FONT>
<FONT COLOR="#000000"> implicitly creating new generic function CLASS-INDEXEDP-BY-NAME</FONT>
<FONT COLOR="#000000">STYLE-WARNING:</FONT>
<FONT COLOR="#000000"> implicitly creating new generic function FIND-INVERTED-INDEX-NAMES</FONT>
<FONT COLOR="#000000">STYLE-WARNING: implicitly creating new generic function WIPE-CLASS-INDEXING</FONT>
<FONT COLOR="#000000">STYLE-WARNING: implicitly creating new generic function COPY-BTREE-CONTENTS</FONT>
<FONT COLOR="#000000">STYLE-WARNING: implicitly creating new generic function BUILD-BTREE-INDEX</FONT>
<FONT COLOR="#000000">NIL</FONT>
<FONT COLOR="#000000">CL-USER> (asdf:operate 'asdf:load-op :elephant-tests)</FONT>
<FONT COLOR="#000000">; loading system definition from /home/pe/.sbcl/systems/elephant-tests.asd</FONT>
<FONT COLOR="#000000">; into #<PACKAGE "ASDF0"></FONT>
<FONT COLOR="#000000">; registering #<SYSTEM ELEPHANT-TESTS {10038A95E1}> as ELEPHANT-TESTS</FONT>
<FONT COLOR="#000000">; registering #<SYSTEM ELEPHANT-TESTS-BDB {1003B28C91}> as</FONT>
<FONT COLOR="#000000">; ELEPHANT-TESTS-BDB</FONT>
<FONT COLOR="#000000">; loading system definition from /home/pe/.sbcl/systems/rt.asd into</FONT>
<FONT COLOR="#000000">; #<PACKAGE "ASDF0"></FONT>
<FONT COLOR="#000000">; registering #<SYSTEM :RT {1003F11531}> as RT</FONT>
<FONT COLOR="#000000">NIL</FONT>
<FONT COLOR="#000000">CL-USER> (in-package "ELEPHANT-TESTS")</FONT>
<FONT COLOR="#000000">#<PACKAGE "ELEPHANT-TESTS"></FONT>
<FONT COLOR="#000000">ELE-TESTS> (setf *default-spec* *testbdb-spec*)</FONT>
<FONT COLOR="#000000">(:BDB "/home/pe/.sbcl/site/elephant/tests/testdb/")</FONT>
<FONT COLOR="#000000">ELE-TESTS> (do-backend-tests)</FONT>
<FONT COLOR="#000000">; compiling file "/home/pe/.sbcl/site/elephant/tests/testsleepycat.lisp" (written 19 FEB 2006 05:53:02 AM):</FONT>
<FONT COLOR="#000000">; compiling (IN-PACKAGE "ELE-TESTS")</FONT>
<FONT COLOR="#000000">; compiling (DEFVAR ENV)</FONT>
<FONT COLOR="#000000">; compiling (DEFVAR DB)</FONT>
<FONT COLOR="#000000">; compiling (DEFUN PREPARE-SLEEPYCAT ...)</FONT>
<FONT COLOR="#000000">; compiling (DEFTEST PREPARES-SLEEPYCAT ...)</FONT>
<FONT COLOR="#000000">; compiling (DEFUN TEST-SEQUENCE1 ...)</FONT>
<FONT COLOR="#000000">; compiling (DEFTEST TEST-SEQ1 ...)</FONT>
<FONT COLOR="#000000">; compiling (DEFUN TEST-SEQUENCE2 ...)</FONT>
<FONT COLOR="#000000">; compiling (DEFTEST TEST-SEQ2 ...)</FONT>
<FONT COLOR="#000000">; compiling (DEFUN CLEANUP-SLEEPYCAT ...)</FONT>
<FONT COLOR="#000000">; compiling (DEFTEST CLEANSUP-SLEEPYCAT ...)</FONT>
<FONT COLOR="#000000"> </FONT>
<FONT COLOR="#000000">; /home/pe/.sbcl/site/elephant/tests/testsleepycat.fasl written</FONT>
<FONT COLOR="#000000">; compilation finished in 0:00:00</FONT>
<FONT COLOR="#000000">Doing 115 pending tests of 115 tests total.</FONT>
<FONT COLOR="#000000"> FIXNUMS FIXNUM-TYPE-1</FONT>
<FONT COLOR="#000000">Test BIGNUMS failed</FONT>
<FONT COLOR="#000000">Form: (ARE-NOT-NULL (IN-OUT-EQUAL 10000000000) (IN-OUT-EQUAL -10000000000)</FONT>
<FONT COLOR="#000000"> (LOOP FOR I FROM 0 TO 2000 ALWAYS</FONT>
<FONT COLOR="#000000"> (IN-OUT-EQUAL (EXPT 2 I)))</FONT>
<FONT COLOR="#000000"> (LOOP FOR I FROM 0 TO 2000 ALWAYS</FONT>
<FONT COLOR="#000000"> (IN-OUT-EQUAL (- (EXPT 2 I))))</FONT>
<FONT COLOR="#000000"> (LOOP FOR I FROM 0 TO 2000 ALWAYS</FONT>
<FONT COLOR="#000000"> (IN-OUT-EQUAL (- (EXPT 2 I) 1)))</FONT>
<FONT COLOR="#000000"> (LOOP FOR I FROM 0 TO 2000 ALWAYS</FONT>
<FONT COLOR="#000000"> (IN-OUT-EQUAL (- 1 (EXPT 2 I))))</FONT>
<FONT COLOR="#000000"> (LOOP FOR I FROM 0 TO 2000 ALWAYS</FONT>
<FONT COLOR="#000000"> (IN-OUT-EQUAL (EXPT 3 I)))</FONT>
<FONT COLOR="#000000"> (LOOP FOR I FROM 0 TO 2000 ALWAYS</FONT>
<FONT COLOR="#000000"> (IN-OUT-EQUAL (- (EXPT 3 I)))))</FONT>
<FONT COLOR="#000000">Expected values: T</FONT>
<FONT COLOR="#000000"> T</FONT>
<FONT COLOR="#000000"> T</FONT>
<FONT COLOR="#000000"> T</FONT>
<FONT COLOR="#000000"> T</FONT>
<FONT COLOR="#000000"> T</FONT>
<FONT COLOR="#000000"> T</FONT>
<FONT COLOR="#000000"> T</FONT>
<FONT COLOR="#000000">Actual value: #<SB-KERNEL::MEMORY-FAULT-ERROR {1002897E31}>.</FONT>
<FONT COLOR="#000000"> FLOATS</FONT>
<FONT COLOR="#000000">Test RATIONALS failed</FONT>
<FONT COLOR="#000000">Form: (ARE-NOT-NULL (IN-OUT-EQUAL 1/2) (IN-OUT-EQUAL -1/2)</FONT>
<FONT COLOR="#000000"> (IN-OUT-EQUAL (/ 1 MOST-POSITIVE-FIXNUM))</FONT>
<FONT COLOR="#000000"> (IN-OUT-EQUAL (/ 1 MOST-NEGATIVE-FIXNUM))</FONT>
<FONT COLOR="#000000"> (IN-OUT-EQUAL</FONT>
<FONT COLOR="#000000"> (/ MOST-POSITIVE-FIXNUM MOST-NEGATIVE-FIXNUM))</FONT>
<FONT COLOR="#000000"> (IN-OUT-EQUAL (/ (EXPT 2 200) (EXPT 3 300)))</FONT>
<FONT COLOR="#000000"> (IN-OUT-EQUAL (/ (EXPT 2 200) (- (EXPT 3 300)))))</FONT>
<FONT COLOR="#000000">Expected values: T</FONT>
<FONT COLOR="#000000"> T</FONT>
<FONT COLOR="#000000"> T</FONT>
<FONT COLOR="#000000"> T</FONT>
<FONT COLOR="#000000"> T</FONT>
<FONT COLOR="#000000"> T</FONT>
<FONT COLOR="#000000"> T</FONT>
<FONT COLOR="#000000">Actual value: #<DIVISION-BY-ZERO {10028F0B41}>.</FONT>
<FONT COLOR="#000000">Test BASE-STRINGS failed</FONT>
<FONT COLOR="#000000">Form: (ARE-NOT-NULL</FONT>
<FONT COLOR="#000000"> (IN-OUT-EQUAL (MAKE-STRING 0 :ELEMENT-TYPE 'BASE-CHAR))</FONT>
<FONT COLOR="#000000"> (IN-OUT-EQUAL (COERCE "this is a test" 'BASE-STRING))</FONT>
<FONT COLOR="#000000"> (IN-OUT-EQUAL</FONT>
<FONT COLOR="#000000"> (MAKE-STRING 400 :INITIAL-ELEMENT (CODE-CHAR 127) :ELEMENT-TYPE</FONT>
<FONT COLOR="#000000"> 'BASE-CHAR)))</FONT>
<FONT COLOR="#000000">Expected values: T</FONT>
<FONT COLOR="#000000"> T</FONT>
<FONT COLOR="#000000"> T</FONT>
<FONT COLOR="#000000">Actual value: #<SB-KERNEL::MEMORY-FAULT-ERROR {100291E3F1}>.</FONT>
<FONT COLOR="#000000">Heap exhausted: 8517255168 bytes available, 498216206416 requested. PROCEED WITH CAUTION!</FONT>
<FONT COLOR="#000000"> [Condition of type SB-KERNEL::HEAP-EXHAUSTED-ERROR]</FONT>
<FONT COLOR="#000000"> </FONT>
<FONT COLOR="#000000">Restarts:</FONT>
<FONT COLOR="#000000"> 0: [ABORT-REQUEST] Abort handling SLIME request.</FONT>
<FONT COLOR="#000000"> 1: [TERMINATE-THREAD] Terminate this thread (#<THREAD "repl-thread" {1003511531}>)</FONT>
<FONT COLOR="#000000"> </FONT>
<FONT COLOR="#000000">Backtrace:</FONT>
<FONT COLOR="#000000"> 0: (SB-KERNEL::HEAP-EXHAUSTED-ERROR 8517255168 498216206416)</FONT>
<FONT COLOR="#000000"> 1: ("foreign function: call_into_lisp")</FONT>
<FONT COLOR="#000000"> 2: ("foreign function: funcall2")</FONT>
<FONT COLOR="#000000"> 3: ("foreign function: gc_heap_exhausted_error_or_lose")</FONT>
<FONT COLOR="#000000"> 4: ("foreign function: gc_find_freeish_pages")</FONT>
<FONT COLOR="#000000"> 5: ("foreign function: gc_alloc_large")</FONT>
<FONT COLOR="#000000"> 6: ("foreign function: alloc_tramp")</FONT>
<FONT COLOR="#000000"> 7: ((LABELS ELEPHANT::%DESERIALIZE) #<unavailable argument>)</FONT>
<FONT COLOR="#000000"> 8: (IN-OUT-EQUAL "this is a test")</FONT>
<FONT COLOR="#000000"> 9: (SB-INT:EVAL-IN-LEXENV (IN-OUT-EQUAL "this is a test") #<NULL-LEXENV>)</FONT>
<FONT COLOR="#000000"> 10: (SB-INT:EVAL-IN-LEXENV (PROGN (IN-OUT-EQUAL "this is a test")) #<NULL-LEXENV>)</FONT>
<FONT COLOR="#000000"> 11: (SB-INT:EVAL-IN-LEXENV (NULL (PROGN (IN-OUT-EQUAL "this is a test"))) #<NULL-LEXENV>)</FONT>
<FONT COLOR="#000000"> 12: (SB-INT:EVAL-IN-LEXENV (IS-NOT-NULL (IN-OUT-EQUAL "this is a test")) #<NULL-LEXENV>)</FONT>
<FONT COLOR="#000000"> 13: (SB-INT:EVAL-IN-LEXENV (ARE-NOT-NULL (IN-OUT-EQUAL "") (IN-OUT-EQUAL "this is a test") (IN-OUT-EQUAL (MAKE-STRING 400 :INITIAL-ELEMENT #))) #<NULL-LEXENV>)</FONT>
<FONT COLOR="#000000"> 14: ((FLET REGRESSION-TEST::%DO))</FONT>
<FONT COLOR="#000000"> 15: (REGRESSION-TEST::DO-ENTRY #S(REGRESSION-TEST::ENTRY :PEND T :NAME STRINGS :PROPS NIL :FORM (ARE-NOT-NULL (IN-OUT-EQUAL "") (IN-OUT-EQUAL "this is a test") (IN-OUT-EQUAL #)) :VALS (T T T)) #<SWANK-BACKEND::SLIME-OUTPUT-STREAM {100337B2F1}>)</FONT>
<FONT COLOR="#000000"> 16: (REGRESSION-TEST::DO-ENTRIES* #<SWANK-BACKEND::SLIME-OUTPUT-STREAM {100337B2F1}>)</FONT>
<FONT COLOR="#000000"> 17: (REGRESSION-TEST::DO-ENTRIES #<SWANK-BACKEND::SLIME-OUTPUT-STREAM {100337B2F1}>)</FONT>
<FONT COLOR="#000000"> 18: (DO-BACKEND-TESTS (:BDB "/home/pe/.sbcl/site/elephant/tests/testdb/"))</FONT>
<FONT COLOR="#000000"> 19: (SB-INT:EVAL-IN-LEXENV (DO-BACKEND-TESTS) #<NULL-LEXENV>)</FONT>
<FONT COLOR="#000000"> </FONT>
<FONT COLOR="#000000">________________________________</FONT>
<FONT COLOR="#000000">Fra: <A HREF="mailto:elephant-devel-bounces@common-lisp.net">elephant-devel-bounces@common-lisp.net</A> [mailto:<A HREF="mailto:elephant-devel-bounces@common-lisp.net">elephant-devel-bounces@common-lisp.net</A>] På vegne av Robert L. Read</FONT>
<FONT COLOR="#000000">Sendt: 18. august 2006 22:04</FONT>
<FONT COLOR="#000000">Til: Elephant bugs and development</FONT>
<FONT COLOR="#000000">Emne: Re: [elephant-devel] Memory error with Elephant</FONT>
<FONT COLOR="#000000">That mystifies me. I can only conjecture that it is somehow related to your environment.</FONT>
<FONT COLOR="#000000">Even thought it may seem strange since that simplest of functionality doesn't work,</FONT>
<FONT COLOR="#000000">you might wish to execute the test. If, for example, there were an infinite loop in the </FONT>
<FONT COLOR="#000000">serializer when compiled in your environment, the larges suite of automated tests might </FONT>
<FONT COLOR="#000000">reveal that, as opposed to a problem with BDB, for example.</FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>