EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  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  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: segmentation fault in ca_task_initialize running in Linux
From: Margaret Votava <[email protected]>
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Date: Fri, 17 Feb 2006 11:35:31 -0600

Dear all,


We are trying to understand a problem with a DESY/DOOCS utility.
It generates a segmentation fault within ca_task_initialize (stack trace
below). The

epicsMutex ca_client_context::defaultServiceInstallMutex;

constructor is not being called in all OS platform/Compiler
combinations.

In particular, a failing combination is
Linux 2.6.8-22.0.2/gcc v3.4.3 (red hat)
Linux 2.6.1/gcc v3.2.3 (red hat)

but works in Solaris with Solaris compiler.

We believe that this is a linker problem.

Has anyone seen before or have any clues of how to fix?

Thank you kindly,
Margaret

### epics code ###

(gdb) where
#0  epicsMutexLock (pmutexNode=0x0)
   at ../../../src/libCom/osi/epicsMutex.cpp:118
#1  0x006add15 in epicsMutex::lock (this=0x0)
   at ../../../src/libCom/osi/epicsMutex.cpp:211
#2  0x00ca19cb in ca_client_context (this=0x8d8ce08,
   enablePreemptiveCallback=false) at ../../../include/epicsGuard.h:68
#3  0x00c88305 in ca_context_create (
   premptiveCallbackSelect=ca_disable_preemptive_callback)
   at ../access.cpp:204
#4  0x00c8835e in ca_task_initialize () at ../access.cpp:180

### doocs code ####

#5 0x00a3e9f5 in epics_init ()
at /home/votava/smtf/doocs/libs/clientlib/source/clientlib/eq_svr.cc:1928
#6 0x00a464b5 in EqCall (this=0x8d8cc88)
at /home/votava/smtf/doocs/libs/clientlib/source/clientlib/eq_client.cc:369
#7 0x00e05837 in __static_initialization_and_destruction_0 (__initialize_p=1,
__priority=65535)
at /home/votava/smtf/doocs/libs/dddlib/source/dddlib/panels/device_attr_stubs.cc:26
#8 0x00e05917 in global constructors keyed to ea ()
at /home/votava/smtf/doocs/libs/dddlib/source/dddlib/panels/device_attr_stubs.cc:400
#9 0x00e36819 in __do_global_ctors_aux ()
from /home/votava/smtf/doocs/ups/../ups/../libs/dddlib/ups/../ups/../Linux/lib/libddd.so.2.2.5
#10 0x00d45add in _init ()
from /home/votava/smtf/doocs/ups/../ups/../libs/dddlib/ups/../ups/../Linux/lib/libddd.so.2.2.5
#11 0x00271318 in _dl_init_internal () from /lib/ld-linux.so.2
#12 0x002657ff in _dl_start_user () from /lib/ld-linux.so.2




Replies:
RE: segmentation fault in ca_task_initialize running in Linux Jeff Hill
RE: segmentation fault in ca_task_initialize running in Linux Jeff Hill

Navigate by Date:
Prev: RE: ASYN support for PC parallel port (Linux) Mark Rivers
Next: MVME3100 and EPICS (The successor to the MVME2100) a first look Ernest L. Williams Jr.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: ASYN support for PC parallel port (Linux) Mark Rivers
Next: RE: segmentation fault in ca_task_initialize running in Linux Jeff Hill
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·