Triggers cause server crash

Description

When a table has the following, the galera cluster crashes.

BEFORE INSERT trigger
BEFORE UPDATE trigger

An Update statement within an event can cause the fail condition.
An event which calls a procedure can cause the fail condition.

Our reproduction steps were:

apt-get upgrade from mariadb-server-10.1.9 to mariadb-server-10.1.10
create database
Create table
add SMALLINT flag field
create BEFORE INSERT trigger set flag=1;
create BEFORE UPDATE trigger set flag=1;
insert row (completed)
insert row (fail, primary server crashes)

Restart service
attempt to update/insert
crash

PRODUCTION OCCURENCE (original issue which lead to try reproducing):
Call procedure
UPDATE statement in procedure crashed server.
copy update statement, relaunch server, login run statement
crash

Environment

ubuntu 14.04.3 LTS "Trusty"
ubuntu 15.10 "Wiley"
installed/updated from apt-get

Status

Assignee

Unassigned

Reporter

Cole Busby

Labels

None

External issue ID

None

External issue ID

None

Components

Affects versions

10.1.10
10.0.23-galera

Priority

Critical