Fedora Linux Support Community & Resources Center
  #1  
Old 31st March 2011, 07:59 AM
calanor Offline
Registered User
 
Join Date: Sep 2009
Location: India
Posts: 93
linuxfirefox
Question multi threaded program debugging

Hi, I am new to multi threaded programming and it seems debugging them is really really hard Can anybody point me to a good tutorial or book on it. Most of the tutorials I came across were really short and inadequate.
__________________
Fedora 15 x86_64, thinkpad edge 14

Common sense can not be compiled.
Reply With Quote
  #2  
Old 15th April 2011, 02:20 AM
CChips Offline
Registered User
 
Join Date: Jun 2010
Location: Phoenix, Arizona / Haifa, Israel
Age: 28
Posts: 22
linuxchrome
Re: multi threaded program debugging

Define a trace macro which dumps the line number or a bread-crumb name when it's entered. You could also have it dump the thread id with it. You can dump these to std cout or via printf whatever.

This way you can collect the paths.
__________________
-= I am not a programmer, I am a Meteorologist =- C.Chips | Lenovo K210 Dual 1.6gHz 4gb ~ Fedora 13 x86_64 | Lenovo s10-2 1.6gHz 1gb ~ Ubuntu 10.04 x86 -
Reply With Quote
  #3  
Old 15th April 2011, 03:11 AM
diamond_ramsey Offline
Registered User
 
Join Date: Aug 2009
Posts: 790
linuxfedorafirefox
Re: multi threaded program debugging

Quote:
Originally Posted by calanor View Post
Hi, I am new to multi threaded programming and it seems debugging them is really really hard Can anybody point me to a good tutorial or book on it. Most of the tutorials I came across were really short and inadequate.
Depending on your language requirement and needs...here are a couple URLs to see if these help -
=============================================
A six page article, "Multi-threaded Debugging Techniques" -

* http://drdobbs.com/cpp/199200938

* http://valgrind.org/

* http://www.llnl.gov/computing/tutorials/pthreads/

* http://www.laptev.org/doc/pthreads.html

* http://www.advancedlinuxprogramming.com/alp-folder "Read both Chapters 3 and 4"

* http://www.bogotobogo.com/cplusplus/...Debugging.html
=============================================
Hope this helps.
__________________
2 dual cores, 11 GB RAM, F18 Spherical Cow - 3.11.10-100.fc18.x86_64 / i686
2 dual cores, 11 GB RAM, F19 Schrödinger's Cat - 3.14.25-100.fc19.x86_64 / i686
2 dual cores, 11 GB RAM, F20 Heisenbug - 3.17.4-200.fc20.x86_64 / i686
2 dual cores, 11 GB RAM, F21 - 3.17.4-300.fc21.x86_64 / i686
80 x86_64 computing cores, 144 GB RAM & 8 SATA Seagate 7200.12 500 GB harddisks
Reply With Quote
Reply

Tags
debugging, multi, program, threaded

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ Multi threaded directory scan code. techman2006 Programming & Packaging 7 12th January 2013 02:42 PM
Debugging Problem: Program received signal SIGSEGV, Segmentation fault DoSoo Programming & Packaging 2 6th March 2010 11:16 AM
debugging program? bigmacbb63 Using Fedora 1 18th November 2007 05:24 PM
help on the debugging the program mounterriver Programming & Packaging 3 22nd June 2006 05:13 AM


Current GMT-time: 12:13 (Friday, 28-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Essen - Steele Photos on Instagram - Kodaikanal, Tamil Nadu, India - Univer Milenium Photos on Instagram