[ES40-developers] Warning: device structures clobbered
Status: Alpha
Brought to you by:
iamcamiel
From: Hittner, D. T. <dav...@ng...> - 2008-02-18 16:14:42
|
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 |