Re: [ES40-developers] Warning: device structures clobbered
Status: Alpha
Brought to you by:
iamcamiel
From: Hittner, D. T. <dav...@ng...> - 2008-02-18 17:09:26
|
Drat. It did go away after a 'Rebuild'. I guess Visual Studio is a bit too overoptimistic with the 'Build' command. Sorry for wasting time.. > -----Original Message----- > From: es4...@li... > [mailto:es4...@li...] On > Behalf Of Camiel Vanderhoeven > Sent: Monday, February 18, 2008 11:24 AM > To: ES40 Developer Discussions > Subject: Re: [ES40-developers] Warning: device structures clobbered > > Right, that could be it; I have seen weird unexplainable > things on both Linux and Windows (with Visual C++) that went > away after a make clean or a full rebuild. David, could you > try that and let us know? > > Camiel. > > On Feb 18, 2008 5:17 PM, Brian Wheeler <bdw...@in...> wrote: > > I've seen similar things (like segfaults and random crashes) after > > rebuilding part of the binary if the .h files had changed and other > > files that depended on them didn't get rebuilt. > > > > If you're on unix do a "make clean; make depend" and it shouldn't > > happen after that... > > > > Brian > > > > > > On Mon, 2008-02-18 at 10:14 -0600, Hittner, David T. wrote: > > > I had added a pointer variable to the very beginning of > the DEC21143 > > > object, and was trying to figure out why I was getting a crash in > > > some queing code that I had added, which was dereferencing the > > > pointer. > > > > > > It turns out that my pointer variable was getting clobbered > > > somewhere during program execution; however, I had no code (other > > > than the device constructor) which modified the variable. > > > > > > When I moved the pointer variable further down into the DEC21143 > > > structure, the crashes ceased. > > > I didn't try to debug where the pointer was being > overwritten, just > > > the fact that it was being modified. > > > > > > It's possible that the base CPCIDevice stucture is being > rewritten, > > > and is overwriting into the derived device structure. I > don't know > > > if this has any relevance regarding various pci device > errata that > > > we have seen, but I thought I'd let everyone know that this > > > happened. > > > > > > Dave > > > > > > > > > > -------------------------------------------------------------------- > > > ----- This SF.net email is sponsored by: Microsoft Defy all > > > challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Es40-developers mailing list > > > Es4...@li... > > > https://lists.sourceforge.net/lists/listinfo/es40-developers > > > > > > > ---------------------------------------------------------------------- > > --- This SF.net email is sponsored by: Microsoft Defy all > challenges. > > Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Es40-developers mailing list > > Es4...@li... > > https://lists.sourceforge.net/lists/listinfo/es40-developers > > > > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by: Microsoft Defy all > challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Es40-developers mailing list > Es4...@li... > https://lists.sourceforge.net/lists/listinfo/es40-developers > |