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
          Capture.PNG
          39 kB
        2. libmariadb.dll
          797 kB
        3. libmariadb.pdb
          7.64 MB
        4. maria.dmp
          74 kB
        5. maria2.sql
          180 kB
        6. maria220316.dmp
          65 kB

        Activity

          ozgilat Oz Gilat created issue -
          ozgilat Oz Gilat made changes -
          Field Original Value New Value
          Attachment Capture.PNG [ 41944 ]
          ozgilat Oz Gilat made changes -
          Attachment maria.dmp [ 41945 ]
          ozgilat Oz Gilat made changes -
          Attachment maria220316.dmp [ 41957 ]
          ozgilat Oz Gilat made changes -
          Attachment libmariadb.dll [ 41958 ]
          ozgilat Oz Gilat made changes -
          Attachment libmariadb.pdb [ 41959 ]
          ozgilat Oz Gilat made changes -
          Attachment maria2.sql [ 41960 ]
          julien.fritsch Julien Fritsch made changes -
          Workflow MariaDB connectors [ 74572 ] MariaDB v4 [ 160787 ]
          georg Georg Richter made changes -
          Component/s Prepared Statements [ 16820 ]
          Fix Version/s 3.1.0 [ 22519 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]

          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.