Couple of bugs

Steve Grubb sgrubb at redhat.com
Wed Feb 25 17:52:54 CET 2009


On Wednesday 25 February 2009 10:37:36 am Steve Grubb wrote:
> Hmm....if you run "strings" on the resulting program and grep for "ev", you
> will see that each of these are stored as text in the program and the
> assert is not executed:
>
> ("libev: watcher has invalid priority", (((W)w)->priority - -2) >= 0 &&
> (((W)w)->priority - -2) < (+2 - -2 + 1))
> ("libev: pending watcher not on pending queue", ((loop)->pendings)
> [(((W)w)->priority - -2)][w->pending - 1].w == w)
> ("libev: active index mismatch in heap", ((W)((heap [i]).w))->active == i)
> ("libev: heap at cache mismatch", (heap [i]).at == ((WT)((heap
> [i]).w))->at)
>
> Was that intentional?

My bad...these do get executed. But I am tempted to define NDEBUG, though, to 
remove the extraneous text. So, I guess the comment about function calls in 
the assert expressions would be an issue.

Thanks,
-Steve



More information about the libev mailing list