|
From: Satya V. G. <gup...@ne...> - 2010-06-16 12:07:37
|
I made the suggested change (bumped up the Stack size to 512 pages instead of the 16) and continue to have another problem. I have only 256MB RAM in my device and when I bumped up the stack to 512 pages as suggested, all processes go to sleep. The change in stack size obviously changed the behavior of Valgrind. The original problem I had was that VG_(strcmp) in callgrind caused a SIGSEGV. The reason it was suggested that I bump up the stack size was that Boost libraries use very long names. In my mind, I am better off limiting the size of the two strings that are offered to VG_(strcmp) to some MAX_STRING_SIZE instead of increasing the stack size. However, I do not know what is a reasonable value for MAX_STRING_SIZE? Does anyone have a suggestion on what size I should use here? Thanks SVG -----Original Message----- From: bar...@gm... [mailto:bar...@gm...] On Behalf Of Bart Van Assche Sent: Sunday, June 13, 2010 6:06 AM To: Satya V. Gupta Cc: val...@li... Subject: Re: [Valgrind-users] Running Valgrind on ELF/ python/ boost based executables On Sun, Jun 13, 2010 at 11:47 AM, Satya V. Gupta <gup...@ne...> wrote: > I have a supervisory process that is kicked off by an ELF executable > which in turn invokes some ELF/ python script/ executables based child processes. > I wish to run valgrind with --tool=callgrind and be able to inject > valgrind into all processes. So far I have tried to run the > supervisory process with --trace-children=yes and of course --tool=callgrind switches. > > Any ELF based executable process stays up but valgrind receives a > SIGSEGV from all the others. It leaves behind an identical call stack > strace with a bunch of exception handlers that pass through the main > python executable and a bunch of boost libraries. > > Does anyone have recommendations on how to run python/ boost based > executable? Instead of asking the same question twice, you should try the suggestion that was posted in reply to your message on the valgrind-developers mailing list (see also http://sourceforge.net/mailarchive/forum.php?thread_name=201006122144.03178. jseward%40acm.org&forum_name=valgrind-developers). Bart. ____________________________________________________________ Get Free Email with Video Mail & Video Chat! http://www.netzero.net/freeemail?refcd=NZTAGOUT1FREM0210 |