EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: More testing on linux-x86_64
From: "Ernest L. Williams Jr." <[email protected]>
To: Marty Kraimer <[email protected]>
Cc: [email protected], [email protected]
Date: Tue, 08 Nov 2005 07:09:15 -0500
Hi,

I built the latest R3-14-2_branch against linux-x86_64 and ran a few
tests in libCom/tests. All tests were successful; except
"epicsMessageQueueTestHost"

==============================================================================
[williams@sns-hp-eval1 O.linux-x86_64]$ epicsMessageQueueTestHost
Simple single-thread tests.
Should have 1 used -- Message Queue Used:1  Slots:4
Should have 2 used -- Message Queue Used:2  Slots:4
Should have 3 used -- Message Queue Used:3  Slots:4
Should have 4 used -- Message Queue Used:4  Slots:4
Test sender timeout.
Should have 1 used -- Message Queue Used:1  Slots:4
Should have 2 used -- Message Queue Used:2  Slots:4
Should have 3 used -- Message Queue Used:3  Slots:4
Should have 4 used -- Message Queue Used:4  Slots:4
Test receiver with timeout.
Single receiver with invalid size, single sender tests.

Single receiver, single sender tests.
Segmentation fault

========== Results from GDB ============================================

Core was generated by `epicsMessageQueueTestHost'.
Program terminated with signal 11, Segmentation fault.
Reading symbols
from /ade/epics/supTop/base/R3-14-2_branch-Oct-28-2005/lib/linux-x86_64/libCom.so...done.
Loaded symbols
for /ade/epics/supTop/base/R3-14-2_branch-Oct-28-2005/lib/linux-x86_64/libCom.so
Reading symbols from /usr/lib64/libstdc++.so.6...done.
Loaded symbols for /usr/lib64/libstdc++.so.6
Reading symbols from /lib64/tls/libm.so.6...done.
Loaded symbols for /lib64/tls/libm.so.6
Reading symbols from /lib64/libgcc_s.so.1...done.
Loaded symbols for /lib64/libgcc_s.so.1
Reading symbols from /lib64/tls/libc.so.6...done.
Loaded symbols for /lib64/tls/libc.so.6
Reading symbols from /lib64/tls/libpthread.so.0...done.
Loaded symbols for /lib64/tls/libpthread.so.0
Reading symbols from /usr/lib64/libreadline.so.4...done.
Loaded symbols for /usr/lib64/libreadline.so.4
Reading symbols from /usr/lib64/libncurses.so.5...done.
Loaded symbols for /usr/lib64/libncurses.so.5
Reading symbols from /lib64/tls/librt.so.1...done.
Loaded symbols for /lib64/tls/librt.so.1
Reading symbols from /lib64/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
#0  0x0000003224307333 in pthread_setschedparam ()
from /lib64/tls/libpthread.so.0
(gdb) bt
#0  0x0000003224307333 in pthread_setschedparam ()
from /lib64/tls/libpthread.so.0
#1  0x0000002a95587fad in epicsThreadSetPriority (pthreadInfo=0x503ec0,
priority=Variable "priority" is not available.
)
    at ../../../src/libCom/osi/os/posix/osdThread.c:513
#2  0x0000000000401a2d in epicsMessageQueueTest ()
at ../epicsMessageQueueTest.cpp:217
#3  0x0000000000400f59 in main () at ../epicsMessageQueueTestMain.cpp:22
=============================================================================





Other interesting tests:

[williams@sns-hp-eval1 O.linux-x86_64]$ epicsThreadTestHost
It takes 0.009640 micro sec to call epicsThreadGetIdSelf ()
Estimating sleep quantum..........done
The epicsThreadSleepQuantum() call returns 0.010000 sec.
This doesnt match the quantum estimate of 0.004096 sec within 10%.
threadTest starting
threadTest created 0 myThread 0x5054b0
startPriority 50 minPriority 0 maxPriority 99
threadTest created 1 myThread 0x5059f0
threadFunc 0 starting argvalue 0x5059b0
threadFunc 1 starting argvalue 0x505ef0
            NAME     EPICS ID   PTHREAD ID   OSIPRI  OSSPRI  STATE
          _main_     0x5031b0            0      0       0       OK
          errlog     0x505280   1074010464     10       0       OK
           task0     0x505800   1074280800     50       0       OK
           task1     0x505d40   1074551136     51       0       OK
threadFunc 0 stopping argvalue 0x5059b0
threadFunc 1 stopping argvalue 0x505ef0
epicsThreadTest returning
main terminating

[williams@sns-hp-eval1 O.linux-x86_64]$ epicsTimerExampleHost
first
epicsTime: Tue Nov 08 2005 06:53:14.807675000
second
epicsTime: Tue Nov 08 2005 06:53:15.308651000
[williams@sns-hp-eval1 O.linux-x86_64]$ epicsThreadPrivateTestHost
It takes 0.006440 micro sec to call epicsThreadPrivateGet()
[williams@sns-hp-eval1 O.linux-x86_64]$ epicsTimerTestHost
delay error > 0.5 %, delay = 0.6 s, error = -3.189 ms (0.531500 %)
delay error > 0.5 %, delay = 0.5 s, error = -3.186 ms (0.637200 %)
delay error > 0.5 %, delay = 0.4 s, error = -3.183 ms (0.795750 %)
delay error > 0.5 %, delay = 0.3 s, error = -3.18 ms (1.060000 %)
delay error > 0.5 %, delay = 0.2 s, error = -3.177 ms (1.588500 %)
delay error > 0.5 %, delay = 0.1 s, error = -3.173 ms (3.173000 %)
average timer delay error -3.208440 ms
test complete
[williams@sns-hp-eval1 O.linux-x86_64]$ epicsTimeTestHost
epicsTime Test (100 loops)
========================

Time per call to epicsTime::getCurrent() (100000 calls) =  1.709 usec

The following should be your local time
displayed using four different internal representations:

epicsTimeStamp = Tue Nov  8 06:54:07 2005
 254578000 nSec
local time zone struct tm = Tue Nov  8 06:54:07 2005
 0.254578
struct timespec = Tue Nov  8 06:54:07 2005
 0.254578
UTC struct tm = Tue Nov  8 11:54:07 2005
 0.254578
epicsTime: Tue Nov 08 2005 06:54:07.254578000
epicsTime: revision "@(#) EPICS 3.14.7, Common Utilities Library Nov  4
2005"

 ... now at loop  10
 ... now at loop  20
 ... now at loop  30
 ... now at loop  40
 ... now at loop  50
 ... now at loop  60
 ... now at loop  70
 ... now at loop  80
 ... now at loop  90
epicsTime test complete. Summary: 0 errors found in 0 out of 100 loops.




Navigate by Date:
Prev: Re: 3.14.8 and mrkSoftTest Ernest L. Williams Jr.
Next: 3.14.8@Linux: epicsMaxThreadsHost does not return Ralph Lange
Index: 2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: 3.14.8: blockingSockTest - assert() fails. Ralph Lange
Next: 3.14.8@Linux: epicsMaxThreadsHost does not return Ralph Lange
Index: 2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Feb 2012 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·