[developers] erg sbcl solaris

Ben Waldron bmw20 at cl.cam.ac.uk
Thu Sep 14 11:38:39 CEST 2006


*lexdb-params* is used to enable the PostgreSQL database extension to 
the lexicon (used for large lexica). The lexical database has not yet 
been ported to SBCL, but you don't need this extension enabled in order 
to use the ERG. This global variable *lexdb-params* is user 
configurable, and is stored in erg/lkb/user-prefs.lsp between sessions. 
This file is not supposed to form part of the ERG distribution: it's not 
in the ERG _CVS, _but_ I just checked and it is in the ERG distribution 
published on the FTP site (Dan, can we fix this?).

The standard way to (re)set this parameter involves opening a window in 
the GUI. As you don't have the GUI, you will have to edit this file 
manually:

(defparameter *LEXDB-PARAMS* NIL)

Or you can retrieve the ERG from CVS:

cvs -d :pserver:public at lingo.stanford.edu:/lingo/CVS co erg

Your process seems to die at the same point as mine did in terms of 
memory usage (489777616 bytes allocated). You could try recompiling SBCL 
with a higher memory limit. As I said, I've not tried this yet (and I 
know very little about SBCL memory issues).

- Ben

Harold Garland wrote:
> Hi Ben,
>
> I noticed that sunos has a relatively large default range re 
> DYNAMIC-SPACE-END
> in params.lsp and thought I'd try to load erg on my solaris box.
> I got erg via cvs and tried read-script-file-aux.
> Mine failed earlier than yours,
>
> =====
> ...
> Type file checked successfully
> Computing display ordering
> Cached leaf types missing or out-of-date: reading leaf type source files
> Reading in leaf type file letypes.tdl
> debugger invoked on a SIMPLE-ERROR in thread #<THREAD "initial thread" 
> {4968A5A9}>:
>   Please set *lexdb-params* to NIL
>
> Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.
>
> restarts (invokable by number or by possibly-abbreviated name):
>   0: [ABORT] Exit debugger, returning to top level.
>
> (LOAD-LEXDB-FROM-SCRIPT)
> 0]
> =====
>
> Regarding the line, "Please set *lexdb-params* to NIL" ,
> would that influence a subsequent attempt with read-script-file-aux?
>
> Would I use (setf *lexdb-params* NIL)
> or (defparameter *lexdb-params* NIL)?
>
> Harold
>
> On Sep 7, 2006, at 7:26 AM, Ben Waldron wrote:
>
>>
>> ===
>>
>> * (read-script-file-aux "/home/bmw20/erg/lkb/script")
>>
>> ; in: LAMBDA NIL
>> ;     (SETF LKB::*TRANSLATE-GRID* '(:EN :EN))
>> ; ==>
>> ;   (SETQ LKB::*TRANSLATE-GRID* '(:EN :EN))
>> ;
>> ; caught WARNING:
>> ;   undefined variable: *TRANSLATE-GRID*
>>
>> ;
>> ; caught WARNING:
>> ;   This variable is undefined:
>> ;     *TRANSLATE-GRID*
>> ;
>> ; compilation unit finished
>> ;   caught 2 WARNING conditions
>> STYLE-WARNING: redefining ESTABLISH-LINEAR-PRECEDENCE in DEFUN
>> STYLE-WARNING: redefining SPELLING-CHANGE-RULE-P in DEFUN
>> STYLE-WARNING: redefining REDUNDANCY-RULE-P in DEFUN
>> STYLE-WARNING: redefining HIDE-IN-TYPE-HIERARCHY-P in DEFUN
>> STYLE-WARNING: redefining MAKE-UNKNOWN-WORD-SENSE-UNIFICATIONS in DEFUN
>> STYLE-WARNING: redefining INSTANTIATE-GENERIC-LEXICAL-ENTRY in DEFUN
>> STYLE-WARNING: redefining MAKE-ORTH-TDFS in DEFUN
>> STYLE-WARNING: redefining SET-TEMPORARY-LEXICON-FILENAMES in DEFUN
>> STYLE-WARNING: redefining DAG-INFLECTED-P in DEFUN
>> STYLE-WARNING: redefining BOOL-VALUE-TRUE in DEFUN
>> STYLE-WARNING: redefining BOOL-VALUE-FALSE in DEFUN
>> STYLE-WARNING: redefining DETERMINE-ARGUMENT-OPTIONALITY in DEFUN
>> STYLE-WARNING: redefining DETERMINE-DERIVED-FORMS in DEFUN
>> STYLE-WARNING: redefining LUI-CHART-EDGE-NAME in DEFUN
>> STYLE-WARNING: redefining CHAIN-DOWN-MARGS in DEFUN
>> STYLE-WARNING: redefining IDIOM-REL-P in DEFUN
>> set-coding-system(): ignoring request for UTF8 on this Lisp 
>> implementation.
>> Reading in type file fundamentals.tdl
>> Reading in type file lextypes.tdl
>> Reading in type file syntax.tdl
>> Reading in type file lexrules.tdl
>> Reading in type file auxverbs.tdl
>> Reading in type file mtr.tdl
>> Checking type hierarchy
>> Checking for unique greatest lower bounds
>> Expanding constraints
>> Making constraints well formed
>> Expanding defaults
>> Type file checked successfully
>> Computing display ordering
>> Reading in cached leaf types
>> Cached leaf types read
>> Reading in cached lexicon (main)
>> Cached lexicon read
>> Reading in rules file constructions.tdl
>> Reading in lexical rules file inflr.tdl
>> Reading in lexical rules file inflr-pnct.tdl
>> Reading in root file roots.tdl
>> Reading in lexical rules file lexrinst.tdl
>> Reading in parse node file parse-nodes.tdl
>> Evaluation took:
>>  13.495 seconds of real time
>>  12.141154 seconds of user run time
>>  0.781881 seconds of system run time
>>  0 page faults and
>>  272,134,856 bytes consed.
>> read-vpm(): reading variable property mapping `semi.vpm'.
>> read-transfer-rules(): reading file `idioms.mtr'.
>> read-transfer-rules(): reading file `generation.mtr'.
>> read-transfer-rules(): reading file `trigger.mtr'.
>> Argh! gc_find_freeish_pages failed (restart_page), nbytes=4456456.
>>   Gen Boxed Unboxed LB   LUB  !move  Alloc  Waste   Trig    WP  GCs 
>> Mem-age
>>   0:    20     0  2178     0     0  8986536 16472  2000000    0   0  
>> 0.0000
>>   1:    28     2     0 13068    17 53589904 59504  2000000    8   0  
>> 0.4999
>>   2: 15185   415    54 71893    21 358134904 457608 360134904 15152   
>> 1  0.0000
>>   3:  1315   196    44     0    74  6299280 70000  2000000  751   0  
>> 0.0000
>>   4:  6343   767  1839   354   132 37900176 204912  2000000 7388   0  
>> 0.0000
>>   5:     0     0     0     0     0        0     0  2000000    0   0  
>> 0.0000
>>   6:  6071     0     0     0     0 24866816     0  2000000 5884   0  
>> 0.0000
>>   Total bytes allocated=489777616
>> fatal error encountered in SBCL pid 32736(tid 3085371072):
>>
>




More information about the developers mailing list