Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-02-2017, 02:01 PM   #1
LQ Newbie
Registered: Jun 2017
Location: India Hyderabd
Posts: 3

Rep: Reputation: Disabled
Application crashing with assertion failure with helgrind tool but not with memcheck tool

Our application is using Conditional variables for thread synchronization.
We did not face any issue while using the memcheck tool as part of valgrind memory leak checker.
But when we use helgrind tool instead of memcheck tool, the application execution became very slow and observed the following
- Thread is waiting on a conditional variable (pthread_cond_wait).
- pthread_cond_wait internally called pthread_cond_wait_wrk() method from helgring library.
- After that assert failure message observed from the log

The same issue observed using pthread_cond_timedwait system call too with helgrind tool.

Why the process execution became slow when we use helgrind in valgrind tool, because of this getting the assert failure or is this a bug with helgrind tool itself.
Old 06-03-2017, 07:11 AM   #2
LQ Guru
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,604

Rep: Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604
this information is insufficient, I do not think anyone will be able to tell you anything useful.
I would go to the support of valgrind and collect all the available information (also would be nice to prepare a small app - if possible to reproduce it.)
Old 06-03-2017, 07:45 AM   #3
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,229
Blog Entries: 4

Rep: Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260
Please do not post the same question in multiple forums.

You have ... "a bug in your program," it's that simple. Multithreaded applications often behave very differently in the presence of any sort of debugger. You've got some kind of a timing hole, and the debugger is exposing it.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: GNOME Tweak Tool - A tool for changing specialised or advanced GNOME3 settings LXer Syndicated Linux News 0 10-12-2011 11:50 PM
Cross-tool 0.42: Tool-chain compilation process fail ueagle Linux From Scratch 2 03-26-2011 03:43 AM
error installing valgrind: failed to start tool 'memcheck'... karatelambda Linux - Software 1 12-16-2010 10:42 AM
Hardware Diagnosis Application or Tool hector3rd Linux - Hardware 5 05-17-2010 11:11 AM
Need An Application/protocol Monitoring Tool debloxie Linux - Networking 3 01-08-2008 10:55 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration