public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* jek-cygwin1@kleckner.net (bounds checking)
@ 2004-12-13  1:18 Bill Priest
  2004-12-17 20:45 ` gcc bounds checking, valgrind, purify Jim Kleckner
  0 siblings, 1 reply; 2+ messages in thread
From: Bill Priest @ 2004-12-13  1:18 UTC (permalink / raw)
  To: cygwin; +Cc: jek-cygwin1

Jim & All,
   I've successfully built and used cygwin 3.3.1 with
Herman Ten Brugge's bounds checking patches.  I've
submitted the trivial changes required for cygwin back
to Herman.
   You can google for Herman Ten Brugge and find a
reference to the changes I made to get them to work
w/ cygwin.
   Of course it only works w/ 'C'; but I used it to
track down array indexing problems and pointer
problems.

FYI,

Bill



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* gcc bounds checking, valgrind, purify
  2004-12-13  1:18 jek-cygwin1@kleckner.net (bounds checking) Bill Priest
@ 2004-12-17 20:45 ` Jim Kleckner
  0 siblings, 0 replies; 2+ messages in thread
From: Jim Kleckner @ 2004-12-17 20:45 UTC (permalink / raw)
  To: cygwin; +Cc: Bill Priest


Bill Priest wrote:

>Jim & All,
>   I've successfully built and used cygwin 3.3.1 with
>Herman Ten Brugge's bounds checking patches.  I've
>submitted the trivial changes required for cygwin back
>to Herman.
>   You can google for Herman Ten Brugge and find a
>reference to the changes I made to get them to work
>w/ cygwin.
>   Of course it only works w/ 'C'; but I used it to
>track down array indexing problems and pointer
>problems.
>  
>
Very interesting.  Checking out those links, it appears
that these patches are very much like a static version
of Valgrind.  Valgrind works dynamically with an x86
code rewriter that appears to be language independent
and seems to implement a lot of the difficult functionality
that the original Purify implemented.  Valgrind ought
to work with C++ where gcc-bounds-checking as you
say is only 'C' (though there are some traces in

These patches have been around for 10 years (!).
This kind of test is so valuable, I'm surprised that
they have never been integrated into gcc.  It seems
like it isn't such a big risk to include them and
config them to be off by default.  This would
hugely improve the maintainability and availability
of the patches.

Did your cygwin patches get into bounds checking
patch for the 3.4.2-100 version of 7-Sep-2004 ?
It does look so from the source.

Would it be reasonable integrate this patch into
the cygwin GCC?  I expect back the answer no,
because GCC needs to be synced with the upstream.
But this stuff would be so much more valuable if
(in order of accessibility):
 - It was just part of GCC as an option
 - It could be selectively installed as a package alternative
 - The patches were integrated so that one could download
    and recompile.

There was a discussion here:
  http://www.cygwin.com/ml/cygwin/2003-11/msg00320.html
about the value of recompiling sort of a "super debug"
version of the cygwin dll and libraries with gcc-bounds-checking
that ran slowly but did a lot of checking.  That would indeed
be valuable. 

Jim


PS:  Please don't put my email address in the subject line.
Spam harvesters, you know.


PPS:  Convenience links for fellow travelers:

Good article giving the context and pointers:
 http://www.network-theory.co.uk/articles/boundschecking.html

GCC extensions page:
 http://gcc.gnu.org/extensions.html

Herman Ten Brugge pages with source:
 http://web.inter.nl.net/hcc/Haj.Ten.Brugge/

Alternate (main?) source of the patches:
 http://sourceforge.net/projects/boundschecking/

Valgrind home page:
 http://valgrind.kde.org/



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-12-17 20:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-13  1:18 jek-cygwin1@kleckner.net (bounds checking) Bill Priest
2004-12-17 20:45 ` gcc bounds checking, valgrind, purify Jim Kleckner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).