OQGRAPH errors with MySQL 5.1.42

With MySQL 5.1.42 and the lp:oqgraph checkout, I get the following problems:

1. With binary logging enabled, I get this message when I try to insert:
ERROR 1598 (HY000): Binary logging not possible. Message: Statement cannot be logged to the binary log in row-based nor statement-based format.

2. If MySQL is restarted and then an OQGRAPH table is accessed, INSERT or SELECT tried, without dropping and recreating, MySQL will crash.
100114 15:27:11 - mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail.

key_buffer_size=16777216
read_buffer_size=262144
max_used_connections=1
max_threads=151
threads_connected=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 133885 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
thd: 0x19a3550
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0x7ffc6937b0f0 thread_stack 0x40000
/usr/sbin/mysqld(my_print_stacktrace+0x24) [0x896544]
/usr/sbin/mysqld(handle_segfault+0x35a) [0x5d82da]
/lib/libpthread.so.0 [0x7ffc78fcb930]
/usr/sbin/mysqld(my_hash_sort_bin+0x1d) [0x8b3b4d]
/usr/sbin/mysqld [0x88c404]
/usr/sbin/mysqld(my_hash_first+0xc1) [0x88c651]
/usr/sbin/mysqld(my_hash_search+0xe) [0x88c6ce]
/usr/lib64/mysql/plugin/oqgraph_engine.so [0x7ffc75c16a1f]
/usr/lib64/mysql/plugin/oqgraph_engine.so(ha_oqgraph::open(char const*, int, unsigned int)+0x24) [0x7ffc75c18834]
/usr/sbin/mysqld(handler::ha_open(st_table*, char const*, int, int)+0x3f) [0x6a8cdf]
/usr/sbin/mysqld(open_table_from_share(THD*, st_table_share*, char const*, unsigned int, unsigned int, unsigned int, st_table*, bool)+0x559) [0x6213c9]
/usr/sbin/mysqld [0x61a353]
/usr/sbin/mysqld(open_table(THD*, TABLE_LIST*, st_mem_root*, bool*, unsigned int)+0x6e7) [0x61c677]
/usr/sbin/mysqld(open_tables(THD*, TABLE_LIST**, unsigned int*, unsigned int)+0x53b) [0x61d16b]
/usr/sbin/mysqld(open_and_lock_tables_derived(THD*, TABLE_LIST*, bool)+0x62) [0x61d3b2]
/usr/sbin/mysqld [0x5e1c5f]
/usr/sbin/mysqld(mysql_execute_command(THD*)+0x590) [0x5e2870]
/usr/sbin/mysqld(mysql_parse(THD*, char const*, unsigned int, char const**)+0x20b) [0x5e7b5b]
/usr/sbin/mysqld(dispatch_command(enum_server_command, THD*, char*, unsigned int)+0xb56) [0x5e99e6]
/usr/sbin/mysqld(do_command(THD*)+0xe6) [0x5ea2c6]
/usr/sbin/mysqld(handle_one_connection+0x21e) [0x5ddfbe]
/lib/libpthread.so.0 [0x7ffc78fc3fd7]
/lib/libc.so.6(clone+0x6d) [0x7ffc77d2a1fd]
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort...
thd->query at 0x19fa1f0 = select linkid,weight,seq from dist_tree where origid=17 and latch=2 and weight=7
thd->thread_id=2
thd->killed=NOT_KILLED
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.

Compiling MySQL/MariaDB 5.1 and OQGRAPH

Hi Brian,

Hmm, we haven't tried with stock MySQL 5.1 recently, but OQGRAPH is now in mainline MariaDB 5.1, which builds and passes the tests ok provided you have a decent version of the Boost libraries installed.
The fixups from there aren't yet back in the oqgraph trunk, so it might not be a complicated problem at all.

If you could please file bugs at https://code.launchpad.net/oqgraph though, that'd be great. Then they're visible, people can subscribe/comment and pick up an issue, and we can track and mark the resolution state.
Thanks

Cheers,
Arjen.