FU Logo
  • Startseite
  • Kontakt
  • Impressum
  • Home
  • Listenauswahl
  • Anleitungen

[Seqan-dev] Empty index crashes

<-- thread -->
<-- date -->
  • From: John Reid <j.reid@mail.cryst.bbk.ac.uk>
  • To: SeqAn Development <seqan-dev@lists.fu-berlin.de>
  • Date: Wed, 12 Jun 2013 06:29:11 +0100
  • Reply-to: SeqAn Development <seqan-dev@lists.fu-berlin.de>
  • Subject: [Seqan-dev] Empty index crashes

Hi,

Using an empty Index crashes. Should I really have to check if there is
some text in a StringSet before building the index or is it a bug? This
code:

#include <seqan/index.h>

int main( int argc, char * argv[] ) {
    using namespace seqan;

    typedef StringSet< String< Dna5 > > string_set_t;
    typedef Index< string_set_t > index_t;

    string_set_t seqs;
    index_t index( seqs );
    Iterator<
        index_t,
        TopDown<>
    >::Type iterator( index );

    return 0;
}

gives the following for a debug build:

.... core/include/seqan/sequence/string_base.h:461 Assertion failed :
static_cast<TStringPos>(pos) < static_cast<TStringPos>(length(me)) was:
0 >= 0 (Trying to access an element behind the last one!)
Aborted (core dumped)

I'm using svn version 14052

Regards,
John.



<-- thread -->
<-- date -->
  • seqan-dev - June 2013 - Archives indexes sorted by:
    [ thread ] [ subject ] [ author ] [ date ]
  • Complete archive of the seqan-dev mailing list
  • More info on this list...

Hilfe

  • FAQ
  • Dienstbeschreibung
  • ZEDAT Beratung
  • postmaster@lists.fu-berlin.de

Service-Navigation

  • Startseite
  • Listenauswahl

Einrichtung Mailingliste

  • ZEDAT-Portal
  • Mailinglisten Portal