[elephant-devel] Berkeley DB error: Invalid argument

Raja Ramachandran raja at 1to1card.com
Sat Mar 8 19:38:49 UTC 2008


I upgraded the system to ubuntu 7.10 and now I'm getting this error:


The function DB-BDB::DB-ENV-CREATE is undefined.
   [Condition of type UNDEFINED-FUNCTION]

Restarts:
 0: [ABORT] Return to SLIME's top level.
 1: [ABORT] Exit debugger, returning to top level.

Backtrace:
  0: ("bogus stack frame")
  1: (SB-PCL::MAKE-CACHING-DFUN #<error printing object>)
  2: (ELEPHANT:OPEN-STORE (:BDB "/home/raja/"))
  3: (SB-INT:SIMPLE-EVAL-IN-LEXENV (ELEPHANT:OPEN-STORE (QUOTE 
(:BDB "/home/raja/"))) #<NULL-LEXENV>)
 --more--

(1) above generates this:

Unhandled memory fault at #x-1BA27412.
   [Condition of type SB-SYS:MEMORY-FAULT-ERROR]

Restarts:
 0: [ABORT] Return to sldb level 1.
 1: [ABORT] Return to SLIME's top level.
 2: [ABORT] Exit debugger, returning to top level.

Backtrace:
  0: (SB-SYS:MEMORY-FAULT-ERROR)
  1: (SB-SYS:MEMORY-FAULT-ERROR)
  2: ("foreign function: call_into_lisp")
  3: ("foreign function: post_signal_tramp")
  4: (TYPE-OF #<error printing object>)
  5: ((FLET SB-IMPL::PRINT-DESCRIPTION))
  6: (SB-IMPL::%PRINT-UNREADABLE-OBJECT #<error printing object>)
  7: ((LAMBDA NIL))
 --more--


This is strange because it works on other systems with Ubuntu 7.10 installed.



The my-config.sexp file is :

;; Linux defaults
#+(and (or sbcl allegro openmcl lispworks) (not (or mswindows windows)) (not 
(or macosx darwin)))
((:compiler . :gcc)
 (:berkeley-db-version . "4.5")
 (:berkeley-db-include-dir . "/usr/include/")
 (:berkeley-db-lib-dir . "/usr/lib/")
 (:berkeley-db-lib . "/usr/lib/libdb-4.5.so")
 (:berkeley-db-deadlock . "/usr/bin/db_deadlock")
 (:berkeley-db-cachesize . 20971520)
 (:berkeley-db-map-degree2 . t)
 (:clsql-lib-paths . nil)
 (:prebuilt-libraries . nil))



Thanks
Raja




On Saturday 08 March 2008 11:44:08 Ian Eslick wrote:
> Ah, you have the 0.9.1 release version.  Can you send the contents of
> your my-config.sexp?
>
> On Mar 8, 2008, at 12:40 PM, Raja Ramachandran wrote:
> > On Saturday 08 March 2008 11:27:18 John Leuner wrote:
> >> How did you install it? Did you install libdb?
> >
> > I installed elephant via the darcs repository.
> >
> >
> > libdb - I used the libdb-4.5 packages from the ubuntu repository:
> >
> > libdb4.5 - Berkeley v4.5 Database Libraries [runtime]
> > libdb4.5-dev - Berkeley v4.5 Database Libraries [development]
> >
> >
> > Thanks
> > Raja
> >
> >> John
> >>
> >> On Sat, 2008-03-08 at 11:01 -0600, Raja Ramachandran wrote:
> >>> Hello -
> >>>
> >>> I keep getting this error when I open an existing store or just
> >>> when I
> >>> open a new store:
> >>>
> >>>
> >>> SVC> (elephant:open-store '(:BDB "/home/raja/dev/"))
> >>>
> >>> Berkeley DB error: Invalid argument
> >>>   [Condition of type BDB-DB-ERROR]
> >>>
> >>> Restarts:
> >>> 0: [ABORT] Return to SLIME's top level.
> >>> 1: [ABORT] Exit debugger, returning to top level.
> >>>
> >>> Backtrace:
> >>>  0: (DB-BDB::DB-ENV-SET-FLAGS #<unavailable argument> #<unavailable
> >>> argument>)
> >>>      Locals:
> >>>        SB-DEBUG::ARG-0 = :<NOT-AVAILABLE>
> >>>        SB-DEBUG::ARG-1 = :<NOT-AVAILABLE>
> >>>        SB-DEBUG::ARG-2 = :<NOT-AVAILABLE>
> >>>  1: ((SB-PCL::FAST-METHOD ELEPHANT::OPEN-CONTROLLER
> >>> (DB-BDB::BDB-STORE-CONTROLLER)) #<unavailable lambda list>)
> >>>      [No Locals]
> >>>  2: (OPEN-STORE (:BDB "/home/raja/dev/"))
> >>>      Locals:
> >>>        SB-DEBUG::ARG-0 = 1
> >>>        SB-DEBUG::ARG-1 = (:BDB "/home/raja/dev/")
> >>>  3: (SB-INT:SIMPLE-EVAL-IN-LEXENV (OPEN-STORE (QUOTE
> >>> (:BDB "/home/raja/dev/"))) #<NULL-LEXENV>)
> >>>
> >>>
> >>> This is a ubuntu feisty machine running SBCL 1.0.12. I pulled the
> >>> elephant package from:
> >>>
> >>> darcs get --tag=ELEPHANT-0-9-1
> >>> http://www.common-lisp.net/project/elephant/darcs/elephant
> >>>
> >>>
> >>> Please let me know if you need any more information and any help
> >>> in this
> >>> would be appreciated.
> >>>
> >>> Thanks
> >>> Raja R.
> >>> _______________________________________________
> >>> elephant-devel site list
> >>> elephant-devel at common-lisp.net
> >>> http://common-lisp.net/mailman/listinfo/elephant-devel
> >>
> >> _______________________________________________
> >> elephant-devel site list
> >> elephant-devel at common-lisp.net
> >> http://common-lisp.net/mailman/listinfo/elephant-devel
> >
> > --
> > Raja Ramachandran
> > One To One Marketing Solutions
> > 1005 Internationale Parkway, Suite 230
> > Woodridge, IL 60517
> > (630)-754-4800 x 102
> > _______________________________________________
> > elephant-devel site list
> > elephant-devel at common-lisp.net
> > http://common-lisp.net/mailman/listinfo/elephant-devel
>
> _______________________________________________
> elephant-devel site list
> elephant-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/elephant-devel



-- 
Raja Ramachandran
One To One Marketing Solutions
1005 Internationale Parkway, Suite 230
Woodridge, IL 60517
(630)-754-4800 x 102



More information about the elephant-devel mailing list