>    The sequencer wild pointer problem is next.  I don't hold a lot of hope
> for getting this one fixed any time soon.  I may have to review the
> sequencer code to find it.  I'm not sure that tools like valgrind will
> be of any use given that they will slow things down to a crawl.  I'll
> have to dig up my notes on this and see if there's a tool out there
> that will find this for me quickly.

I have just a little experience running valgrind on Rosegarden.  It can be
done, but it is painful and you are right to look for a better way.

A few observations in no particular order:

 * It slows things down, but a more pressing problem is that valgrind
makes a ton of output.  So much that even grepping it gives too much
output to eyeball.

 * If you do choose valgrind, I have a rudimentary valgrind-suppress file
for RG.  I'll commit it if you have any use for it.  That cuts down the
output a lot (maybe 95%), but there's still half a ton of it.  I made
this file quick-and-dirty by editing the --gen-suppressions=all output,
so it's only a little better than gen-suppressions itself.  The command
line flag is --log-file=../valgrind-results

 * I don't still have any of the valgrind outputs.  They were many
meghabytes of highly repetitive text.  But from memory and notes:

   * I saw zero stray writes other than the ones I was looking for (caused
by a race condition, staunched in 12.04).  Which co-incidentally was
the ALSA/Sequencer/SequencerThread again.  But that's from a short
session where I exercised only that.

   * RG has serious memory leaks.  Not news to anybody, I'm sure.  But
quantifying it, a short session showed something like 130K that was
alloced and lost.  I don't think it's practical to chase that all down
thru valgrind.

   * The most suspicious thing in general is that we're getting a number
of malloc-in-alloc'd block problems.  So many that I actually suspect
it's an artifact of valgrind, or else we'd be crashing more often. 
Often associated with these libraries:
     * Curl
     * libraptor
     * Lrdf
     * libasound

Hope this info is of some use to you.

        Tom Breton (Tehom)



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Rosegarden-devel mailing list
Rosegarden-devel@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to