action: add NULL dereference assertion
authorBrian Norris <banorris@uci.edu>
Wed, 10 Oct 2012 18:43:52 +0000 (11:43 -0700)
committerBrian Norris <banorris@uci.edu>
Wed, 10 Oct 2012 18:43:52 +0000 (11:43 -0700)
commit1645d16c883f765168a26892f07d003963d5b68c
tree37e81624ef7864be942ecdd1575b9b695538ba7d
parent26d1dd1430da05b8da4b1250b299a620ecd52102
action: add NULL dereference assertion

In user programs, we might find a NULL atomic object being dereferenced,
causing strange model-checker behavior which will track memory address 0
as an atomic object. This may result in apparently-uninitialized
variables, for instance.

So, just nip these in the bud with an assertion. Perhaps these things
can transformed into some more informative type of warning in the
future, where user-visible bugs might print helpful messages.
action.cc