<?xml version="1.0" encoding="utf-8"?>
<launchpad-bug id="1009085">
  <date_last_updated>2012-06-05 17:27:06.215676+00:00</date_last_updated>
  <api_links>
    <bug_api_link>https://api.launchpad.net/1.0/bugs/1009085</bug_api_link>
    <bug_owner_link>https://api.launchpad.net/1.0/~sbester</bug_owner_link>
    <milestone_link>https://api.launchpad.net/1.0/maria/+milestone/5.5</milestone_link>
    <linked_branches_collection_link>https://api.launchpad.net/1.0/bugs/1009085/linked_branches</linked_branches_collection_link>
    <activity_link>https://api.launchpad.net/1.0/bugs/1009085/activity</activity_link>
  </api_links>
  <bug_web_link>https://bugs.launchpad.net/bugs/1009085</bug_web_link>
  <owner>sbester</owner>
  <assignee>Sergei</assignee>
  <milestone_title>Maria 5.5</milestone_title>
  <duplicate_link></duplicate_link>
  <duplicate_bug_id></duplicate_bug_id>
  <title>Assertion failed: warn_item, file item_cmpfunc.cc, line 3613</title>
  <status>New</status>
  <importance>Medium</importance>
  <created>2012-06-05 16:23:29.881170+00:00</created>
  <description>
<![CDATA[Version: '5.5.24-MariaDB-debug'  socket: ''  port: 3306  MariaDB Server
Assertion failed: warn_item, file item_cmpfunc.cc, line 3613

mysqld.exe!my_sigabrt_handler()[my_thr_init.c:504]
mysqld.exe!raise()[winsig.c:586]
mysqld.exe!abort()[abort.c:74]
mysqld.exe!_wassert()[assert.c:153]
mysqld.exe!cmp_item::get_comparator()[item_cmpfunc.cc:3613]
mysqld.exe!Item_func_in::fix_length_and_dec()[item_cmpfunc.cc:4065]
mysqld.exe!Item_func::fix_fields()[item_func.cc:230]
mysqld.exe!Item_func_in::fix_fields()[item_cmpfunc.cc:3860]
mysqld.exe!setup_fields()[sql_base.cc:8039]
mysqld.exe!mysql_do()[sql_do.cc:31]
mysqld.exe!mysql_execute_command()[sql_parse.cc:2207]
mysqld.exe!mysql_parse()[sql_parse.cc:5731]
mysqld.exe!dispatch_command()[sql_parse.cc:1055]
mysqld.exe!do_command()[sql_parse.cc:794]
mysqld.exe!do_handle_one_connection()[sql_connect.cc:1253]
mysqld.exe!handle_one_connection()[sql_connect.cc:1168]
mysqld.exe!pthread_start()[my_winthread.c:60]
mysqld.exe!_callthreadstartex()[threadex.c:314]
mysqld.exe!_threadstartex()[threadex.c:297]

Repeated on maria-5.5 revno 3426

How to repeat
-----------------
#on debug build, run either of these statements:

set names swe7; do ('' in ('',convert('',time),1));
set names sjis;do ('' in ('',convert('',time),1));]]>  </description>
  <activities>
    <activity datechanged="2012-06-05T16:23:29.881170+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[]]>      </newvalue>
      <whatchanged>bug</whatchanged>
      <person>sbester</person>
      <message>added bug</message>
    </activity>
    <activity datechanged="2012-06-05T17:16:06.411618+00:00">
      <oldvalue>
<![CDATA[Undecided]]>      </oldvalue>
      <newvalue>
<![CDATA[Medium]]>      </newvalue>
      <whatchanged>maria: importance</whatchanged>
      <person>Elena Stepanova</person>
      <message></message>
    </activity>
    <activity datechanged="2012-06-05T17:16:12.104465+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[5.5]]>      </newvalue>
      <whatchanged>maria: milestone</whatchanged>
      <person>Elena Stepanova</person>
      <message></message>
    </activity>
    <activity datechanged="2012-06-05T17:16:23.095629+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[Sergei (sergii)]]>      </newvalue>
      <whatchanged>maria: assignee</whatchanged>
      <person>Elena Stepanova</person>
      <message></message>
    </activity>
    <activity datechanged="2012-06-05T17:18:42.415894+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[assertion]]>      </newvalue>
      <whatchanged>tags</whatchanged>
      <person>Elena Stepanova</person>
      <message></message>
    </activity>
  </activities>
  <comments>
    <comment commentlink="https://api.launchpad.net/1.0/maria/+bug/1009085/comments/1" datecreated="2012-06-05T17:18:35.590903+00:00">
      <person>Elena Stepanova</person>
      <subject>
<![CDATA[Re: Assertion failed: warn_item, file item_cmpfunc.cc, line 3613]]>      </subject>
      <content>
<![CDATA[Reproducible on maria/5.5.
Not reproducible on maria/5.1-5.3 or mysql-5.1-5.6 (maybe because there is no assertion there).
No visible problem apart from warnings "Truncated incorrect time value" on a release build. ]]>      </content>
    </comment>
    <comment commentlink="https://api.launchpad.net/1.0/maria/+bug/1009085/comments/2" datecreated="2012-06-05T17:27:05.693799+00:00">
      <person>Elena Stepanova</person>
      <subject>
<![CDATA[Re: Assertion failed: warn_item, file item_cmpfunc.cc, line 3613]]>      </subject>
      <content>
<![CDATA[Also filed in JIRA as https://mariadb.atlassian.net/browse/MDEV-316]]>      </content>
    </comment>
  </comments>
</launchpad-bug>
