Task #91497 - fixed.err
back to task #91497download
Error: GCC_ANALYZER_WARNING (CWE-401):
tdb-1.4.14/common/mutex.c:807:23: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
tdb-1.4.14/test/run-mutex-die.c:138:13: enter_function: entry to ‘prep_db’
tdb-1.4.14/test/run-mutex-die.c:150:15: call_function: calling ‘tdb_open_ex’ from ‘prep_db’
# 805| * exit.
# 806| */
# 807|-> pid = waitpid(*child_pid, NULL, options);
# 808| if (pid == -1) {
# 809| if (errno == EINTR) {
Error: GCC_ANALYZER_WARNING (CWE-401):
tdb-1.4.14/common/mutex.c:807:23: warning[-Wanalyzer-malloc-leak]: leak of ‘tdb’
tdb-1.4.14/test/run-mutex-die.c:138:13: enter_function: entry to ‘prep_db’
tdb-1.4.14/test/run-mutex-die.c:150:15: call_function: calling ‘tdb_open_ex’ from ‘prep_db’
# 805| * exit.
# 806| */
# 807|-> pid = waitpid(*child_pid, NULL, options);
# 808| if (pid == -1) {
# 809| if (errno == EINTR) {
Error: GCC_ANALYZER_WARNING (CWE-401):
tdb-1.4.14/common/mutex.c:904:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
tdb-1.4.14/test/run-mutex-die.c:138:13: enter_function: entry to ‘prep_db’
tdb-1.4.14/test/run-mutex-die.c:150:15: call_function: calling ‘tdb_open_ex’ from ‘prep_db’
# 902| if (tdb_robust_mutex_pid == 0) {
# 903| size_t nwritten;
# 904|-> close(pipe_down[1]);
# 905| close(pipe_up[0]);
# 906| ret = pthread_mutex_lock(m);
Error: GCC_ANALYZER_WARNING (CWE-401):
tdb-1.4.14/common/mutex.c:904:17: warning[-Wanalyzer-malloc-leak]: leak of ‘tdb’
tdb-1.4.14/test/run-mutex-die.c:138:13: enter_function: entry to ‘prep_db’
tdb-1.4.14/test/run-mutex-die.c:150:15: call_function: calling ‘tdb_open_ex’ from ‘prep_db’
# 902| if (tdb_robust_mutex_pid == 0) {
# 903| size_t nwritten;
# 904|-> close(pipe_down[1]);
# 905| close(pipe_up[0]);
# 906| ret = pthread_mutex_lock(m);
Error: GCC_ANALYZER_WARNING (CWE-401):
tdb-1.4.14/common/mutex.c:905:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
tdb-1.4.14/test/run-mutex-die.c:138:13: enter_function: entry to ‘prep_db’
tdb-1.4.14/test/run-mutex-die.c:150:15: call_function: calling ‘tdb_open_ex’ from ‘prep_db’
# 903| size_t nwritten;
# 904| close(pipe_down[1]);
# 905|-> close(pipe_up[0]);
# 906| ret = pthread_mutex_lock(m);
# 907| nwritten = write(pipe_up[1], &ret, sizeof(ret));
Error: GCC_ANALYZER_WARNING (CWE-401):
tdb-1.4.14/common/mutex.c:905:17: warning[-Wanalyzer-malloc-leak]: leak of ‘tdb’
tdb-1.4.14/test/run-mutex-die.c:138:13: enter_function: entry to ‘prep_db’
tdb-1.4.14/test/run-mutex-die.c:150:15: call_function: calling ‘tdb_open_ex’ from ‘prep_db’
# 903| size_t nwritten;
# 904| close(pipe_down[1]);
# 905|-> close(pipe_up[0]);
# 906| ret = pthread_mutex_lock(m);
# 907| nwritten = write(pipe_up[1], &ret, sizeof(ret));
Error: GCC_ANALYZER_WARNING (CWE-401):
tdb-1.4.14/common/mutex.c:924:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
tdb-1.4.14/test/run-mutex-die.c:138:13: enter_function: entry to ‘prep_db’
tdb-1.4.14/test/run-mutex-die.c:150:15: call_function: calling ‘tdb_open_ex’ from ‘prep_db’
# 922| goto cleanup;
# 923| }
# 924|-> close(pipe_down[0]);
# 925| pipe_down[0] = -1;
# 926| close(pipe_up[1]);
Error: GCC_ANALYZER_WARNING (CWE-401):
tdb-1.4.14/common/mutex.c:924:9: warning[-Wanalyzer-malloc-leak]: leak of ‘tdb’
tdb-1.4.14/test/run-mutex-die.c:138:13: enter_function: entry to ‘prep_db’
tdb-1.4.14/test/run-mutex-die.c:150:15: call_function: calling ‘tdb_open_ex’ from ‘prep_db’
# 922| goto cleanup;
# 923| }
# 924|-> close(pipe_down[0]);
# 925| pipe_down[0] = -1;
# 926| close(pipe_up[1]);
Error: GCC_ANALYZER_WARNING (CWE-401):
tdb-1.4.14/common/mutex.c:926:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
tdb-1.4.14/test/run-mutex-die.c:138:13: enter_function: entry to ‘prep_db’
tdb-1.4.14/test/run-mutex-die.c:150:15: call_function: calling ‘tdb_open_ex’ from ‘prep_db’
# 924| close(pipe_down[0]);
# 925| pipe_down[0] = -1;
# 926|-> close(pipe_up[1]);
# 927| pipe_up[1] = -1;
# 928|
Error: GCC_ANALYZER_WARNING (CWE-401):
tdb-1.4.14/common/mutex.c:926:9: warning[-Wanalyzer-malloc-leak]: leak of ‘tdb’
tdb-1.4.14/test/run-mutex-die.c:138:13: enter_function: entry to ‘prep_db’
tdb-1.4.14/test/run-mutex-die.c:150:15: call_function: calling ‘tdb_open_ex’ from ‘prep_db’
# 924| close(pipe_down[0]);
# 925| pipe_down[0] = -1;
# 926|-> close(pipe_up[1]);
# 927| pipe_up[1] = -1;
# 928|
Error: GCC_ANALYZER_WARNING (CWE-775):
tdb-1.4.14/test/run-mutex-die.c:71:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_down[0]’
tdb-1.4.14/common/mutex.c:829:15: enter_function: entry to ‘tdb_runtime_check_for_robust_mutexes’
tdb-1.4.14/common/mutex.c:844:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:848:9: branch_false: ...to here
tdb-1.4.14/common/mutex.c:851:12: branch_true: following ‘true’ branch...
tdb-1.4.14/common/mutex.c:855:9: branch_true: ...to here
tdb-1.4.14/common/mutex.c:859:12: branch_false: following ‘false’ branch (when ‘ptr != 18446744073709551615’)...
tdb-1.4.14/common/mutex.c:863:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:864:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:867:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:868:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:872:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:873:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:877:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:878:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:881:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:882:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:885:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:886:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:889:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:890:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:895:13: branch_false: ...to here
tdb-1.4.14/common/mutex.c:895:13: call_function: calling ‘tdb_robust_mutex_setup_sigchild’ from ‘tdb_runtime_check_for_robust_mutexes’
tdb-1.4.14/common/mutex.c:895:13: return_function: returning to ‘tdb_runtime_check_for_robust_mutexes’ from ‘tdb_robust_mutex_setup_sigchild’
tdb-1.4.14/common/mutex.c:902:12: branch_true: following ‘true’ branch...
tdb-1.4.14/common/mutex.c:904:17: branch_true: ...to here
tdb-1.4.14/common/mutex.c:907:28: call_function: calling ‘write_check’ from ‘tdb_runtime_check_for_robust_mutexes’
# 69| maybe_die(fd);
# 70|
# 71|-> ret = write(fd, buf, count);
# 72| if (ret != count)
# 73| return ret;
Error: GCC_ANALYZER_WARNING (CWE-775):
tdb-1.4.14/test/run-mutex-die.c:71:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_down[1]’
tdb-1.4.14/common/mutex.c:829:15: enter_function: entry to ‘tdb_runtime_check_for_robust_mutexes’
tdb-1.4.14/common/mutex.c:844:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:848:9: branch_false: ...to here
tdb-1.4.14/common/mutex.c:851:12: branch_true: following ‘true’ branch...
tdb-1.4.14/common/mutex.c:855:9: branch_true: ...to here
tdb-1.4.14/common/mutex.c:859:12: branch_false: following ‘false’ branch (when ‘ptr != 18446744073709551615’)...
tdb-1.4.14/common/mutex.c:863:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:864:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:867:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:868:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:872:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:873:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:877:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:878:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:881:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:882:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:885:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:886:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:889:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:890:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:895:13: branch_false: ...to here
tdb-1.4.14/common/mutex.c:895:13: call_function: calling ‘tdb_robust_mutex_setup_sigchild’ from ‘tdb_runtime_check_for_robust_mutexes’
tdb-1.4.14/common/mutex.c:895:13: return_function: returning to ‘tdb_runtime_check_for_robust_mutexes’ from ‘tdb_robust_mutex_setup_sigchild’
tdb-1.4.14/common/mutex.c:902:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:921:12: branch_false: ...to here
tdb-1.4.14/common/mutex.c:921:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:924:9: branch_false: ...to here
tdb-1.4.14/common/mutex.c:930:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:934:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:935:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:942:13: branch_false: ...to here
tdb-1.4.14/common/mutex.c:942:13: call_function: calling ‘write_check’ from ‘tdb_runtime_check_for_robust_mutexes’
# 69| maybe_die(fd);
# 70|
# 71|-> ret = write(fd, buf, count);
# 72| if (ret != count)
# 73| return ret;
Error: GCC_ANALYZER_WARNING (CWE-775):
tdb-1.4.14/test/run-mutex-die.c:71:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_up[0]’
tdb-1.4.14/common/mutex.c:829:15: enter_function: entry to ‘tdb_runtime_check_for_robust_mutexes’
tdb-1.4.14/common/mutex.c:844:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:848:9: branch_false: ...to here
tdb-1.4.14/common/mutex.c:851:12: branch_true: following ‘true’ branch...
tdb-1.4.14/common/mutex.c:855:9: branch_true: ...to here
tdb-1.4.14/common/mutex.c:859:12: branch_false: following ‘false’ branch (when ‘ptr != 18446744073709551615’)...
tdb-1.4.14/common/mutex.c:863:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:864:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:867:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:868:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:872:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:873:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:877:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:878:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:881:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:882:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:885:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:886:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:889:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:890:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:895:13: branch_false: ...to here
tdb-1.4.14/common/mutex.c:895:13: call_function: calling ‘tdb_robust_mutex_setup_sigchild’ from ‘tdb_runtime_check_for_robust_mutexes’
tdb-1.4.14/common/mutex.c:895:13: return_function: returning to ‘tdb_runtime_check_for_robust_mutexes’ from ‘tdb_robust_mutex_setup_sigchild’
tdb-1.4.14/common/mutex.c:902:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:921:12: branch_false: ...to here
tdb-1.4.14/common/mutex.c:921:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:924:9: branch_false: ...to here
tdb-1.4.14/common/mutex.c:930:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:934:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:935:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:942:13: branch_false: ...to here
tdb-1.4.14/common/mutex.c:942:13: call_function: calling ‘write_check’ from ‘tdb_runtime_check_for_robust_mutexes’
# 69| maybe_die(fd);
# 70|
# 71|-> ret = write(fd, buf, count);
# 72| if (ret != count)
# 73| return ret;
Error: GCC_ANALYZER_WARNING (CWE-775):
tdb-1.4.14/test/run-mutex-die.c:71:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_up[1]’
tdb-1.4.14/common/mutex.c:829:15: enter_function: entry to ‘tdb_runtime_check_for_robust_mutexes’
tdb-1.4.14/common/mutex.c:844:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:848:9: branch_false: ...to here
tdb-1.4.14/common/mutex.c:851:12: branch_true: following ‘true’ branch...
tdb-1.4.14/common/mutex.c:855:9: branch_true: ...to here
tdb-1.4.14/common/mutex.c:859:12: branch_false: following ‘false’ branch (when ‘ptr != 18446744073709551615’)...
tdb-1.4.14/common/mutex.c:863:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:864:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:867:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:868:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:872:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:873:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:877:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:878:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:881:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:882:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:885:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:886:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:889:15: branch_false: ...to here
tdb-1.4.14/common/mutex.c:890:12: branch_false: following ‘false’ branch...
tdb-1.4.14/common/mutex.c:895:13: branch_false: ...to here
tdb-1.4.14/common/mutex.c:895:13: call_function: calling ‘tdb_robust_mutex_setup_sigchild’ from ‘tdb_runtime_check_for_robust_mutexes’
tdb-1.4.14/common/mutex.c:895:13: return_function: returning to ‘tdb_runtime_check_for_robust_mutexes’ from ‘tdb_robust_mutex_setup_sigchild’
tdb-1.4.14/common/mutex.c:902:12: branch_true: following ‘true’ branch...
tdb-1.4.14/common/mutex.c:904:17: branch_true: ...to here
tdb-1.4.14/common/mutex.c:907:28: call_function: calling ‘write_check’ from ‘tdb_runtime_check_for_robust_mutexes’
# 69| maybe_die(fd);
# 70|
# 71|-> ret = write(fd, buf, count);
# 72| if (ret != count)
# 73| return ret;
Error: GCC_ANALYZER_WARNING (CWE-401):
tdb-1.4.14/test/run-mutex-die.c:71:15: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
tdb-1.4.14/test/run-mutex-die.c:138:13: enter_function: entry to ‘prep_db’
tdb-1.4.14/test/run-mutex-die.c:150:15: call_function: calling ‘tdb_open_ex’ from ‘prep_db’
# 69| maybe_die(fd);
# 70|
# 71|-> ret = write(fd, buf, count);
# 72| if (ret != count)
# 73| return ret;
Error: GCC_ANALYZER_WARNING (CWE-401):
tdb-1.4.14/test/run-mutex-die.c:71:15: warning[-Wanalyzer-malloc-leak]: leak of ‘tdb’
tdb-1.4.14/test/run-mutex-die.c:138:13: enter_function: entry to ‘prep_db’
tdb-1.4.14/test/run-mutex-die.c:150:15: call_function: calling ‘tdb_open_ex’ from ‘prep_db’
# 69| maybe_die(fd);
# 70|
# 71|-> ret = write(fd, buf, count);
# 72| if (ret != count)
# 73| return ret;