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: Re: linux-x86_64 issue: epicsThread: Unknown C++ exception in thread "timerQueue"
From: "Ernest L. Williams Jr." <[email protected]>
To: Marty Kraimer <[email protected]>
Cc: EPICS Core Talk <[email protected]>
Date: Mon, 21 Nov 2005 12:14:18 -0500
On Mon, 2005-11-21 at 09:11 -0600, Marty Kraimer wrote:
> Does it still happen with the latest committs to posix/osdThread.c?
> Does this happen whenever you exit or only at random?

Hi Marty,
I have updated with your latest changes.

This happens every time I exit.  The details with a stack trace are
below:
=============================================================================
 
epics> epicsThreadShowAll
            NAME     EPICS ID   PTHREAD ID   OSIPRI  OSSPRI  STATE
          _main_     0x505d20            0      0       0       OK
          errlog     0x50b280   1073875296     10      10       OK
          taskwd     0x57a580   1074010464     10      10       OK
      timerQueue     0x512260   1074276704     70      69       OK
           cbLow     0x578960   1074805088     59      58       OK
        cbMedium     0x511840   1075333472     64      63       OK
          cbHigh     0x511ad0   1075861856     71      70       OK
        dbCaLink     0x57bb30   1076390240     50      50       OK
        scanOnce     0x5879f0   1076918624     70      69       OK
          scan10     0x588200   1077447008     60      59       OK
           scan5     0x588400   1077975392     61      60       OK
           scan2     0x588600   1078503776     62      61       OK
           scan1     0x588800   1079032160     63      62       OK
         scan0.5     0x588a00   1079560544     64      63       OK
         scan0.2     0x588c00   1080088928     65      64       OK
         scan0.1     0x588e00   1080617312     66      65       OK
       CAC-event     0x5b91b0   1080883552     52      51       OK
         CAS-TCP     0x5c60e0   1081149792     16      16       OK
      CAS-beacon     0x5c6300   1081284960     14      14       OK
         CAS-UDP     0x5c6590   1081551200     12      12       OK
epics> exit
epicsThread: Unknown C++ exception in thread "timerQueue" at Mon Nov 21
2005 12:09:16.378008000
Segmentation fault (core dumped)
[root@dragon iocamd64]#
=======================================================================
[root@dragon iocamd64]# gdb ../../bin/linux-x86_64/amd64 core.21331
GNU gdb Red Hat Linux (6.3.0.0-1.63rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "x86_64-redhat-linux-gnu"...Using host
libthread_db library "/lib64/tls/libthread_db.so.1".


warning: core file may not match specified executable file.
Core was generated by `../../bin/linux-x86_64/amd64 ./st.cmd'.
Program terminated with signal 11, Segmentation fault.


(gdb) bt
#0  0x0000003892ab0faa in __gnu_cxx::__verbose_terminate_handler ()
from /usr/lib64/libstdc++.so.6
#1  0x0000003892aaf076 in __cxa_call_unexpected ()
from /usr/lib64/libstdc++.so.6
#2  0x0000003892aaf0a3 in std::terminate () from /usr/lib64/libstdc+
+.so.6
#3  0x0000003892aaf0b6 in std::terminate () from /usr/lib64/libstdc+
+.so.6
#4  0x0000003892aaf0d3 in std::unexpected () from /usr/lib64/libstdc+
+.so.6
#5  0x0000002a964b4663 in epicsThreadCallEntryPoint (pPvt=Variable
"pPvt" is not available.
) at ../../../src/libCom/osi/epicsThread.cpp:96
#6  0x0000002a964b9457 in start_routine (arg=Variable "arg" is not
available.
) at ../../../src/libCom/osi/os/posix/osdThread.c:320
#7  0x00000038908060aa in start_thread ()
from /lib64/tls/libpthread.so.0
#8  0x000000388fbc5b43 in clone () from /lib64/tls/libc.so.6
#9  0x0000000000000000 in ?? ()
====================================================================

Thanks,
Ernest



> 
> Marty
> 
> Ernest L. Williams Jr. wrote:
> 
> >Hi,
> >
> >
> >
> >Another issue, when running the example softIOC under linux-x86_64
> >with:
> >==================================================================
> >USE_POSIX_THREAD_PRIORITY_SCHEDULING = YES
> >==================================================================
> >
> >The following happens only when run as root and only when exit or
> ><CTRL>-C is used to exit the softIOC:
> >
> >
> >
> >cd /ade/epics/iocTop/R3.14.8/testLinux64/iocBoot/iocamd64
> >iocInit()
> >Starting iocInit
> >############################################################################
> >###  EPICS IOC CORE built on Nov 17 2005
> >###  EPICS R3.14.7 $$Name: R3-14-2_branch $$ $$Date: 2004/12/06 22:31:52
> >$$
> >############################################################################
> >iocInit: All initialization complete
> >## Start any sequence programs
> >#seq sncExample,"user=williamsHost"
> >epics> exit
> >epicsThread: Unknown C++ exception in thread "timerQueue" at Thu Nov 17
> >2005 21:37:19.751377000
> >Segmentation fault (core dumped)
> >[root@dragon iocamd64]#
> >
> >
> >Let's see what the backtrace yields:
> >=================================================================================
> >(gdb) bt
> >#0  0x0000003892ab0faa in __gnu_cxx::__verbose_terminate_handler ()
> >from /usr/lib64/libstdc++.so.6
> >#1  0x0000003892aaf076 in __cxa_call_unexpected ()
> >from /usr/lib64/libstdc++.so.6
> >#2  0x0000003892aaf0a3 in std::terminate () from /usr/lib64/libstdc
> >++.so.6
> >#3  0x0000003892aaf0b6 in std::terminate () from /usr/lib64/libstdc
> >++.so.6
> >#4  0x0000003892aaf0d3 in std::unexpected () from /usr/lib64/libstdc
> >++.so.6
> >#5  0x0000002a964b4663 in epicsThreadCallEntryPoint (pPvt=Variable
> >"pPvt" is not available.
> >) at ../../../src/libCom/osi/epicsThread.cpp:96
> >#6  0x0000002a964b9410 in start_routine (arg=Variable "arg" is not
> >available.
> >) at ../../../src/libCom/osi/os/posix/osdThread.c:316
> >#7  0x00000038908060aa in start_thread ()
> >from /lib64/tls/libpthread.so.0
> >#8  0x000000388fbc5b43 in clone () from /lib64/tls/libc.so.6
> >#9  0x0000000000000000 in ?? ()
> >(gdb)
> >
> >=============================================================================
> >
> >Thanks,
> >Ernest
> >
> >
> >
> >
> >  
> >
> 


References:
linux-x86_64 issue: epicsThread: Unknown C++ exception in thread "timerQueue" Ernest L. Williams Jr.
Re: linux-x86_64 issue: epicsThread: Unknown C++ exception in thread "timerQueue" Marty Kraimer

Navigate by Date:
Prev: 3.14.8@HP-UX: go! Ralph Lange
Next: Re: epicsThreadSetPriority called by non epics thread Ernest L. Williams Jr.
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: linux-x86_64 issue: epicsThread: Unknown C++ exception in thread "timerQueue" Marty Kraimer
Next: Re: R3.14.8 Status/logClient patch Benjamin Franksen
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 ·