I am using valgrind 3.10.1 (I get the same results building valgrind from
SVN).

My program uses boost 1_57_0, and Wt 3-3-4-rc1.  I am compiling with gcc
4.8.2 on CentOS 7.0.1406

When I run my program under valgrind —tool=drd,

valgrind aborts with the attached message.
I have several questions:

1) If this is a real error in my code, Wt, or Boost, how would I find and
fix the error?

2) Does anyone routinely use the boost DRD tool with Wt and Boost, or with
Boost?


drd: drd_thread.c:630 (vgDrd_thread_entering_pthread_create): Assertion
'DRD_(g_threadinfo)[tid].pt_threadid != INVALID_POSIX_THREADID' failed.

host stacktrace:
==21016==    at 0x38046C68: show_sched_status_wrk (m_libcassert.c:319)
==21016==    by 0x38046D84: report_and_quit (m_libcassert.c:390)
==21016==    by 0x38046F11: vgPlain_assert_fail (m_libcassert.c:456)
==21016==    by 0x3803639B: vgDrd_thread_entering_pthread_create
(drd_thread.c:630)
==21016==    by 0x3802AC6B: handle_client_request (drd_clientreq.c:295)
==21016==    by 0x3805E1E0: wrap_tool_handle_client_request
(m_tooliface.c:280)
==21016==    by 0x38097C9F: do_client_request (scheduler.c:2074)
==21016==    by 0x38097C9F: vgPlain_scheduler (scheduler.c:1407)
==21016==    by 0x380A687C: thread_wrapper (syswrap-linux.c:103)
==21016==    by 0x380A687C: run_a_thread_NORETURN (syswrap-linux.c:156)

sched status:
  running_tid=1

Thread 1: status = VgTs_Runnable
==21016==    at 0x4C2F5B9: vgDrd_entering_pthread_create
(drd_pthread_intercepts.c:331)
==21016==    by 0x4C2F5B9: pthread_create_intercept
(drd_pthread_intercepts.c:484)
==21016==    by 0x4C2F5B9: pthread_create@* (drd_pthread_intercepts.c:501)
==21016==    by 0x5C14C38: boost::thread::start_thread_noexcept() (in
/usr/local/boost_1_57_0/lib/libboost_thread-mt.so.1.57.0)
==21016==    by 0x6A6975: boost::thread::start_thread() (thread.hpp:179)
==21016==    by 0x8E48455:
boost::thread::thread<boost::_bi::bind_t<unsigned long,
boost::_mfi::mf0<unsigned long, boost::asio::io_service>,
boost::_bi::list1<boost::_bi::value<boost::asio::io_service*> > >
>(boost::_bi::bind_t<unsigned long, boost::_mfi::mf0<unsigned long,
boost::asio::io_service>,
boost::_bi::list1<boost::_bi::value<boost::asio::io_service*> > >,
boost::disable_if_c<boost::thread_detail::is_rv<boost::_bi::bind_t<unsigned
long, boost::_mfi::mf0<unsigned long, boost::asio::io_service>,
boost::_bi::list1<boost::_bi::value<boost::asio::io_service*> > > >::value,
boost::thread::dummy*>::type) (in
/usr/local/boost_1_57_0/wt-3.3.4/lib/libwtclasses.so.1.4.0)
==21016==    by 0x8E44901: boost::thread*
boost::thread_group::create_thread<boost::_bi::bind_t<unsigned long,
boost::_mfi::mf0<unsigned long, boost::asio::io_service>,
boost::_bi::list1<boost::_bi::value<boost::asio::io_service*> > >
>(boost::_bi::bind_t<unsigned long, boost::_mfi::mf0<unsigned long,
boost::asio::io_service>,
boost::_bi::list1<boost::_bi::value<boost::asio::io_service*> > >) (in
/usr/local/boost_1_57_0/wt-3.3.4/lib/libwtclasses.so.1.4.0)
==21016==    by 0x8E412DA: Wt::Wc::WcIoService::WcIoService() (in
/usr/local/boost_1_57_0/wt-3.3.4/lib/libwtclasses.so.1.4.0)
==21016==    by 0x8E3B22F: __static_initialization_and_destruction_0(int,
int) (in /usr/local/boost_1_57_0/wt-3.3.4/lib/libwtclasses.so.1.4.0)
==21016==    by 0x8E3B483: _GLOBAL__sub_I_util.cpp (in
/usr/local/boost_1_57_0/wt-3.3.4/lib/libwtclasses.so.1.4.0)
==21016==    by 0x400F502: call_init (dl-init.c:82)
==21016==    by 0x400F502: _dl_init (dl-init.c:131)
==21016==    by 0x4001459: ??? (in /usr/lib64/ld-2.17.so)


-- 
Joe VanAndel
NCAR/EOL
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to