Hello, 

When upgrading from 10.1.16 to 10.1.17 on Debian Jessie i've received the following error:

aptitude upgrade
<snip>
dpkg: error processing package mariadb-server-10.1 (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.19-18+deb8u4) ...
Errors were encountered while processing:
 mariadb-server-10.1
E: Sub-process /usr/bin/dpkg returned an error code (1)
Failed to perform requested operation on package.  Trying to recover:
Setting up mariadb-server-10.1 (10.1.17+maria-1~jessie) ...
dpkg: error processing package mariadb-server-10.1 (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 mariadb-server-10.1
                                         
Current status: 0 updates [-14]
<snip>

/var/log/syslog
mysqld_safe[44689]: ERROR: 1136  Column count doesn't match value count at row 1

Was able to fix by running.
/usr/sbin/mysqld --skip-grant --general-log &

And running the upgrade again.

See attached full logs.