[Xorp-hackers] ../ospf/vertex.hh:31 operator< ] Assertion (get_version() == other.get_version()) failed

Atanu Ghosh atanu at ICSI.Berkeley.EDU
Thu May 29 15:17:49 PDT 2008


Hi,

The _version field in the Vertex class is an enumerated type that can have
the values OspfTypes::V2 or OspfTypes::V3. The assertion is telling you
that you have mixed OSPFv2 with OSPFv3. Use set_version to set the type
for all Vertex objects.

    Atanu.

Selçuk Cevher <cevhers at gmail.com> wrote:

> 
>    Hi All,
> 
> 
> 
>    I have a problem regarding ospf/vertex.hh which I use within the main
>    file of a process I created in xorp.
> 
> 
> 
>    With pname be the process name, the problem appears when I call a
>    member function of xrl_pname_node class (inherited from target base
>    class) right after instantiating an object of xrl_pname_node and right
>    before the while loop (eventloop). Before making this call, I
>    also define some variables using Vertex and Node data structures.
> 
> 
> 
>    In this case, when I run rtrmgr, I get the error message saying that :
> 
> 
> 
>    [ 2008/05/29 08:00:04  FATAL xorp_pname:12240 pname
>    ../ospf/vertex.hh:31 operator< ] Assertion (get_version() ==
>    other.get_version()) failed
>    [ 2008/05/29 08:00:04  ERROR xorp_rtrmgr:12239 RTRMGR
>    module_manager.cc:757 done_cb ] Command
>    "/home/scevher/xorp.deneme/pname/xorp_pname": terminated with signal
>    6.
>    [ 2008/05/29 08:00:04  INFO xorp_rtrmgr:12239 RTRMGR
>    module_manager.cc:294 module_exited ] Module abnormally killed: pname
> 
>    Apparently, it did not like the overloaded operator < defined in
>    Vertex class (I do not use this overloaded operator explicitly by the
>    way).
> 
> 
> 
>    Any idea how to fix this ?
> 
> 
> 
>    Thanks.
> 
>    Selcuk
> _______________________________________________
> Xorp-hackers mailing list
> Xorp-hackers at icir.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers



More information about the Xorp-hackers mailing list