Comment 3 for bug 1274199

Actually with UNIV_DEBUG build it crashes inside galera: (ie. 5.5 with galera3)

(gdb) bt
#0 0x00007ffff637c389 in raise () from /usr/lib/libc.so.6
#1 0x00007ffff637d788 in abort () from /usr/lib/libc.so.6
#2 0x00007ffff5486265 in base_size (buf=<optimized out>, size=4294967295, ver=<optimized out>) at galera/src/key_set.hpp:267
#3 serial_size (size=4294967295, buf=<optimized out>, ver=<optimized out>) at galera/src/key_set.hpp:282
#4 serial_size (size=<optimized out>, buf=<optimized out>) at galera/src/key_set.hpp:208
#5 serial_size (this=<optimized out>) at galera/src/key_set.hpp:212
#6 next_base<galera::KeySet::KeyPart> (this=0x7fff886d9e68) at galerautils/src/gu_rset.hpp:346
#7 next (this=0x7fff886d9e68) at galerautils/src/gu_rset.hpp:420
#8 next (this=0x7fff886d9e68) at galera/src/key_set.hpp:713
#9 galera::Certification::purge_for_trx_v3 (this=0x11ccd18, trx=0x7fff886d9cd0) at galera/src/certification.cpp:120
#10 0x00007ffff5486315 in galera::Certification::purge_for_trx (this=<optimized out>, trx=trx@entry=0x7fff886d9cd0) at galera/src/certification.cpp:147
#11 0x00007ffff548c982 in galera::Certification::PurgeAndDiscard::operator() (this=this@entry=0x7fffe410c630, vt=...) at galera/src/certification.hpp:140
#12 0x00007ffff54863ac in for_each<std::_Rb_tree_iterator<std::pair<long const, galera::TrxHandle*> >, galera::Certification::PurgeAndDiscard> (__f=..., __last=..., __first=...)
    at /usr/include/c++/4.8.2/bits/stl_algo.h:4417
#13 galera::Certification::purge_trxs_upto_ (this=this@entry=0x11ccd18, seqno=seqno@entry=119040, handle_gcache=handle_gcache@entry=true) at galera/src/certification.cpp:937
#14 0x00007ffff548b65d in galera::Certification::append_trx (this=this@entry=0x11ccd18, trx=trx@entry=0x7fff89b82740) at galera/src/certification.cpp:1003
#15 0x00007ffff54b5189 in galera::ReplicatorSMM::cert (this=this@entry=0x11cc480, trx=trx@entry=0x7fff89b82740) at galera/src/replicator_smm.cpp:1667
#16 0x00007ffff54b567b in galera::ReplicatorSMM::pre_commit (this=0x11cc480, trx=0x7fff89b82740, meta=<optimized out>) at galera/src/replicator_smm.cpp:715
#17 0x00007ffff54c51c0 in galera_pre_commit (gh=<optimized out>, conn_id=22, trx_handle=<optimized out>, flags=<optimized out>, meta=0x18f6758) at galera/src/wsrep_provider.cpp:505
#18 0x000000000066474a in wsrep_run_wsrep_commit (thd=thd@entry=0x18f4b20, hton=hton@entry=0x11f5250, all=all@entry=true) at /media/Oort/ncode/percona-xtradb-cluster/trunk-25/sql/wsrep_hton.cc:429
#19 0x0000000000665467 in wsrep_prepare (hton=0x11f5250, thd=0x18f4b20, all=<optimized out>) at /media/Oort/ncode/percona-xtradb-cluster/trunk-25/sql/wsrep_hton.cc:163
#20 0x00000000006bb7cf in ha_commit_trans (thd=thd@entry=0x18f4b20, all=all@entry=true) at /media/Oort/ncode/percona-xtradb-cluster/trunk-25/sql/handler.cc:1384
#21 0x000000000064d6a8 in trans_commit (thd=thd@entry=0x18f4b20) at /media/Oort/ncode/percona-xtradb-cluster/trunk-25/sql/transaction.cc:199
#22 0x00000000005902cc in mysql_execute_command (thd=thd@entry=0x18f4b20) at /media/Oort/ncode/percona-xtradb-cluster/trunk-25/sql/sql_parse.cc:4371
#23 0x0000000000593471 in mysql_parse (thd=thd@entry=0x18f4b20, rawbuf=rawbuf@entry=0x7fff88024cb0 "COMMIT", length=length@entry=6, parser_state=parser_state@entry=0x7fffe410f180)
    at /media/Oort/ncode/percona-xtradb-cluster/trunk-25/sql/sql_parse.cc:6475
#24 0x0000000000593f7e in wsrep_mysql_parse (thd=thd@entry=0x18f4b20, rawbuf=0x7fff88024cb0 "COMMIT", length=6, parser_state=parser_state@entry=0x7fffe410f180)
    at /media/Oort/ncode/percona-xtradb-cluster/trunk-25/sql/sql_parse.cc:6279
#25 0x0000000000595583 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x18f4b20, packet=packet@entry=0x1911621 "COMMIT", packet_length=packet_length@entry=6)
    at /media/Oort/ncode/percona-xtradb-cluster/trunk-25/sql/sql_parse.cc:1241
#26 0x0000000000597850 in do_command (thd=0x18f4b20) at /media/Oort/ncode/percona-xtradb-cluster/trunk-25/sql/sql_parse.cc:870
#27 0x000000000063f839 in do_handle_one_connection (thd_arg=thd_arg@entry=0x18f4b20) at /media/Oort/ncode/percona-xtradb-cluster/trunk-25/sql/sql_connect.cc:1426
#28 0x000000000063fa29 in handle_one_connection (arg=0x18f4b20) at /media/Oort/ncode/percona-xtradb-cluster/trunk-25/sql/sql_connect.cc:1338
#29 0x00007ffff736f0a2 in start_thread () from /usr/lib/libpthread.so.0
#30 0x00007ffff642cd1d in clone () from /usr/lib/libc.so.6