Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-167

Crash on mthd_stmt_read_all_rows when SELECT has lots of field

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 3.1.0
    • Prepared Statements
    • None
    • Windows, using QT 5 plugin

    Description

      I have a rather long SELECT query that retrieves data from multiple tables - a query that crashes when it is executed.

      I've attached the windows minidump. Plus some analysis data from BoundsChecker,

      backtrace:
      1 libmariadb.dll!net_field_length(unsigned char * * packet=0x0018e128)
      *2 libmariadb.dll!mthd_stmt_read_all_rows(st_mysql_stmt * stmt=0x032c7ce8)
      3 libmariadb.dll!mysql_stmt_store_result(st_mysql_stmt * stmt=0x032c7ce8)
      4 qsqlmysql.dll!QMYSQLResult::exec()

      Easily reproducible - please let me know what you need more.

      Attachments

        1. Capture.PNG
          39 kB
          Oz Gilat
        2. libmariadb.dll
          797 kB
          Oz Gilat
        3. libmariadb.pdb
          7.64 MB
          Oz Gilat
        4. maria.dmp
          74 kB
          Oz Gilat
        5. maria2.sql
          180 kB
          Oz Gilat
        6. maria220316.dmp
          65 kB
          Oz Gilat

        Activity

          ozgilat Oz Gilat added a comment - - edited

          Also verified it's version libmariadb connector C 2.2.2.
          Attached new dump maria220316.dmp libmariadb.dll and dll and pdb used (received from regular installation from your website..)

          also reproduced on "Server version: 5.6.16 MySQL Community Server (GPL)" running on windows 10

          ozgilat Oz Gilat added a comment - - edited Also verified it's version libmariadb connector C 2.2.2. Attached new dump maria220316.dmp libmariadb.dll and dll and pdb used (received from regular installation from your website..) also reproduced on "Server version: 5.6.16 MySQL Community Server (GPL)" running on windows 10
          ozgilat Oz Gilat added a comment -

          also attached latests dump to match the latest crash files I've added maria2.sql

          ozgilat Oz Gilat added a comment - also attached latests dump to match the latest crash files I've added maria2.sql
          ozgilat Oz Gilat added a comment -

          Hey Georg ,
          do you need anything else from me?

          ozgilat Oz Gilat added a comment - Hey Georg , do you need anything else from me?
          georg Georg Richter added a comment -

          Hi Oz,

          would it be possible to provide
          a) a Zend server version which uses libmariadb.dll (with some instructions how to repeat the bug)
          or b)
          a wireshark dump

          Thanks !

          georg Georg Richter added a comment - Hi Oz, would it be possible to provide a) a Zend server version which uses libmariadb.dll (with some instructions how to repeat the bug) or b) a wireshark dump Thanks !
          ozgilat Oz Gilat added a comment -

          ok - I'll work on preparing you a machine with a reproduction

          ozgilat Oz Gilat added a comment - ok - I'll work on preparing you a machine with a reproduction

          People

            georg Georg Richter
            ozgilat Oz Gilat
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.