[gt-users] range assertion failed
Brent Pedersen
bpederse at gmail.com
Thu Jan 14 00:17:28 CET 2010
On Wed, Jan 13, 2010 at 10:12 AM, Brent Pedersen <bpederse at gmail.com> wrote:
> hi, i have a long-running python script, and after about an hour, it
> err's out with:
>
> Assertion failed: (range->start <= range->end), function
> gt_range_length, file src/core/range.c, line 186.
> This is probably a bug, please report it.
>
> i've added python assertions everywhere to make sure it's only getting
> start < end, all of my gff input validates
> (through gt gff3validator), and i'm not creating any new features. and
> this happens much after i've created a FeatureIndexMemory
> and done add_gff3file(), so it's definitely not on the initial
> creation. and anywhere i'm doing a range query, i've added a test to
> make
> sure the start < stop? could it be an overflow error in ctypes or c--
> (actually, i'll add a check for that now...)
> any other ideas on how i can track this down?
i figured this out. it was underflow, not overflow. i was calling
get_features_in_range()
with a start less than zero. and since it was a u_long, it didn't fail
until the assertion in C, where it
found start < stop.
-b
More information about the gt-users
mailing list