EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: base R3.14.1 "example" application booting problem, and rdbg questions
From: Eric Norum <[email protected]>
To: "M.C.Shao" <[email protected]>
Cc: Tech-talk <[email protected]>, [email protected]
Date: Fri, 24 Jan 2003 09:17:11 -0600
> "M.C.Shao" wrote:
> 
> hello,all
> Questions again.
> I have update to EPICS baseR3.14.1 now. And build the "example"
> application for RTEMS-pc386 target.
> After boot the "exmaple" application on my target machine, there are
> some errors delivered:
> --------------
> ...
> *****starting EPICS application*****
>     assert failed:
> .../../../../../../../rtems-ss-20021118/cpukit/posix/src/types.c:40 0
> EXECUTIVE SHUTDOWN!Any key to reboot...
> --------------
> Here are related contents in types.c:
> 38:    int POSIX_NOT_IMPLEMENTED()
> 39:    {
> 40:      assert( 0 );
> 41:      return 0;
> 42:    }
> 
> what does this mean? Where/when is this function called?
> When I configure RTEMS, I have had the configuration option
> "--enable-posix" turned on.

Drat.  I forgot that this problem has been fixed in the RTEMS CVS
repository but not in the 20021118 snapshot.  The problem is that the
RTEMS sysconf is being excessivly paranoid about requests for which it
has no information.

Here's the patch.  

diff -ur rtems-ss-20021118.orig/cpukit/posix/src/sysconf.c
rtems-ss-20021118/cpukit/posix/src/sysconf.c
--- rtems-ss-20021118.orig/cpukit/posix/src/sysconf.c   Thu Sep 13
16:04:21 2001
+++ rtems-ss-20021118/cpukit/posix/src/sysconf.c        Mon Jan 20
15:07:16 2003
@@ -8,6 +8,7 @@
 
 #include <time.h>
 #include <unistd.h>
+#include <errno.h>
 
 #include <rtems/system.h>
 #include <rtems/score/tod.h>
@@ -31,6 +32,9 @@
         return rtems_libio_number_iops;
       }
 
+    case _SC_GETPW_R_SIZE_MAX:
+        return 1024;
+
 #if defined(__sparc__)
     case 515: /* Solaris _SC_STACK_PROT */
      return 0;
@@ -40,5 +44,6 @@
       break;
   }
 
-  return POSIX_NOT_IMPLEMENTED();
+  errno = EINVAL;
+  return -1;
 }


-- 
Eric Norum <[email protected]>
Advanced Photon Source
(630) 252-4793

Replies:
Re: base R3.14.1 "example" application booting problem M.C.Shao
References:
base R3.14.1 "example" application booting problem, and rdbg questions M.C.Shao

Navigate by Date:
Prev: base R3.14.1 "example" application booting problem, and rdbg questions M.C.Shao
Next: CPUs Rolf Keitel
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: base R3.14.1 "example" application booting problem, and rdbg questions M.C.Shao
Next: Re: base R3.14.1 "example" application booting problem M.C.Shao
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·