[MDEV-31981] mysql-test-run: *** ERROR: Could not find version of MariaDB Created: 2023-08-22 Updated: 2023-11-27 Resolved: 2023-11-27 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.6.15, 11.2.1 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Critical |
| Reporter: | Dimitris Staratzis | Assignee: | Unassigned |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | None | ||
| Environment: |
MacOS & Linux |
||
| Attachments: |
|
| Description |
|
I am facing this issue when trying to run the tests. mysql-test-run: *** ERROR: Could not find version of MariaDB To reproduce simply do:
Complete output is:
|
| Comments |
| Comment by Dimitris Staratzis [ 2023-08-22 ] | |||||||||||||||||
|
Issue is not present in 10.6.14 | |||||||||||||||||
| Comment by Sergei Golubchik [ 2023-09-04 ] | |||||||||||||||||
|
As far as I can see, there were no changes between 10.6.14 and 10.6.15 that could've affected that. Run perl -d:Trace mysql-test-run.pl it might provide a clue | |||||||||||||||||
| Comment by Dimitris Staratzis [ 2023-09-07 ] | |||||||||||||||||
|
This is the output. The issue is present in 11.2.1 as well. I am aware that no changes were made at the part of the code that throws the error, but something else might be causing it.
Best, | |||||||||||||||||
| Comment by Sergei Golubchik [ 2023-09-08 ] | |||||||||||||||||
|
This is not very helpful. You have an out-of-source build, which is good and recommended practice. But it means that your mysql-test-run-pl is a very small wrapper that invokes the actual mysql-test-run-pl. You can try to change that wrapper to like (untested)
hopefully, it'll cause the actual mtr script to be invoked with tracing. Or you can build in-source, that'll work too. | |||||||||||||||||
| Comment by Dimitris Staratzis [ 2023-09-12 ] | |||||||||||||||||
|
Hi Sergei, | |||||||||||||||||
| Comment by Sergei Golubchik [ 2023-09-14 ] | |||||||||||||||||
|
ok. run ./mysql-test/mysql-test-run.pl --verbose it'll print the command it uses to get the version, something like
see if the path makes sense (I guess, it should be /Users/dimitrisstaratzis/Dev/server/builddir/mysqld), try to run the command manually to see if it works. | |||||||||||||||||
| Comment by Dimitris Staratzis [ 2023-09-25 ] | |||||||||||||||||
|
I have attached the verbose output | |||||||||||||||||
| Comment by Sergei Golubchik [ 2023-09-26 ] | |||||||||||||||||
|
And what if you run this command yourself, manually? Like
does it print any warnings or errors? or anything at all? From the /Users/dimitrisstaratzis/Documents/server/builddir/mysql-test directory, like mtr is doing it | |||||||||||||||||
| Comment by Dimitris Staratzis [ 2023-10-13 ] | |||||||||||||||||
|
it prints: zsh: segmentation fault /Users/dimitrisstaratzis/Documents/server/builddir/sql/mariadbd --no-defaults | |||||||||||||||||
| Comment by Sergei Golubchik [ 2023-10-13 ] | |||||||||||||||||
|
Ah, good. We're getting somewhere. It could be |