Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Not a Bug
-
10.6
Description
1. When compiled `ENABLE_GCOV` note files are created .gcno.
Those files are used to create data files .gcda.
2. gcda files are obtained when the binary is executed.
In case of mtr (tested for 10.2) ./mtr 1st will create .gcda files across the server repo.
3. gcda files are scanned with dgcov.pl script to generate analysis (look the var/last_changes file.
All above works with 10.2!
With 10.6 gcda files are not created in step 2. <-Problem !
Looking link seems that gcda files are created after the process finishes.
I have debuged in 10.2 mtr 1st to see the creation of gcda files and I can confirm that on line 1096:
if ($line eq 'TESTCASE'){
|
-> my $test= My::Test::read_test($server);
|
following is created (somewhere until that line):
anel@anel:~/mariadb/10.2-worktree-in-source$ find .|grep gcda
|
./libmariadb/mariadb_config/CMakeFiles/mariadb_config.dir/mariadb_config.c.gcda
|
while in 10.6 on the same place no gcda is generated.
Can it have something to do with changes (if any) of handling sigterm as stated in above link too?
wlad some hints please ?
Hmm running manually specific binary mariadb_config
10.2 - created gcda file:
anel@anel:~/mariadb/10.2-worktree-in-source/libmariadb/mariadb_config$ ./mariadb_config --tlsinfo
|
GnuTLS 3.5.18
|
anel@anel:~/mariadb/10.2-worktree-in-source/libmariadb/mariadb_config$ cd ..
|
anel@anel:~/mariadb/10.2-worktree-in-source/libmariadb$ cd ..
|
anel@anel:~/mariadb/10.2-worktree-in-source$ find .|grep gcda
|
./libmariadb/mariadb_config/CMakeFiles/mariadb_config.dir/mariadb_config.c.gcda
|
10.6 - not created gcda file:
anel@anel:~/mariadb/10.6/libmariadb/mariadb_config$ ./mariadb_config --tlsinfo
|
GnuTLS 3.5.18
|
anel@anel:~/mariadb/10.6/libmariadb/mariadb_config$ cd ..
|
anel@anel:~/mariadb/10.6/libmariadb$ cd ..
|
anel@anel:~/mariadb/10.6$ find .|grep gcda
|
anel@anel:~/mariadb/10.6$
|
Means problem is somewhere in the server ?
Attachments
Issue Links
- relates to
-
MDEV-25915 dgcov --generate error
- Closed
-
MDEV-20787 Script dgcov.pl does not work
- Closed