[MDEV-25914] gcda data files are not created when invoking the test for GCOV builds Created: 2021-06-14 Updated: 2021-06-15 Resolved: 2021-06-15 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients |
| Affects Version/s: | 10.6 |
| Fix Version/s: | 10.6.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Anel Husakovic | Assignee: | Anel Husakovic |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | dgcov | ||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Description |
|
1. When compiled `ENABLE_GCOV` note files are created .gcno. With 10.6 gcda files are not created in step 2. <-Problem ! Looking link seems that gcda files are created after the process finishes.
following is created (somewhere until that line):
while in 10.6 on the same place no gcda is generated. Hmm running manually specific binary mariadb_config
10.6 - not created gcda file:
Means problem is somewhere in the server ? |
| Comments |
| Comment by Anel Husakovic [ 2021-06-14 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The last patch 3b8d4180d5f7 introduced doesn't have any influence. By reverting it still gcda files are not created. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Anel Husakovic [ 2021-06-15 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Tested on 10.2-10.6 only in 10.6 this problem exists. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Anel Husakovic [ 2021-06-15 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Seems like with this command gcda files are not created:
while with this command they are:
and we can validate:
Seems that problem is when with {-DWITH_SSL=bundled} in 10.6 only. It is built without gcda generated (not sure why GnuTLS 3.5.18 ?) Here is some workaround: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vladislav Vaintroub [ 2021-06-15 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
@Anel, I do not even compile on Linux every day. I never used gcov. If you want to ask how to Debug compile flags, you can add some of the Ultimately, there is a https://cmake.org/cmake/help/latest/variable/CMAKE_EXPORT_COMPILE_COMMANDS.html option, so that you can come up with evidence that something is different if you use GnuTLS, and if there is a real evidence, then maybe we can use some more advanced techniques, like tracing cmake to find out the bad guy. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Anel Husakovic [ 2021-06-15 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Started working | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Anel Husakovic [ 2021-06-15 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
10.6 flags:
10.2 flags
diff between 10.6 and 10.2
compile_commands.json obtained from CMAKE_EXPORT_COMPILE_COMMANDS for 10.6 in the attachment All gcda files are created in 10.6 - seems this is not a bug. |