GnuCash
Contact   Instructions
Bug 797666 - libgnucash/engine/test/test-recurrence.c: In function 'check_valid': 'result' may be used uninitialized
Summary: libgnucash/engine/test/test-recurrence.c: In function 'check_valid': 'result'...
Status: RESOLVED FIXED
Alias: None
Product: GnuCash
Classification: Unclassified
Component: Engine (show other bugs)
Version: 3.9
Hardware: PC Linux
: Normal normal
Target Milestone: ---
Assignee: core
QA Contact: core
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-05 13:44 EDT by Aaron W. Swenson
Modified: 2020-04-05 15:17 EDT (History)
4 users (show)

See Also:


Attachments
Build Log (1.69 MB, text/x-log)
2020-04-05 13:44 EDT, Aaron W. Swenson
no flags Details

Description Aaron W. Swenson 2020-04-05 13:44:02 EDT
Created attachment 373626 [details]
Build Log

Experienced with 3.9 release. Commit 268695f19ca22dfcabecd9f8a2dd02cf20358baf
must have introduced the issue. The previous release, 3.8b, didn't have this issue.


[304/377] /usr/bin/x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DHAVE_GUILE22 -D_GNU_SOURCE -I/var/tmp/portage/app-office/gnucash-3.9/work/gnucash-3.9/libgnucash/backend/xml -I/var/tmp/portage/app-office/gnucash-3.9/work/gnucash-3.9/libgnucash/engine -I/var/tmp/portage/app-office/gnucash-3.9/work/gnucash-3.9/libgnucash/engine/test-core -Icommon -I/var/tmp/portage/app-office/gnucash-3.9/work/gnucash-3.9/common/test-core -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/var/tmp/portage/app-office/gnucash-3.9/work/gnucash-3.9/common -I/var/tmp/portage/app-office/gnucash-3.9/work/gnucash-3.9/borrowed/libc -Ilibgnucash/core-utils -I/var/tmp/portage/app-office/gnucash-3.9/work/gnucash-3.9/libgnucash/core-utils -I/usr/include/guile/2.2 -I/var/tmp/portage/app-office/gnucash-3.9/work/gnucash-3.9/libgnucash/gnc-module  -DNDEBUG -Wno-error=deprecated-declarations -std=gnu11 -Wno-error=parentheses -Werror -Wdeclaration-after-statement -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-unused -O2 -march=amdfam10 -mcx16 -mpopcnt -pipe -MD -MT libgnucash/engine/test/CMakeFiles/test-recurrence.dir/test-recurrence.c.o -MF libgnucash/engine/test/CMakeFiles/test-recurrence.dir/test-recurrence.c.o.d -o libgnucash/engine/test/CMakeFiles/test-recurrence.dir/test-recurrence.c.o -c /var/tmp/portage/app-office/gnucash-3.9/work/gnucash-3.9/libgnucash/engine/test/test-recurrence.c
FAILED: libgnucash/engine/test/CMakeFiles/test-recurrence.dir/test-recurrence.c.o
/usr/bin/x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DHAVE_GUILE22 -D_GNU_SOURCE -I/var/tmp/portage/app-office/gnucash-3.9/work/gnucash-3.9/libgnucash/backend/xml -I/var/tmp/portage/app-office/gnucash-3.9/work/gnucash-3.9/libgnucash/engine -I/var/tmp/portage/app-office/gnucash-3.9/work/gnucash-3.9/libgnucash/engine/test-core -Icommon -I/var/tmp/portage/app-office/gnucash-3.9/work/gnucash-3.9/common/test-core -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/var/tmp/portage/app-office/gnucash-3.9/work/gnucash-3.9/common -I/var/tmp/portage/app-office/gnucash-3.9/work/gnucash-3.9/borrowed/libc -Ilibgnucash/core-utils -I/var/tmp/portage/app-office/gnucash-3.9/work/gnucash-3.9/libgnucash/core-utils -I/usr/include/guile/2.2 -I/var/tmp/portage/app-office/gnucash-3.9/work/gnucash-3.9/libgnucash/gnc-module  -DNDEBUG -Wno-error=deprecated-declarations -std=gnu11 -Wno-error=parentheses -Werror -Wdeclaration-after-statement -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-unused -O2 -march=amdfam10 -mcx16 -mpopcnt -pipe -MD -MT libgnucash/engine/test/CMakeFiles/test-recurrence.dir/test-recurrence.c.o -MF libgnucash/engine/test/CMakeFiles/test-recurrence.dir/test-recurrence.c.o.d -o libgnucash/engine/test/CMakeFiles/test-recurrence.dir/test-recurrence.c.o -c /var/tmp/portage/app-office/gnucash-3.9/work/gnucash-3.9/libgnucash/engine/test/test-recurrence.c
In file included from /var/tmp/portage/app-office/gnucash-3.9/work/gnucash-3.9/libgnucash/engine/test/test-recurrence.c:27:
/var/tmp/portage/app-office/gnucash-3.9/work/gnucash-3.9/libgnucash/engine/test/test-recurrence.c: In function 'check_valid':
/var/tmp/portage/app-office/gnucash-3.9/work/gnucash-3.9/common/test-core/test-stuff.h:133:34: error: 'result' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  133 | #define do_test( result, title ) do_test_call( result, title, __FILE__, __LINE__ )
      |                                  ^~~~~~~~~~~~
/var/tmp/portage/app-office/gnucash-3.9/work/gnucash-3.9/libgnucash/engine/test/test-recurrence.c:68:26: note: 'result' was declared here
   68 |                 gboolean result;
      |                          ^~~~~~


===================================================
My emerge info:
Portage 2.3.89 (python 3.6.10-final-0, default/linux/amd64/17.0, gcc-9.2.0, glibc-2.29-r2, 5.4.28-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.4.28-gentoo-x86_64-AMD_A4-3300M_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.6
KiB Mem:     7610260 total,   2337008 free
KiB Swap:    8386556 total,   8385020 free
Timestamp of repository gentoo: Sun, 05 Apr 2020 04:00:01 +0000
Head commit of repository gentoo: 07a74ec765ebc25d68f44c5aa8e91ae0f866c7ad
Head commit of repository jorgicio: b1e8118c304832e438f6bdeafede8874580cfb27

Head commit of repository tlp: ced908095a1bafc1af3583efc4a24b39e2ab8c12

sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
distcc 3.3.3 x86_64-pc-linux-gnu [enabled]
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.17-r1::gentoo, 3.5.9::gentoo, 3.6.10::gentoo, 3.7.7::gentoo
dev-util/cmake:           3.16.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            9.2.0-r2::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

jorgicio
    location: /usr/local/overlay/jorgicio-gentoo
    sync-type: git
    sync-uri: git://github.com/jorgicio/jorgicio-gentoo.git
    masters: gentoo

titanofold-dev-overlay
    location: /home/titan/repos/titanofold-gentoo-x86
    masters: gentoo

tlp
    location: /usr/local/overlay/tlp
    sync-type: git
    sync-uri: git://github.com/dywisor/tlp-portage.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE PUEL Skype-TOS CC-BY-ND-3.0 dropbox linux-fw-redistributable no-source-code WRI-EULA MPEG-4 aquafont freedist free-noncomm linux-firmware MagentaMgOpen bh-luxi bakoma MSttfEULA Dina BAEKMUK BitstreamCyberbit Aladdin grass-ipafonts AdobeFlash-11.x"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=amdfam10 -mcx16 -mpopcnt -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=amdfam10 -mcx16 -mpopcnt -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs clean-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US en-US"
MAKEOPTS="-j13 -l3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext X acl alsa amd64 berkdb brotli bzip2 cairo cdda cli crypt cups curl dbus dri egl elogind emacs exif flac fortran gbm gd gdbm geolocation gif glamor gmp gphoto2 gtk gtk3 http2 iconv icu iproute2 ipv6 ithreads ivorbis jpeg jpeg2k latex ldns libnotify libtirpc libxml2 lz4 minizip mmx mmxext mp3 mpeg multilib ncurses networkmanager notmuch nptl ntp ogg openal opengl openmp orc osmesa pam pcre pcre16 pdf perl png policykit popcnt postgres pulseaudio python qt5 r600-llvm-compiler readline seccomp sound spell split-usr sqlite sse sse2 sse3 sse4a ssl startup-notification svg tcpd theora threads tiff truetype udev ukit unicode usb vaapi vdpau vorbis vpx webp x264 xcb xetex xft xinerama xkb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="en en_US en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres12 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

app-office/gnucash-3.9::titanofold-dev-overlay was built with the following:
USE="aqbanking doc gui nls ofx postgres python quotes sqlite -debug -examples -gnome-keyring -mysql -register2 -smartcard -test" ABI_X86="(64)" PYTHON_SINGLE_TARGET="python3_6 -python3_7 -python3_8"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs clean-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
Comment 1 John Ralls 2020-04-05 15:17:10 EDT
Fixed in git, Thanks for the report.

Note You need to log in before you can comment on or make changes to this bug.