Menu

#11 Segfault in simple queries with join

open
nobody
Executor (4)
6
2009-02-22
2009-02-22
No

Below, simple scenario how to produce segfault.

Welcome to loxim client.

Connected.
Type $help to see the available commands
Authorized.
> begin
void
> create (1 as id, 2 as val) as ob1;
Bag
ref(4)
>
> create (2 as id, 2 as val) as ob1;
Bag
ref(7)
>
> create (1 as id, (ob1 where id = 1) as value) as oo;
Bag
ref(10)
> create (2 as id, (ob1 where id = 1) as value) as oo;
Bag
ref(13)
> create (3 as id, (ob1 where id = 2) as value) as oo;
Bag
ref(16)
> (ob1 as object) join (oo where value.ob1 = object as secondOb)
Bag
Struct
object=>
ref(4)
secondOb=>
ref(10)
Struct
object=>
ref(4)
secondOb=>
ref(13)
Struct
object=>
ref(7)
secondOb=>
ref(16)
> terminate called after throwing an instance of 'Protocol::ReadError'
what(): Loxim error 61(Unknown: No data available)
Aborted

Discussion


Log in to post a comment.

MongoDB Logo MongoDB