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

gcda data files are not created when invoking the test for GCOV builds

    XMLWordPrintable

Details

    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

          Activity

            People

              anel Anel Husakovic
              anel Anel Husakovic
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.