Re: [ES40-developers] Warning: device structures clobbered
Status: Alpha
Brought to you by:
iamcamiel
From: Brian W. <bdw...@in...> - 2008-02-18 16:17:13
|
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 |