[gt-users] range assertion failed
Sascha Steinbiss
steinbiss at zbh.uni-hamburg.de
Thu Jan 14 08:46:05 CET 2010
On 01/14/2010 12:17 AM, Brent Pedersen wrote:
[...]
>> Assertion failed: (range->start <= range->end), function
>> gt_range_length, file src/core/range.c, line 186.
[...]
> 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.
Ah, okay. So I guesss it couldn't hurt to check for negative positions
in ranges too. I will look into how I could modify the code in a way
that an exception is thrown when a Range contains a negative position.
> -b
Thanks for the report,
Sascha
P.S.: Strange that the sending to the mailing list seemed to delay my
last mail... it was posted well before your reply.
--
Sascha Steinbiss
Center for Bioinformatics
University of Hamburg
Bundesstr. 43
20146 Hamburg
Germany
Email: steinbiss at zbh.uni-hamburg.de
URL: http://www.zbh.uni-hamburg.de/steinbiss
Phone: +49 (40) 42838 7322
FAX: +49 (40) 42838 7312
More information about the gt-users
mailing list