[elephant-devel] Problem with LWW 5.1.2, BDB-backend

Plamen . plamen.usenet at gmail.com
Wed Dec 9 16:16:45 UTC 2009


And this are the contents of the ENV struct passed from Lisp to
db_env_open (function pointers and the max-transactions and max-locks
omitted because of the invalid argument error...) - may be someone
would spot something...

Regards

$14 = {
  env = 0x1829500,
  mtx_db_env = 0,
  db_errcall = 0,
  db_errfile = 0x0,
  db_errpfx = 0x0,
  db_msgcall = 0,
  db_msgfile = 0x0,
  app_dispatch = 0,
  db_event_func = 0x100,
  db_feedback = 0,
  db_free = 0,
  db_paniccall = 0,
  db_malloc = 0,
  db_realloc = 0,
  is_alive = 0,
  thread_id = 0x186a0,
  db_log_dir = 0x0,
  db_tmp_dir = 0x0,
  db_data_dir = 0x0,
  data_cnt = 0,
  data_next = 0,
  intermediate_dir_mode = 0x0,
  shm_key = -1,
  passwd = 0x0,
  passwd_len = 0,
  cl_handle = 0x0,
  cl_id = 0,
  app_private = 0x0,
  api1_internal = 0x0,
  api2_internal = 0x0,
  verbose = 0,
  mutex_align = 0,
  mutex_cnt = 0,
  mutex_inc = 0,
  mutex_tas_spins = 0,
  lk_conflicts = 0x0,
  lk_modes = 0,
  lk_detect = 0,
  lk_max = 1000,
  lk_max_lockers = 2000,
  lk_max_objects = 1000,
  lk_partitions = 20,
  lk_timeout = 0,
  lg_bsize = 0,
  lg_filemode = 0,
  lg_regionmax = 65000,
  lg_size = 0,
  lg_flags = 0,
  mp_gbytes = 0,
  mp_bytes = 265328,
  mp_max_gbytes = 0,
  mp_max_bytes = 265328,
  mp_mmapsize = 0,
  mp_maxopenfd = 0,
  mp_maxwrite = 0,
  mp_ncache = 1,
  mp_maxwrite_sleep = 0,
  tx_max = 100,
  tx_timestamp = 0,
  tx_timeout = 0,
  thr_max = 0,
  registry = 0x0,
  registry_off = 0,
  flags = 0,
  cdsgroup_begin = 0,
  close = 0,
}


On Wed, Dec 9, 2009 at 4:09 PM, Plamen . <plamen.usenet at gmail.com> wrote:
> Hello Ian, Elliott,
>
> now I (learned some GDB, btw, Elliott - ty a lot for the compiler
> options for GCC) debugged also the C side of the Elephant under
> LWW-32bit/BDB 4.7.25 and... everything looks ok as ordered by the
> Lisp-side of the inteface - all parameters to the db_env_open are
> passed as expected (the pathname of the home dir, the flags (1493 =
> create t & init-mpool t & thread t & init-lock t & init-log t &
> init-txn t & recover t) as well the ENV object...
>
> So - it seems - it's not an even an UFFI problem - either BDB on
> Windows expects some additional setup in the ENV which is not yet in
> the Lisp code (except the max-transactions and max-locks which I don't
> know why also give the error 22 : Invalid argument) or if not in the
> ENV struct - using may be some additional API call....
>
> So - I'm going now  to delve in the BDB doc. Hopefully I see something
> which we miss.
>
> Greets
>
>
> On Tue, Dec 8, 2009 at 10:35 PM, Ian Eslick <eslick at media.mit.edu> wrote:
>> I don't think BDB 4.7 has been tested on windows until now.  I'm surprised
>> 4.5 works with the latest head - but it's probably because you aren't
>> exercising some of the 4.7 features Leslie added.
>> On Dec 8, 2009, at 1:14 PM, Elliott Slaughter wrote:
>>
>> On Tue, Dec 8, 2009 at 12:19 PM, Ian Eslick <eslick at media.mit.edu> wrote:
>>>
>>> Elliott - these DLLs work on your system w/ Lispworks?  Is everything
>>> working for you?  I just want to make sure we have a baseline.
>>
>> I went back to my Windows XP build, which I know worked once upon a time,
>> and updated to the newest Elephant. With BDB 4.5 and 4.7 installed
>> side-by-side, I configured Elephant to use 4.5: the build worked fine. I
>> reconfigured for 4.7, and the build broke with error 22. Back to 4.5: build
>> works fine. Back again to 4.7: still broken.
>> Has Elephant ever been tested against BDB 4.7 on Windows?
>> At any rate, I can supply dlls which I know work for BDB 4.5 (attached).
>> They work with the newest version of Elephant.
>> By the way, line 65 of ele-bdb.asd is hard coded to "-ldb45". That probably
>> needs to change. (But it doesn't solve our bug; I already fixed it local and
>> it didn't help.)
>> Hope that helps?
>> --
>> Elliott Slaughter
>>
>> "Don't worry about what anybody else is going to do. The best way to predict
>> the future is to invent it." - Alan Kay
>> <elephant-1.0-windows-bdb45.7z>_______________________________________________
>> 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
>>
>




More information about the elephant-devel mailing list