Diff of the two buildlogs: -- --- b1/build.log 2023-04-10 11:22:06.569407825 +0000 +++ b2/build.log 2023-04-10 11:23:19.038992117 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sun May 12 05:44:20 -12 2024 -I: pbuilder-time-stamp: 1715535860 +I: Current time: Tue Apr 11 01:22:10 +14 2023 +I: pbuilder-time-stamp: 1681125730 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bookworm-reproducible-base.tgz] I: copying local configuration @@ -16,7 +16,7 @@ I: copying [./bfbtester_2.0.1.orig.tar.gz] I: copying [./bfbtester_2.0.1-7.2.diff.gz] I: Extracting source -gpgv: Signature made Fri Jan 28 13:24:54 2022 -12 +gpgv: Signature made Sat Jan 29 15:24:54 2022 +14 gpgv: using RSA key 357DCB0EEC95A01AEBA1F0D2DE63B9C704EBE9EF gpgv: Can't check signature: No public key dpkg-source: warning: cannot verify inline signature for ./bfbtester_2.0.1-7.2.dsc: no acceptable signature found @@ -25,11 +25,20 @@ dpkg-source: info: applying bfbtester_2.0.1-7.2.diff.gz I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/16725/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/7904/tmp/hooks/D01_modify_environment starting +debug: Running on codethink16-arm64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +lrwxrwxrwx 1 root root 4 Jan 6 03:20 /bin/sh -> dash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/7904/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/7904/tmp/hooks/D02_print_environment starting I: set BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME='pbuilder2' BUILD_ARCH='arm64' DEBIAN_FRONTEND='noninteractive' DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=8' @@ -39,38 +48,38 @@ IFS=' ' LANG='C' - LANGUAGE='en_US:en' + LANGUAGE='nl_BE:nl' LC_ALL='C' MAIL='/var/mail/root' OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' + PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path' PBCURRENTCOMMANDLINEOPERATION='build' PBUILDER_OPERATION='build' PBUILDER_PKGDATADIR='/usr/share/pbuilder' PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' PBUILDER_SYSCONFDIR='/etc' - PPID='16725' + PPID='7904' PS1='# ' PS2='> ' PS4='+ ' PWD='/' SHELL='/bin/bash' SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.MJ33HPsj/pbuilderrc_n3PI --distribution bookworm --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.MJ33HPsj/b1 --logfile b1/build.log bfbtester_2.0.1-7.2.dsc' + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.MJ33HPsj/pbuilderrc_Gxqr --distribution bookworm --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.MJ33HPsj/b2 --logfile b2/build.log --extrapackages usrmerge bfbtester_2.0.1-7.2.dsc' SUDO_GID='117' SUDO_UID='110' SUDO_USER='jenkins' TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' + TZ='/usr/share/zoneinfo/Etc/GMT-14' USER='root' USERNAME='root' _='/usr/bin/systemd-run' http_proxy='http://192.168.101.16:3128' I: uname -a - Linux codethink9-arm64 4.15.0-208-generic #220-Ubuntu SMP Mon Mar 20 14:28:12 UTC 2023 aarch64 GNU/Linux + Linux i-capture-the-hostname 4.15.0-208-generic #220-Ubuntu SMP Mon Mar 20 14:28:12 UTC 2023 aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 May 11 04:48 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/16725/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Apr 9 00:25 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/7904/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -136,7 +145,7 @@ Get: 28 http://deb.debian.org/debian bookworm/main arm64 intltool-debian all 0.35.0+20060710.6 [22.9 kB] Get: 29 http://deb.debian.org/debian bookworm/main arm64 po-debconf all 1.0.21+nmu1 [248 kB] Get: 30 http://deb.debian.org/debian bookworm/main arm64 debhelper all 13.11.4 [942 kB] -Fetched 18.3 MB in 1s (33.0 MB/s) +Fetched 18.3 MB in 1s (13.7 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package sensible-utils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19616 files and directories currently installed.) @@ -273,10 +282,15 @@ Reading package lists... Building dependency tree... Reading state information... +usrmerge is already the newest version (35). fakeroot is already the newest version (1.31-1.2). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/bfbtester-2.0.1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../bfbtester_2.0.1-7.2_source.changes +I: user script /srv/workspace/pbuilder/7904/tmp/hooks/A99_set_merged_usr starting +Re-configuring usrmerge... +I: user script /srv/workspace/pbuilder/7904/tmp/hooks/A99_set_merged_usr finished +hostname: Temporary failure in name resolution +I: Running cd /build/bfbtester-2.0.1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../bfbtester_2.0.1-7.2_source.changes dpkg-buildpackage: info: source package bfbtester dpkg-buildpackage: info: source version 2.0.1-7.2 dpkg-buildpackage: info: source distribution unstable @@ -411,7 +425,7 @@ gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/bfbtester-2.0.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -c -o exec.o exec.c gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/bfbtester-2.0.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -c -o tempfiles.o tempfiles.c gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/bfbtester-2.0.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -c -o utils.o utils.c -In file included from breaker.c:34: +In file included from bfbtester.c:41: ../../src/include/utils.h: In function '_xmalloc': ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) @@ -432,6 +446,84 @@ ../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' 44 | __bfbt_message(MsgType type, char * function, int line, | ~~~~~~~^~~~~~~~ +bfbtester.c: In function 'main': +../../src/include/utils.h:71:40: warning: passing argument 3 of '_xcalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 71 | #define xcalloc(a, b) _xcalloc(a, b, __FUNCTION__, __LINE__) + | ^~~~~~~~~~~~ +bfbtester.c:128:13: note: in expansion of macro 'xcalloc' + 128 | q = xcalloc(1, sizeof(THREAD_DATA)); + | ^~~~~~~ +../../src/include/utils.h:73:44: note: expected 'char *' but argument is of type 'const char *' + 73 | _xcalloc(size_t number, size_t size, char *function, int line) + | ~~~~~~^~~~~~~~ +../../src/include/utils.h:59:37: warning: passing argument 2 of '_xmalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 59 | #define xmalloc(a) _xmalloc(a, __FUNCTION__, __LINE__) + | ^~~~~~~~~~~~ +bfbtester.c:130:18: note: in expansion of macro 'xmalloc' + 130 | q->mut = xmalloc(sizeof(pthread_mutex_t)); + | ^~~~~~~ +../../src/include/utils.h:61:29: note: expected 'char *' but argument is of type 'const char *' + 61 | _xmalloc(size_t size, char *function, int line) + | ~~~~~~^~~~~~~~ +../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) + | ^~~~~~~~~~~~~~~~~~~ +bfbtester.c:133:17: note: in expansion of macro 'bfbt_message' + 133 | bfbt_message(MSG_TYPE_ERRNO_ABORT, "mutex init"); + | ^~~~~~~~~~~~ +../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' + 44 | __bfbt_message(MsgType type, char * function, int line, + | ~~~~~~~^~~~~~~~ +bfbtester.c: In function 'load_execs': +../../src/include/utils.h:59:37: warning: passing argument 2 of '_xmalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 59 | #define xmalloc(a) _xmalloc(a, __FUNCTION__, __LINE__) + | ^~~~~~~~~~~~ +bfbtester.c:243:49: note: in expansion of macro 'xmalloc' + 243 | && (filename = xmalloc(strlen(pwd) + strlen(*av) + 2)) + | ^~~~~~~ +../../src/include/utils.h:61:29: note: expected 'char *' but argument is of type 'const char *' + 61 | _xmalloc(size_t size, char *function, int line) + | ~~~~~~^~~~~~~~ +../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) + | ^~~~~~~~~~~~~~~~~~~ +bfbtester.c:261:41: note: in expansion of macro 'bfbt_message' + 261 | bfbt_message(MSG_TYPE_ERROR_WARN, "Can't open dir %s", + | ^~~~~~~~~~~~ +../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' + 44 | __bfbt_message(MsgType type, char * function, int line, + | ~~~~~~~^~~~~~~~ +bfbtester.c:266:33: warning: 'readdir_r' is deprecated [-Wdeprecated-declarations] + 266 | ret = readdir_r(dir, &entry, &result); + | ^~~ +In file included from bfbtester.c:35: +/usr/include/dirent.h:185:12: note: declared here + 185 | extern int readdir_r (DIR *__restrict __dirp, + | ^~~~~~~~~ +bfbtester.c:272:41: warning: 'readdir_r' is deprecated [-Wdeprecated-declarations] + 272 | ret = readdir_r(dir, &entry, &result); + | ^~~ +/usr/include/dirent.h:185:12: note: declared here + 185 | extern int readdir_r (DIR *__restrict __dirp, + | ^~~~~~~~~ +../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) + | ^~~~~~~~~~~~~~~~~~~ +bfbtester.c:278:33: note: in expansion of macro 'bfbt_message' + 278 | bfbt_message(MSG_TYPE_ERROR_WARN, "Can't access file: %s (%s)", + | ^~~~~~~~~~~~ +../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' + 44 | __bfbt_message(MsgType type, char * function, int line, + | ~~~~~~~^~~~~~~~ +../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) + | ^~~~~~~~~~~~~~~~~~~ +bfbtester.c:281:33: note: in expansion of macro 'bfbt_message' + 281 | bfbt_message(MSG_TYPE_ERROR_WARN, "Can't find file: %s", *av); + | ^~~~~~~~~~~~ +../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' + 44 | __bfbt_message(MsgType type, char * function, int line, + | ~~~~~~~^~~~~~~~ In file included from tempfiles.c:37: ../../src/include/utils.h: In function '_xmalloc': ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] @@ -453,16 +545,6 @@ ../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' 44 | __bfbt_message(MsgType type, char * function, int line, | ~~~~~~~^~~~~~~~ -breaker.c: In function 'breaker_test_singlearg': -../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) - | ^~~~~~~~~~~~~~~~~~~ -breaker.c:66:9: note: in expansion of macro 'bfbt_message' - 66 | bfbt_message(MSG_TYPE_MESSAGE, " * Single argument testing"); - | ^~~~~~~~~~~~ -../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' - 44 | __bfbt_message(MsgType type, char * function, int line, - | ~~~~~~~^~~~~~~~ tempfiles.c: In function 'addFile': ../../src/include/utils.h:59:37: warning: passing argument 2 of '_xmalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 59 | #define xmalloc(a) _xmalloc(a, __FUNCTION__, __LINE__) @@ -473,51 +555,35 @@ ../../src/include/utils.h:61:29: note: expected 'char *' but argument is of type 'const char *' 61 | _xmalloc(size_t size, char *function, int line) | ~~~~~~^~~~~~~~ -../../src/include/utils.h:71:40: warning: passing argument 3 of '_xcalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 71 | #define xcalloc(a, b) _xcalloc(a, b, __FUNCTION__, __LINE__) - | ^~~~~~~~~~~~ -breaker.c:67:20: note: in expansion of macro 'xcalloc' - 67 | long_arg = xcalloc(1, short_arg_len); - | ^~~~~~~ -../../src/include/utils.h:73:44: note: expected 'char *' but argument is of type 'const char *' - 73 | _xcalloc(size_t number, size_t size, char *function, int line) - | ~~~~~~^~~~~~~~ -../../src/include/utils.h:71:40: warning: passing argument 3 of '_xcalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 71 | #define xcalloc(a, b) _xcalloc(a, b, __FUNCTION__, __LINE__) - | ^~~~~~~~~~~~ -breaker.c:75:20: note: in expansion of macro 'xcalloc' - 75 | long_arg = xcalloc(1, long_arg_len); - | ^~~~~~~ -../../src/include/utils.h:73:44: note: expected 'char *' but argument is of type 'const char *' - 73 | _xcalloc(size_t number, size_t size, char *function, int line) - | ~~~~~~^~~~~~~~ -breaker.c: In function 'breaker_test_multiplearg': +In file included from data_stuff.c:42: +../../src/include/utils.h: In function '_xmalloc': ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) | ^~~~~~~~~~~~~~~~~~~ -breaker.c:99:9: note: in expansion of macro 'bfbt_message' - 99 | bfbt_message(MSG_TYPE_MESSAGE, " * Multiple arguments testing"); - | ^~~~~~~~~~~~ +../../src/include/utils.h:66:17: note: in expansion of macro 'bfbt_message' + 66 | bfbt_message(MSG_TYPE_ERRNO_ABORT, "Malloc failed at [%s:%d]", + | ^~~~~~~~~~~~ +tempfiles.c: In function 'tempfile_scandir': ../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' 44 | __bfbt_message(MsgType type, char * function, int line, | ~~~~~~~^~~~~~~~ -tempfiles.c: In function 'tempfile_scandir': -../../src/include/utils.h:71:40: warning: passing argument 3 of '_xcalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 71 | #define xcalloc(a, b) _xcalloc(a, b, __FUNCTION__, __LINE__) - | ^~~~~~~~~~~~ -breaker.c:100:20: note: in expansion of macro 'xcalloc' - 100 | long_arg = xcalloc(1, arg_len); - | ^~~~~~~ tempfiles.c:219:9: warning: 'readdir_r' is deprecated [-Wdeprecated-declarations] 219 | ret = readdir_r(dir, &entry, &result); | ^~~ -../../src/include/utils.h:73:44: note: expected 'char *' but argument is of type 'const char *' - 73 | _xcalloc(size_t number, size_t size, char *function, int line) - | ~~~~~~^~~~~~~~ In file included from tempfiles.c:32: /usr/include/dirent.h:185:12: note: declared here 185 | extern int readdir_r (DIR *__restrict __dirp, | ^~~~~~~~~ +../../src/include/utils.h: In function '_xcalloc': +../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) + | ^~~~~~~~~~~~~~~~~~~ +../../src/include/utils.h:78:17: note: in expansion of macro 'bfbt_message' + 78 | bfbt_message(MSG_TYPE_ERRNO_ABORT, "Calloc failed at [%s:%d]", + | ^~~~~~~~~~~~ +../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' + 44 | __bfbt_message(MsgType type, char * function, int line, + | ~~~~~~~^~~~~~~~ tempfiles.c:222:17: warning: 'readdir_r' is deprecated [-Wdeprecated-declarations] 222 | ret = readdir_r(dir, &entry, &result); | ^~~ @@ -525,7 +591,6 @@ 185 | extern int readdir_r (DIR *__restrict __dirp, | ^~~~~~~~~ tempfiles.c: In function 'tempfile_watch': -breaker.c: In function 'breaker_test_env': ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) | ^~~~~~~~~~~~~~~~~~~ @@ -535,64 +600,67 @@ ../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' 44 | __bfbt_message(MsgType type, char * function, int line, | ~~~~~~~^~~~~~~~ +data_stuff.c: In function 'ExecEntry_add': +../../src/include/utils.h:59:37: warning: passing argument 2 of '_xmalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 59 | #define xmalloc(a) _xmalloc(a, __FUNCTION__, __LINE__) + | ^~~~~~~~~~~~ +data_stuff.c:96:15: note: in expansion of macro 'xmalloc' + 96 | new = xmalloc(sizeof(ExecEntry)); + | ^~~~~~~ +../../src/include/utils.h:61:29: note: expected 'char *' but argument is of type 'const char *' + 61 | _xmalloc(size_t size, char *function, int line) + | ~~~~~~^~~~~~~~ +tempfiles.c: In function 'tempfile_start': ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) | ^~~~~~~~~~~~~~~~~~~ -breaker.c:138:9: note: in expansion of macro 'bfbt_message' - 138 | bfbt_message(MSG_TYPE_MESSAGE, " * Environment variable testing"); - | ^~~~~~~~~~~~ -../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' - 44 | __bfbt_message(MsgType type, char * function, int line, - | ~~~~~~~^~~~~~~~ -../../src/include/utils.h:71:40: warning: passing argument 3 of '_xcalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 71 | #define xcalloc(a, b) _xcalloc(a, b, __FUNCTION__, __LINE__) - | ^~~~~~~~~~~~ -breaker.c:139:20: note: in expansion of macro 'xcalloc' - 139 | long_arg = xcalloc(1, long_arg_len); - | ^~~~~~~ -../../src/include/utils.h:73:44: note: expected 'char *' but argument is of type 'const char *' - 73 | _xcalloc(size_t number, size_t size, char *function, int line) - | ~~~~~~^~~~~~~~ -../../src/include/utils.h:71:40: warning: passing argument 3 of '_xcalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 71 | #define xcalloc(a, b) _xcalloc(a, b, __FUNCTION__, __LINE__) - | ^~~~~~~~~~~~ -breaker.c:140:21: note: in expansion of macro 'xcalloc' - 140 | long_arg2 = xcalloc(1, long_arg_len); - | ^~~~~~~ -../../src/include/utils.h:73:44: note: expected 'char *' but argument is of type 'const char *' - 73 | _xcalloc(size_t number, size_t size, char *function, int line) - | ~~~~~~^~~~~~~~ -breaker.c: In function 'breaker_tempfile_createcb': -../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) - | ^~~~~~~~~~~~~~~~~~~ -breaker.c:165:9: note: in expansion of macro 'bfbt_message' - 165 | bfbt_message(MSG_TYPE_MESSAGE, "[Tempfile: %s]+ \"%s\"", - | ^~~~~~~~~~~~ +tempfiles.c:341:17: note: in expansion of macro 'bfbt_message' + 341 | bfbt_message(MSG_TYPE_ERRNO_ABORT, "tempfile thread create"); + | ^~~~~~~~~~~~ ../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' 44 | __bfbt_message(MsgType type, char * function, int line, | ~~~~~~~^~~~~~~~ -tempfiles.c: In function 'tempfile_start': -breaker.c: In function 'breaker_tempfile_removecb': +data_stuff.c: In function 'TestEntry_init': ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) | ^~~~~~~~~~~~~~~~~~~ -tempfiles.c:341:17: note: in expansion of macro 'bfbt_message' - 341 | bfbt_message(MSG_TYPE_ERRNO_ABORT, "tempfile thread create"); +data_stuff.c:162:17: note: in expansion of macro 'bfbt_message' + 162 | bfbt_message(MSG_TYPE_ERRNO_ABORT, "Out of memory"); | ^~~~~~~~~~~~ ../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' 44 | __bfbt_message(MsgType type, char * function, int line, | ~~~~~~~^~~~~~~~ +data_stuff.c: In function 'TestEntry_create': +../../src/include/utils.h:59:37: warning: passing argument 2 of '_xmalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 59 | #define xmalloc(a) _xmalloc(a, __FUNCTION__, __LINE__) + | ^~~~~~~~~~~~ +data_stuff.c:192:15: note: in expansion of macro 'xmalloc' + 192 | new = xmalloc(sizeof(TestEntry)); + | ^~~~~~~ +../../src/include/utils.h:61:29: note: expected 'char *' but argument is of type 'const char *' + 61 | _xmalloc(size_t size, char *function, int line) + | ~~~~~~^~~~~~~~ +data_stuff.c: In function 'CrashReport_add': +../../src/include/utils.h:59:37: warning: passing argument 2 of '_xmalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 59 | #define xmalloc(a) _xmalloc(a, __FUNCTION__, __LINE__) + | ^~~~~~~~~~~~ +data_stuff.c:260:15: note: in expansion of macro 'xmalloc' + 260 | new = xmalloc(sizeof(CrashReport)); + | ^~~~~~~ +../../src/include/utils.h:61:29: note: expected 'char *' but argument is of type 'const char *' + 61 | _xmalloc(size_t size, char *function, int line) + | ~~~~~~^~~~~~~~ +data_stuff.c: In function 'CrashReport_log': ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) | ^~~~~~~~~~~~~~~~~~~ -breaker.c:174:9: note: in expansion of macro 'bfbt_message' - 174 | bfbt_message(MSG_TYPE_MESSAGE, "[Tempfile: %s]- \"%s\"", +data_stuff.c:277:9: note: in expansion of macro 'bfbt_message' + 277 | bfbt_message(MSG_TYPE_MESSAGE, | ^~~~~~~~~~~~ ../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' 44 | __bfbt_message(MsgType type, char * function, int line, | ~~~~~~~^~~~~~~~ -In file included from utils.c:37: +In file included from exec.c:43: ../../src/include/utils.h: In function '_xmalloc': ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) @@ -603,16 +671,6 @@ ../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' 44 | __bfbt_message(MsgType type, char * function, int line, | ~~~~~~~^~~~~~~~ -breaker.c: In function 'breaker_runtests': -../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) - | ^~~~~~~~~~~~~~~~~~~ -breaker.c:186:9: note: in expansion of macro 'bfbt_message' - 186 | bfbt_message(MSG_TYPE_MESSAGE, "=> %s", entry->fullname); - | ^~~~~~~~~~~~ -../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' - 44 | __bfbt_message(MsgType type, char * function, int line, - | ~~~~~~~^~~~~~~~ ../../src/include/utils.h: In function '_xcalloc': ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) @@ -623,11 +681,12 @@ ../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' 44 | __bfbt_message(MsgType type, char * function, int line, | ~~~~~~~^~~~~~~~ +exec.c: In function 'execute_program': ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) | ^~~~~~~~~~~~~~~~~~~ -breaker.c:188:17: note: in expansion of macro 'bfbt_message' - 188 | bfbt_message(MSG_TYPE_MESSAGE, " (setuid: %d)", +exec.c:63:17: note: in expansion of macro 'bfbt_message' + 63 | bfbt_message(MSG_TYPE_DEBUG_L1, "Hit maximum execs"); | ^~~~~~~~~~~~ ../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' 44 | __bfbt_message(MsgType type, char * function, int line, @@ -635,64 +694,42 @@ ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) | ^~~~~~~~~~~~~~~~~~~ -breaker.c:191:17: note: in expansion of macro 'bfbt_message' - 191 | bfbt_message(MSG_TYPE_MESSAGE, " (setgid: %d)", +exec.c:71:17: note: in expansion of macro 'bfbt_message' + 71 | bfbt_message(MSG_TYPE_ERROR_WARN, "Couldn't fork process"); | ^~~~~~~~~~~~ ../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' 44 | __bfbt_message(MsgType type, char * function, int line, | ~~~~~~~^~~~~~~~ -breaker.c: In function 'breaker_cleanup': ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) | ^~~~~~~~~~~~~~~~~~~ -breaker.c:215:9: note: in expansion of macro 'bfbt_message' - 215 | bfbt_message(MSG_TYPE_MESSAGE, "Cleaning up...might take a few seconds"); - | ^~~~~~~~~~~~ +exec.c:81:25: note: in expansion of macro 'bfbt_message' + 81 | bfbt_message(MSG_TYPE_ERRNO_WARN, "Couldn't set process group"); + | ^~~~~~~~~~~~ ../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' 44 | __bfbt_message(MsgType type, char * function, int line, | ~~~~~~~^~~~~~~~ -utils.c: In function 'find_exec_in_path': ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) | ^~~~~~~~~~~~~~~~~~~ -utils.c:81:25: note: in expansion of macro 'bfbt_message' - 81 | bfbt_message(MSG_TYPE_ERROR_ABORT, "out of memory"); - | ^~~~~~~~~~~~ -utils.c:43:37: note: expected 'char *' but argument is of type 'const char *' - 43 | __bfbt_message(MsgType type, char * function, int line, +exec.c:94:17: note: in expansion of macro 'bfbt_message' + 94 | bfbt_message(MSG_TYPE_ERRNO_WARN, "execve '%s'", test_entry->progname); + | ^~~~~~~~~~~~ +../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' + 44 | __bfbt_message(MsgType type, char * function, int line, | ~~~~~~~^~~~~~~~ -breaker.c: In function 'breaker_start': +exec.c: In function 'exec_process_close': ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) | ^~~~~~~~~~~~~~~~~~~ -breaker.c:263:17: note: in expansion of macro 'bfbt_message' - 263 | bfbt_message(MSG_TYPE_ERRNO_ABORT, "Can't create run thread"); +exec.c:156:17: note: in expansion of macro 'bfbt_message' + 156 | bfbt_message(MSG_TYPE_ERROR_WARN, | ^~~~~~~~~~~~ ../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' 44 | __bfbt_message(MsgType type, char * function, int line, | ~~~~~~~^~~~~~~~ -utils.c: In function 'args_to_str': -../../src/include/utils.h:71:40: warning: passing argument 3 of '_xcalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 71 | #define xcalloc(a, b) _xcalloc(a, b, __FUNCTION__, __LINE__) - | ^~~~~~~~~~~~ -utils.c:115:15: note: in expansion of macro 'xcalloc' - 115 | str = xcalloc(1, i); - | ^~~~~~~ -../../src/include/utils.h:73:44: note: expected 'char *' but argument is of type 'const char *' - 73 | _xcalloc(size_t number, size_t size, char *function, int line) - | ~~~~~~^~~~~~~~ -utils.c: In function 'env_to_str': -In file included from data_stuff.c:42: +In file included from breaker.c:34: ../../src/include/utils.h: In function '_xmalloc': -../../src/include/utils.h:71:40: warning: passing argument 3 of '_xcalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 71 | #define xcalloc(a, b) _xcalloc(a, b, __FUNCTION__, __LINE__) - | ^~~~~~~~~~~~ -utils.c:143:15: note: in expansion of macro 'xcalloc' - 143 | str = xcalloc(1, i); - | ^~~~~~~ -../../src/include/utils.h:73:44: note: expected 'char *' but argument is of type 'const char *' - 73 | _xcalloc(size_t number, size_t size, char *function, int line) - | ~~~~~~^~~~~~~~ ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) | ^~~~~~~~~~~~~~~~~~~ @@ -712,233 +749,210 @@ ../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' 44 | __bfbt_message(MsgType type, char * function, int line, | ~~~~~~~^~~~~~~~ -utils.c: In function 'env_create': -../../src/include/utils.h:71:40: warning: passing argument 3 of '_xcalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 71 | #define xcalloc(a, b) _xcalloc(a, b, __FUNCTION__, __LINE__) - | ^~~~~~~~~~~~ -utils.c:188:17: note: in expansion of macro 'xcalloc' - 188 | temp2 = xcalloc(1, (i+1) * sizeof(*temp2)); - | ^~~~~~~ -../../src/include/utils.h:73:44: note: expected 'char *' but argument is of type 'const char *' - 73 | _xcalloc(size_t number, size_t size, char *function, int line) - | ~~~~~~^~~~~~~~ -data_stuff.c: In function 'ExecEntry_add': -../../src/include/utils.h:59:37: warning: passing argument 2 of '_xmalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 59 | #define xmalloc(a) _xmalloc(a, __FUNCTION__, __LINE__) - | ^~~~~~~~~~~~ -data_stuff.c:96:15: note: in expansion of macro 'xmalloc' - 96 | new = xmalloc(sizeof(ExecEntry)); - | ^~~~~~~ -../../src/include/utils.h:61:29: note: expected 'char *' but argument is of type 'const char *' - 61 | _xmalloc(size_t size, char *function, int line) - | ~~~~~~^~~~~~~~ -In file included from bfbtester.c:41: -../../src/include/utils.h: In function '_xmalloc': -../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) - | ^~~~~~~~~~~~~~~~~~~ -../../src/include/utils.h:66:17: note: in expansion of macro 'bfbt_message' - 66 | bfbt_message(MSG_TYPE_ERRNO_ABORT, "Malloc failed at [%s:%d]", - | ^~~~~~~~~~~~ -../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' - 44 | __bfbt_message(MsgType type, char * function, int line, - | ~~~~~~~^~~~~~~~ -../../src/include/utils.h: In function '_xcalloc': +breaker.c: In function 'breaker_test_singlearg': ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) | ^~~~~~~~~~~~~~~~~~~ -../../src/include/utils.h:78:17: note: in expansion of macro 'bfbt_message' - 78 | bfbt_message(MSG_TYPE_ERRNO_ABORT, "Calloc failed at [%s:%d]", - | ^~~~~~~~~~~~ +breaker.c:66:9: note: in expansion of macro 'bfbt_message' + 66 | bfbt_message(MSG_TYPE_MESSAGE, " * Single argument testing"); + | ^~~~~~~~~~~~ ../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' 44 | __bfbt_message(MsgType type, char * function, int line, | ~~~~~~~^~~~~~~~ -bfbtester.c: In function 'main': ../../src/include/utils.h:71:40: warning: passing argument 3 of '_xcalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 71 | #define xcalloc(a, b) _xcalloc(a, b, __FUNCTION__, __LINE__) | ^~~~~~~~~~~~ -bfbtester.c:128:13: note: in expansion of macro 'xcalloc' - 128 | q = xcalloc(1, sizeof(THREAD_DATA)); - | ^~~~~~~ +breaker.c:67:20: note: in expansion of macro 'xcalloc' + 67 | long_arg = xcalloc(1, short_arg_len); + | ^~~~~~~ ../../src/include/utils.h:73:44: note: expected 'char *' but argument is of type 'const char *' 73 | _xcalloc(size_t number, size_t size, char *function, int line) | ~~~~~~^~~~~~~~ -../../src/include/utils.h:59:37: warning: passing argument 2 of '_xmalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 59 | #define xmalloc(a) _xmalloc(a, __FUNCTION__, __LINE__) - | ^~~~~~~~~~~~ -bfbtester.c:130:18: note: in expansion of macro 'xmalloc' - 130 | q->mut = xmalloc(sizeof(pthread_mutex_t)); - | ^~~~~~~ -../../src/include/utils.h:61:29: note: expected 'char *' but argument is of type 'const char *' - 61 | _xmalloc(size_t size, char *function, int line) - | ~~~~~~^~~~~~~~ -../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) - | ^~~~~~~~~~~~~~~~~~~ -bfbtester.c:133:17: note: in expansion of macro 'bfbt_message' - 133 | bfbt_message(MSG_TYPE_ERRNO_ABORT, "mutex init"); - | ^~~~~~~~~~~~ -../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' - 44 | __bfbt_message(MsgType type, char * function, int line, - | ~~~~~~~^~~~~~~~ -data_stuff.c: In function 'TestEntry_init': +../../src/include/utils.h:71:40: warning: passing argument 3 of '_xcalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 71 | #define xcalloc(a, b) _xcalloc(a, b, __FUNCTION__, __LINE__) + | ^~~~~~~~~~~~ +breaker.c:75:20: note: in expansion of macro 'xcalloc' + 75 | long_arg = xcalloc(1, long_arg_len); + | ^~~~~~~ +../../src/include/utils.h:73:44: note: expected 'char *' but argument is of type 'const char *' + 73 | _xcalloc(size_t number, size_t size, char *function, int line) + | ~~~~~~^~~~~~~~ +breaker.c: In function 'breaker_test_multiplearg': ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) | ^~~~~~~~~~~~~~~~~~~ -data_stuff.c:162:17: note: in expansion of macro 'bfbt_message' - 162 | bfbt_message(MSG_TYPE_ERRNO_ABORT, "Out of memory"); - | ^~~~~~~~~~~~ +breaker.c:99:9: note: in expansion of macro 'bfbt_message' + 99 | bfbt_message(MSG_TYPE_MESSAGE, " * Multiple arguments testing"); + | ^~~~~~~~~~~~ ../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' 44 | __bfbt_message(MsgType type, char * function, int line, | ~~~~~~~^~~~~~~~ -bfbtester.c: In function 'load_execs': -../../src/include/utils.h:59:37: warning: passing argument 2 of '_xmalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 59 | #define xmalloc(a) _xmalloc(a, __FUNCTION__, __LINE__) - | ^~~~~~~~~~~~ -bfbtester.c:243:49: note: in expansion of macro 'xmalloc' - 243 | && (filename = xmalloc(strlen(pwd) + strlen(*av) + 2)) - | ^~~~~~~ -../../src/include/utils.h:61:29: note: expected 'char *' but argument is of type 'const char *' - 61 | _xmalloc(size_t size, char *function, int line) - | ~~~~~~^~~~~~~~ -data_stuff.c: In function 'TestEntry_create': -../../src/include/utils.h:59:37: warning: passing argument 2 of '_xmalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 59 | #define xmalloc(a) _xmalloc(a, __FUNCTION__, __LINE__) - | ^~~~~~~~~~~~ -data_stuff.c:192:15: note: in expansion of macro 'xmalloc' - 192 | new = xmalloc(sizeof(TestEntry)); - | ^~~~~~~ -../../src/include/utils.h:61:29: note: expected 'char *' but argument is of type 'const char *' - 61 | _xmalloc(size_t size, char *function, int line) - | ~~~~~~^~~~~~~~ +../../src/include/utils.h:71:40: warning: passing argument 3 of '_xcalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 71 | #define xcalloc(a, b) _xcalloc(a, b, __FUNCTION__, __LINE__) + | ^~~~~~~~~~~~ +breaker.c:100:20: note: in expansion of macro 'xcalloc' + 100 | long_arg = xcalloc(1, arg_len); + | ^~~~~~~ +../../src/include/utils.h:73:44: note: expected 'char *' but argument is of type 'const char *' + 73 | _xcalloc(size_t number, size_t size, char *function, int line) + | ~~~~~~^~~~~~~~ +breaker.c: In function 'breaker_test_env': ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) | ^~~~~~~~~~~~~~~~~~~ -bfbtester.c:261:41: note: in expansion of macro 'bfbt_message' - 261 | bfbt_message(MSG_TYPE_ERROR_WARN, "Can't open dir %s", - | ^~~~~~~~~~~~ +breaker.c:138:9: note: in expansion of macro 'bfbt_message' + 138 | bfbt_message(MSG_TYPE_MESSAGE, " * Environment variable testing"); + | ^~~~~~~~~~~~ ../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' 44 | __bfbt_message(MsgType type, char * function, int line, | ~~~~~~~^~~~~~~~ -bfbtester.c:266:33: warning: 'readdir_r' is deprecated [-Wdeprecated-declarations] - 266 | ret = readdir_r(dir, &entry, &result); - | ^~~ -In file included from bfbtester.c:35: -/usr/include/dirent.h:185:12: note: declared here - 185 | extern int readdir_r (DIR *__restrict __dirp, - | ^~~~~~~~~ -bfbtester.c:272:41: warning: 'readdir_r' is deprecated [-Wdeprecated-declarations] - 272 | ret = readdir_r(dir, &entry, &result); - | ^~~ -/usr/include/dirent.h:185:12: note: declared here - 185 | extern int readdir_r (DIR *__restrict __dirp, - | ^~~~~~~~~ +../../src/include/utils.h:71:40: warning: passing argument 3 of '_xcalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 71 | #define xcalloc(a, b) _xcalloc(a, b, __FUNCTION__, __LINE__) + | ^~~~~~~~~~~~ +breaker.c:139:20: note: in expansion of macro 'xcalloc' + 139 | long_arg = xcalloc(1, long_arg_len); + | ^~~~~~~ +../../src/include/utils.h:73:44: note: expected 'char *' but argument is of type 'const char *' + 73 | _xcalloc(size_t number, size_t size, char *function, int line) + | ~~~~~~^~~~~~~~ +../../src/include/utils.h:71:40: warning: passing argument 3 of '_xcalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 71 | #define xcalloc(a, b) _xcalloc(a, b, __FUNCTION__, __LINE__) + | ^~~~~~~~~~~~ +breaker.c:140:21: note: in expansion of macro 'xcalloc' + 140 | long_arg2 = xcalloc(1, long_arg_len); + | ^~~~~~~ +../../src/include/utils.h:73:44: note: expected 'char *' but argument is of type 'const char *' + 73 | _xcalloc(size_t number, size_t size, char *function, int line) + | ~~~~~~^~~~~~~~ +breaker.c: In function 'breaker_tempfile_createcb': ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) | ^~~~~~~~~~~~~~~~~~~ -bfbtester.c:278:33: note: in expansion of macro 'bfbt_message' - 278 | bfbt_message(MSG_TYPE_ERROR_WARN, "Can't access file: %s (%s)", - | ^~~~~~~~~~~~ +breaker.c:165:9: note: in expansion of macro 'bfbt_message' + 165 | bfbt_message(MSG_TYPE_MESSAGE, "[Tempfile: %s]+ \"%s\"", + | ^~~~~~~~~~~~ ../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' 44 | __bfbt_message(MsgType type, char * function, int line, | ~~~~~~~^~~~~~~~ +breaker.c: In function 'breaker_tempfile_removecb': ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) | ^~~~~~~~~~~~~~~~~~~ -bfbtester.c:281:33: note: in expansion of macro 'bfbt_message' - 281 | bfbt_message(MSG_TYPE_ERROR_WARN, "Can't find file: %s", *av); - | ^~~~~~~~~~~~ +breaker.c:174:9: note: in expansion of macro 'bfbt_message' + 174 | bfbt_message(MSG_TYPE_MESSAGE, "[Tempfile: %s]- \"%s\"", + | ^~~~~~~~~~~~ ../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' 44 | __bfbt_message(MsgType type, char * function, int line, | ~~~~~~~^~~~~~~~ -data_stuff.c: In function 'CrashReport_add': -../../src/include/utils.h:59:37: warning: passing argument 2 of '_xmalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 59 | #define xmalloc(a) _xmalloc(a, __FUNCTION__, __LINE__) - | ^~~~~~~~~~~~ -data_stuff.c:260:15: note: in expansion of macro 'xmalloc' - 260 | new = xmalloc(sizeof(CrashReport)); - | ^~~~~~~ -../../src/include/utils.h:61:29: note: expected 'char *' but argument is of type 'const char *' - 61 | _xmalloc(size_t size, char *function, int line) - | ~~~~~~^~~~~~~~ -data_stuff.c: In function 'CrashReport_log': +breaker.c: In function 'breaker_runtests': ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) | ^~~~~~~~~~~~~~~~~~~ -data_stuff.c:277:9: note: in expansion of macro 'bfbt_message' - 277 | bfbt_message(MSG_TYPE_MESSAGE, +breaker.c:186:9: note: in expansion of macro 'bfbt_message' + 186 | bfbt_message(MSG_TYPE_MESSAGE, "=> %s", entry->fullname); | ^~~~~~~~~~~~ ../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' 44 | __bfbt_message(MsgType type, char * function, int line, | ~~~~~~~^~~~~~~~ -In file included from exec.c:43: -../../src/include/utils.h: In function '_xmalloc': ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) | ^~~~~~~~~~~~~~~~~~~ -../../src/include/utils.h:66:17: note: in expansion of macro 'bfbt_message' - 66 | bfbt_message(MSG_TYPE_ERRNO_ABORT, "Malloc failed at [%s:%d]", +breaker.c:188:17: note: in expansion of macro 'bfbt_message' + 188 | bfbt_message(MSG_TYPE_MESSAGE, " (setuid: %d)", | ^~~~~~~~~~~~ ../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' 44 | __bfbt_message(MsgType type, char * function, int line, | ~~~~~~~^~~~~~~~ -../../src/include/utils.h: In function '_xcalloc': ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) | ^~~~~~~~~~~~~~~~~~~ -../../src/include/utils.h:78:17: note: in expansion of macro 'bfbt_message' - 78 | bfbt_message(MSG_TYPE_ERRNO_ABORT, "Calloc failed at [%s:%d]", +breaker.c:191:17: note: in expansion of macro 'bfbt_message' + 191 | bfbt_message(MSG_TYPE_MESSAGE, " (setgid: %d)", | ^~~~~~~~~~~~ ../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' 44 | __bfbt_message(MsgType type, char * function, int line, | ~~~~~~~^~~~~~~~ -exec.c: In function 'execute_program': +breaker.c: In function 'breaker_cleanup': ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) | ^~~~~~~~~~~~~~~~~~~ -exec.c:63:17: note: in expansion of macro 'bfbt_message' - 63 | bfbt_message(MSG_TYPE_DEBUG_L1, "Hit maximum execs"); - | ^~~~~~~~~~~~ +breaker.c:215:9: note: in expansion of macro 'bfbt_message' + 215 | bfbt_message(MSG_TYPE_MESSAGE, "Cleaning up...might take a few seconds"); + | ^~~~~~~~~~~~ ../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' 44 | __bfbt_message(MsgType type, char * function, int line, | ~~~~~~~^~~~~~~~ +breaker.c: In function 'breaker_start': ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) | ^~~~~~~~~~~~~~~~~~~ -exec.c:71:17: note: in expansion of macro 'bfbt_message' - 71 | bfbt_message(MSG_TYPE_ERROR_WARN, "Couldn't fork process"); +breaker.c:263:17: note: in expansion of macro 'bfbt_message' + 263 | bfbt_message(MSG_TYPE_ERRNO_ABORT, "Can't create run thread"); | ^~~~~~~~~~~~ ../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' 44 | __bfbt_message(MsgType type, char * function, int line, | ~~~~~~~^~~~~~~~ +In file included from utils.c:37: +../../src/include/utils.h: In function '_xmalloc': ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) | ^~~~~~~~~~~~~~~~~~~ -exec.c:81:25: note: in expansion of macro 'bfbt_message' - 81 | bfbt_message(MSG_TYPE_ERRNO_WARN, "Couldn't set process group"); - | ^~~~~~~~~~~~ +../../src/include/utils.h:66:17: note: in expansion of macro 'bfbt_message' + 66 | bfbt_message(MSG_TYPE_ERRNO_ABORT, "Malloc failed at [%s:%d]", + | ^~~~~~~~~~~~ ../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' 44 | __bfbt_message(MsgType type, char * function, int line, | ~~~~~~~^~~~~~~~ +../../src/include/utils.h: In function '_xcalloc': ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) | ^~~~~~~~~~~~~~~~~~~ -exec.c:94:17: note: in expansion of macro 'bfbt_message' - 94 | bfbt_message(MSG_TYPE_ERRNO_WARN, "execve '%s'", test_entry->progname); +../../src/include/utils.h:78:17: note: in expansion of macro 'bfbt_message' + 78 | bfbt_message(MSG_TYPE_ERRNO_ABORT, "Calloc failed at [%s:%d]", | ^~~~~~~~~~~~ ../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' 44 | __bfbt_message(MsgType type, char * function, int line, | ~~~~~~~^~~~~~~~ -exec.c: In function 'exec_process_close': +utils.c: In function 'find_exec_in_path': ../../src/include/utils.h:41:22: warning: passing argument 2 of '__bfbt_message' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 41 | __bfbt_message(type, __PRETTY_FUNCTION__, __LINE__, args) | ^~~~~~~~~~~~~~~~~~~ -exec.c:156:17: note: in expansion of macro 'bfbt_message' - 156 | bfbt_message(MSG_TYPE_ERROR_WARN, - | ^~~~~~~~~~~~ -../../src/include/utils.h:44:37: note: expected 'char *' but argument is of type 'const char *' - 44 | __bfbt_message(MsgType type, char * function, int line, +utils.c:81:25: note: in expansion of macro 'bfbt_message' + 81 | bfbt_message(MSG_TYPE_ERROR_ABORT, "out of memory"); + | ^~~~~~~~~~~~ +utils.c:43:37: note: expected 'char *' but argument is of type 'const char *' + 43 | __bfbt_message(MsgType type, char * function, int line, | ~~~~~~~^~~~~~~~ +utils.c: In function 'args_to_str': +../../src/include/utils.h:71:40: warning: passing argument 3 of '_xcalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 71 | #define xcalloc(a, b) _xcalloc(a, b, __FUNCTION__, __LINE__) + | ^~~~~~~~~~~~ +utils.c:115:15: note: in expansion of macro 'xcalloc' + 115 | str = xcalloc(1, i); + | ^~~~~~~ +../../src/include/utils.h:73:44: note: expected 'char *' but argument is of type 'const char *' + 73 | _xcalloc(size_t number, size_t size, char *function, int line) + | ~~~~~~^~~~~~~~ +utils.c: In function 'env_to_str': +../../src/include/utils.h:71:40: warning: passing argument 3 of '_xcalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 71 | #define xcalloc(a, b) _xcalloc(a, b, __FUNCTION__, __LINE__) + | ^~~~~~~~~~~~ +utils.c:143:15: note: in expansion of macro 'xcalloc' + 143 | str = xcalloc(1, i); + | ^~~~~~~ +../../src/include/utils.h:73:44: note: expected 'char *' but argument is of type 'const char *' + 73 | _xcalloc(size_t number, size_t size, char *function, int line) + | ~~~~~~^~~~~~~~ +utils.c: In function 'env_create': +../../src/include/utils.h:71:40: warning: passing argument 3 of '_xcalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 71 | #define xcalloc(a, b) _xcalloc(a, b, __FUNCTION__, __LINE__) + | ^~~~~~~~~~~~ +utils.c:188:17: note: in expansion of macro 'xcalloc' + 188 | temp2 = xcalloc(1, (i+1) * sizeof(*temp2)); + | ^~~~~~~ +../../src/include/utils.h:73:44: note: expected 'char *' but argument is of type 'const char *' + 73 | _xcalloc(size_t number, size_t size, char *function, int line) + | ~~~~~~^~~~~~~~ gcc -g -O2 -ffile-prefix-map=/build/bfbtester-2.0.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wl,-z,relro -o bfbtester bfbtester.o breaker.o data_stuff.o exec.o tempfiles.o utils.o -lpthread make[4]: Leaving directory '/build/bfbtester-2.0.1/src/bfbt' make[4]: Entering directory '/build/bfbtester-2.0.1/src' @@ -1015,8 +1029,8 @@ dh_gencontrol dh_md5sums dh_builddeb -dpkg-deb: building package 'bfbtester-dbgsym' in '../bfbtester-dbgsym_2.0.1-7.2_arm64.deb'. dpkg-deb: building package 'bfbtester' in '../bfbtester_2.0.1-7.2_arm64.deb'. +dpkg-deb: building package 'bfbtester-dbgsym' in '../bfbtester-dbgsym_2.0.1-7.2_arm64.deb'. dpkg-genbuildinfo --build=binary -O../bfbtester_2.0.1-7.2_arm64.buildinfo dpkg-genchanges --build=binary -O../bfbtester_2.0.1-7.2_arm64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -1024,12 +1038,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/7904/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/7904/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/16725 and its subdirectories -I: Current time: Sun May 12 05:45:05 -12 2024 -I: pbuilder-time-stamp: 1715535905 +I: removing directory /srv/workspace/pbuilder/7904 and its subdirectories +I: Current time: Tue Apr 11 01:23:17 +14 2023 +I: pbuilder-time-stamp: 1681125797