[MDEV-14503] Test mf_iocache fails Created: 2017-11-26 Updated: 2020-12-08 Resolved: 2018-03-08 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Tests |
| Affects Version/s: | 10.2.10 |
| Fix Version/s: | 10.1.31, 10.2.13 |
| Type: | Bug | Priority: | Minor |
| Reporter: | TBK | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | packaging, tests | ||
| Environment: |
Alpine Linux: Edge - musl libc & libressl |
||
| Attachments: |
|
| Description |
|
Hi MariaDB team, I am trying to package version 10.2.10 for Alpine Linux. As part of the build process "make test" is executed. Unfortunately the following test fails: I have attached the build definition file (APKBUILD) and the logs. |
| Comments |
| Comment by Louis Dupré Bertoni [ 2018-01-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
I have the same problem trying pass this test after compiling version 10.2.12 in an Alpine Linux Docker container. | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-01-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
Judging from the log, it looks like IO_CACHE cannot write to disk. If that's the case, then MariaDB will probably not work at all, or at least it'll break in many places. I cannot see from the log why it cannot write to disk, though, it'd need some debugging... | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Louis Dupré Bertoni [ 2018-01-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi
| |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-01-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
Yes, I've seen that already. It matches the attached LastTest.log | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Louis Dupré Bertoni [ 2018-01-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
Could that be due to Docker or the overlay file-system? Or even the host machine which is a VM? | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-01-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
I don't know, may be. Could you strace the test? Like
and then attach the strace.log file? | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Louis Dupré Bertoni [ 2018-01-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
I get this: I think this has to do with a Docker security feature and it could be the same reason for what the test fails. | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-01-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
No, I doubt it's the same reason. As for the strace, I've just found this blog: http://johntellsall.blogspot.de/2016/10/tip-use-strace-to-debug-issues-inside.html Looks like --security-opt=seccomp:unconfined is the important part. | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Louis Dupré Bertoni [ 2018-01-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
Ok initially this is what I got with strace:
The missing libraries where in /usr/lib so I symlinked them in /usr/local/lib, I tried telling cmake to look into the right directory without success. https://framabin.org/?6e3247917302d98b#b7zDdtOhh1xJ8/EoRid7AhuO/5JUkjtyRpJbNwlIacI= I don't see any errors anymore, what is the problem? | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-01-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks. For the reference, I'll quote the important part here:
This is how it looks for me, when the test is working:
| |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-01-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
As far as I understand, this part with getpid and open("/dev/urandom") comes from this code:
I suspect that it fails for you (either because of Docker or, more probably, because of musl or something else specific to Alpine) and it makes the whole unit test to fail. What OpenSSL version do you have? This issue might be related to Could you try to build MariaDB with yassl? It's -DWITH_SSL=bundled option to cmake. Even if you don't want to run with yassl, it'll help to understand whether this OpenSSL code above is to blame. | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Louis Dupré Bertoni [ 2018-01-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
I am compiling with LibreSSL and this is apparently the cause of the issue since I just tried with GNUTLS and the test passed. | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2018-01-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
Don't bother. The issue will probably disappear in the next release when But it'd be good if you confirm here whether the issue is fixed or not, after trying the next release... |