avl: fix failing "stree->stree_id == 0" assert
commit97e0f3a07f0a55cf6a1b279c33d533d819ece8c6
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 24 Apr 2014 14:13:48 +0000 (24 17:13 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 24 Apr 2014 14:13:48 +0000 (24 17:13 +0300)
treebe5961aa163cf670db0cad98642273559225dfef
parent61e51ec2fa563a1b6ef65718daece06fad1364a8
avl: fix failing "stree->stree_id == 0" assert

If we are operating on a shallow cloned stree then the stree_id need not
be zero.  This only started showing up when I modified
check_missing_break.c to use fewer states which in turn meant that we
could use more shallow clones.

On my test system I had additional tests enabled so I was creating a lot of
real clones and I didn't see the bug.

The fix is to create a new real clone when the stree_id is not zero.

Reported-by: Silvan Jegen <s.jegen@gmail.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
avl.c
avl.h
smatch_slist.c