EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: valgrind errors in base 7.0.5
From: Mark Rivers via Core-talk <core-talk at aps.anl.gov>
To: EPICS core-talk <core-talk at aps.anl.gov>
Date: Fri, 2 Apr 2021 21:33:02 +0000

I was tracking down some errors in an IOC with valgrind.  I found and fixed the errors in my drivers.  But I am seeing some errors in CAS-client and CAS-event.

 

==146728== Thread 25 CAS-client:

==146728== Invalid read of size 8

==146728==    at 0xE37113: db_close_events (dbEvent.c:378)

==146728==    by 0xE5DB92: destroy_tcp_client (caservertask.c:1217)

==146728==    by 0xE5E77D: camsgtask (camsgtask.c:161)

==146728==    by 0xEB131B: start_routine (osdThread.c:412)

==146728==    by 0x5EC7E24: start_thread (in /usr/lib64/libpthread-2.17.so)

==146728==    by 0x704BBAC: clone (in /usr/lib64/libc-2.17.so)

==146728==  Address 0x1638ee68 is 12,120 bytes inside a recently re-allocated block of size 19,464 alloc'd

==146728==    at 0x4C29C23: malloc (vg_replace_malloc.c:299)

==146728==    by 0xE9FBA1: freeListMalloc (freeListLib.c:95)

==146728==    by 0xE9FCBD: freeListCalloc (freeListLib.c:68)

==146728==    by 0xE36F71: db_init_events (dbEvent.c:297)

==146728==    by 0x64E0CB: PDBProvider::PDBProvider(std::tr1::shared_ptr<epics::pvAccess::Configuration const> const&) (pdb.cpp:542)

==146728==    by 0x64665D: epics::pvAccess::SingletonChannelProviderFactory<PDBProvider>::sharedInstance() (pvAccess.h:1412)

==146728==    by 0x7073A5: epics::pvAccess::ChannelProviderRegistry::getProvider(std::string const&) (ChannelAccessFactory.cpp:48)

==146728==    by 0x7495AE: epics::pvAccess::ServerContextImpl::loadConfiguration() (serverContext.cpp:162)

==146728==    by 0x74A3FA: epics::pvAccess::ServerContext::create(epics::pvAccess::ServerContext::Config const&) (serverContext.cpp:597)

==146728==    by 0x6E27B9: (anonymous namespace)::startitup() (PVAServerRegister.cpp:46)

==146728==    by 0x6E31F4: startPVAServer (PVAServerRegister.cpp:71)

==146728==    by 0x6E31F4: void epics::detail::call1<char const*, &(anonymous namespace)::startPVAServer>(iocshArgBuf const*) (iocshelper.h:83)

==146728==    by 0xEA1C1F: iocshBody (iocsh.cpp:938)

==146728==

 

==146728== Thread 21 CAS-event:

==146728== Syscall param socketcall.sendto(msg) points to uninitialised byte(s)

==146728==    at 0x5ECECFB: send (in /usr/lib64/libpthread-2.17.so)

==146728==    by 0xE67479: cas_send_bs_msg (caserverio.c:68)

==146728==    by 0xE67A98: cas_copy_in_header (caserverio.c:287)

==146728==    by 0xE5F74B: read_reply (camessage.c:513)

==146728==    by 0xE38084: event_read (dbEvent.c:959)

==146728==    by 0xE38084: event_task (dbEvent.c:1038)

==146728==    by 0xEB131B: start_routine (osdThread.c:412)

==146728==    by 0x5EC7E24: start_thread (in /usr/lib64/libpthread-2.17.so)

==146728==    by 0x704BBAC: clone (in /usr/lib64/libc-2.17.so)

==146728==  Address 0x1d768584 is 36 bytes inside a block of size 135,168 alloc'd

==146728==    at 0x4C29C23: malloc (vg_replace_malloc.c:299)

==146728==    by 0xE5E029: casExpandBuffer (caservertask.c:1341)

==146728==    by 0xE5E029: casExpandSendBuffer (caservertask.c:1392)

==146728==    by 0xE67A4A: cas_copy_in_header (caserverio.c:275)

==146728==    by 0xE5F74B: read_reply (camessage.c:513)

==146728==    by 0xE38084: event_read (dbEvent.c:959)

==146728==    by 0xE38084: event_task (dbEvent.c:1038)

==146728==    by 0xEB131B: start_routine (osdThread.c:412)

==146728==    by 0x5EC7E24: start_thread (in /usr/lib64/libpthread-2.17.so)

==146728==    by 0x704BBAC: clone (in /usr/lib64/libc-2.17.so)

==146728==

 

Base 7.0.5

Centos 7

gcc 4.8.5

 

Mark

 

 

 


Replies:
Re: valgrind errors in base 7.0.5 Johnson, Andrew N. via Core-talk

Navigate by Date:
Prev: Build failed in Jenkins: epics-pvDatabase-win64 #890 APS Jenkins via Core-talk
Next: Re: valgrind errors in base 7.0.5 Johnson, Andrew N. via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
Navigate by Thread:
Prev: Build failed: epics-base base-integration-678 AppVeyor via Core-talk
Next: Re: valgrind errors in base 7.0.5 Johnson, Andrew N. via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
ANJ, 02 Apr 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·