This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Anyone got a tree or RTL corruption bug?




Zack Weinberg wrote:
> I'm trying to make debug_tree/rtx more robust in the face of corrupt
> tree/RTL structure.  I finally have a sensible way to check whether
> dereferencing random pointers will cause a segmentation fault.  But
> now I can't find any corruption bugs to test them on.  Can anyone
> suggest something?

Use a debugger to put whatever bad data you want into whatever field
you want.  Also use a debugger to call these functions with the wrong
kind of argument (I've done that a few times lately by accident).

Janis


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]