g+
g+ Communities
Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  Index 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014 
<== Date ==> <== Thread ==>

Subject: Re: Incorrect error handling by 'dbLoad' ?
From: hill@luke.atdiv.lanl.gov (Jeff Hill)
To: kozubal@jamal.LANL.GOV
Cc: tech-talk@aps.anl.gov
Date: Fri, 12 Jan 96 11:36:30 MST
> I get the following message from dbLoad:
> ----
> -> dbLoad "../../camacDev/db/camac.database"
> task: 0Xf9a8c0 tShell
> Assertion failed: semStatus==OK, file ../iocLogClient.c, line 448
> ----
> At this point the shell locks up, and all I can do is reboot.
> 
> I found that I was loading a db with the "default.sdrSum" file out of date.
> When I re-created the db with the correct "default.sdrSum" file the problem
> goes away.  I looked at the code for dbLoad(), and I believe it should
> print an error message and return -1.
> 
> I am using EPICS R3.12.2. 

This is a known problem in R3.12.2. The problem occurs when db load 
detects a problem and then attempts to print a message. The log system 
ends up getting called by db load prior to its getting initialized in 
iocInit().

A fix (adding a lazy init to the log system) has been commited
into CVS at APS.

The problem can be fixed by adding the following code to the top of
the function iocLogVPrintf() in $(EPICS)/base/src/libvxWorks/iocLogClient.c

        /*
         * Check for init
         */
        if (!iocLogMutex) {
                status = iocLogInit();
                if (status) {
                        return 0;
                }
        }

Jeff

______________________________________________________________________
Jeffrey O. Hill			Internet	johill@lanl.gov
LANL MS H820			Voice		505 665 1831
Los Alamos, NM 87545 USA 	FAX		505 665 5107


Navigate by Date:
Prev: Single seat WRS licenses Bob Dalesio
Next: Interviews for gdct and EPICS Jim B. Kowalkowski
Index: 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014 
Navigate by Thread:
Prev: Single seat WRS licenses Bob Dalesio
Next: Interviews for gdct and EPICS Jim B. Kowalkowski
Index: 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·