Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-3039

LP:363181 - main.mysql_client_test failing on Mac OSX

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      main.mysql_client_test is failing on Mac OSX (currently the only non-'big' bug to fail for me).

      Failure output is attached in a separate .txt file (it is verbose), but here is a snippet:
      main.mysql_client_test [ fail ] Found warnings/errors in server log file!
      Test ended at 2009-04-17 17:00:54
      file_name line
      /Users/pcrews/usr/local/bin/data1/maria/maria_exp/maria/mysql-test/var/mysqld.1/mysqld.err 33 bytes at 0x1507648, allocated at line 630 in 'time.cc'
      /Users/pcrews/usr/local/bin/data1/maria/maria_exp/maria/mysql-test/var/mysqld.1/mysqld.err 4 bytes at 0x15046d8, allocated at line 2418 in 'sql_plugin.cc'
      ...
      it continues for quite a bit.

      I am also attaching a trace file from the test run.
      Both files are from a run on Mac OSX 10.5 built with BUILD/compile-pentium-debug-max

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            knielsen Kristian Nielsen added a comment -

            Re: main.mysql_client_test failing on Mac OSX
            Thanks for making this additional information available!

            There seems to be something really wrong with the mysql_client_test.trace file,
            which would be quite useful to track down what the problem really is.

            At the point of the test "test_mem_overun", the file contains the trace of the
            first mysql_query() call. But then the rest of the trace for test_mem_overun
            is missing, as is the trace for the following test. Instead, the test
            continues with what is clearly the last part of the trace for the test
            "test_free_result". And so on, with the trace containing only fragments of
            what would be expected from a full trace. The trace ends abruptly in the
            middle of the first mysql_query() call in test "test_wl4166_2".

            Can you maybe re-run the test, this time making sure there is enough disk
            space and no use of ramdisk?

            Show
            knielsen Kristian Nielsen added a comment - Re: main.mysql_client_test failing on Mac OSX Thanks for making this additional information available! There seems to be something really wrong with the mysql_client_test.trace file, which would be quite useful to track down what the problem really is. At the point of the test "test_mem_overun", the file contains the trace of the first mysql_query() call. But then the rest of the trace for test_mem_overun is missing, as is the trace for the following test. Instead, the test continues with what is clearly the last part of the trace for the test "test_free_result". And so on, with the trace containing only fragments of what would be expected from a full trace. The trace ends abruptly in the middle of the first mysql_query() call in test "test_wl4166_2". Can you maybe re-run the test, this time making sure there is enough disk space and no use of ramdisk?
            Hide
            patrickcrews Patrick Crews added a comment -

            Re: [Bug 363181] Re: main.mysql_client_test failing on Mac OSX
            Kristian,
            No problems and my apologies for the incomplete .trace files. I gathered
            them via ./mysql-test-run.pl --force --repeat=2 mysql_client_test and didn't
            do anything beyond packaging them.

            However, this seems to now be a moot point. After refreshing my Maria tree,
            the failure has gone away and I cannot repeat it any longer. I have tried
            multiple runs of the test itself as well as running the full suite without a
            failure.

            The changes I pulled were to:
            M libmysql/libmysql.c
            M tests/mysql_client_test.c

            Please let me know if I can provide any additional information to get this
            bug closed out.

            On Tue, Apr 21, 2009 at 8:53 AM, Kristian Nielsen
            <knielsen@knielsen-hq.org>wrote:

            > Thanks for making this additional information available!
            >
            > There seems to be something really wrong with the mysql_client_test.trace
            > file,
            > which would be quite useful to track down what the problem really is.
            >
            > At the point of the test "test_mem_overun", the file contains the trace of
            > the
            > first mysql_query() call. But then the rest of the trace for
            > test_mem_overun
            > is missing, as is the trace for the following test. Instead, the test
            > continues with what is clearly the last part of the trace for the test
            > "test_free_result". And so on, with the trace containing only fragments of
            > what would be expected from a full trace. The trace ends abruptly in the
            > middle of the first mysql_query() call in test "test_wl4166_2".
            >
            > Can you maybe re-run the test, this time making sure there is enough disk
            > space and no use of ramdisk?
            >
            > –
            > main.mysql_client_test failing on Mac OSX
            > https://bugs.launchpad.net/bugs/363181
            > You received this bug notification because you are a direct subscriber
            > of the bug.
            >
            > Status in Maria: New
            >
            > Bug description:
            > main.mysql_client_test is failing on Mac OSX (currently the only non-'big'
            > bug to fail for me).
            >
            > Failure output is attached in a separate .txt file (it is verbose), but
            > here is a snippet:
            > main.mysql_client_test [ fail ] Found warnings/errors in
            > server log file!
            > Test ended at 2009-04-17 17:00:54
            > file_name line
            > /Users/pcrews/usr/local/bin/data1/maria/maria_exp/maria/mysql-test/var/mysqld.1/mysqld.err
            > 33 bytes at 0x1507648, allocated at line 630 in 'time.cc'
            > /Users/pcrews/usr/local/bin/data1/maria/maria_exp/maria/mysql-test/var/mysqld.1/mysqld.err
            > 4 bytes at 0x15046d8, allocated at line 2418 in
            > 'sql_plugin.cc'
            > ...
            > it continues for quite a bit.
            >
            > I am also attaching a trace file from the test run.
            > Both files are from a run on Mac OSX 10.5 built with
            > BUILD/compile-pentium-debug-max
            >

            Show
            patrickcrews Patrick Crews added a comment - Re: [Bug 363181] Re: main.mysql_client_test failing on Mac OSX Kristian, No problems and my apologies for the incomplete .trace files. I gathered them via ./mysql-test-run.pl --force --repeat=2 mysql_client_test and didn't do anything beyond packaging them. However, this seems to now be a moot point. After refreshing my Maria tree, the failure has gone away and I cannot repeat it any longer. I have tried multiple runs of the test itself as well as running the full suite without a failure. The changes I pulled were to: M libmysql/libmysql.c M tests/mysql_client_test.c Please let me know if I can provide any additional information to get this bug closed out. On Tue, Apr 21, 2009 at 8:53 AM, Kristian Nielsen <knielsen@knielsen-hq.org>wrote: > Thanks for making this additional information available! > > There seems to be something really wrong with the mysql_client_test.trace > file, > which would be quite useful to track down what the problem really is. > > At the point of the test "test_mem_overun", the file contains the trace of > the > first mysql_query() call. But then the rest of the trace for > test_mem_overun > is missing, as is the trace for the following test. Instead, the test > continues with what is clearly the last part of the trace for the test > "test_free_result". And so on, with the trace containing only fragments of > what would be expected from a full trace. The trace ends abruptly in the > middle of the first mysql_query() call in test "test_wl4166_2". > > Can you maybe re-run the test, this time making sure there is enough disk > space and no use of ramdisk? > > – > main.mysql_client_test failing on Mac OSX > https://bugs.launchpad.net/bugs/363181 > You received this bug notification because you are a direct subscriber > of the bug. > > Status in Maria: New > > Bug description: > main.mysql_client_test is failing on Mac OSX (currently the only non-'big' > bug to fail for me). > > Failure output is attached in a separate .txt file (it is verbose), but > here is a snippet: > main.mysql_client_test [ fail ] Found warnings/errors in > server log file! > Test ended at 2009-04-17 17:00:54 > file_name line > /Users/pcrews/usr/local/bin/data1/maria/maria_exp/maria/mysql-test/var/mysqld.1/mysqld.err > 33 bytes at 0x1507648, allocated at line 630 in 'time.cc' > /Users/pcrews/usr/local/bin/data1/maria/maria_exp/maria/mysql-test/var/mysqld.1/mysqld.err > 4 bytes at 0x15046d8, allocated at line 2418 in > 'sql_plugin.cc' > ... > it continues for quite a bit. > > I am also attaching a trace file from the test run. > Both files are from a run on Mac OSX 10.5 built with > BUILD/compile-pentium-debug-max >
            Hide
            knielsen Kristian Nielsen added a comment -

            Re: [Bug 363181] Re: main.mysql_client_test failing on Mac OSX
            patrick_crews <gleebix@gmail.com> writes:

            > No problems and my apologies for the incomplete .trace files. I gathered
            > them via ./mysql-test-run.pl --force --repeat=2 mysql_client_test and didn't
            > do anything beyond packaging them.

            No need to apologise. In fact I am completely baffled as to how the trace
            files could be incomplete in that way. I thought about disk full, but the
            trace files contains traces from two runs (due to --repeat=2 I assume), and
            they are identical, including how they are incomplete. It just doesn't make
            sense...

            > However, this seems to now be a moot point. After refreshing my Maria tree,
            > the failure has gone away and I cannot repeat it any longer. I have tried
            > multiple runs of the test itself as well as running the full suite without a
            > failure.
            >
            > The changes I pulled were to:
            > M libmysql/libmysql.c
            > M tests/mysql_client_test.c

            Right. I fixed some minor problems with the dbug, which were visible in the
            trace file.

            Hm. I guess it is remotely possible that this actually fixes the problem. I
            somewhat doubt it though.

            The problem is that this failure seems extremely fragile, I used to be able to
            repeat it as well, but then it disappeared.

            One thing you can try is to run the test in a tight loop:

            (for i in `seq 1 100`; do echo XXX $i XXX; ./mysql-test-run.pl mysql_client_test || exit 1; done)

            This will run the test up to 100 times until it fails. If you cannot repeat
            it this way, we will have to declare the problem fixed by the above changes
            until someone else manage to repeat it.

            Thanks for the effort,

            • Kristian.
            Show
            knielsen Kristian Nielsen added a comment - Re: [Bug 363181] Re: main.mysql_client_test failing on Mac OSX patrick_crews <gleebix@gmail.com> writes: > No problems and my apologies for the incomplete .trace files. I gathered > them via ./mysql-test-run.pl --force --repeat=2 mysql_client_test and didn't > do anything beyond packaging them. No need to apologise. In fact I am completely baffled as to how the trace files could be incomplete in that way. I thought about disk full, but the trace files contains traces from two runs (due to --repeat=2 I assume), and they are identical, including how they are incomplete. It just doesn't make sense... > However, this seems to now be a moot point. After refreshing my Maria tree, > the failure has gone away and I cannot repeat it any longer. I have tried > multiple runs of the test itself as well as running the full suite without a > failure. > > The changes I pulled were to: > M libmysql/libmysql.c > M tests/mysql_client_test.c Right. I fixed some minor problems with the dbug, which were visible in the trace file. Hm. I guess it is remotely possible that this actually fixes the problem. I somewhat doubt it though. The problem is that this failure seems extremely fragile, I used to be able to repeat it as well, but then it disappeared. One thing you can try is to run the test in a tight loop: (for i in `seq 1 100`; do echo XXX $i XXX; ./mysql-test-run.pl mysql_client_test || exit 1; done) This will run the test up to 100 times until it fails. If you cannot repeat it this way, we will have to declare the problem fixed by the above changes until someone else manage to repeat it. Thanks for the effort, Kristian.
            Hide
            knielsen Kristian Nielsen added a comment -

            Re: main.mysql_client_test failing on Mac OSX
            I can confirm this bug exists and is not specific to Mac OSX.

            I also see it from time to time on Ubuntu Hardy x86_64.

            Unfortunately the problem is very intermittent and hard to reproduce. It seems I only

            see it occasionally when running the complete test suite under --parallel=3

            Show
            knielsen Kristian Nielsen added a comment - Re: main.mysql_client_test failing on Mac OSX I can confirm this bug exists and is not specific to Mac OSX. I also see it from time to time on Ubuntu Hardy x86_64. Unfortunately the problem is very intermittent and hard to reproduce. It seems I only see it occasionally when running the complete test suite under --parallel=3
            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 363181

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 363181

              People

              • Assignee:
                Unassigned
                Reporter:
                pcrews patrick crews
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: