INFO: mock.py version 1.2.3 starting (python version = 2.7.9)... Start: init plugins DEBUG: ensuring that dir exists: /var/cache/mock/fedora-23-x86_64/yum_cache/ INFO: selinux disabled Finish: init plugins Start: run DEBUG: mock final configuration: DEBUG: scm: False DEBUG: resultdir: /tmp/gcc-python-plugin-rbuild-rpm-bj5l0usi DEBUG: yum_builddep_command: /usr/bin/yum-builddep DEBUG: dist: fc23 DEBUG: verbose: 2 DEBUG: use_host_resolv: True DEBUG: createrepo_command: /usr/bin/createrepo_c -d -q -x *.src.rpm DEBUG: target_arch: x86_64 DEBUG: more_buildreqs: {} DEBUG: chrootuid: 105 DEBUG: update_before_build: True DEBUG: root_log_fmt_str: %(levelname)s %(filename)s:%(lineno)d: %(message)s DEBUG: state_log_fmt_str: %(asctime)s - %(message)s DEBUG: backup_base_dir: /var/lib/mock/backup DEBUG: internal_dev_setup: True DEBUG: environment: {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} DEBUG: releasever: 23 DEBUG: dnf_command: /usr/bin/dnf DEBUG: extra_chroot_dirs: ['/run/lock'] DEBUG: build_log_fmt_name: unadorned DEBUG: chrootgid: 999 DEBUG: files: {} DEBUG: print_main_output: False DEBUG: online: True DEBUG: cache_alterations: False DEBUG: cleanup_on_success: True DEBUG: useradd: /usr/sbin/useradd -o -m -u %(uid)s -g %(gid)s -d %(home)s -n %(user)s DEBUG: root_log_fmt_name: detailed DEBUG: chroot_name: fedora-23-x86_64 DEBUG: plugin_conf: {'package_state_enable': False, 'chroot_scan_opts': {'regexes': ['\\bcore(\\.\\d+)?$', '\\.log$'], 'basedir': '/var/lib/mock/fedora-23-x86_64-mock_2', 'root': 'fedora-23-x86_64', 'cachedir': '/var/cache/mock/fedora-23-x86_64', 'cache_topdir': '/var/cache/mock'}, 'ccache_opts': {'basedir': '/var/lib/mock/fedora-23-x86_64-mock_2', 'compress': None, 'max_cache_size': '4G', 'cachedir': '/var/cache/mock/fedora-23-x86_64', 'cache_topdir': '/var/cache/mock', 'root': 'fedora-23-x86_64', 'dir': '%(cache_topdir)s/%(root)s/ccache/'}, 'root_cache_opts': {'exclude_dirs': ['./proc', './sys', './dev', './tmp/ccache', './var/cache/yum'], 'compress_program': 'pigz', 'extension': '.gz', 'root': 'fedora-23-x86_64', 'basedir': '/var/lib/mock/fedora-23-x86_64-mock_2', 'cachedir': '/var/cache/mock/fedora-23-x86_64', 'age_check': True, 'cache_topdir': '/var/cache/mock', 'max_age_days': 15, 'dir': '%(cache_topdir)s/%(root)s/root_cache/'}, 'mount_opts': {'basedir': '/var/lib/mock/fedora-23-x86_64-mock_2', 'root': 'fedora-23-x86_64', 'cachedir': '/var/cache/mock/fedora-23-x86_64', 'cache_topdir': '/var/cache/mock'}, 'yum_cache_enable': True, 'chroot_scan_enable': False, 'bind_mount_opts': {'dirs': [], 'create_dirs': False, 'basedir': '/var/lib/mock/fedora-23-x86_64-mock_2', 'cachedir': '/var/cache/mock/fedora-23-x86_64', 'cache_topdir': '/var/cache/mock', 'root': 'fedora-23-x86_64'}, 'yum_cache_opts': {'max_metadata_age_days': 30, 'root': 'fedora-23-x86_64', 'basedir': '/var/lib/mock/fedora-23-x86_64-mock_2', 'cachedir': '/var/cache/mock/fedora-23-x86_64', 'online': True, 'cache_topdir': '/var/cache/mock', 'max_age_days': 30, 'dir': '%(cache_topdir)s/%(root)s/yum_cache/'}, 'root_cache_enable': True, 'selinux_opts': {'basedir': '/var/lib/mock/fedora-23-x86_64-mock_2', 'root': 'fedora-23-x86_64', 'cachedir': '/var/cache/mock/fedora-23-x86_64', 'cache_topdir': '/var/cache/mock'}, 'tmpfs_enable': False, 'tmpfs_opts': {'keep_mounted': False, 'basedir': '/var/lib/mock/fedora-23-x86_64-mock_2', 'required_ram_mb': 900, 'cache_topdir': '/var/cache/mock', 'cachedir': '/var/cache/mock/fedora-23-x86_64', 'mode': '0755', 'max_fs_size': None, 'root': 'fedora-23-x86_64'}, 'ccache_enable': True, 'selinux_enable': True, 'package_state_opts': {'basedir': '/var/lib/mock/fedora-23-x86_64-mock_2', 'root': 'fedora-23-x86_64', 'cachedir': '/var/cache/mock/fedora-23-x86_64', 'cache_topdir': '/var/cache/mock'}, 'mount_enable': False, 'bind_mount_enable': True} DEBUG: nosync_force: False DEBUG: rhnplugin.conf: [main] enabled=0 DEBUG: state_log_fmt_name: state DEBUG: plugin_dir: /usr/lib/python2.7/dist-packages/mockbuild/plugins DEBUG: rpm_command: /bin/rpm DEBUG: config_paths: ['/etc/mock/site-defaults.cfg', '/etc/mock/fedora-23-x86_64.cfg'] DEBUG: root: fedora-23-x86_64-mock_2 DEBUG: build_log_fmt_str: %(message)s DEBUG: legal_host_arches: ('x86_64',) DEBUG: internal_setarch: True DEBUG: scm_opts: {'exclude_vcs': True, 'git_timestamps': False, 'write_tar': False, 'svn_get': 'svn co file:///srv/svn/SCM_PKG/SCM_BRN SCM_PKG', 'spec': 'SCM_PKG.spec', 'git_get': 'git clone SCM_BRN git://localhost/SCM_PKG.git SCM_PKG', 'cvs_get': 'cvs -d /srv/cvs co SCM_BRN SCM_PKG', 'ext_src_dir': '/dev/null', 'method': 'git'} DEBUG: yum_command: /usr/bin/yum DEBUG: yum_builddep_opts: DEBUG: yum.conf: [main] keepcache=1 debuglevel=2 reposdir=/dev/null logfile=/var/log/yum.log retries=20 obsoletes=1 gpgcheck=0 assumeyes=1 syslog_ident=mock syslog_device= install_weak_deps=0 metadata_expire=0 # repos [fedora] name=fedora baseurl=http://ftp.informatik.uni-frankfurt.de/fedora/releases/23/Everything/x86_64/os/ metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-23&arch=$basearch failovermethod=priority #gpgkey=file:///etc/pki/mock/RPM-GPG-KEY-fedora-23-primary #gpgcheck=1 [updates] name=updates baseurl=http://ftp.informatik.uni-frankfurt.de/fedora/updates/23/x86_64/ metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f23&arch=$basearch failovermethod=priority #gpgkey=file:///etc/pki/mock/RPM-GPG-KEY-fedora-23-primary #gpgcheck=1 [reproducible-builds] name=reproducible-builds # dhiru's repository, see https://github.com/kholia/ReproducibleBuilds # this is the same person: dhiru = kholia = halfie baseurl=https://fedorapeople.org/~halfie/repository/ enabled=1 DEBUG: cleanup_on_failure: True DEBUG: enable_disable_repos: [] DEBUG: plugins: ['tmpfs', 'root_cache', 'yum_cache', 'bind_mount', 'ccache', 'selinux', 'package_state', 'chroot_scan', 'lvm_root', 'compress_logs', 'mount'] DEBUG: no_root_shells: False DEBUG: check: True DEBUG: nosync: False DEBUG: priorities.conf: [main] enabled=0 DEBUG: yum_common_opts: [] DEBUG: chroothome: /builddir DEBUG: rpmbuild_command: /usr/bin/rpmbuild DEBUG: basedir: /var/lib/mock DEBUG: macros: {'%_smp_mflags': '-j8', '%_rpmfilename': '%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm', '%_topdir': '/builddir/build'} DEBUG: version: 1.2.3 DEBUG: log_config_file: logging.ini DEBUG: rpmbuild_arch: x86_64 DEBUG: config_file: /etc/mock/fedora-23-x86_64.cfg DEBUG: backup_on_clean: False DEBUG: rpmbuild_timeout: 0 DEBUG: chroot_setup_cmd: install @buildsys-build DEBUG: subscription-manager.conf: DEBUG: unique-ext: mock_2 DEBUG: clean: True DEBUG: createrepo_on_rpms: False DEBUG: cache_topdir: /var/cache/mock DEBUG: Unsharing. Flags: 201457664 INFO: Start(gcc-python-plugin-0.14-4.fc23.src.rpm) Config(fedora-23-x86_64) Start: clean chroot Finish: clean chroot DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2 DEBUG: creating dir: /var/lib/mock/fedora-23-x86_64-mock_2 Start: chroot init DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2 DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root DEBUG: creating dir: /var/lib/mock/fedora-23-x86_64-mock_2/root DEBUG: ensuring that dir exists: /tmp/gcc-python-plugin-rbuild-rpm-bj5l0usi DEBUG: creating dir: /tmp/gcc-python-plugin-rbuild-rpm-bj5l0usi INFO: calling preinit hooks INFO: enabled root cache DEBUG: ensuring that dir exists: /var/cache/mock/fedora-23-x86_64/root_cache/ Start: unpacking root cache DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root DEBUG: child environment: None DEBUG: Executing command: ['tar', '--use-compress-program', 'pigz', '-xf', '/var/cache/mock/fedora-23-x86_64/root_cache/cache.tar.gz', '-C', '/var/lib/mock/fedora-23-x86_64-mock_2/root'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} DEBUG: Child return code was: 0 DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/./proc DEBUG: creating dir: /var/lib/mock/fedora-23-x86_64-mock_2/root/./proc DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/./sys DEBUG: creating dir: /var/lib/mock/fedora-23-x86_64-mock_2/root/./sys DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/./dev DEBUG: creating dir: /var/lib/mock/fedora-23-x86_64-mock_2/root/./dev DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/./tmp/ccache DEBUG: creating dir: /var/lib/mock/fedora-23-x86_64-mock_2/root/./tmp/ccache DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/./var/cache/yum DEBUG: creating dir: /var/lib/mock/fedora-23-x86_64-mock_2/root/./var/cache/yum Finish: unpacking root cache INFO: enabled yum cache DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/var/cache/yum Start: cleaning yum metadata Finish: cleaning yum metadata INFO: enabled ccache DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/tmp/ccache DEBUG: ensuring that dir exists: /var/cache/mock/fedora-23-x86_64/ccache/ DEBUG: create skeleton dirs DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/var/lib/rpm DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/var/lib/yum DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/var/lib/dbus DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/var/log DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/var/cache/yum DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/etc/rpm DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/tmp DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/tmp/ccache DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/var/tmp DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/etc/yum.repos.d DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/etc/yum DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/proc DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/sys DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/run/lock DEBUG: remove tree: /var/lib/mock/fedora-23-x86_64-mock_2/root/dev DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/dev/pts DEBUG: creating dir: /var/lib/mock/fedora-23-x86_64-mock_2/root/dev/pts DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/dev/shm DEBUG: creating dir: /var/lib/mock/fedora-23-x86_64-mock_2/root/dev/shm DEBUG: touching file: /var/lib/mock/fedora-23-x86_64-mock_2/root/etc/fstab DEBUG: touching file: /var/lib/mock/fedora-23-x86_64-mock_2/root/var/log/yum.log DEBUG: touching file: /var/lib/mock/fedora-23-x86_64-mock_2/root/etc/os-release DEBUG: child environment: None DEBUG: Executing command: ['/bin/mount', '-n', '-t', 'proc', 'proc', '/var/lib/mock/fedora-23-x86_64-mock_2/root/proc'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} DEBUG: Child return code was: 0 DEBUG: child environment: None DEBUG: Executing command: ['/bin/mount', '-n', '-t', 'sysfs', 'mock_chroot_sys', '/var/lib/mock/fedora-23-x86_64-mock_2/root/sys'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} DEBUG: Child return code was: 0 DEBUG: child environment: None DEBUG: Executing command: ['/bin/mount', '-n', '-t', 'tmpfs', 'mock_chroot_shmfs', '/var/lib/mock/fedora-23-x86_64-mock_2/root/dev/shm'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} DEBUG: Child return code was: 0 DEBUG: child environment: None DEBUG: Executing command: ['/bin/mount', '-n', '-t', 'devpts', '-o', 'gid=5,mode=0620,ptmxmode=0666,newinstance', 'mock_chroot_devpts', '/var/lib/mock/fedora-23-x86_64-mock_2/root/dev/pts'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} DEBUG: Child return code was: 0 DEBUG: child environment: None DEBUG: Executing command: ['/bin/mount', '-n', '--bind', '/var/cache/mock/fedora-23-x86_64/yum_cache/', '/var/lib/mock/fedora-23-x86_64-mock_2/root/var/cache/yum'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} DEBUG: Child return code was: 0 DEBUG: child environment: None DEBUG: Executing command: ['/bin/mount', '-n', '--bind', '/var/cache/mock/fedora-23-x86_64/ccache/', '/var/lib/mock/fedora-23-x86_64-mock_2/root/tmp/ccache'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} DEBUG: Child return code was: 0 DEBUG: ensuring that dir exists: /tmp/gcc-python-plugin-rbuild-rpm-bj5l0usi Mock Version: 1.2.3 INFO: Mock Version: 1.2.3 INFO: Mock Version: 1.2.3 DEBUG: rootdir = /var/lib/mock/fedora-23-x86_64-mock_2/root DEBUG: resultdir = /tmp/gcc-python-plugin-rbuild-rpm-bj5l0usi DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/etc/pki/mock DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/etc/yum/pluginconf.d DEBUG: configure yum DEBUG: configure yum priorities DEBUG: configure yum rhnplugin DEBUG: child environment: None DEBUG: Executing command: ['/usr/sbin/userdel', '-r', '-f', 'mockbuild'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'CCACHE_DIR': '/tmp/ccache', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'CCACHE_UMASK': '002'} DEBUG: Child return code was: 0 DEBUG: child environment: None DEBUG: Executing command: ['/usr/sbin/userdel', '-r', '-f', 'mockbuild'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'CCACHE_DIR': '/tmp/ccache', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'CCACHE_UMASK': '002'} DEBUG: userdel: user 'mockbuild' does not exist DEBUG: Child return code was: 6 DEBUG: child environment: None DEBUG: Executing command: ['/usr/sbin/groupdel', 'mockbuild'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'CCACHE_DIR': '/tmp/ccache', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'CCACHE_UMASK': '002'} DEBUG: groupdel: group 'mockbuild' does not exist DEBUG: Child return code was: 6 DEBUG: child environment: None DEBUG: Executing command: ['/usr/sbin/groupadd', '-g', '999', 'mockbuild'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'CCACHE_DIR': '/tmp/ccache', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'CCACHE_UMASK': '002'} DEBUG: Child return code was: 0 DEBUG: child environment: None DEBUG: Executing command: /usr/sbin/useradd -o -m -u 105 -g 999 -d /builddir -n mockbuild with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'CCACHE_DIR': '/tmp/ccache', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'CCACHE_UMASK': '002'} DEBUG: Child return code was: 0 DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/builddir/build/RPMS DEBUG: creating dir: /var/lib/mock/fedora-23-x86_64-mock_2/root/builddir/build/RPMS DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/builddir/build/SPECS DEBUG: creating dir: /var/lib/mock/fedora-23-x86_64-mock_2/root/builddir/build/SPECS DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/builddir/build/SRPMS DEBUG: creating dir: /var/lib/mock/fedora-23-x86_64-mock_2/root/builddir/build/SRPMS DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/builddir/build/SOURCES DEBUG: creating dir: /var/lib/mock/fedora-23-x86_64-mock_2/root/builddir/build/SOURCES DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/builddir/build/BUILD DEBUG: creating dir: /var/lib/mock/fedora-23-x86_64-mock_2/root/builddir/build/BUILD DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/builddir/build/BUILDROOT DEBUG: creating dir: /var/lib/mock/fedora-23-x86_64-mock_2/root/builddir/build/BUILDROOT DEBUG: ensuring that dir exists: /var/lib/mock/fedora-23-x86_64-mock_2/root/builddir/build/originals DEBUG: creating dir: /var/lib/mock/fedora-23-x86_64-mock_2/root/builddir/build/originals Start: yum update DEBUG: ['/usr/bin/yum', '--installroot', '/var/lib/mock/fedora-23-x86_64-mock_2/root/', '--releasever', '23', 'update'] DEBUG: child environment: None DEBUG: Executing command: ['/usr/bin/yum', '--installroot', '/var/lib/mock/fedora-23-x86_64-mock_2/root/', '--releasever', '23', 'update'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'LC_MESSAGES': 'C', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'CCACHE_DIR': '/tmp/ccache', 'CCACHE_UMASK': '002'} DEBUG: Setting up Update Process DEBUG: No Packages marked for Update DEBUG: Child return code was: 0 Finish: yum update DEBUG: touching file: /var/lib/mock/fedora-23-x86_64-mock_2/root/.initialized Finish: chroot init Start: build phase for gcc-python-plugin-0.14-4.fc23.src.rpm Start: build setup for gcc-python-plugin-0.14-4.fc23.src.rpm DEBUG: child environment: None DEBUG: Executing command: ['/bin/rpm', '-Uvh', '--nodeps', '/builddir/build/originals/gcc-python-plugin-0.14-4.fc23.src.rpm'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'CCACHE_DIR': '/tmp/ccache', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'CCACHE_UMASK': '002'} DEBUG: error: cannot open Packages index using db5 - Permission denied (13) DEBUG: error: cannot open Packages database in /var/lib/rpm DEBUG: warning: /builddir/build/originals/gcc-python-plugin-0.14-4.fc23.src.rpm: Header V3 RSA/SHA256 Signature, key ID 34ec9cba: NOKEY DEBUG: Updating / installing... DEBUG: gcc-python-plugin-0.14-4.fc23 ######################################## DEBUG: Child return code was: 0 DEBUG: child environment: None DEBUG: Executing command: ['/bin/rpm', '-qpl', '/builddir/build/originals/gcc-python-plugin-0.14-4.fc23.src.rpm'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'CCACHE_DIR': '/tmp/ccache', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'CCACHE_UMASK': '002'} DEBUG: error: cannot open Packages index using db5 - Permission denied (13) DEBUG: error: cannot open Packages database in /var/lib/rpm DEBUG: arm-fixes.patch DEBUG: fix-python-3.4-failures.patch DEBUG: gcc-python-plugin-0.14.tar.gz DEBUG: gcc-python-plugin.spec DEBUG: warning: /builddir/build/originals/gcc-python-plugin-0.14-4.fc23.src.rpm: Header V3 RSA/SHA256 Signature, key ID 34ec9cba: NOKEY DEBUG: Child return code was: 0 INFO: ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/gcc-python-plugin.spec'], chrootPath='/var/lib/mock/fedora-23-x86_64-mock_2/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'CCACHE_DIR': '/tmp/ccache', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'CCACHE_UMASK': '002'}gid=999user='mockbuild'timeout=0logger=uid=105) DEBUG: child environment: None DEBUG: Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/gcc-python-plugin.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'CCACHE_DIR': '/tmp/ccache', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'CCACHE_UMASK': '002'} DEBUG: warning: Macro expanded in comment on line 17: # Release: %{gcc_release}%{?dist} DEBUG: sh: python: command not found DEBUG: Building target platforms: x86_64 DEBUG: Building for target x86_64 DEBUG: Wrote: /builddir/build/SRPMS/gcc-python-plugin-0.14-4.fc23.src.rpm DEBUG: Child return code was: 0 INFO: LEAVE do --> DEBUG: ['/usr/bin/yum', '--installroot', '/var/lib/mock/fedora-23-x86_64-mock_2/root/', '--releasever', '23', 'resolvedep', 'ccache'] DEBUG: child environment: None DEBUG: Executing command: ['/usr/bin/yum', '--installroot', '/var/lib/mock/fedora-23-x86_64-mock_2/root/', '--releasever', '23', 'resolvedep', 'ccache'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'LC_MESSAGES': 'C', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'CCACHE_DIR': '/tmp/ccache', 'CCACHE_UMASK': '002'} DEBUG: 0:ccache-3.2.4-1.fc23.x86_64 DEBUG: Child return code was: 0 DEBUG: ['/usr/bin/yum', '--installroot', '/var/lib/mock/fedora-23-x86_64-mock_2/root/', '--releasever', '23', 'install', 'ccache'] DEBUG: child environment: None DEBUG: Executing command: ['/usr/bin/yum', '--installroot', '/var/lib/mock/fedora-23-x86_64-mock_2/root/', '--releasever', '23', 'install', 'ccache'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'LC_MESSAGES': 'C', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'CCACHE_DIR': '/tmp/ccache', 'CCACHE_UMASK': '002'} DEBUG: Setting up Install Process DEBUG: Resolving Dependencies DEBUG: --> Running transaction check DEBUG: ---> Package ccache.x86_64 0:3.2.4-1.fc23 will be installed DEBUG: --> Processing Dependency: rtld(GNU_HASH) for package: ccache-3.2.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libm.so.6(GLIBC_2.2.5)(64bit) for package: ccache-3.2.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libc.so.6(GLIBC_2.14)(64bit) for package: ccache-3.2.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: coreutils for package: ccache-3.2.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: /bin/sh for package: ccache-3.2.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: /bin/sh for package: ccache-3.2.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libz.so.1()(64bit) for package: ccache-3.2.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libm.so.6()(64bit) for package: ccache-3.2.4-1.fc23.x86_64 DEBUG: --> Running transaction check DEBUG: ---> Package bash.x86_64 0:4.3.42-3.fc23 will be installed DEBUG: --> Processing Dependency: libtinfo.so.5()(64bit) for package: bash-4.3.42-3.fc23.x86_64 DEBUG: ---> Package coreutils.x86_64 0:8.24-6.fc23 will be installed DEBUG: --> Processing Dependency: ncurses for package: coreutils-8.24-6.fc23.x86_64 DEBUG: --> Processing Dependency: libcrypto.so.10(libcrypto.so.10)(64bit) for package: coreutils-8.24-6.fc23.x86_64 DEBUG: --> Processing Dependency: libattr.so.1(ATTR_1.1)(64bit) for package: coreutils-8.24-6.fc23.x86_64 DEBUG: --> Processing Dependency: libacl.so.1(ACL_1.0)(64bit) for package: coreutils-8.24-6.fc23.x86_64 DEBUG: --> Processing Dependency: grep for package: coreutils-8.24-6.fc23.x86_64 DEBUG: --> Processing Dependency: gmp for package: coreutils-8.24-6.fc23.x86_64 DEBUG: --> Processing Dependency: /sbin/install-info for package: coreutils-8.24-6.fc23.x86_64 DEBUG: --> Processing Dependency: /sbin/install-info for package: coreutils-8.24-6.fc23.x86_64 DEBUG: --> Processing Dependency: libselinux.so.1()(64bit) for package: coreutils-8.24-6.fc23.x86_64 DEBUG: --> Processing Dependency: libgmp.so.10()(64bit) for package: coreutils-8.24-6.fc23.x86_64 DEBUG: --> Processing Dependency: libcrypto.so.10()(64bit) for package: coreutils-8.24-6.fc23.x86_64 DEBUG: --> Processing Dependency: libcap.so.2()(64bit) for package: coreutils-8.24-6.fc23.x86_64 DEBUG: --> Processing Dependency: libattr.so.1()(64bit) for package: coreutils-8.24-6.fc23.x86_64 DEBUG: --> Processing Dependency: libacl.so.1()(64bit) for package: coreutils-8.24-6.fc23.x86_64 DEBUG: ---> Package glibc.x86_64 0:2.22-10.fc23 will be installed DEBUG: --> Processing Dependency: glibc-common = 2.22-10.fc23 for package: glibc-2.22-10.fc23.x86_64 DEBUG: --> Processing Dependency: libgcc for package: glibc-2.22-10.fc23.x86_64 DEBUG: --> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3)(64bit) for package: glibc-2.22-10.fc23.x86_64 DEBUG: --> Processing Dependency: basesystem for package: glibc-2.22-10.fc23.x86_64 DEBUG: --> Processing Dependency: libfreebl3.so()(64bit) for package: glibc-2.22-10.fc23.x86_64 DEBUG: ---> Package zlib.x86_64 0:1.2.8-9.fc23 will be installed DEBUG: --> Running transaction check DEBUG: ---> Package basesystem.noarch 0:11-1.fc23 will be installed DEBUG: --> Processing Dependency: setup for package: basesystem-11-1.fc23.noarch DEBUG: --> Processing Dependency: filesystem for package: basesystem-11-1.fc23.noarch DEBUG: ---> Package glibc-common.x86_64 0:2.22-10.fc23 will be installed DEBUG: --> Processing Dependency: tzdata >= 2003a for package: glibc-common-2.22-10.fc23.x86_64 DEBUG: ---> Package gmp.x86_64 1:6.0.0-12.fc23 will be installed DEBUG: --> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.21)(64bit) for package: 1:gmp-6.0.0-12.fc23.x86_64 DEBUG: --> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.11)(64bit) for package: 1:gmp-6.0.0-12.fc23.x86_64 DEBUG: --> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4)(64bit) for package: 1:gmp-6.0.0-12.fc23.x86_64 DEBUG: --> Processing Dependency: libstdc++.so.6(CXXABI_1.3)(64bit) for package: 1:gmp-6.0.0-12.fc23.x86_64 DEBUG: --> Processing Dependency: libstdc++.so.6()(64bit) for package: 1:gmp-6.0.0-12.fc23.x86_64 DEBUG: ---> Package grep.x86_64 0:2.22-6.fc23 will be installed DEBUG: --> Processing Dependency: libpcre.so.1()(64bit) for package: grep-2.22-6.fc23.x86_64 DEBUG: ---> Package info.x86_64 0:6.0-2.fc23 will be installed DEBUG: ---> Package libacl.x86_64 0:2.2.52-10.fc23 will be installed DEBUG: ---> Package libattr.x86_64 0:2.4.47-14.fc23 will be installed DEBUG: ---> Package libcap.x86_64 0:2.24-8.fc23 will be installed DEBUG: ---> Package libgcc.x86_64 0:5.3.1-2.fc23 will be installed DEBUG: ---> Package libselinux.x86_64 0:2.4-4.fc23 will be installed DEBUG: --> Processing Dependency: libsepol >= 2.4-1 for package: libselinux-2.4-4.fc23.x86_64 DEBUG: ---> Package ncurses.x86_64 0:5.9-21.20150214.fc23 will be installed DEBUG: ---> Package ncurses-libs.x86_64 0:5.9-21.20150214.fc23 will be installed DEBUG: --> Processing Dependency: ncurses-base = 5.9-21.20150214.fc23 for package: ncurses-libs-5.9-21.20150214.fc23.x86_64 DEBUG: ---> Package nss-softokn-freebl.x86_64 0:3.22.0-1.0.fc23 will be installed DEBUG: ---> Package openssl-libs.x86_64 1:1.0.2f-1.fc23 will be installed DEBUG: --> Processing Dependency: ca-certificates >= 2008-5 for package: 1:openssl-libs-1.0.2f-1.fc23.x86_64 DEBUG: --> Processing Dependency: libkrb5.so.3(krb5_3_MIT)(64bit) for package: 1:openssl-libs-1.0.2f-1.fc23.x86_64 DEBUG: --> Processing Dependency: libk5crypto.so.3(k5crypto_3_MIT)(64bit) for package: 1:openssl-libs-1.0.2f-1.fc23.x86_64 DEBUG: --> Processing Dependency: crypto-policies for package: 1:openssl-libs-1.0.2f-1.fc23.x86_64 DEBUG: --> Processing Dependency: libkrb5.so.3()(64bit) for package: 1:openssl-libs-1.0.2f-1.fc23.x86_64 DEBUG: --> Processing Dependency: libk5crypto.so.3()(64bit) for package: 1:openssl-libs-1.0.2f-1.fc23.x86_64 DEBUG: --> Processing Dependency: libgssapi_krb5.so.2()(64bit) for package: 1:openssl-libs-1.0.2f-1.fc23.x86_64 DEBUG: --> Processing Dependency: libcom_err.so.2()(64bit) for package: 1:openssl-libs-1.0.2f-1.fc23.x86_64 DEBUG: --> Running transaction check DEBUG: ---> Package ca-certificates.noarch 0:2015.2.6-1.0.fc23 will be installed DEBUG: --> Processing Dependency: p11-kit-trust >= 0.19.2 for package: ca-certificates-2015.2.6-1.0.fc23.noarch DEBUG: --> Processing Dependency: p11-kit >= 0.19.2 for package: ca-certificates-2015.2.6-1.0.fc23.noarch DEBUG: ---> Package crypto-policies.noarch 0:20151104-1.gitf1cba5f.fc23 will be installed DEBUG: ---> Package filesystem.x86_64 0:3.2-35.fc23 will be installed DEBUG: ---> Package krb5-libs.x86_64 0:1.14-9.fc23 will be installed DEBUG: --> Processing Dependency: keyutils-libs >= 1.5.8 for package: krb5-libs-1.14-9.fc23.x86_64 DEBUG: --> Processing Dependency: sed for package: krb5-libs-1.14-9.fc23.x86_64 DEBUG: --> Processing Dependency: libkeyutils.so.1(KEYUTILS_1.5)(64bit) for package: krb5-libs-1.14-9.fc23.x86_64 DEBUG: --> Processing Dependency: libkeyutils.so.1(KEYUTILS_1.0)(64bit) for package: krb5-libs-1.14-9.fc23.x86_64 DEBUG: --> Processing Dependency: libkeyutils.so.1(KEYUTILS_0.3)(64bit) for package: krb5-libs-1.14-9.fc23.x86_64 DEBUG: --> Processing Dependency: gawk for package: krb5-libs-1.14-9.fc23.x86_64 DEBUG: --> Processing Dependency: libverto.so.1()(64bit) for package: krb5-libs-1.14-9.fc23.x86_64 DEBUG: --> Processing Dependency: libkeyutils.so.1()(64bit) for package: krb5-libs-1.14-9.fc23.x86_64 DEBUG: ---> Package libcom_err.x86_64 0:1.42.13-3.fc23 will be installed DEBUG: ---> Package libsepol.x86_64 0:2.4-1.fc23 will be installed DEBUG: ---> Package libstdc++.x86_64 0:5.3.1-2.fc23 will be installed DEBUG: ---> Package ncurses-base.noarch 0:5.9-21.20150214.fc23 will be installed DEBUG: ---> Package pcre.x86_64 0:8.38-5.fc23 will be installed DEBUG: ---> Package setup.noarch 0:2.10.1-1.fc23 will be installed DEBUG: --> Processing Dependency: system-release for package: setup-2.10.1-1.fc23.noarch DEBUG: ---> Package tzdata.noarch 0:2016a-1.fc23 will be installed DEBUG: --> Running transaction check DEBUG: ---> Package fedora-release.noarch 0:23-1 will be installed DEBUG: --> Processing Dependency: fedora-repos(23) for package: fedora-release-23-1.noarch DEBUG: ---> Package gawk.x86_64 0:4.1.3-2.fc23 will be installed DEBUG: ---> Package keyutils-libs.x86_64 0:1.5.9-7.fc23 will be installed DEBUG: ---> Package libverto.x86_64 0:0.2.6-5.fc23 will be installed DEBUG: ---> Package p11-kit.x86_64 0:0.23.2-1.fc23 will be installed DEBUG: --> Processing Dependency: libffi.so.6()(64bit) for package: p11-kit-0.23.2-1.fc23.x86_64 DEBUG: ---> Package p11-kit-trust.x86_64 0:0.23.2-1.fc23 will be installed DEBUG: --> Processing Dependency: libtasn1.so.6(LIBTASN1_0_3)(64bit) for package: p11-kit-trust-0.23.2-1.fc23.x86_64 DEBUG: --> Processing Dependency: /usr/sbin/update-alternatives for package: p11-kit-trust-0.23.2-1.fc23.x86_64 DEBUG: --> Processing Dependency: /usr/sbin/update-alternatives for package: p11-kit-trust-0.23.2-1.fc23.x86_64 DEBUG: --> Processing Dependency: libtasn1.so.6()(64bit) for package: p11-kit-trust-0.23.2-1.fc23.x86_64 DEBUG: ---> Package sed.x86_64 0:4.2.2-11.fc23 will be installed DEBUG: --> Running transaction check DEBUG: ---> Package chkconfig.x86_64 0:1.7-1.fc23 will be installed DEBUG: --> Processing Dependency: libpopt.so.0(LIBPOPT_0)(64bit) for package: chkconfig-1.7-1.fc23.x86_64 DEBUG: --> Processing Dependency: libpopt.so.0()(64bit) for package: chkconfig-1.7-1.fc23.x86_64 DEBUG: ---> Package fedora-repos.noarch 0:23-1 will be installed DEBUG: ---> Package libffi.x86_64 0:3.1-8.fc23 will be installed DEBUG: ---> Package libtasn1.x86_64 0:4.5-2.fc23 will be installed DEBUG: --> Running transaction check DEBUG: ---> Package popt.x86_64 0:1.16-6.fc23 will be installed DEBUG: --> Finished Dependency Resolution DEBUG: Dependencies Resolved DEBUG: ================================================================================ DEBUG: Package Arch Version Repository Size DEBUG: ================================================================================ DEBUG: Installing: DEBUG: ccache x86_64 3.2.4-1.fc23 updates 206 k DEBUG: Installing for dependencies: DEBUG: basesystem noarch 11-1.fc23 fedora 9.6 k DEBUG: bash x86_64 4.3.42-3.fc23 updates 1.4 M DEBUG: ca-certificates noarch 2015.2.6-1.0.fc23 updates 432 k DEBUG: chkconfig x86_64 1.7-1.fc23 updates 179 k DEBUG: coreutils x86_64 8.24-6.fc23 updates 2.8 M DEBUG: crypto-policies noarch 20151104-1.gitf1cba5f.fc23 updates 30 k DEBUG: fedora-release noarch 23-1 fedora 16 k DEBUG: fedora-repos noarch 23-1 fedora 78 k DEBUG: filesystem x86_64 3.2-35.fc23 fedora 1.0 M DEBUG: gawk x86_64 4.1.3-2.fc23 fedora 1.0 M DEBUG: glibc x86_64 2.22-10.fc23 updates 3.6 M DEBUG: glibc-common x86_64 2.22-10.fc23 updates 11 M DEBUG: gmp x86_64 1:6.0.0-12.fc23 fedora 282 k DEBUG: grep x86_64 2.22-6.fc23 updates 275 k DEBUG: info x86_64 6.0-2.fc23 updates 214 k DEBUG: keyutils-libs x86_64 1.5.9-7.fc23 fedora 45 k DEBUG: krb5-libs x86_64 1.14-9.fc23 updates 839 k DEBUG: libacl x86_64 2.2.52-10.fc23 fedora 32 k DEBUG: libattr x86_64 2.4.47-14.fc23 fedora 24 k DEBUG: libcap x86_64 2.24-8.fc23 fedora 51 k DEBUG: libcom_err x86_64 1.42.13-3.fc23 fedora 45 k DEBUG: libffi x86_64 3.1-8.fc23 fedora 34 k DEBUG: libgcc x86_64 5.3.1-2.fc23 updates 88 k DEBUG: libselinux x86_64 2.4-4.fc23 fedora 147 k DEBUG: libsepol x86_64 2.4-1.fc23 fedora 257 k DEBUG: libstdc++ x86_64 5.3.1-2.fc23 updates 425 k DEBUG: libtasn1 x86_64 4.5-2.fc23 fedora 324 k DEBUG: libverto x86_64 0.2.6-5.fc23 fedora 21 k DEBUG: ncurses x86_64 5.9-21.20150214.fc23 fedora 321 k DEBUG: ncurses-base noarch 5.9-21.20150214.fc23 fedora 75 k DEBUG: ncurses-libs x86_64 5.9-21.20150214.fc23 fedora 306 k DEBUG: nss-softokn-freebl x86_64 3.22.0-1.0.fc23 updates 208 k DEBUG: openssl-libs x86_64 1:1.0.2f-1.fc23 updates 1.2 M DEBUG: p11-kit x86_64 0.23.2-1.fc23 updates 151 k DEBUG: p11-kit-trust x86_64 0.23.2-1.fc23 updates 131 k DEBUG: pcre x86_64 8.38-5.fc23 updates 495 k DEBUG: popt x86_64 1.16-6.fc23 fedora 59 k DEBUG: sed x86_64 4.2.2-11.fc23 fedora 237 k DEBUG: setup noarch 2.10.1-1.fc23 updates 172 k DEBUG: tzdata noarch 2016a-1.fc23 updates 409 k DEBUG: zlib x86_64 1.2.8-9.fc23 fedora 95 k DEBUG: Transaction Summary DEBUG: ================================================================================ DEBUG: Install 42 Packages DEBUG: Total size: 29 M DEBUG: Installed size: 176 M DEBUG: Downloading Packages: DEBUG: Running Transaction Check DEBUG: Running Transaction Test DEBUG: Transaction Test Succeeded DEBUG: Running Transaction DEBUG: Warning: RPMDB altered outside of yum. DEBUG: Installing : libgcc-5.3.1-2.fc23.x86_64 1/42 DEBUG: Installing : fedora-release-23-1.noarch 2/42 DEBUG: warning: /usr/lib/os.release.d/os-release-fedora saved as /usr/lib/os.release.d/os-release-fedora.rpmorig DEBUG: Installing : fedora-repos-23-1.noarch 3/42 DEBUG: Installing : setup-2.10.1-1.fc23.noarch 4/42 DEBUG: warning: /etc/group created as /etc/group.rpmnew DEBUG: warning: /etc/gshadow created as /etc/gshadow.rpmnew DEBUG: warning: /etc/hosts created as /etc/hosts.rpmnew DEBUG: warning: /etc/passwd created as /etc/passwd.rpmnew DEBUG: warning: /etc/shadow created as /etc/shadow.rpmnew DEBUG: Installing : filesystem-3.2-35.fc23.x86_64 5/42 DEBUG: Installing : basesystem-11-1.fc23.noarch 6/42 DEBUG: Installing : ncurses-base-5.9-21.20150214.fc23.noarch 7/42 DEBUG: Installing : tzdata-2016a-1.fc23.noarch 8/42 DEBUG: Installing : nss-softokn-freebl-3.22.0-1.0.fc23.x86_64 9/42 DEBUG: Installing : glibc-common-2.22-10.fc23.x86_64 10/42 DEBUG: Installing : glibc-2.22-10.fc23.x86_64 11/42 DEBUG: Installing : libstdc++-5.3.1-2.fc23.x86_64 12/42 DEBUG: Installing : pcre-8.38-5.fc23.x86_64 13/42 DEBUG: Installing : ncurses-libs-5.9-21.20150214.fc23.x86_64 14/42 DEBUG: Installing : bash-4.3.42-3.fc23.x86_64 15/42 DEBUG: Installing : libsepol-2.4-1.fc23.x86_64 16/42 DEBUG: Installing : libselinux-2.4-4.fc23.x86_64 17/42 DEBUG: Installing : info-6.0-2.fc23.x86_64 18/42 DEBUG: warning: /usr/share/info/dir created as /usr/share/info/dir.rpmnew DEBUG: Installing : libattr-2.4.47-14.fc23.x86_64 19/42 DEBUG: Installing : libacl-2.2.52-10.fc23.x86_64 20/42 DEBUG: Installing : grep-2.22-6.fc23.x86_64 21/42 DEBUG: Installing : libcom_err-1.42.13-3.fc23.x86_64 22/42 DEBUG: Installing : zlib-1.2.8-9.fc23.x86_64 23/42 DEBUG: Installing : libffi-3.1-8.fc23.x86_64 24/42 DEBUG: Installing : p11-kit-0.23.2-1.fc23.x86_64 25/42 DEBUG: Installing : sed-4.2.2-11.fc23.x86_64 26/42 DEBUG: Installing : libcap-2.24-8.fc23.x86_64 27/42 DEBUG: Installing : gawk-4.1.3-2.fc23.x86_64 28/42 DEBUG: Installing : ncurses-5.9-21.20150214.fc23.x86_64 29/42 DEBUG: Installing : 1:gmp-6.0.0-12.fc23.x86_64 30/42 DEBUG: Installing : libverto-0.2.6-5.fc23.x86_64 31/42 DEBUG: Installing : popt-1.16-6.fc23.x86_64 32/42 DEBUG: Installing : chkconfig-1.7-1.fc23.x86_64 33/42 DEBUG: Installing : libtasn1-4.5-2.fc23.x86_64 34/42 DEBUG: Installing : p11-kit-trust-0.23.2-1.fc23.x86_64 35/42 DEBUG: Installing : keyutils-libs-1.5.9-7.fc23.x86_64 36/42 DEBUG: Installing : krb5-libs-1.14-9.fc23.x86_64 37/42 DEBUG: Installing : 1:openssl-libs-1.0.2f-1.fc23.x86_64 38/42 DEBUG: Installing : coreutils-8.24-6.fc23.x86_64 39/42 DEBUG: Installing : crypto-policies-20151104-1.gitf1cba5f.fc23.noarch 40/42 DEBUG: Installing : ca-certificates-2015.2.6-1.0.fc23.noarch 41/42 DEBUG: Installing : ccache-3.2.4-1.fc23.x86_64 42/42 DEBUG: Installed: DEBUG: ccache.x86_64 0:3.2.4-1.fc23 DEBUG: Dependency Installed: DEBUG: basesystem.noarch 0:11-1.fc23 DEBUG: bash.x86_64 0:4.3.42-3.fc23 DEBUG: ca-certificates.noarch 0:2015.2.6-1.0.fc23 DEBUG: chkconfig.x86_64 0:1.7-1.fc23 DEBUG: coreutils.x86_64 0:8.24-6.fc23 DEBUG: crypto-policies.noarch 0:20151104-1.gitf1cba5f.fc23 DEBUG: fedora-release.noarch 0:23-1 DEBUG: fedora-repos.noarch 0:23-1 DEBUG: filesystem.x86_64 0:3.2-35.fc23 DEBUG: gawk.x86_64 0:4.1.3-2.fc23 DEBUG: glibc.x86_64 0:2.22-10.fc23 DEBUG: glibc-common.x86_64 0:2.22-10.fc23 DEBUG: gmp.x86_64 1:6.0.0-12.fc23 DEBUG: grep.x86_64 0:2.22-6.fc23 DEBUG: info.x86_64 0:6.0-2.fc23 DEBUG: keyutils-libs.x86_64 0:1.5.9-7.fc23 DEBUG: krb5-libs.x86_64 0:1.14-9.fc23 DEBUG: libacl.x86_64 0:2.2.52-10.fc23 DEBUG: libattr.x86_64 0:2.4.47-14.fc23 DEBUG: libcap.x86_64 0:2.24-8.fc23 DEBUG: libcom_err.x86_64 0:1.42.13-3.fc23 DEBUG: libffi.x86_64 0:3.1-8.fc23 DEBUG: libgcc.x86_64 0:5.3.1-2.fc23 DEBUG: libselinux.x86_64 0:2.4-4.fc23 DEBUG: libsepol.x86_64 0:2.4-1.fc23 DEBUG: libstdc++.x86_64 0:5.3.1-2.fc23 DEBUG: libtasn1.x86_64 0:4.5-2.fc23 DEBUG: libverto.x86_64 0:0.2.6-5.fc23 DEBUG: ncurses.x86_64 0:5.9-21.20150214.fc23 DEBUG: ncurses-base.noarch 0:5.9-21.20150214.fc23 DEBUG: ncurses-libs.x86_64 0:5.9-21.20150214.fc23 DEBUG: nss-softokn-freebl.x86_64 0:3.22.0-1.0.fc23 DEBUG: openssl-libs.x86_64 1:1.0.2f-1.fc23 DEBUG: p11-kit.x86_64 0:0.23.2-1.fc23 DEBUG: p11-kit-trust.x86_64 0:0.23.2-1.fc23 DEBUG: pcre.x86_64 0:8.38-5.fc23 DEBUG: popt.x86_64 0:1.16-6.fc23 DEBUG: sed.x86_64 0:4.2.2-11.fc23 DEBUG: setup.noarch 0:2.10.1-1.fc23 DEBUG: tzdata.noarch 0:2016a-1.fc23 DEBUG: zlib.x86_64 0:1.2.8-9.fc23 DEBUG: Complete! DEBUG: Child return code was: 0 DEBUG: ['/usr/bin/yum-builddep', '--installroot', '/var/lib/mock/fedora-23-x86_64-mock_2/root/', '--releasever', '23', '/var/lib/mock/fedora-23-x86_64-mock_2/root//builddir/build/SRPMS/gcc-python-plugin-0.14-4.fc23.src.rpm'] DEBUG: child environment: None DEBUG: Executing command: ['/usr/bin/yum-builddep', '--installroot', '/var/lib/mock/fedora-23-x86_64-mock_2/root/', '--releasever', '23', '/var/lib/mock/fedora-23-x86_64-mock_2/root//builddir/build/SRPMS/gcc-python-plugin-0.14-4.fc23.src.rpm'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'LC_MESSAGES': 'C', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'CCACHE_DIR': '/tmp/ccache', 'CCACHE_UMASK': '002'} DEBUG: Getting requirements for gcc-python-plugin-0.14-4.fc23.src DEBUG: --> gcc-plugin-devel-5.3.1-2.fc23.x86_64 DEBUG: --> 1:gmp-devel-6.0.0-12.fc23.x86_64 DEBUG: --> python-debug-2.7.10-8.fc23.x86_64 DEBUG: --> python-devel-2.7.10-8.fc23.x86_64 DEBUG: --> python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> python-pygments-2.0.2-3.fc23.noarch DEBUG: --> python-six-1.9.0-3.fc23.noarch DEBUG: --> python-sphinx-1.2.3-4.fc23.noarch DEBUG: --> python3-debug-3.4.3-5.fc23.x86_64 DEBUG: --> python3-devel-3.4.3-5.fc23.x86_64 DEBUG: --> python3-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> python3-pygments-2.0.2-3.fc23.noarch DEBUG: --> python3-six-1.9.0-3.fc23.noarch DEBUG: --> Running transaction check DEBUG: ---> Package gcc-plugin-devel.x86_64 0:5.3.1-2.fc23 will be installed DEBUG: --> Processing Dependency: gcc = 5.3.1-2.fc23 for package: gcc-plugin-devel-5.3.1-2.fc23.x86_64 DEBUG: --> Processing Dependency: mpfr-devel >= 2.2.1 for package: gcc-plugin-devel-5.3.1-2.fc23.x86_64 DEBUG: --> Processing Dependency: libmpc-devel >= 0.8.1 for package: gcc-plugin-devel-5.3.1-2.fc23.x86_64 DEBUG: ---> Package gmp-devel.x86_64 1:6.0.0-12.fc23 will be installed DEBUG: ---> Package python-debug.x86_64 0:2.7.10-8.fc23 will be installed DEBUG: --> Processing Dependency: tkinter(x86-64) = 2.7.10-8.fc23 for package: python-debug-2.7.10-8.fc23.x86_64 DEBUG: --> Processing Dependency: python-tools(x86-64) = 2.7.10-8.fc23 for package: python-debug-2.7.10-8.fc23.x86_64 DEBUG: --> Processing Dependency: python-test(x86-64) = 2.7.10-8.fc23 for package: python-debug-2.7.10-8.fc23.x86_64 DEBUG: --> Processing Dependency: python-libs(x86-64) = 2.7.10-8.fc23 for package: python-debug-2.7.10-8.fc23.x86_64 DEBUG: --> Processing Dependency: python(x86-64) = 2.7.10-8.fc23 for package: python-debug-2.7.10-8.fc23.x86_64 DEBUG: --> Processing Dependency: /usr/bin/pkg-config for package: python-debug-2.7.10-8.fc23.x86_64 DEBUG: --> Processing Dependency: libtk8.6.so()(64bit) for package: python-debug-2.7.10-8.fc23.x86_64 DEBUG: --> Processing Dependency: libtcl8.6.so()(64bit) for package: python-debug-2.7.10-8.fc23.x86_64 DEBUG: --> Processing Dependency: libsqlite3.so.0()(64bit) for package: python-debug-2.7.10-8.fc23.x86_64 DEBUG: --> Processing Dependency: libreadline.so.6()(64bit) for package: python-debug-2.7.10-8.fc23.x86_64 DEBUG: --> Processing Dependency: libgdbm_compat.so.4()(64bit) for package: python-debug-2.7.10-8.fc23.x86_64 DEBUG: --> Processing Dependency: libgdbm.so.4()(64bit) for package: python-debug-2.7.10-8.fc23.x86_64 DEBUG: --> Processing Dependency: libexpat.so.1()(64bit) for package: python-debug-2.7.10-8.fc23.x86_64 DEBUG: --> Processing Dependency: libdb-5.3.so()(64bit) for package: python-debug-2.7.10-8.fc23.x86_64 DEBUG: --> Processing Dependency: libbz2.so.1()(64bit) for package: python-debug-2.7.10-8.fc23.x86_64 DEBUG: --> Processing Dependency: libX11.so.6()(64bit) for package: python-debug-2.7.10-8.fc23.x86_64 DEBUG: --> Processing Dependency: libTix.so()(64bit) for package: python-debug-2.7.10-8.fc23.x86_64 DEBUG: ---> Package python-devel.x86_64 0:2.7.10-8.fc23 will be installed DEBUG: --> Processing Dependency: python-macros = 2.7.10-8.fc23 for package: python-devel-2.7.10-8.fc23.x86_64 DEBUG: ---> Package python-lxml.x86_64 0:3.4.4-1.fc23 will be installed DEBUG: --> Processing Dependency: python-cssselect for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxslt.so.1(LIBXML2_1.1.9)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxslt.so.1(LIBXML2_1.1.26)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxslt.so.1(LIBXML2_1.1.2)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.24)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.22)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.18)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.11)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxml2.so.2(LIBXML2_2.9.0)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxml2.so.2(LIBXML2_2.7.4)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxml2.so.2(LIBXML2_2.7.0)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxml2.so.2(LIBXML2_2.6.5)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxml2.so.2(LIBXML2_2.6.32)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxml2.so.2(LIBXML2_2.6.24)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxml2.so.2(LIBXML2_2.6.23)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxml2.so.2(LIBXML2_2.6.21)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxml2.so.2(LIBXML2_2.6.20)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxml2.so.2(LIBXML2_2.6.2)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxml2.so.2(LIBXML2_2.6.18)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxml2.so.2(LIBXML2_2.6.17)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxml2.so.2(LIBXML2_2.6.16)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxml2.so.2(LIBXML2_2.6.15)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxml2.so.2(LIBXML2_2.6.14)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxml2.so.2(LIBXML2_2.6.10)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxml2.so.2(LIBXML2_2.6.1)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxml2.so.2(LIBXML2_2.6.0)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxml2.so.2(LIBXML2_2.5.9)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxml2.so.2(LIBXML2_2.5.8)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxml2.so.2(LIBXML2_2.5.7)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxml2.so.2(LIBXML2_2.5.4)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxml2.so.2(LIBXML2_2.5.2)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxml2.so.2(LIBXML2_2.4.30)(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxslt.so.1()(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libxml2.so.2()(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: --> Processing Dependency: libexslt.so.0()(64bit) for package: python-lxml-3.4.4-1.fc23.x86_64 DEBUG: ---> Package python-pygments.noarch 0:2.0.2-3.fc23 will be installed DEBUG: --> Processing Dependency: python-setuptools for package: python-pygments-2.0.2-3.fc23.noarch DEBUG: --> Processing Dependency: python-imaging for package: python-pygments-2.0.2-3.fc23.noarch DEBUG: ---> Package python-six.noarch 0:1.9.0-3.fc23 will be installed DEBUG: ---> Package python-sphinx.noarch 0:1.2.3-4.fc23 will be installed DEBUG: --> Processing Dependency: python-jinja2 for package: python-sphinx-1.2.3-4.fc23.noarch DEBUG: --> Processing Dependency: python-docutils for package: python-sphinx-1.2.3-4.fc23.noarch DEBUG: ---> Package python3-debug.x86_64 0:3.4.3-5.fc23 will be installed DEBUG: --> Processing Dependency: python3-tools(x86-64) = 3.4.3-5.fc23 for package: python3-debug-3.4.3-5.fc23.x86_64 DEBUG: --> Processing Dependency: python3-tkinter(x86-64) = 3.4.3-5.fc23 for package: python3-debug-3.4.3-5.fc23.x86_64 DEBUG: --> Processing Dependency: python3-test(x86-64) = 3.4.3-5.fc23 for package: python3-debug-3.4.3-5.fc23.x86_64 DEBUG: --> Processing Dependency: python3-libs(x86-64) = 3.4.3-5.fc23 for package: python3-debug-3.4.3-5.fc23.x86_64 DEBUG: --> Processing Dependency: python3(x86-64) = 3.4.3-5.fc23 for package: python3-debug-3.4.3-5.fc23.x86_64 DEBUG: --> Processing Dependency: python(abi) = 3.4 for package: python3-debug-3.4.3-5.fc23.x86_64 DEBUG: --> Processing Dependency: liblzma.so.5(XZ_5.0)(64bit) for package: python3-debug-3.4.3-5.fc23.x86_64 DEBUG: --> Processing Dependency: liblzma.so.5()(64bit) for package: python3-debug-3.4.3-5.fc23.x86_64 DEBUG: ---> Package python3-devel.x86_64 0:3.4.3-5.fc23 will be installed DEBUG: ---> Package python3-lxml.x86_64 0:3.4.4-1.fc23 will be installed DEBUG: --> Processing Dependency: python3-cssselect for package: python3-lxml-3.4.4-1.fc23.x86_64 DEBUG: ---> Package python3-pygments.noarch 0:2.0.2-3.fc23 will be installed DEBUG: --> Processing Dependency: python3-setuptools for package: python3-pygments-2.0.2-3.fc23.noarch DEBUG: ---> Package python3-six.noarch 0:1.9.0-3.fc23 will be installed DEBUG: --> Running transaction check DEBUG: ---> Package bzip2-libs.x86_64 0:1.0.6-19.fc23 will be installed DEBUG: ---> Package expat.x86_64 0:2.1.0-12.fc23 will be installed DEBUG: ---> Package gcc.x86_64 0:5.3.1-2.fc23 will be installed DEBUG: --> Processing Dependency: libgomp = 5.3.1-2.fc23 for package: gcc-5.3.1-2.fc23.x86_64 DEBUG: --> Processing Dependency: isl = 0.14 for package: gcc-5.3.1-2.fc23.x86_64 DEBUG: --> Processing Dependency: cpp = 5.3.1-2.fc23 for package: gcc-5.3.1-2.fc23.x86_64 DEBUG: --> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-5.3.1-2.fc23.x86_64 DEBUG: --> Processing Dependency: binutils >= 2.24 for package: gcc-5.3.1-2.fc23.x86_64 DEBUG: --> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-5.3.1-2.fc23.x86_64 DEBUG: --> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-5.3.1-2.fc23.x86_64 DEBUG: --> Processing Dependency: libgomp.so.1()(64bit) for package: gcc-5.3.1-2.fc23.x86_64 DEBUG: ---> Package gdbm.x86_64 0:1.11-6.fc23 will be installed DEBUG: ---> Package libX11.x86_64 0:1.6.3-2.fc23 will be installed DEBUG: --> Processing Dependency: libX11-common >= 1.6.3-2.fc23 for package: libX11-1.6.3-2.fc23.x86_64 DEBUG: --> Processing Dependency: libxcb.so.1()(64bit) for package: libX11-1.6.3-2.fc23.x86_64 DEBUG: ---> Package libdb.x86_64 0:5.3.28-13.fc23 will be installed DEBUG: ---> Package libmpc-devel.x86_64 0:1.0.2-4.fc23 will be installed DEBUG: ---> Package libxml2.x86_64 0:2.9.3-2.fc23 will be installed DEBUG: ---> Package libxslt.x86_64 0:1.1.28-11.fc23 will be installed DEBUG: --> Processing Dependency: libgcrypt.so.20(GCRYPT_1.6)(64bit) for package: libxslt-1.1.28-11.fc23.x86_64 DEBUG: --> Processing Dependency: libgpg-error.so.0()(64bit) for package: libxslt-1.1.28-11.fc23.x86_64 DEBUG: --> Processing Dependency: libgcrypt.so.20()(64bit) for package: libxslt-1.1.28-11.fc23.x86_64 DEBUG: ---> Package mpfr-devel.x86_64 0:3.1.3-2.fc23 will be installed DEBUG: ---> Package pkgconfig.x86_64 1:0.28-9.fc23 will be installed DEBUG: --> Processing Dependency: libglib-2.0.so.0()(64bit) for package: 1:pkgconfig-0.28-9.fc23.x86_64 DEBUG: ---> Package python.x86_64 0:2.7.10-8.fc23 will be installed DEBUG: --> Processing Dependency: python-pip for package: python-2.7.10-8.fc23.x86_64 DEBUG: ---> Package python-cssselect.noarch 0:0.9.1-6.fc23 will be installed DEBUG: ---> Package python-docutils.noarch 0:0.12-0.3.20140510svn7747.fc23 will be installed DEBUG: ---> Package python-jinja2.noarch 0:2.8-2.fc23 will be installed DEBUG: --> Processing Dependency: python-babel >= 0.8 for package: python-jinja2-2.8-2.fc23.noarch DEBUG: --> Processing Dependency: python-markupsafe for package: python-jinja2-2.8-2.fc23.noarch DEBUG: ---> Package python-libs.x86_64 0:2.7.10-8.fc23 will be installed DEBUG: ---> Package python-macros.noarch 0:2.7.10-8.fc23 will be installed DEBUG: ---> Package python-pillow.x86_64 0:3.0.0-3.fc23 will be installed DEBUG: --> Processing Dependency: libtiff.so.5(LIBTIFF_4.0)(64bit) for package: python-pillow-3.0.0-3.fc23.x86_64 DEBUG: --> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2)(64bit) for package: python-pillow-3.0.0-3.fc23.x86_64 DEBUG: --> Processing Dependency: ghostscript for package: python-pillow-3.0.0-3.fc23.x86_64 DEBUG: --> Processing Dependency: libwebpmux.so.1()(64bit) for package: python-pillow-3.0.0-3.fc23.x86_64 DEBUG: --> Processing Dependency: libwebpdemux.so.1()(64bit) for package: python-pillow-3.0.0-3.fc23.x86_64 DEBUG: --> Processing Dependency: libwebp.so.5()(64bit) for package: python-pillow-3.0.0-3.fc23.x86_64 DEBUG: --> Processing Dependency: libtiff.so.5()(64bit) for package: python-pillow-3.0.0-3.fc23.x86_64 DEBUG: --> Processing Dependency: libopenjp2.so.7()(64bit) for package: python-pillow-3.0.0-3.fc23.x86_64 DEBUG: --> Processing Dependency: liblcms2.so.2()(64bit) for package: python-pillow-3.0.0-3.fc23.x86_64 DEBUG: --> Processing Dependency: libjpeg.so.62()(64bit) for package: python-pillow-3.0.0-3.fc23.x86_64 DEBUG: --> Processing Dependency: libfreetype.so.6()(64bit) for package: python-pillow-3.0.0-3.fc23.x86_64 DEBUG: ---> Package python-setuptools.noarch 0:18.0.1-2.fc23 will be installed DEBUG: ---> Package python-test.x86_64 0:2.7.10-8.fc23 will be installed DEBUG: ---> Package python-tools.x86_64 0:2.7.10-8.fc23 will be installed DEBUG: ---> Package python3.x86_64 0:3.4.3-5.fc23 will be installed DEBUG: --> Processing Dependency: python3-pip for package: python3-3.4.3-5.fc23.x86_64 DEBUG: ---> Package python3-cssselect.noarch 0:0.9.1-6.fc23 will be installed DEBUG: ---> Package python3-libs.x86_64 0:3.4.3-5.fc23 will be installed DEBUG: ---> Package python3-setuptools.noarch 0:18.0.1-2.fc23 will be installed DEBUG: ---> Package python3-test.x86_64 0:3.4.3-5.fc23 will be installed DEBUG: ---> Package python3-tkinter.x86_64 0:3.4.3-5.fc23 will be installed DEBUG: ---> Package python3-tools.x86_64 0:3.4.3-5.fc23 will be installed DEBUG: ---> Package readline.x86_64 0:6.3-6.fc23 will be installed DEBUG: ---> Package sqlite-libs.x86_64 0:3.11.0-2.fc23 will be installed DEBUG: ---> Package tcl.x86_64 1:8.6.4-1.fc23 will be installed DEBUG: ---> Package tix.x86_64 1:8.4.3-16.fc23 will be installed DEBUG: ---> Package tk.x86_64 1:8.6.4-2.fc23 will be installed DEBUG: --> Processing Dependency: libfontconfig.so.1()(64bit) for package: 1:tk-8.6.4-2.fc23.x86_64 DEBUG: --> Processing Dependency: libXft.so.2()(64bit) for package: 1:tk-8.6.4-2.fc23.x86_64 DEBUG: ---> Package tkinter.x86_64 0:2.7.10-8.fc23 will be installed DEBUG: ---> Package xz-libs.x86_64 0:5.2.1-3.fc23 will be installed DEBUG: --> Running transaction check DEBUG: ---> Package binutils.x86_64 0:2.25-15.fc23 will be installed DEBUG: ---> Package cpp.x86_64 0:5.3.1-2.fc23 will be installed DEBUG: ---> Package fontconfig.x86_64 0:2.11.94-4.fc23 will be installed DEBUG: --> Processing Dependency: fontpackages-filesystem for package: fontconfig-2.11.94-4.fc23.x86_64 DEBUG: --> Processing Dependency: font(:lang=en) for package: fontconfig-2.11.94-4.fc23.x86_64 DEBUG: ---> Package freetype.x86_64 0:2.6.0-3.fc23 will be installed DEBUG: --> Processing Dependency: libpng16.so.16(PNG16_0)(64bit) for package: freetype-2.6.0-3.fc23.x86_64 DEBUG: --> Processing Dependency: libpng16.so.16()(64bit) for package: freetype-2.6.0-3.fc23.x86_64 DEBUG: ---> Package ghostscript.x86_64 0:9.16-3.fc23 will be installed DEBUG: --> Processing Dependency: ghostscript-x11(x86-64) = 9.16-3.fc23 for package: ghostscript-9.16-3.fc23.x86_64 DEBUG: --> Processing Dependency: ghostscript-core(x86-64) = 9.16-3.fc23 for package: ghostscript-9.16-3.fc23.x86_64 DEBUG: ---> Package glib2.x86_64 0:2.46.2-1.fc23 will be installed DEBUG: --> Processing Dependency: shared-mime-info for package: glib2-2.46.2-1.fc23.x86_64 DEBUG: ---> Package glibc-devel.x86_64 0:2.22-10.fc23 will be installed DEBUG: --> Processing Dependency: glibc-headers = 2.22-10.fc23 for package: glibc-devel-2.22-10.fc23.x86_64 DEBUG: --> Processing Dependency: glibc-headers for package: glibc-devel-2.22-10.fc23.x86_64 DEBUG: ---> Package isl.x86_64 0:0.14-4.fc23 will be installed DEBUG: ---> Package lcms2.x86_64 0:2.7-2.fc23 will be installed DEBUG: ---> Package libX11-common.noarch 0:1.6.3-2.fc23 will be installed DEBUG: ---> Package libXft.x86_64 0:2.3.2-3.fc23 will be installed DEBUG: --> Processing Dependency: libXrender.so.1()(64bit) for package: libXft-2.3.2-3.fc23.x86_64 DEBUG: ---> Package libgcrypt.x86_64 0:1.6.4-1.fc23 will be installed DEBUG: ---> Package libgomp.x86_64 0:5.3.1-2.fc23 will be installed DEBUG: ---> Package libgpg-error.x86_64 0:1.21-1.fc23 will be installed DEBUG: ---> Package libjpeg-turbo.x86_64 0:1.4.1-2.fc23 will be installed DEBUG: ---> Package libmpc.x86_64 0:1.0.2-4.fc23 will be installed DEBUG: ---> Package libtiff.x86_64 0:4.0.4-1.fc23 will be installed DEBUG: --> Processing Dependency: libjbig.so.2.1()(64bit) for package: libtiff-4.0.4-1.fc23.x86_64 DEBUG: ---> Package libwebp.x86_64 0:0.4.4-1.fc23 will be installed DEBUG: ---> Package libxcb.x86_64 0:1.11.1-1.fc23 will be installed DEBUG: --> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.11.1-1.fc23.x86_64 DEBUG: ---> Package mpfr.x86_64 0:3.1.3-2.fc23 will be installed DEBUG: ---> Package openjpeg2.x86_64 0:2.1.0-7.fc23 will be installed DEBUG: ---> Package python-babel.noarch 0:1.3-8.fc23 will be installed DEBUG: --> Processing Dependency: pytz for package: python-babel-1.3-8.fc23.noarch DEBUG: ---> Package python-markupsafe.x86_64 0:0.23-7.fc23 will be installed DEBUG: ---> Package python-pip.noarch 0:7.1.0-1.fc23 will be installed DEBUG: ---> Package python3-pip.noarch 0:7.1.0-1.fc23 will be installed DEBUG: --> Running transaction check DEBUG: ---> Package fontpackages-filesystem.noarch 0:1.44-14.fc23 will be installed DEBUG: ---> Package ghostscript-core.x86_64 0:9.16-3.fc23 will be installed DEBUG: --> Processing Dependency: urw-fonts >= 1.1 for package: ghostscript-core-9.16-3.fc23.x86_64 DEBUG: --> Processing Dependency: poppler-data for package: ghostscript-core-9.16-3.fc23.x86_64 DEBUG: --> Processing Dependency: libidn.so.11(LIBIDN_1.0)(64bit) for package: ghostscript-core-9.16-3.fc23.x86_64 DEBUG: --> Processing Dependency: ghostscript-fonts for package: ghostscript-core-9.16-3.fc23.x86_64 DEBUG: --> Processing Dependency: libidn.so.11()(64bit) for package: ghostscript-core-9.16-3.fc23.x86_64 DEBUG: --> Processing Dependency: libcupsimage.so.2()(64bit) for package: ghostscript-core-9.16-3.fc23.x86_64 DEBUG: --> Processing Dependency: libcups.so.2()(64bit) for package: ghostscript-core-9.16-3.fc23.x86_64 DEBUG: ---> Package ghostscript-x11.x86_64 0:9.16-3.fc23 will be installed DEBUG: --> Processing Dependency: libXt.so.6()(64bit) for package: ghostscript-x11-9.16-3.fc23.x86_64 DEBUG: --> Processing Dependency: libXext.so.6()(64bit) for package: ghostscript-x11-9.16-3.fc23.x86_64 DEBUG: --> Processing Dependency: libSM.so.6()(64bit) for package: ghostscript-x11-9.16-3.fc23.x86_64 DEBUG: --> Processing Dependency: libICE.so.6()(64bit) for package: ghostscript-x11-9.16-3.fc23.x86_64 DEBUG: ---> Package glibc-headers.x86_64 0:2.22-10.fc23 will be installed DEBUG: --> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.22-10.fc23.x86_64 DEBUG: --> Processing Dependency: kernel-headers for package: glibc-headers-2.22-10.fc23.x86_64 DEBUG: ---> Package jbigkit-libs.x86_64 0:2.1-4.fc23 will be installed DEBUG: ---> Package libXau.x86_64 0:1.0.8-5.fc23 will be installed DEBUG: ---> Package libXrender.x86_64 0:0.9.9-2.fc23 will be installed DEBUG: ---> Package libpng.x86_64 2:1.6.19-2.fc23 will be installed DEBUG: ---> Package pytz.noarch 0:2015.4-1.fc23 will be installed DEBUG: ---> Package shared-mime-info.x86_64 0:1.5-2.fc23 will be installed DEBUG: ---> Package zvbi-fonts.noarch 0:0.2.35-1.fc23 will be installed DEBUG: --> Running transaction check DEBUG: ---> Package cups-libs.x86_64 1:2.1.3-1.fc23 will be installed DEBUG: --> Processing Dependency: libgnutls.so.30(GNUTLS_3_4)(64bit) for package: 1:cups-libs-2.1.3-1.fc23.x86_64 DEBUG: --> Processing Dependency: libgnutls.so.30()(64bit) for package: 1:cups-libs-2.1.3-1.fc23.x86_64 DEBUG: --> Processing Dependency: libavahi-common.so.3()(64bit) for package: 1:cups-libs-2.1.3-1.fc23.x86_64 DEBUG: --> Processing Dependency: libavahi-client.so.3()(64bit) for package: 1:cups-libs-2.1.3-1.fc23.x86_64 DEBUG: --> Processing Dependency: libaudit.so.1()(64bit) for package: 1:cups-libs-2.1.3-1.fc23.x86_64 DEBUG: ---> Package ghostscript-fonts.noarch 0:5.50-34.fc23 will be installed DEBUG: --> Processing Dependency: xorg-x11-font-utils for package: ghostscript-fonts-5.50-34.fc23.noarch DEBUG: ---> Package kernel-headers.x86_64 0:4.4.2-301.fc23 will be installed DEBUG: ---> Package libICE.x86_64 0:1.0.9-3.fc23 will be installed DEBUG: ---> Package libSM.x86_64 0:1.2.2-3.fc23 will be installed DEBUG: --> Processing Dependency: libuuid.so.1(UUID_1.0)(64bit) for package: libSM-1.2.2-3.fc23.x86_64 DEBUG: --> Processing Dependency: libuuid.so.1()(64bit) for package: libSM-1.2.2-3.fc23.x86_64 DEBUG: ---> Package libXext.x86_64 0:1.3.3-3.fc23 will be installed DEBUG: ---> Package libXt.x86_64 0:1.1.5-2.fc23 will be installed DEBUG: ---> Package libidn.x86_64 0:1.32-1.fc23 will be installed DEBUG: --> Processing Dependency: emacs-filesystem >= 24.5 for package: libidn-1.32-1.fc23.x86_64 DEBUG: ---> Package poppler-data.noarch 0:0.4.7-4.fc23 will be installed DEBUG: ---> Package urw-fonts.noarch 3:2.4-21.fc23 will be installed DEBUG: --> Running transaction check DEBUG: ---> Package audit-libs.x86_64 0:2.4.5-1.fc23 will be installed DEBUG: ---> Package avahi-libs.x86_64 0:0.6.32-0.4.rc.fc23 will be installed DEBUG: --> Processing Dependency: libdbus-1.so.3(LIBDBUS_1_3)(64bit) for package: avahi-libs-0.6.32-0.4.rc.fc23.x86_64 DEBUG: --> Processing Dependency: libdbus-1.so.3()(64bit) for package: avahi-libs-0.6.32-0.4.rc.fc23.x86_64 DEBUG: ---> Package emacs-filesystem.noarch 1:24.5-7.fc23 will be installed DEBUG: ---> Package gnutls.x86_64 0:3.4.9-1.fc23 will be installed DEBUG: --> Processing Dependency: libnettle.so.6(NETTLE_6)(64bit) for package: gnutls-3.4.9-1.fc23.x86_64 DEBUG: --> Processing Dependency: libhogweed.so.4(HOGWEED_4)(64bit) for package: gnutls-3.4.9-1.fc23.x86_64 DEBUG: --> Processing Dependency: libnettle.so.6()(64bit) for package: gnutls-3.4.9-1.fc23.x86_64 DEBUG: --> Processing Dependency: libhogweed.so.4()(64bit) for package: gnutls-3.4.9-1.fc23.x86_64 DEBUG: ---> Package libuuid.x86_64 0:2.27.1-2.fc23 will be installed DEBUG: ---> Package xorg-x11-font-utils.x86_64 1:7.5-29.fc23 will be installed DEBUG: --> Processing Dependency: libfontenc.so.1()(64bit) for package: 1:xorg-x11-font-utils-7.5-29.fc23.x86_64 DEBUG: --> Processing Dependency: libXfont.so.1()(64bit) for package: 1:xorg-x11-font-utils-7.5-29.fc23.x86_64 DEBUG: --> Running transaction check DEBUG: ---> Package dbus-libs.x86_64 1:1.10.6-1.fc23 will be installed DEBUG: --> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: 1:dbus-libs-1.10.6-1.fc23.x86_64 DEBUG: --> Processing Dependency: libsystemd.so.0()(64bit) for package: 1:dbus-libs-1.10.6-1.fc23.x86_64 DEBUG: ---> Package libXfont.x86_64 0:1.5.1-3.fc23 will be installed DEBUG: ---> Package libfontenc.x86_64 0:1.1.3-2.fc23 will be installed DEBUG: ---> Package nettle.x86_64 0:3.2-1.fc23 will be installed DEBUG: --> Running transaction check DEBUG: ---> Package systemd-libs.x86_64 0:222-14.fc23 will be installed DEBUG: --> Processing Dependency: libpam_misc.so.0(LIBPAM_MISC_1.0)(64bit) for package: systemd-libs-222-14.fc23.x86_64 DEBUG: --> Processing Dependency: libpam.so.0(LIBPAM_MODUTIL_1.0)(64bit) for package: systemd-libs-222-14.fc23.x86_64 DEBUG: --> Processing Dependency: libpam.so.0(LIBPAM_EXTENSION_1.0)(64bit) for package: systemd-libs-222-14.fc23.x86_64 DEBUG: --> Processing Dependency: libpam.so.0(LIBPAM_1.0)(64bit) for package: systemd-libs-222-14.fc23.x86_64 DEBUG: --> Processing Dependency: libseccomp.so.2()(64bit) for package: systemd-libs-222-14.fc23.x86_64 DEBUG: --> Processing Dependency: libpam_misc.so.0()(64bit) for package: systemd-libs-222-14.fc23.x86_64 DEBUG: --> Processing Dependency: libpam.so.0()(64bit) for package: systemd-libs-222-14.fc23.x86_64 DEBUG: --> Processing Dependency: libdw.so.1()(64bit) for package: systemd-libs-222-14.fc23.x86_64 DEBUG: --> Running transaction check DEBUG: ---> Package elfutils-libs.x86_64 0:0.165-2.fc23 will be installed DEBUG: --> Processing Dependency: elfutils-libelf(x86-64) = 0.165-2.fc23 for package: elfutils-libs-0.165-2.fc23.x86_64 DEBUG: --> Processing Dependency: libelf.so.1(ELFUTILS_1.7)(64bit) for package: elfutils-libs-0.165-2.fc23.x86_64 DEBUG: --> Processing Dependency: libelf.so.1(ELFUTILS_1.6)(64bit) for package: elfutils-libs-0.165-2.fc23.x86_64 DEBUG: --> Processing Dependency: libelf.so.1(ELFUTILS_1.5)(64bit) for package: elfutils-libs-0.165-2.fc23.x86_64 DEBUG: --> Processing Dependency: libelf.so.1(ELFUTILS_1.4)(64bit) for package: elfutils-libs-0.165-2.fc23.x86_64 DEBUG: --> Processing Dependency: libelf.so.1(ELFUTILS_1.3)(64bit) for package: elfutils-libs-0.165-2.fc23.x86_64 DEBUG: --> Processing Dependency: libelf.so.1(ELFUTILS_1.1.1)(64bit) for package: elfutils-libs-0.165-2.fc23.x86_64 DEBUG: --> Processing Dependency: libelf.so.1(ELFUTILS_1.0)(64bit) for package: elfutils-libs-0.165-2.fc23.x86_64 DEBUG: --> Processing Dependency: default-yama-scope for package: elfutils-libs-0.165-2.fc23.x86_64 DEBUG: --> Processing Dependency: libelf.so.1()(64bit) for package: elfutils-libs-0.165-2.fc23.x86_64 DEBUG: ---> Package libseccomp.x86_64 0:2.2.3-0.fc23 will be installed DEBUG: ---> Package pam.x86_64 0:1.2.1-2.fc23 will be installed DEBUG: --> Processing Dependency: libpwquality >= 0.9.9 for package: pam-1.2.1-2.fc23.x86_64 DEBUG: --> Processing Dependency: cracklib-dicts >= 2.8 for package: pam-1.2.1-2.fc23.x86_64 DEBUG: --> Processing Dependency: libcrack.so.2()(64bit) for package: pam-1.2.1-2.fc23.x86_64 DEBUG: --> Running transaction check DEBUG: ---> Package cracklib.x86_64 0:2.9.1-6.fc23 will be installed DEBUG: --> Processing Dependency: gzip for package: cracklib-2.9.1-6.fc23.x86_64 DEBUG: ---> Package cracklib-dicts.x86_64 0:2.9.1-6.fc23 will be installed DEBUG: ---> Package elfutils-default-yama-scope.noarch 0:0.165-2.fc23 will be installed DEBUG: ---> Package elfutils-libelf.x86_64 0:0.165-2.fc23 will be installed DEBUG: ---> Package libpwquality.x86_64 0:1.3.0-2.fc23 will be installed DEBUG: --> Running transaction check DEBUG: ---> Package gzip.x86_64 0:1.6-9.fc23 will be installed DEBUG: --> Finished Dependency Resolution DEBUG: Dependencies Resolved DEBUG: ================================================================================ DEBUG: Package Arch Version Repository DEBUG: Size DEBUG: ================================================================================ DEBUG: Installing: DEBUG: gcc-plugin-devel x86_64 5.3.1-2.fc23 updates 1.2 M DEBUG: gmp-devel x86_64 1:6.0.0-12.fc23 fedora 186 k DEBUG: python-debug x86_64 2.7.10-8.fc23 fedora 2.2 M DEBUG: python-devel x86_64 2.7.10-8.fc23 fedora 397 k DEBUG: python-lxml x86_64 3.4.4-1.fc23 fedora 903 k DEBUG: python-pygments noarch 2.0.2-3.fc23 updates 1.6 M DEBUG: python-six noarch 1.9.0-3.fc23 fedora 34 k DEBUG: python-sphinx noarch 1.2.3-4.fc23 fedora 1.2 M DEBUG: python3-debug x86_64 3.4.3-5.fc23 fedora 2.4 M DEBUG: python3-devel x86_64 3.4.3-5.fc23 fedora 188 k DEBUG: python3-lxml x86_64 3.4.4-1.fc23 fedora 907 k DEBUG: python3-pygments noarch 2.0.2-3.fc23 updates 1.5 M DEBUG: python3-six noarch 1.9.0-3.fc23 fedora 34 k DEBUG: Installing for dependencies: DEBUG: audit-libs x86_64 2.4.5-1.fc23 updates 95 k DEBUG: avahi-libs x86_64 0.6.32-0.4.rc.fc23 updates 62 k DEBUG: binutils x86_64 2.25-15.fc23 fedora 5.6 M DEBUG: bzip2-libs x86_64 1.0.6-19.fc23 updates 45 k DEBUG: cpp x86_64 5.3.1-2.fc23 updates 8.3 M DEBUG: cracklib x86_64 2.9.1-6.fc23 fedora 85 k DEBUG: cracklib-dicts x86_64 2.9.1-6.fc23 fedora 3.6 M DEBUG: cups-libs x86_64 1:2.1.3-1.fc23 updates 397 k DEBUG: dbus-libs x86_64 1:1.10.6-1.fc23 updates 173 k DEBUG: elfutils-default-yama-scope noarch 0.165-2.fc23 updates 38 k DEBUG: elfutils-libelf x86_64 0.165-2.fc23 updates 213 k DEBUG: elfutils-libs x86_64 0.165-2.fc23 updates 272 k DEBUG: emacs-filesystem noarch 1:24.5-7.fc23 updates 65 k DEBUG: expat x86_64 2.1.0-12.fc23 fedora 86 k DEBUG: fontconfig x86_64 2.11.94-4.fc23 fedora 241 k DEBUG: fontpackages-filesystem noarch 1.44-14.fc23 fedora 15 k DEBUG: freetype x86_64 2.6.0-3.fc23 fedora 410 k DEBUG: gcc x86_64 5.3.1-2.fc23 updates 19 M DEBUG: gdbm x86_64 1.11-6.fc23 fedora 138 k DEBUG: ghostscript x86_64 9.16-3.fc23 fedora 45 k DEBUG: ghostscript-core x86_64 9.16-3.fc23 fedora 4.4 M DEBUG: ghostscript-fonts noarch 5.50-34.fc23 fedora 329 k DEBUG: ghostscript-x11 x86_64 9.16-3.fc23 fedora 73 k DEBUG: glib2 x86_64 2.46.2-1.fc23 updates 2.3 M DEBUG: glibc-devel x86_64 2.22-10.fc23 updates 910 k DEBUG: glibc-headers x86_64 2.22-10.fc23 updates 494 k DEBUG: gnutls x86_64 3.4.9-1.fc23 updates 657 k DEBUG: gzip x86_64 1.6-9.fc23 fedora 157 k DEBUG: isl x86_64 0.14-4.fc23 fedora 490 k DEBUG: jbigkit-libs x86_64 2.1-4.fc23 fedora 51 k DEBUG: kernel-headers x86_64 4.4.2-301.fc23 updates 1.0 M DEBUG: lcms2 x86_64 2.7-2.fc23 fedora 155 k DEBUG: libICE x86_64 1.0.9-3.fc23 fedora 70 k DEBUG: libSM x86_64 1.2.2-3.fc23 fedora 43 k DEBUG: libX11 x86_64 1.6.3-2.fc23 fedora 608 k DEBUG: libX11-common noarch 1.6.3-2.fc23 fedora 166 k DEBUG: libXau x86_64 1.0.8-5.fc23 fedora 33 k DEBUG: libXext x86_64 1.3.3-3.fc23 fedora 42 k DEBUG: libXfont x86_64 1.5.1-3.fc23 fedora 153 k DEBUG: libXft x86_64 2.3.2-3.fc23 fedora 63 k DEBUG: libXrender x86_64 0.9.9-2.fc23 fedora 30 k DEBUG: libXt x86_64 1.1.5-2.fc23 fedora 178 k DEBUG: libdb x86_64 5.3.28-13.fc23 fedora 736 k DEBUG: libfontenc x86_64 1.1.3-2.fc23 fedora 35 k DEBUG: libgcrypt x86_64 1.6.4-1.fc23 fedora 376 k DEBUG: libgomp x86_64 5.3.1-2.fc23 updates 152 k DEBUG: libgpg-error x86_64 1.21-1.fc23 updates 154 k DEBUG: libidn x86_64 1.32-1.fc23 fedora 233 k DEBUG: libjpeg-turbo x86_64 1.4.1-2.fc23 fedora 147 k DEBUG: libmpc x86_64 1.0.2-4.fc23 fedora 55 k DEBUG: libmpc-devel x86_64 1.0.2-4.fc23 fedora 37 k DEBUG: libpng x86_64 2:1.6.19-2.fc23 updates 118 k DEBUG: libpwquality x86_64 1.3.0-2.fc23 fedora 94 k DEBUG: libseccomp x86_64 2.2.3-0.fc23 fedora 54 k DEBUG: libtiff x86_64 4.0.4-1.fc23 fedora 173 k DEBUG: libuuid x86_64 2.27.1-2.fc23 updates 79 k DEBUG: libwebp x86_64 0.4.4-1.fc23 updates 227 k DEBUG: libxcb x86_64 1.11.1-1.fc23 updates 192 k DEBUG: libxml2 x86_64 2.9.3-2.fc23 updates 684 k DEBUG: libxslt x86_64 1.1.28-11.fc23 fedora 246 k DEBUG: mpfr x86_64 3.1.3-2.fc23 updates 214 k DEBUG: mpfr-devel x86_64 3.1.3-2.fc23 updates 75 k DEBUG: nettle x86_64 3.2-1.fc23 updates 306 k DEBUG: openjpeg2 x86_64 2.1.0-7.fc23 fedora 108 k DEBUG: pam x86_64 1.2.1-2.fc23 fedora 730 k DEBUG: pkgconfig x86_64 1:0.28-9.fc23 fedora 60 k DEBUG: poppler-data noarch 0.4.7-4.fc23 fedora 2.2 M DEBUG: python x86_64 2.7.10-8.fc23 fedora 94 k DEBUG: python-babel noarch 1.3-8.fc23 fedora 2.5 M DEBUG: python-cssselect noarch 0.9.1-6.fc23 fedora 62 k DEBUG: python-docutils noarch 0.12-0.3.20140510svn7747.fc23 fedora 1.5 M DEBUG: python-jinja2 noarch 2.8-2.fc23 fedora 464 k DEBUG: python-libs x86_64 2.7.10-8.fc23 fedora 5.8 M DEBUG: python-macros noarch 2.7.10-8.fc23 fedora 61 k DEBUG: python-markupsafe x86_64 0.23-7.fc23 fedora 35 k DEBUG: python-pillow x86_64 3.0.0-3.fc23 updates 559 k DEBUG: python-pip noarch 7.1.0-1.fc23 fedora 1.5 M DEBUG: python-setuptools noarch 18.0.1-2.fc23 fedora 425 k DEBUG: python-test x86_64 2.7.10-8.fc23 fedora 4.4 M DEBUG: python-tools x86_64 2.7.10-8.fc23 fedora 843 k DEBUG: python3 x86_64 3.4.3-5.fc23 fedora 53 k DEBUG: python3-cssselect noarch 0.9.1-6.fc23 fedora 64 k DEBUG: python3-libs x86_64 3.4.3-5.fc23 fedora 6.7 M DEBUG: python3-pip noarch 7.1.0-1.fc23 fedora 1.6 M DEBUG: python3-setuptools noarch 18.0.1-2.fc23 fedora 406 k DEBUG: python3-test x86_64 3.4.3-5.fc23 fedora 5.9 M DEBUG: python3-tkinter x86_64 3.4.3-5.fc23 fedora 308 k DEBUG: python3-tools x86_64 3.4.3-5.fc23 fedora 410 k DEBUG: pytz noarch 2015.4-1.fc23 fedora 60 k DEBUG: readline x86_64 6.3-6.fc23 fedora 205 k DEBUG: shared-mime-info x86_64 1.5-2.fc23 fedora 302 k DEBUG: sqlite-libs x86_64 3.11.0-2.fc23 updates 449 k DEBUG: systemd-libs x86_64 222-14.fc23 updates 474 k DEBUG: tcl x86_64 1:8.6.4-1.fc23 fedora 2.2 M DEBUG: tix x86_64 1:8.4.3-16.fc23 fedora 259 k DEBUG: tk x86_64 1:8.6.4-2.fc23 fedora 1.6 M DEBUG: tkinter x86_64 2.7.10-8.fc23 fedora 382 k DEBUG: urw-fonts noarch 3:2.4-21.fc23 fedora 3.0 M DEBUG: xorg-x11-font-utils x86_64 1:7.5-29.fc23 fedora 90 k DEBUG: xz-libs x86_64 5.2.1-3.fc23 fedora 90 k DEBUG: zvbi-fonts noarch 0.2.35-1.fc23 updates 121 k DEBUG: Transaction Summary DEBUG: ================================================================================ DEBUG: Install 114 Packages DEBUG: Total size: 114 M DEBUG: Installed size: 393 M DEBUG: Downloading Packages: DEBUG: Running Transaction Check DEBUG: Running Transaction Test DEBUG: Transaction Test Succeeded DEBUG: Running Transaction DEBUG: Installing : 1:tcl-8.6.4-1.fc23.x86_64 1/114 DEBUG: Installing : bzip2-libs-1.0.6-19.fc23.x86_64 2/114 DEBUG: Installing : xz-libs-5.2.1-3.fc23.x86_64 3/114 DEBUG: Installing : expat-2.1.0-12.fc23.x86_64 4/114 DEBUG: Installing : libxml2-2.9.3-2.fc23.x86_64 5/114 DEBUG: Installing : mpfr-3.1.3-2.fc23.x86_64 6/114 DEBUG: Installing : readline-6.3-6.fc23.x86_64 7/114 DEBUG: Installing : sqlite-libs-3.11.0-2.fc23.x86_64 8/114 DEBUG: Installing : gdbm-1.11-6.fc23.x86_64 9/114 DEBUG: Installing : python3-setuptools-18.0.1-2.fc23.noarch 10/114 DEBUG: Installing : python3-pip-7.1.0-1.fc23.noarch 11/114 DEBUG: Installing : python3-3.4.3-5.fc23.x86_64 12/114 DEBUG: Installing : python3-libs-3.4.3-5.fc23.x86_64 13/114 DEBUG: Installing : libmpc-1.0.2-4.fc23.x86_64 14/114 DEBUG: Installing : libgpg-error-1.21-1.fc23.x86_64 15/114 DEBUG: Installing : libdb-5.3.28-13.fc23.x86_64 16/114 DEBUG: Installing : python-libs-2.7.10-8.fc23.x86_64 17/114 DEBUG: Installing : python-setuptools-18.0.1-2.fc23.noarch 18/114 DEBUG: Installing : python-pip-7.1.0-1.fc23.noarch 19/114 DEBUG: Installing : python-2.7.10-8.fc23.x86_64 20/114 DEBUG: Installing : 1:gmp-devel-6.0.0-12.fc23.x86_64 21/114 DEBUG: Installing : libICE-1.0.9-3.fc23.x86_64 22/114 DEBUG: Installing : libjpeg-turbo-1.4.1-2.fc23.x86_64 23/114 DEBUG: Installing : mpfr-devel-3.1.3-2.fc23.x86_64 24/114 DEBUG: Installing : libgcrypt-1.6.4-1.fc23.x86_64 25/114 DEBUG: Installing : libxslt-1.1.28-11.fc23.x86_64 26/114 DEBUG: Installing : libfontenc-1.1.3-2.fc23.x86_64 27/114 DEBUG: Installing : audit-libs-2.4.5-1.fc23.x86_64 28/114 DEBUG: Installing : openjpeg2-2.1.0-7.fc23.x86_64 29/114 DEBUG: Installing : 2:libpng-1.6.19-2.fc23.x86_64 30/114 DEBUG: Installing : freetype-2.6.0-3.fc23.x86_64 31/114 DEBUG: Installing : lcms2-2.7-2.fc23.x86_64 32/114 DEBUG: Installing : python-macros-2.7.10-8.fc23.noarch 33/114 DEBUG: Installing : libXfont-1.5.1-3.fc23.x86_64 34/114 DEBUG: Installing : libmpc-devel-1.0.2-4.fc23.x86_64 35/114 DEBUG: Installing : python-test-2.7.10-8.fc23.x86_64 36/114 DEBUG: Installing : python-cssselect-0.9.1-6.fc23.noarch 37/114 DEBUG: Installing : python-markupsafe-0.23-7.fc23.x86_64 38/114 DEBUG: Installing : pytz-2015.4-1.fc23.noarch 39/114 DEBUG: Installing : python-babel-1.3-8.fc23.noarch 40/114 DEBUG: Installing : python-jinja2-2.8-2.fc23.noarch 41/114 DEBUG: Installing : cpp-5.3.1-2.fc23.x86_64 42/114 DEBUG: Installing : python3-cssselect-0.9.1-6.fc23.noarch 43/114 DEBUG: Installing : glib2-2.46.2-1.fc23.x86_64 44/114 DEBUG: Installing : shared-mime-info-1.5-2.fc23.x86_64 45/114 DEBUG: Installing : 1:pkgconfig-0.28-9.fc23.x86_64 46/114 DEBUG: Installing : 1:xorg-x11-font-utils-7.5-29.fc23.x86_64 47/114 DEBUG: Installing : python3-devel-3.4.3-5.fc23.x86_64 48/114 DEBUG: Installing : python-devel-2.7.10-8.fc23.x86_64 49/114 DEBUG: Installing : kernel-headers-4.4.2-301.fc23.x86_64 50/114 DEBUG: Installing : glibc-headers-2.22-10.fc23.x86_64 51/114 DEBUG: Installing : glibc-devel-2.22-10.fc23.x86_64 52/114 DEBUG: Installing : binutils-2.25-15.fc23.x86_64 53/114 DEBUG: Installing : libgomp-5.3.1-2.fc23.x86_64 54/114 DEBUG: Installing : libXau-1.0.8-5.fc23.x86_64 55/114 DEBUG: Installing : libxcb-1.11.1-1.fc23.x86_64 56/114 DEBUG: Installing : nettle-3.2-1.fc23.x86_64 57/114 DEBUG: Installing : 1:emacs-filesystem-24.5-7.fc23.noarch 58/114 DEBUG: Installing : libidn-1.32-1.fc23.x86_64 59/114 DEBUG: Installing : gnutls-3.4.9-1.fc23.x86_64 60/114 DEBUG: Installing : isl-0.14-4.fc23.x86_64 61/114 DEBUG: Installing : gcc-5.3.1-2.fc23.x86_64 62/114 DEBUG: Installing : poppler-data-0.4.7-4.fc23.noarch 63/114 DEBUG: Installing : libwebp-0.4.4-1.fc23.x86_64 64/114 DEBUG: Installing : gzip-1.6-9.fc23.x86_64 65/114 DEBUG: Installing : cracklib-2.9.1-6.fc23.x86_64 66/114 DEBUG: Installing : cracklib-dicts-2.9.1-6.fc23.x86_64 67/114 DEBUG: Installing : libpwquality-1.3.0-2.fc23.x86_64 68/114 DEBUG: Installing : pam-1.2.1-2.fc23.x86_64 69/114 DEBUG: Installing : jbigkit-libs-2.1-4.fc23.x86_64 70/114 DEBUG: Installing : libtiff-4.0.4-1.fc23.x86_64 71/114 DEBUG: Installing : elfutils-libelf-0.165-2.fc23.x86_64 72/114 DEBUG: Installing : elfutils-default-yama-scope-0.165-2.fc23.noarch 73/114 DEBUG: Installing : elfutils-libs-0.165-2.fc23.x86_64 74/114 DEBUG: Installing : libuuid-2.27.1-2.fc23.x86_64 75/114 DEBUG: Installing : libSM-1.2.2-3.fc23.x86_64 76/114 DEBUG: Installing : libseccomp-2.2.3-0.fc23.x86_64 77/114 DEBUG: Installing : systemd-libs-222-14.fc23.x86_64 78/114 DEBUG: Installing : 1:dbus-libs-1.10.6-1.fc23.x86_64 79/114 DEBUG: Installing : avahi-libs-0.6.32-0.4.rc.fc23.x86_64 80/114 DEBUG: Installing : 1:cups-libs-2.1.3-1.fc23.x86_64 81/114 DEBUG: Installing : fontpackages-filesystem-1.44-14.fc23.noarch 82/114 DEBUG: Installing : fontconfig-2.11.94-4.fc23.x86_64 83/114 DEBUG: Installing : zvbi-fonts-0.2.35-1.fc23.noarch 84/114 DEBUG: Installing : 3:urw-fonts-2.4-21.fc23.noarch 85/114 DEBUG: Installing : ghostscript-fonts-5.50-34.fc23.noarch 86/114 DEBUG: Installing : ghostscript-core-9.16-3.fc23.x86_64 87/114 DEBUG: Installing : libX11-common-1.6.3-2.fc23.noarch 88/114 DEBUG: Installing : libX11-1.6.3-2.fc23.x86_64 89/114 DEBUG: Installing : libXt-1.1.5-2.fc23.x86_64 90/114 DEBUG: Installing : libXrender-0.9.9-2.fc23.x86_64 91/114 DEBUG: Installing : libXft-2.3.2-3.fc23.x86_64 92/114 DEBUG: Installing : 1:tk-8.6.4-2.fc23.x86_64 93/114 DEBUG: Installing : 1:tix-8.4.3-16.fc23.x86_64 94/114 DEBUG: Installing : tkinter-2.7.10-8.fc23.x86_64 95/114 DEBUG: Installing : python3-tkinter-3.4.3-5.fc23.x86_64 96/114 DEBUG: Installing : python3-tools-3.4.3-5.fc23.x86_64 97/114 DEBUG: Installing : python3-test-3.4.3-5.fc23.x86_64 98/114 DEBUG: Installing : python-tools-2.7.10-8.fc23.x86_64 99/114 DEBUG: Installing : libXext-1.3.3-3.fc23.x86_64 100/114 DEBUG: Installing : ghostscript-x11-9.16-3.fc23.x86_64 101/114 DEBUG: Installing : ghostscript-9.16-3.fc23.x86_64 102/114 DEBUG: Installing : python-pillow-3.0.0-3.fc23.x86_64 103/114 DEBUG: Installing : python-pygments-2.0.2-3.fc23.noarch 104/114 DEBUG: Installing : python-docutils-0.12-0.3.20140510svn7747.fc23.noarch 105/114 DEBUG: Installing : python-sphinx-1.2.3-4.fc23.noarch 106/114 DEBUG: Installing : python-debug-2.7.10-8.fc23.x86_64 107/114 DEBUG: Installing : python3-debug-3.4.3-5.fc23.x86_64 108/114 DEBUG: Installing : gcc-plugin-devel-5.3.1-2.fc23.x86_64 109/114 DEBUG: Installing : python3-lxml-3.4.4-1.fc23.x86_64 110/114 DEBUG: Installing : python-lxml-3.4.4-1.fc23.x86_64 111/114 DEBUG: Installing : python-six-1.9.0-3.fc23.noarch 112/114 DEBUG: Installing : python3-six-1.9.0-3.fc23.noarch 113/114 DEBUG: Installing : python3-pygments-2.0.2-3.fc23.noarch 114/114 DEBUG: Installed: DEBUG: gcc-plugin-devel.x86_64 0:5.3.1-2.fc23 gmp-devel.x86_64 1:6.0.0-12.fc23 DEBUG: python-debug.x86_64 0:2.7.10-8.fc23 python-devel.x86_64 0:2.7.10-8.fc23 DEBUG: python-lxml.x86_64 0:3.4.4-1.fc23 python-pygments.noarch 0:2.0.2-3.fc23 DEBUG: python-six.noarch 0:1.9.0-3.fc23 python-sphinx.noarch 0:1.2.3-4.fc23 DEBUG: python3-debug.x86_64 0:3.4.3-5.fc23 python3-devel.x86_64 0:3.4.3-5.fc23 DEBUG: python3-lxml.x86_64 0:3.4.4-1.fc23 python3-pygments.noarch 0:2.0.2-3.fc23 DEBUG: python3-six.noarch 0:1.9.0-3.fc23 DEBUG: Dependency Installed: DEBUG: audit-libs.x86_64 0:2.4.5-1.fc23 DEBUG: avahi-libs.x86_64 0:0.6.32-0.4.rc.fc23 DEBUG: binutils.x86_64 0:2.25-15.fc23 DEBUG: bzip2-libs.x86_64 0:1.0.6-19.fc23 DEBUG: cpp.x86_64 0:5.3.1-2.fc23 DEBUG: cracklib.x86_64 0:2.9.1-6.fc23 DEBUG: cracklib-dicts.x86_64 0:2.9.1-6.fc23 DEBUG: cups-libs.x86_64 1:2.1.3-1.fc23 DEBUG: dbus-libs.x86_64 1:1.10.6-1.fc23 DEBUG: elfutils-default-yama-scope.noarch 0:0.165-2.fc23 DEBUG: elfutils-libelf.x86_64 0:0.165-2.fc23 DEBUG: elfutils-libs.x86_64 0:0.165-2.fc23 DEBUG: emacs-filesystem.noarch 1:24.5-7.fc23 DEBUG: expat.x86_64 0:2.1.0-12.fc23 DEBUG: fontconfig.x86_64 0:2.11.94-4.fc23 DEBUG: fontpackages-filesystem.noarch 0:1.44-14.fc23 DEBUG: freetype.x86_64 0:2.6.0-3.fc23 DEBUG: gcc.x86_64 0:5.3.1-2.fc23 DEBUG: gdbm.x86_64 0:1.11-6.fc23 DEBUG: ghostscript.x86_64 0:9.16-3.fc23 DEBUG: ghostscript-core.x86_64 0:9.16-3.fc23 DEBUG: ghostscript-fonts.noarch 0:5.50-34.fc23 DEBUG: ghostscript-x11.x86_64 0:9.16-3.fc23 DEBUG: glib2.x86_64 0:2.46.2-1.fc23 DEBUG: glibc-devel.x86_64 0:2.22-10.fc23 DEBUG: glibc-headers.x86_64 0:2.22-10.fc23 DEBUG: gnutls.x86_64 0:3.4.9-1.fc23 DEBUG: gzip.x86_64 0:1.6-9.fc23 DEBUG: isl.x86_64 0:0.14-4.fc23 DEBUG: jbigkit-libs.x86_64 0:2.1-4.fc23 DEBUG: kernel-headers.x86_64 0:4.4.2-301.fc23 DEBUG: lcms2.x86_64 0:2.7-2.fc23 DEBUG: libICE.x86_64 0:1.0.9-3.fc23 DEBUG: libSM.x86_64 0:1.2.2-3.fc23 DEBUG: libX11.x86_64 0:1.6.3-2.fc23 DEBUG: libX11-common.noarch 0:1.6.3-2.fc23 DEBUG: libXau.x86_64 0:1.0.8-5.fc23 DEBUG: libXext.x86_64 0:1.3.3-3.fc23 DEBUG: libXfont.x86_64 0:1.5.1-3.fc23 DEBUG: libXft.x86_64 0:2.3.2-3.fc23 DEBUG: libXrender.x86_64 0:0.9.9-2.fc23 DEBUG: libXt.x86_64 0:1.1.5-2.fc23 DEBUG: libdb.x86_64 0:5.3.28-13.fc23 DEBUG: libfontenc.x86_64 0:1.1.3-2.fc23 DEBUG: libgcrypt.x86_64 0:1.6.4-1.fc23 DEBUG: libgomp.x86_64 0:5.3.1-2.fc23 DEBUG: libgpg-error.x86_64 0:1.21-1.fc23 DEBUG: libidn.x86_64 0:1.32-1.fc23 DEBUG: libjpeg-turbo.x86_64 0:1.4.1-2.fc23 DEBUG: libmpc.x86_64 0:1.0.2-4.fc23 DEBUG: libmpc-devel.x86_64 0:1.0.2-4.fc23 DEBUG: libpng.x86_64 2:1.6.19-2.fc23 DEBUG: libpwquality.x86_64 0:1.3.0-2.fc23 DEBUG: libseccomp.x86_64 0:2.2.3-0.fc23 DEBUG: libtiff.x86_64 0:4.0.4-1.fc23 DEBUG: libuuid.x86_64 0:2.27.1-2.fc23 DEBUG: libwebp.x86_64 0:0.4.4-1.fc23 DEBUG: libxcb.x86_64 0:1.11.1-1.fc23 DEBUG: libxml2.x86_64 0:2.9.3-2.fc23 DEBUG: libxslt.x86_64 0:1.1.28-11.fc23 DEBUG: mpfr.x86_64 0:3.1.3-2.fc23 DEBUG: mpfr-devel.x86_64 0:3.1.3-2.fc23 DEBUG: nettle.x86_64 0:3.2-1.fc23 DEBUG: openjpeg2.x86_64 0:2.1.0-7.fc23 DEBUG: pam.x86_64 0:1.2.1-2.fc23 DEBUG: pkgconfig.x86_64 1:0.28-9.fc23 DEBUG: poppler-data.noarch 0:0.4.7-4.fc23 DEBUG: python.x86_64 0:2.7.10-8.fc23 DEBUG: python-babel.noarch 0:1.3-8.fc23 DEBUG: python-cssselect.noarch 0:0.9.1-6.fc23 DEBUG: python-docutils.noarch 0:0.12-0.3.20140510svn7747.fc23 DEBUG: python-jinja2.noarch 0:2.8-2.fc23 DEBUG: python-libs.x86_64 0:2.7.10-8.fc23 DEBUG: python-macros.noarch 0:2.7.10-8.fc23 DEBUG: python-markupsafe.x86_64 0:0.23-7.fc23 DEBUG: python-pillow.x86_64 0:3.0.0-3.fc23 DEBUG: python-pip.noarch 0:7.1.0-1.fc23 DEBUG: python-setuptools.noarch 0:18.0.1-2.fc23 DEBUG: python-test.x86_64 0:2.7.10-8.fc23 DEBUG: python-tools.x86_64 0:2.7.10-8.fc23 DEBUG: python3.x86_64 0:3.4.3-5.fc23 DEBUG: python3-cssselect.noarch 0:0.9.1-6.fc23 DEBUG: python3-libs.x86_64 0:3.4.3-5.fc23 DEBUG: python3-pip.noarch 0:7.1.0-1.fc23 DEBUG: python3-setuptools.noarch 0:18.0.1-2.fc23 DEBUG: python3-test.x86_64 0:3.4.3-5.fc23 DEBUG: python3-tkinter.x86_64 0:3.4.3-5.fc23 DEBUG: python3-tools.x86_64 0:3.4.3-5.fc23 DEBUG: pytz.noarch 0:2015.4-1.fc23 DEBUG: readline.x86_64 0:6.3-6.fc23 DEBUG: shared-mime-info.x86_64 0:1.5-2.fc23 DEBUG: sqlite-libs.x86_64 0:3.11.0-2.fc23 DEBUG: systemd-libs.x86_64 0:222-14.fc23 DEBUG: tcl.x86_64 1:8.6.4-1.fc23 DEBUG: tix.x86_64 1:8.4.3-16.fc23 DEBUG: tk.x86_64 1:8.6.4-2.fc23 DEBUG: tkinter.x86_64 0:2.7.10-8.fc23 DEBUG: urw-fonts.noarch 3:2.4-21.fc23 DEBUG: xorg-x11-font-utils.x86_64 1:7.5-29.fc23 DEBUG: xz-libs.x86_64 0:5.2.1-3.fc23 DEBUG: zvbi-fonts.noarch 0:0.2.35-1.fc23 DEBUG: Complete! DEBUG: Child return code was: 0 Finish: build setup for gcc-python-plugin-0.14-4.fc23.src.rpm Start: rpmbuild gcc-python-plugin-0.14-4.fc23.src.rpm DEBUG: child environment: None DEBUG: Executing command: ['ccache', '-M', '4G'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'CCACHE_DIR': '/tmp/ccache', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'CCACHE_UMASK': '002'} DEBUG: Set cache size limit to 4.0 GB DEBUG: Child return code was: 0 INFO: ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/gcc-python-plugin.spec '], chrootPath='/var/lib/mock/fedora-23-x86_64-mock_2/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'CCACHE_DIR': '/tmp/ccache', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'CCACHE_UMASK': '002'}gid=999user='mockbuild'timeout=0logger=uid=105) DEBUG: child environment: None DEBUG: Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/gcc-python-plugin.spec '] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'CCACHE_DIR': '/tmp/ccache', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'CCACHE_UMASK': '002'} DEBUG: warning: Macro expanded in comment on line 17: # Release: %{gcc_release}%{?dist} DEBUG: Building target platforms: x86_64 DEBUG: Building for target x86_64 DEBUG: Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.3mlVyB DEBUG: + umask 022 DEBUG: + cd /builddir/build/BUILD DEBUG: + cd /builddir/build/BUILD DEBUG: + rm -rf gcc-python-plugin-0.14 DEBUG: + /usr/bin/gzip -dc /builddir/build/SOURCES/gcc-python-plugin-0.14.tar.gz DEBUG: + /usr/bin/tar -xof - DEBUG: + STATUS=0 DEBUG: + '[' 0 -ne 0 ']' DEBUG: + cd gcc-python-plugin-0.14 DEBUG: + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . DEBUG: Patch #1 (fix-python-3.4-failures.patch): DEBUG: + echo 'Patch #1 (fix-python-3.4-failures.patch):' DEBUG: + /usr/bin/patch -p1 -b --suffix .fix-python-3.4-failures --fuzz=0 DEBUG: patching file run-test-suite.py DEBUG: Patch #2 (arm-fixes.patch): DEBUG: + echo 'Patch #2 (arm-fixes.patch):' DEBUG: + /usr/bin/patch -p1 -b --suffix .arm-fixes.patch --fuzz=0 DEBUG: patching file run-test-suite.py DEBUG: + PrepPlugin python2 DEBUG: + PluginName=python2 DEBUG: + BuildDir=../gcc-python-plugin-0.14-building-for-python2 DEBUG: + rm -rf ../gcc-python-plugin-0.14-building-for-python2 DEBUG: + cp -a . ../gcc-python-plugin-0.14-building-for-python2 DEBUG: + PrepPlugin python2_debug DEBUG: + PluginName=python2_debug DEBUG: + BuildDir=../gcc-python-plugin-0.14-building-for-python2_debug DEBUG: + rm -rf ../gcc-python-plugin-0.14-building-for-python2_debug DEBUG: + cp -a . ../gcc-python-plugin-0.14-building-for-python2_debug DEBUG: + PrepPlugin python3 DEBUG: + PluginName=python3 DEBUG: + BuildDir=../gcc-python-plugin-0.14-building-for-python3 DEBUG: + rm -rf ../gcc-python-plugin-0.14-building-for-python3 DEBUG: + cp -a . ../gcc-python-plugin-0.14-building-for-python3 DEBUG: + PrepPlugin python3_debug DEBUG: + PluginName=python3_debug DEBUG: + BuildDir=../gcc-python-plugin-0.14-building-for-python3_debug DEBUG: + rm -rf ../gcc-python-plugin-0.14-building-for-python3_debug DEBUG: + cp -a . ../gcc-python-plugin-0.14-building-for-python3_debug DEBUG: + exit 0 DEBUG: Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.3sB9vp DEBUG: + umask 022 DEBUG: + cd /builddir/build/BUILD DEBUG: + cd gcc-python-plugin-0.14 DEBUG: + echo 'gcc_vr: 5.3.1-2.fc23' DEBUG: gcc_vr: 5.3.1-2.fc23 DEBUG: ~/build/BUILD/gcc-python-plugin-0.14-building-for-python2 ~/build/BUILD/gcc-python-plugin-0.14 DEBUG: + BuildPlugin python python-config python2.so python2 DEBUG: + PythonExe=python DEBUG: + PythonConfig=python-config DEBUG: + PluginDso=python2.so DEBUG: + PluginName=python2 DEBUG: + BuildDir=../gcc-python-plugin-0.14-building-for-python2 DEBUG: + pushd ../gcc-python-plugin-0.14-building-for-python2 DEBUG: + make -j8 PLUGIN_NAME=python2 PLUGIN_DSO=python2.so PYTHON=python PYTHON_CONFIG=python-config PLUGIN_PYTHONPATH=/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2 plugin print-gcc-version DEBUG: Makefile:193: warning: overriding recipe for target 'autogenerated-casts.c' DEBUG: Makefile:190: warning: ignoring old recipe for target 'autogenerated-casts.c' DEBUG: python generate-config-h.py -o autogenerated-config.h --gcc="cc" --plugindir="/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin" DEBUG: cd gcc-c-api && make libgcc-c-api.so CC=cc DEBUG: make[1]: Entering directory '/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/gcc-c-api' DEBUG: make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. DEBUG: python xml-to-h.py DEBUG: cc -E -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -x c-header gimple-types.txt.in -o autogenerated-gimple-types.txt DEBUG: cc -E -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -x c-header tree-types.txt.in -o autogenerated-tree-types.txt DEBUG: cc -E -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -x c-header rtl-types.txt.in -o autogenerated-rtl-types.txt DEBUG: Checking whether cc was built with C or C++... C++ DEBUG: checking for gcc-plugin.h... found DEBUG: checking whether plugin.def defines PLUGIN_FINISH_DECL... yes DEBUG: checking whether passes are C++ classes... yes DEBUG: writing autogenerated-config.h DEBUG: writing autogenerated-EXTRA_CFLAGS.txt DEBUG: cc \ DEBUG: -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall \ DEBUG: -x c++ -fno-rtti \ DEBUG: -o print-gcc-version \ DEBUG: print-gcc-version.c DEBUG: python generate-callgraph-c.py > autogenerated-callgraph.c DEBUG: python generate-casts-c.py autogenerated-casts.c autogenerated-casts.h DEBUG: python generate-cfg-c.py > autogenerated-cfg.c DEBUG: python generate-option-c.py > autogenerated-option.c DEBUG: python generate-function-c.py > autogenerated-function.c DEBUG: python generate-gimple-c.py > autogenerated-gimple.c DEBUG: python generate-location-c.py > autogenerated-location.c DEBUG: python generate-parameter-c.py > autogenerated-parameter.c DEBUG: python generate-pass-c.py > autogenerated-pass.c DEBUG: python generate-pretty-printer-c.py > autogenerated-pretty-printer.c DEBUG: python generate-rtl-c.py > autogenerated-rtl.c DEBUG: python generate-tree-c.py > autogenerated-tree.c DEBUG: python generate-variable-c.py > autogenerated-variable.c DEBUG: make: 'print-gcc-version' is up to date. DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-callgraph.o gcc-callgraph.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-cfg.o gcc-cfg.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-constant.o gcc-constant.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-declaration.o gcc-declaration.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-diagnostics.o gcc-diagnostics.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-function.o gcc-function.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-gimple.o gcc-gimple.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-location.o gcc-location.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-option.o gcc-option.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-rtl.o gcc-rtl.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-tree.o gcc-tree.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-type.o gcc-type.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-variable.o gcc-variable.c DEBUG: python generate-casts-c.py autogenerated-casts.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o autogenerated-casts.o autogenerated-casts.c DEBUG: cc -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -shared gcc-callgraph.o gcc-cfg.o gcc-constant.o gcc-declaration.o gcc-diagnostics.o gcc-function.o gcc-gimple.o gcc-location.o gcc-option.o gcc-rtl.o gcc-tree.o gcc-type.o gcc-variable.o autogenerated-casts.o -o libgcc-c-api.so DEBUG: make[1]: Leaving directory '/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/gcc-c-api' DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o gcc-python.o gcc-python.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o gcc-python-attribute.o gcc-python-attribute.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o gcc-python-callbacks.o gcc-python-callbacks.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o gcc-python-callgraph.o gcc-python-callgraph.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o gcc-python-cfg.o gcc-python-cfg.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o gcc-python-closure.o gcc-python-closure.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o gcc-python-diagnostics.o gcc-python-diagnostics.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o gcc-python-function.o gcc-python-function.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o gcc-python-gimple.o gcc-python-gimple.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o gcc-python-location.o gcc-python-location.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o gcc-python-option.o gcc-python-option.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o gcc-python-parameter.o gcc-python-parameter.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o gcc-python-pass.o gcc-python-pass.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o gcc-python-pretty-printer.o gcc-python-pretty-printer.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o gcc-python-rtl.o gcc-python-rtl.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o gcc-python-tree.o gcc-python-tree.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o gcc-python-variable.o gcc-python-variable.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o gcc-python-version.o gcc-python-version.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o gcc-python-wrapper.o gcc-python-wrapper.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o autogenerated-callgraph.o autogenerated-callgraph.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o autogenerated-casts.o autogenerated-casts.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o autogenerated-cfg.o autogenerated-cfg.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o autogenerated-option.o autogenerated-option.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o autogenerated-function.o autogenerated-function.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o autogenerated-gimple.o autogenerated-gimple.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o autogenerated-location.o autogenerated-location.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o autogenerated-parameter.o autogenerated-parameter.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o autogenerated-pass.o autogenerated-pass.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o autogenerated-pretty-printer.o autogenerated-pretty-printer.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o autogenerated-rtl.o autogenerated-rtl.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o autogenerated-tree.o autogenerated-tree.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -c -x c++ -fno-rtti -o autogenerated-variable.o autogenerated-variable.c DEBUG: cc \ DEBUG: -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7 -I/usr/include/python2.7 -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2"' -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall \ DEBUG: -shared \ DEBUG: gcc-python.o gcc-python-attribute.o gcc-python-callbacks.o gcc-python-callgraph.o gcc-python-cfg.o gcc-python-closure.o gcc-python-diagnostics.o gcc-python-function.o gcc-python-gimple.o gcc-python-location.o gcc-python-option.o gcc-python-parameter.o gcc-python-pass.o gcc-python-pretty-printer.o gcc-python-rtl.o gcc-python-tree.o gcc-python-variable.o gcc-python-version.o gcc-python-wrapper.o autogenerated-callgraph.o autogenerated-casts.o autogenerated-cfg.o autogenerated-option.o autogenerated-function.o autogenerated-gimple.o autogenerated-location.o autogenerated-parameter.o autogenerated-pass.o autogenerated-pretty-printer.o autogenerated-rtl.o autogenerated-tree.o autogenerated-variable.o \ DEBUG: -o python2.so \ DEBUG: -lpython2.7 -lpthread -ldl -lutil -lm \ DEBUG: -lgcc-c-api -Lgcc-c-api -Wl,-rpath=/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin DEBUG: ~/build/BUILD/gcc-python-plugin-0.14 DEBUG: ~/build/BUILD/gcc-python-plugin-0.14-building-for-python2_debug ~/build/BUILD/gcc-python-plugin-0.14 DEBUG: + popd DEBUG: + BuildPlugin python-debug python-debug-config python2_debug.so python2_debug DEBUG: + PythonExe=python-debug DEBUG: + PythonConfig=python-debug-config DEBUG: + PluginDso=python2_debug.so DEBUG: + PluginName=python2_debug DEBUG: + BuildDir=../gcc-python-plugin-0.14-building-for-python2_debug DEBUG: + pushd ../gcc-python-plugin-0.14-building-for-python2_debug DEBUG: + make -j8 PLUGIN_NAME=python2_debug PLUGIN_DSO=python2_debug.so PYTHON=python-debug PYTHON_CONFIG=python-debug-config PLUGIN_PYTHONPATH=/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug plugin print-gcc-version DEBUG: Makefile:193: warning: overriding recipe for target 'autogenerated-casts.c' DEBUG: Makefile:190: warning: ignoring old recipe for target 'autogenerated-casts.c' DEBUG: python-debug generate-config-h.py -o autogenerated-config.h --gcc="cc" --plugindir="/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin" DEBUG: cd gcc-c-api && make libgcc-c-api.so CC=cc DEBUG: make[1]: Entering directory '/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2_debug/gcc-c-api' DEBUG: make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. DEBUG: python-debug xml-to-h.py DEBUG: [20286 refs] DEBUG: cc -E -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -x c-header gimple-types.txt.in -o autogenerated-gimple-types.txt DEBUG: Checking whether cc was built with C or C++... C++ DEBUG: checking for gcc-plugin.h... found DEBUG: checking whether plugin.def defines PLUGIN_FINISH_DECL... yes DEBUG: checking whether passes are C++ classes... yes DEBUG: writing autogenerated-config.h DEBUG: writing autogenerated-EXTRA_CFLAGS.txt DEBUG: [30228 refs] DEBUG: [20286 refs] DEBUG: cc -E -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -x c-header tree-types.txt.in -o autogenerated-tree-types.txt DEBUG: [20286 refs] DEBUG: cc -E -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -x c-header rtl-types.txt.in -o autogenerated-rtl-types.txt DEBUG: [20286 refs] DEBUG: cc \ DEBUG: -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall \ DEBUG: -x c++ -fno-rtti \ DEBUG: -o print-gcc-version \ DEBUG: print-gcc-version.c DEBUG: python-debug generate-callgraph-c.py > autogenerated-callgraph.c DEBUG: python-debug generate-casts-c.py autogenerated-casts.c autogenerated-casts.h DEBUG: python-debug generate-cfg-c.py > autogenerated-cfg.c DEBUG: python-debug generate-option-c.py > autogenerated-option.c DEBUG: python-debug generate-function-c.py > autogenerated-function.c DEBUG: python-debug generate-gimple-c.py > autogenerated-gimple.c DEBUG: python-debug generate-location-c.py > autogenerated-location.c DEBUG: [23716 refs] DEBUG: [23712 refs] DEBUG: [23712 refs] DEBUG: python-debug generate-parameter-c.py > autogenerated-parameter.c DEBUG: python-debug generate-pass-c.py > autogenerated-pass.c DEBUG: python-debug generate-pretty-printer-c.py > autogenerated-pretty-printer.c DEBUG: [23710 refs] DEBUG: python-debug generate-rtl-c.py > autogenerated-rtl.c DEBUG: [23710 refs] DEBUG: python-debug generate-tree-c.py > autogenerated-tree.c DEBUG: [23710 refs] DEBUG: python-debug generate-variable-c.py > autogenerated-variable.c DEBUG: make: 'print-gcc-version' is up to date. DEBUG: [23710 refs] DEBUG: [23710 refs] DEBUG: [23710 refs] DEBUG: [24851 refs] DEBUG: [43470 refs] DEBUG: [43466 refs] DEBUG: [31757 refs] DEBUG: [36571 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-callgraph.o gcc-callgraph.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-cfg.o gcc-cfg.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-constant.o gcc-constant.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-declaration.o gcc-declaration.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-diagnostics.o gcc-diagnostics.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-function.o gcc-function.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-gimple.o gcc-gimple.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-location.o gcc-location.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-option.o gcc-option.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-rtl.o gcc-rtl.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-tree.o gcc-tree.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-type.o gcc-type.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-variable.o gcc-variable.c DEBUG: python-debug generate-casts-c.py autogenerated-casts.c DEBUG: [31757 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o autogenerated-casts.o autogenerated-casts.c DEBUG: cc -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -shared gcc-callgraph.o gcc-cfg.o gcc-constant.o gcc-declaration.o gcc-diagnostics.o gcc-function.o gcc-gimple.o gcc-location.o gcc-option.o gcc-rtl.o gcc-tree.o gcc-type.o gcc-variable.o autogenerated-casts.o -o libgcc-c-api.so DEBUG: make[1]: Leaving directory '/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2_debug/gcc-c-api' DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o gcc-python.o gcc-python.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o gcc-python-attribute.o gcc-python-attribute.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o gcc-python-callbacks.o gcc-python-callbacks.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o gcc-python-callgraph.o gcc-python-callgraph.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o gcc-python-cfg.o gcc-python-cfg.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o gcc-python-closure.o gcc-python-closure.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o gcc-python-diagnostics.o gcc-python-diagnostics.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o gcc-python-function.o gcc-python-function.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o gcc-python-gimple.o gcc-python-gimple.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o gcc-python-location.o gcc-python-location.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o gcc-python-option.o gcc-python-option.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o gcc-python-parameter.o gcc-python-parameter.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o gcc-python-pass.o gcc-python-pass.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o gcc-python-pretty-printer.o gcc-python-pretty-printer.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o gcc-python-rtl.o gcc-python-rtl.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o gcc-python-tree.o gcc-python-tree.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o gcc-python-variable.o gcc-python-variable.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o gcc-python-version.o gcc-python-version.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o gcc-python-wrapper.o gcc-python-wrapper.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o autogenerated-callgraph.o autogenerated-callgraph.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o autogenerated-casts.o autogenerated-casts.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o autogenerated-cfg.o autogenerated-cfg.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o autogenerated-option.o autogenerated-option.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o autogenerated-function.o autogenerated-function.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o autogenerated-gimple.o autogenerated-gimple.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o autogenerated-location.o autogenerated-location.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o autogenerated-parameter.o autogenerated-parameter.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o autogenerated-pass.o autogenerated-pass.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o autogenerated-pretty-printer.o autogenerated-pretty-printer.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o autogenerated-rtl.o autogenerated-rtl.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o autogenerated-tree.o autogenerated-tree.c DEBUG: [20286 refs] DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -c -x c++ -fno-rtti -o autogenerated-variable.o autogenerated-variable.c DEBUG: [20286 refs] DEBUG: [20286 refs] DEBUG: cc \ DEBUG: -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python2.7-debug -I/usr/include/python2.7-debug -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug"' -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall \ DEBUG: -shared \ DEBUG: gcc-python.o gcc-python-attribute.o gcc-python-callbacks.o gcc-python-callgraph.o gcc-python-cfg.o gcc-python-closure.o gcc-python-diagnostics.o gcc-python-function.o gcc-python-gimple.o gcc-python-location.o gcc-python-option.o gcc-python-parameter.o gcc-python-pass.o gcc-python-pretty-printer.o gcc-python-rtl.o gcc-python-tree.o gcc-python-variable.o gcc-python-version.o gcc-python-wrapper.o autogenerated-callgraph.o autogenerated-casts.o autogenerated-cfg.o autogenerated-option.o autogenerated-function.o autogenerated-gimple.o autogenerated-location.o autogenerated-parameter.o autogenerated-pass.o autogenerated-pretty-printer.o autogenerated-rtl.o autogenerated-tree.o autogenerated-variable.o \ DEBUG: -o python2_debug.so \ DEBUG: -lpython2.7_d -lpthread -ldl -lutil -lm \ DEBUG: -lgcc-c-api -Lgcc-c-api -Wl,-rpath=/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin DEBUG: ~/build/BUILD/gcc-python-plugin-0.14 DEBUG: ~/build/BUILD/gcc-python-plugin-0.14-building-for-python3 ~/build/BUILD/gcc-python-plugin-0.14 DEBUG: + popd DEBUG: + BuildPlugin python3 python3-config python3.so python3 DEBUG: + PythonExe=python3 DEBUG: + PythonConfig=python3-config DEBUG: + PluginDso=python3.so DEBUG: + PluginName=python3 DEBUG: + BuildDir=../gcc-python-plugin-0.14-building-for-python3 DEBUG: + pushd ../gcc-python-plugin-0.14-building-for-python3 DEBUG: + make -j8 PLUGIN_NAME=python3 PLUGIN_DSO=python3.so PYTHON=python3 PYTHON_CONFIG=python3-config PLUGIN_PYTHONPATH=/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3 plugin print-gcc-version DEBUG: Makefile:193: warning: overriding recipe for target 'autogenerated-casts.c' DEBUG: Makefile:190: warning: ignoring old recipe for target 'autogenerated-casts.c' DEBUG: python3 generate-config-h.py -o autogenerated-config.h --gcc="cc" --plugindir="/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin" DEBUG: cd gcc-c-api && make libgcc-c-api.so CC=cc DEBUG: make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. DEBUG: make[1]: Entering directory '/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python3/gcc-c-api' DEBUG: python3 xml-to-h.py DEBUG: cc -E -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -x c-header gimple-types.txt.in -o autogenerated-gimple-types.txt DEBUG: cc -E -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -x c-header tree-types.txt.in -o autogenerated-tree-types.txt DEBUG: cc -E -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -x c-header rtl-types.txt.in -o autogenerated-rtl-types.txt DEBUG: Checking whether cc was built with C or C++... C++ DEBUG: checking for gcc-plugin.h... found DEBUG: checking whether plugin.def defines PLUGIN_FINISH_DECL... yes DEBUG: checking whether passes are C++ classes... yes DEBUG: writing autogenerated-config.h DEBUG: writing autogenerated-EXTRA_CFLAGS.txt DEBUG: cc \ DEBUG: -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall \ DEBUG: -x c++ -fno-rtti \ DEBUG: -o print-gcc-version \ DEBUG: print-gcc-version.c DEBUG: python3 generate-callgraph-c.py > autogenerated-callgraph.c DEBUG: python3 generate-casts-c.py autogenerated-casts.c autogenerated-casts.h DEBUG: python3 generate-cfg-c.py > autogenerated-cfg.c DEBUG: python3 generate-option-c.py > autogenerated-option.c DEBUG: python3 generate-function-c.py > autogenerated-function.c DEBUG: python3 generate-gimple-c.py > autogenerated-gimple.c DEBUG: python3 generate-location-c.py > autogenerated-location.c DEBUG: python3 generate-parameter-c.py > autogenerated-parameter.c DEBUG: python3 generate-pass-c.py > autogenerated-pass.c DEBUG: python3 generate-pretty-printer-c.py > autogenerated-pretty-printer.c DEBUG: python3 generate-rtl-c.py > autogenerated-rtl.c DEBUG: python3 generate-tree-c.py > autogenerated-tree.c DEBUG: python3 generate-variable-c.py > autogenerated-variable.c DEBUG: make: 'print-gcc-version' is up to date. DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-callgraph.o gcc-callgraph.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-cfg.o gcc-cfg.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-constant.o gcc-constant.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-declaration.o gcc-declaration.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-diagnostics.o gcc-diagnostics.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-function.o gcc-function.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-gimple.o gcc-gimple.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-location.o gcc-location.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-option.o gcc-option.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-rtl.o gcc-rtl.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-tree.o gcc-tree.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-type.o gcc-type.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-variable.o gcc-variable.c DEBUG: python3 generate-casts-c.py autogenerated-casts.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o autogenerated-casts.o autogenerated-casts.c DEBUG: cc -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -shared gcc-callgraph.o gcc-cfg.o gcc-constant.o gcc-declaration.o gcc-diagnostics.o gcc-function.o gcc-gimple.o gcc-location.o gcc-option.o gcc-rtl.o gcc-tree.o gcc-type.o gcc-variable.o autogenerated-casts.o -o libgcc-c-api.so DEBUG: make[1]: Leaving directory '/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python3/gcc-c-api' DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o gcc-python.o gcc-python.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o gcc-python-attribute.o gcc-python-attribute.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o gcc-python-callbacks.o gcc-python-callbacks.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o gcc-python-callgraph.o gcc-python-callgraph.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o gcc-python-cfg.o gcc-python-cfg.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o gcc-python-closure.o gcc-python-closure.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o gcc-python-diagnostics.o gcc-python-diagnostics.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o gcc-python-function.o gcc-python-function.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o gcc-python-gimple.o gcc-python-gimple.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o gcc-python-location.o gcc-python-location.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o gcc-python-option.o gcc-python-option.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o gcc-python-parameter.o gcc-python-parameter.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o gcc-python-pass.o gcc-python-pass.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o gcc-python-pretty-printer.o gcc-python-pretty-printer.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o gcc-python-rtl.o gcc-python-rtl.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o gcc-python-tree.o gcc-python-tree.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o gcc-python-variable.o gcc-python-variable.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o gcc-python-version.o gcc-python-version.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o gcc-python-wrapper.o gcc-python-wrapper.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o autogenerated-callgraph.o autogenerated-callgraph.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o autogenerated-casts.o autogenerated-casts.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o autogenerated-cfg.o autogenerated-cfg.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o autogenerated-option.o autogenerated-option.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o autogenerated-function.o autogenerated-function.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o autogenerated-gimple.o autogenerated-gimple.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o autogenerated-location.o autogenerated-location.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o autogenerated-parameter.o autogenerated-parameter.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o autogenerated-pass.o autogenerated-pass.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o autogenerated-pretty-printer.o autogenerated-pretty-printer.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o autogenerated-rtl.o autogenerated-rtl.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o autogenerated-tree.o autogenerated-tree.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -c -x c++ -fno-rtti -o autogenerated-variable.o autogenerated-variable.c DEBUG: cc \ DEBUG: -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4m -I/usr/include/python3.4m -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3"' -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall \ DEBUG: -shared \ DEBUG: gcc-python.o gcc-python-attribute.o gcc-python-callbacks.o gcc-python-callgraph.o gcc-python-cfg.o gcc-python-closure.o gcc-python-diagnostics.o gcc-python-function.o gcc-python-gimple.o gcc-python-location.o gcc-python-option.o gcc-python-parameter.o gcc-python-pass.o gcc-python-pretty-printer.o gcc-python-rtl.o gcc-python-tree.o gcc-python-variable.o gcc-python-version.o gcc-python-wrapper.o autogenerated-callgraph.o autogenerated-casts.o autogenerated-cfg.o autogenerated-option.o autogenerated-function.o autogenerated-gimple.o autogenerated-location.o autogenerated-parameter.o autogenerated-pass.o autogenerated-pretty-printer.o autogenerated-rtl.o autogenerated-tree.o autogenerated-variable.o \ DEBUG: -o python3.so \ DEBUG: -lpython3.4m -lpthread -ldl -lutil -lm \ DEBUG: -lgcc-c-api -Lgcc-c-api -Wl,-rpath=/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin DEBUG: ~/build/BUILD/gcc-python-plugin-0.14 DEBUG: ~/build/BUILD/gcc-python-plugin-0.14-building-for-python3_debug ~/build/BUILD/gcc-python-plugin-0.14 DEBUG: + popd DEBUG: + BuildPlugin python3-debug python3.4dm-config python3_debug.so python3_debug DEBUG: + PythonExe=python3-debug DEBUG: + PythonConfig=python3.4dm-config DEBUG: + PluginDso=python3_debug.so DEBUG: + PluginName=python3_debug DEBUG: + BuildDir=../gcc-python-plugin-0.14-building-for-python3_debug DEBUG: + pushd ../gcc-python-plugin-0.14-building-for-python3_debug DEBUG: + make -j8 PLUGIN_NAME=python3_debug PLUGIN_DSO=python3_debug.so PYTHON=python3-debug PYTHON_CONFIG=python3.4dm-config PLUGIN_PYTHONPATH=/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug plugin print-gcc-version DEBUG: Makefile:193: warning: overriding recipe for target 'autogenerated-casts.c' DEBUG: Makefile:190: warning: ignoring old recipe for target 'autogenerated-casts.c' DEBUG: python3-debug generate-config-h.py -o autogenerated-config.h --gcc="cc" --plugindir="/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin" DEBUG: cd gcc-c-api && make libgcc-c-api.so CC=cc DEBUG: make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. DEBUG: make[1]: Entering directory '/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python3_debug/gcc-c-api' DEBUG: python3-debug xml-to-h.py DEBUG: cc -E -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -x c-header gimple-types.txt.in -o autogenerated-gimple-types.txt DEBUG: cc -E -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -x c-header tree-types.txt.in -o autogenerated-tree-types.txt DEBUG: cc -E -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -x c-header rtl-types.txt.in -o autogenerated-rtl-types.txt DEBUG: Checking whether cc was built with C or C++... C++ DEBUG: checking for gcc-plugin.h... found DEBUG: checking whether plugin.def defines PLUGIN_FINISH_DECL... yes DEBUG: checking whether passes are C++ classes... yes DEBUG: writing autogenerated-config.h DEBUG: writing autogenerated-EXTRA_CFLAGS.txt DEBUG: cc \ DEBUG: -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall \ DEBUG: -x c++ -fno-rtti \ DEBUG: -o print-gcc-version \ DEBUG: print-gcc-version.c DEBUG: python3-debug generate-callgraph-c.py > autogenerated-callgraph.c DEBUG: python3-debug generate-casts-c.py autogenerated-casts.c autogenerated-casts.h DEBUG: python3-debug generate-cfg-c.py > autogenerated-cfg.c DEBUG: python3-debug generate-option-c.py > autogenerated-option.c DEBUG: python3-debug generate-function-c.py > autogenerated-function.c DEBUG: python3-debug generate-gimple-c.py > autogenerated-gimple.c DEBUG: python3-debug generate-location-c.py > autogenerated-location.c DEBUG: python3-debug generate-parameter-c.py > autogenerated-parameter.c DEBUG: python3-debug generate-pass-c.py > autogenerated-pass.c DEBUG: python3-debug generate-pretty-printer-c.py > autogenerated-pretty-printer.c DEBUG: python3-debug generate-rtl-c.py > autogenerated-rtl.c DEBUG: python3-debug generate-tree-c.py > autogenerated-tree.c DEBUG: python3-debug generate-variable-c.py > autogenerated-variable.c DEBUG: make: 'print-gcc-version' is up to date. DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-callgraph.o gcc-callgraph.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-cfg.o gcc-cfg.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-constant.o gcc-constant.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-declaration.o gcc-declaration.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-diagnostics.o gcc-diagnostics.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-function.o gcc-function.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-gimple.o gcc-gimple.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-location.o gcc-location.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-option.o gcc-option.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-rtl.o gcc-rtl.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-tree.o gcc-tree.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-type.o gcc-type.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o gcc-variable.o gcc-variable.c DEBUG: python3-debug generate-casts-c.py autogenerated-casts.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -c -x c++ -fno-rtti -o autogenerated-casts.o autogenerated-casts.c DEBUG: cc -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -shared gcc-callgraph.o gcc-cfg.o gcc-constant.o gcc-declaration.o gcc-diagnostics.o gcc-function.o gcc-gimple.o gcc-location.o gcc-option.o gcc-rtl.o gcc-tree.o gcc-type.o gcc-variable.o autogenerated-casts.o -o libgcc-c-api.so DEBUG: make[1]: Leaving directory '/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python3_debug/gcc-c-api' DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o gcc-python.o gcc-python.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o gcc-python-attribute.o gcc-python-attribute.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o gcc-python-callbacks.o gcc-python-callbacks.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o gcc-python-callgraph.o gcc-python-callgraph.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o gcc-python-cfg.o gcc-python-cfg.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o gcc-python-closure.o gcc-python-closure.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o gcc-python-diagnostics.o gcc-python-diagnostics.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o gcc-python-function.o gcc-python-function.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o gcc-python-gimple.o gcc-python-gimple.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o gcc-python-location.o gcc-python-location.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o gcc-python-option.o gcc-python-option.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o gcc-python-parameter.o gcc-python-parameter.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o gcc-python-pass.o gcc-python-pass.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o gcc-python-pretty-printer.o gcc-python-pretty-printer.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o gcc-python-rtl.o gcc-python-rtl.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o gcc-python-tree.o gcc-python-tree.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o gcc-python-variable.o gcc-python-variable.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o gcc-python-version.o gcc-python-version.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o gcc-python-wrapper.o gcc-python-wrapper.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o autogenerated-callgraph.o autogenerated-callgraph.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o autogenerated-casts.o autogenerated-casts.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o autogenerated-cfg.o autogenerated-cfg.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o autogenerated-option.o autogenerated-option.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o autogenerated-function.o autogenerated-function.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o autogenerated-gimple.o autogenerated-gimple.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o autogenerated-location.o autogenerated-location.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o autogenerated-parameter.o autogenerated-parameter.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o autogenerated-pass.o autogenerated-pass.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o autogenerated-pretty-printer.o autogenerated-pretty-printer.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o autogenerated-rtl.o autogenerated-rtl.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o autogenerated-tree.o autogenerated-tree.c DEBUG: cc -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -c -x c++ -fno-rtti -o autogenerated-variable.o autogenerated-variable.c DEBUG: cc \ DEBUG: -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/include/c-family -I. -I/usr/include/python3.4dm -I/usr/include/python3.4dm -DPLUGIN_PYTHONPATH='"/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug"' -O2 -Werror -g -fPIC -fno-strict-aliasing -Wall \ DEBUG: -shared \ DEBUG: gcc-python.o gcc-python-attribute.o gcc-python-callbacks.o gcc-python-callgraph.o gcc-python-cfg.o gcc-python-closure.o gcc-python-diagnostics.o gcc-python-function.o gcc-python-gimple.o gcc-python-location.o gcc-python-option.o gcc-python-parameter.o gcc-python-pass.o gcc-python-pretty-printer.o gcc-python-rtl.o gcc-python-tree.o gcc-python-variable.o gcc-python-version.o gcc-python-wrapper.o autogenerated-callgraph.o autogenerated-casts.o autogenerated-cfg.o autogenerated-option.o autogenerated-function.o autogenerated-gimple.o autogenerated-location.o autogenerated-parameter.o autogenerated-pass.o autogenerated-pretty-printer.o autogenerated-rtl.o autogenerated-tree.o autogenerated-variable.o \ DEBUG: -o python3_debug.so \ DEBUG: -lpython3.4dm -lpthread -ldl -lutil -lm \ DEBUG: -lgcc-c-api -Lgcc-c-api -Wl,-rpath=/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin DEBUG: ~/build/BUILD/gcc-python-plugin-0.14 DEBUG: + popd DEBUG: + cd docs DEBUG: + make html DEBUG: sphinx-build -b html -d _build/doctrees . _build/html DEBUG: Making output directory... DEBUG: Running Sphinx v1.2.3 DEBUG: loading pickled environment... not yet created DEBUG: building [html]: targets for 35 source files that are out of date DEBUG: updating environment: 35 added, 0 changed, 0 removed DEBUG: reading sources... [ 2%] 0.10 DEBUG: reading sources... [ 5%] 0.11 DEBUG: reading sources... [ 8%] 0.12 DEBUG: reading sources... [ 11%] 0.13 DEBUG: reading sources... [ 14%] 0.14 DEBUG: reading sources... [ 17%] 0.7 DEBUG: reading sources... [ 20%] 0.8 DEBUG: reading sources... [ 22%] 0.9 DEBUG: reading sources... [ 25%] appendices DEBUG: reading sources... [ 28%] attributes DEBUG: reading sources... [ 31%] basics DEBUG: reading sources... [ 34%] callbacks DEBUG: reading sources... [ 37%] callgraph DEBUG: reading sources... [ 40%] cfg DEBUG: reading sources... [ 42%] cpychecker DEBUG: reading sources... [ 45%] examples DEBUG: reading sources... [ 48%] gcc-overview DEBUG: reading sources... [ 51%] gcc-with-python DEBUG: reading sources... [ 54%] getting-involved DEBUG: reading sources... [ 57%] gimple DEBUG: reading sources... [ 60%] index DEBUG: reading sources... [ 62%] lto DEBUG: reading sources... [ 65%] misc DEBUG: reading sources... [ 68%] operators DEBUG: reading sources... [ 71%] options DEBUG: reading sources... [ 74%] parameters DEBUG: reading sources... [ 77%] passes DEBUG: reading sources... [ 80%] preprocessor DEBUG: reading sources... [ 82%] release-notes DEBUG: reading sources... [ 85%] rtl DEBUG: reading sources... [ 88%] success DEBUG: reading sources... [ 91%] tables-of-passes DEBUG: reading sources... [ 94%] tree DEBUG: reading sources... [ 97%] versions DEBUG: reading sources... [100%] working-with-c DEBUG: looking for now-outdated files... none found DEBUG: pickling environment... done DEBUG: checking consistency... done DEBUG: preparing documents... /builddir/build/BUILD/gcc-python-plugin-0.14/docs/gcc-with-python.rst:: WARNING: document isn't included in any toctree DEBUG: done DEBUG: writing output... [ 2%] 0.10 DEBUG: writing output... [ 5%] 0.11 DEBUG: writing output... [ 8%] 0.12 DEBUG: writing output... [ 11%] 0.13 DEBUG: writing output... [ 14%] 0.14 DEBUG: writing output... [ 17%] 0.7 DEBUG: writing output... [ 20%] 0.8 DEBUG: writing output... [ 22%] 0.9 DEBUG: writing output... [ 25%] appendices DEBUG: writing output... [ 28%] attributes DEBUG: writing output... [ 31%] basics DEBUG: writing output... [ 34%] callbacks DEBUG: writing output... [ 37%] callgraph DEBUG: writing output... [ 40%] cfg DEBUG: writing output... [ 42%] cpychecker DEBUG: writing output... [ 45%] examples DEBUG: writing output... [ 48%] gcc-overview DEBUG: writing output... [ 51%] gcc-with-python DEBUG: writing output... [ 54%] getting-involved DEBUG: writing output... [ 57%] gimple DEBUG: writing output... [ 60%] index DEBUG: writing output... [ 62%] lto DEBUG: writing output... [ 65%] misc DEBUG: writing output... [ 68%] operators DEBUG: writing output... [ 71%] options DEBUG: writing output... [ 74%] parameters DEBUG: writing output... [ 77%] passes DEBUG: writing output... [ 80%] preprocessor DEBUG: writing output... [ 82%] release-notes DEBUG: writing output... [ 85%] rtl DEBUG: writing output... [ 88%] success DEBUG: writing output... [ 91%] tables-of-passes DEBUG: writing output... [ 94%] tree DEBUG: writing output... [ 97%] versions DEBUG: writing output... [100%] working-with-c DEBUG: writing additional files... genindex search DEBUG: copying images... [ 14%] sample-callgraph.png DEBUG: copying images... [ 28%] sample-html-error-report.png DEBUG: copying images... [ 42%] sample-gimple-cfg.png DEBUG: copying images... [ 57%] sample-supergraph.png DEBUG: copying images... [ 71%] new-html-error-report.png DEBUG: copying images... [ 85%] passes.svg DEBUG: copying images... [100%] sample-gimple-ssa-cfg.png DEBUG: copying static files... done DEBUG: copying extra files... done DEBUG: dumping search index... WARNING: html_static_path entry u'/builddir/build/BUILD/gcc-python-plugin-0.14/docs/_static' does not exist DEBUG: done DEBUG: dumping object inventory... done DEBUG: build succeeded, 2 warnings. DEBUG: Build finished. The HTML pages are in _build/html. DEBUG: + rm _build/html/.buildinfo DEBUG: + make man DEBUG: sphinx-build -b man -d _build/doctrees . _build/man DEBUG: Making output directory... DEBUG: Running Sphinx v1.2.3 DEBUG: loading pickled environment... done DEBUG: building [man]: all manpages DEBUG: updating environment: 0 added, 0 changed, 0 removed DEBUG: looking for now-outdated files... none found DEBUG: writing... gcc-python-plugin.1 { basics gcc-overview examples working-with-c cfg tree gimple passes callbacks attributes cpychecker success getting-involved misc callgraph lto options parameters preprocessor versions rtl release-notes 0.14 0.13 0.12 0.11 0.10 0.9 0.8 0.7 appendices tables-of-passes operators } gcc-with-python.1 { } DEBUG: build succeeded. DEBUG: Build finished. The manual pages are in _build/man. DEBUG: + exit 0 DEBUG: Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.9kX7pC DEBUG: + umask 022 DEBUG: + cd /builddir/build/BUILD DEBUG: + '[' /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64 '!=' / ']' DEBUG: + rm -rf /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64 DEBUG: ++ dirname /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64 DEBUG: + mkdir -p /builddir/build/BUILDROOT DEBUG: + mkdir /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64 DEBUG: + cd gcc-python-plugin-0.14 DEBUG: + rm -rf /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64 DEBUG: + mkdir -p /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64//usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin DEBUG: + mkdir -p /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64//usr/bin DEBUG: + mkdir -p /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64//usr/share/man/man1 DEBUG: ~/build/BUILD/gcc-python-plugin-0.14-building-for-python2 ~/build/BUILD/gcc-python-plugin-0.14 DEBUG: + InstallPlugin python python-config python2.so python2 DEBUG: + PythonExe=python DEBUG: + PythonConfig=python-config DEBUG: + PluginDso=python2.so DEBUG: + PluginName=python2 DEBUG: + BuildDir=../gcc-python-plugin-0.14-building-for-python2 DEBUG: + pushd ../gcc-python-plugin-0.14-building-for-python2 DEBUG: + make install DESTDIR=/builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64 PLUGIN_NAME=python2 PLUGIN_DSO=python2.so DEBUG: Makefile:193: warning: overriding recipe for target 'autogenerated-casts.c' DEBUG: Makefile:190: warning: ignoring old recipe for target 'autogenerated-casts.c' DEBUG: cd docs && make man DEBUG: make[1]: Entering directory '/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/docs' DEBUG: sphinx-build -b man -d _build/doctrees . _build/man DEBUG: Making output directory... DEBUG: Running Sphinx v1.2.3 DEBUG: loading pickled environment... not yet created DEBUG: building [man]: all manpages DEBUG: updating environment: 35 added, 0 changed, 0 removed DEBUG: reading sources... [ 2%] 0.10 DEBUG: reading sources... [ 5%] 0.11 DEBUG: reading sources... [ 8%] 0.12 DEBUG: reading sources... [ 11%] 0.13 DEBUG: reading sources... [ 14%] 0.14 DEBUG: reading sources... [ 17%] 0.7 DEBUG: reading sources... [ 20%] 0.8 DEBUG: reading sources... [ 22%] 0.9 DEBUG: reading sources... [ 25%] appendices DEBUG: reading sources... [ 28%] attributes DEBUG: reading sources... [ 31%] basics DEBUG: reading sources... [ 34%] callbacks DEBUG: reading sources... [ 37%] callgraph DEBUG: reading sources... [ 40%] cfg DEBUG: reading sources... [ 42%] cpychecker DEBUG: reading sources... [ 45%] examples DEBUG: reading sources... [ 48%] gcc-overview DEBUG: reading sources... [ 51%] gcc-with-python DEBUG: reading sources... [ 54%] getting-involved DEBUG: reading sources... [ 57%] gimple DEBUG: reading sources... [ 60%] index DEBUG: reading sources... [ 62%] lto DEBUG: reading sources... [ 65%] misc DEBUG: reading sources... [ 68%] operators DEBUG: reading sources... [ 71%] options DEBUG: reading sources... [ 74%] parameters DEBUG: reading sources... [ 77%] passes DEBUG: reading sources... [ 80%] preprocessor DEBUG: reading sources... [ 82%] release-notes DEBUG: reading sources... [ 85%] rtl DEBUG: reading sources... [ 88%] success DEBUG: reading sources... [ 91%] tables-of-passes DEBUG: reading sources... [ 94%] tree DEBUG: reading sources... [ 97%] versions DEBUG: reading sources... [100%] working-with-c DEBUG: looking for now-outdated files... none found DEBUG: pickling environment... done DEBUG: checking consistency... done DEBUG: writing... gcc-python-plugin.1 { /builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/docs/gcc-with-python.rst:: WARNING: document isn't included in any toctree DEBUG: basics gcc-overview examples working-with-c cfg tree gimple passes callbacks attributes cpychecker success getting-involved misc callgraph lto options parameters preprocessor versions rtl release-notes 0.14 0.13 0.12 0.11 0.10 0.9 0.8 0.7 appendices tables-of-passes operators } gcc-with-python.1 { } DEBUG: build succeeded, 1 warning. DEBUG: Build finished. The manual pages are in _build/man. DEBUG: make[1]: Leaving directory '/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/docs' DEBUG: # Fixup the generic manpage for this build: DEBUG: cp docs/_build/man/gcc-with-python.1 gcc-with-python2.1 DEBUG: sed \ DEBUG: -i \ DEBUG: -e"s|gcc-with-python|gcc-with-python2|g" \ DEBUG: gcc-with-python2.1 DEBUG: sed \ DEBUG: -i \ DEBUG: -e"s|GCC-WITH-PYTHON|GCC-WITH-PYTHON2|g" \ DEBUG: gcc-with-python2.1 DEBUG: rm -f gcc-with-python2.1.gz DEBUG: gzip gcc-with-python2.1 DEBUG: mkdir -p /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin DEBUG: cd gcc-c-api && make install DEBUG: make[1]: Entering directory '/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/gcc-c-api' DEBUG: mkdir -p /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin DEBUG: cp libgcc-c-api.so /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin DEBUG: make[1]: Leaving directory '/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/gcc-c-api' DEBUG: cp python2.so /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin DEBUG: mkdir -p /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2 DEBUG: cp -a gccutils /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2 DEBUG: cp -a libcpychecker /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2 DEBUG: # Create "gcc-with-" support script: DEBUG: mkdir -p /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/bin DEBUG: install -m 755 gcc-with-python /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64//usr/bin/gcc-with-python2 DEBUG: # Fixup the reference to the plugin in that script, from being expressed as DEBUG: # a DSO filename with a path (for a working copy) to a name of an installed DEBUG: # plugin within GCC's search directory: DEBUG: sed \ DEBUG: -i \ DEBUG: -e"s|-fplugin=[^ ]*|-fplugin=python2|" \ DEBUG: /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/bin/gcc-with-python2 DEBUG: # name for this specific build: DEBUG: sed \ DEBUG: -i \ DEBUG: -e"s|-fplugin-arg-python-script|-fplugin-arg-python2-script|" \ DEBUG: /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/bin/gcc-with-python2 DEBUG: mkdir -p /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/share/man/man1 DEBUG: cp gcc-with-python2.1.gz /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/share/man/man1 DEBUG: ~/build/BUILD/gcc-python-plugin-0.14 DEBUG: ~/build/BUILD/gcc-python-plugin-0.14-building-for-python2_debug ~/build/BUILD/gcc-python-plugin-0.14 DEBUG: + popd DEBUG: + InstallPlugin python-debug python-debug-config python2_debug.so python2_debug DEBUG: + PythonExe=python-debug DEBUG: + PythonConfig=python-debug-config DEBUG: + PluginDso=python2_debug.so DEBUG: + PluginName=python2_debug DEBUG: + BuildDir=../gcc-python-plugin-0.14-building-for-python2_debug DEBUG: + pushd ../gcc-python-plugin-0.14-building-for-python2_debug DEBUG: + make install DESTDIR=/builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64 PLUGIN_NAME=python2_debug PLUGIN_DSO=python2_debug.so DEBUG: Makefile:193: warning: overriding recipe for target 'autogenerated-casts.c' DEBUG: Makefile:190: warning: ignoring old recipe for target 'autogenerated-casts.c' DEBUG: cd docs && make man DEBUG: make[1]: Entering directory '/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2_debug/docs' DEBUG: sphinx-build -b man -d _build/doctrees . _build/man DEBUG: Making output directory... DEBUG: Running Sphinx v1.2.3 DEBUG: loading pickled environment... not yet created DEBUG: building [man]: all manpages DEBUG: updating environment: 35 added, 0 changed, 0 removed DEBUG: reading sources... [ 2%] 0.10 DEBUG: reading sources... [ 5%] 0.11 DEBUG: reading sources... [ 8%] 0.12 DEBUG: reading sources... [ 11%] 0.13 DEBUG: reading sources... [ 14%] 0.14 DEBUG: reading sources... [ 17%] 0.7 DEBUG: reading sources... [ 20%] 0.8 DEBUG: reading sources... [ 22%] 0.9 DEBUG: reading sources... [ 25%] appendices DEBUG: reading sources... [ 28%] attributes DEBUG: reading sources... [ 31%] basics DEBUG: reading sources... [ 34%] callbacks DEBUG: reading sources... [ 37%] callgraph DEBUG: reading sources... [ 40%] cfg DEBUG: reading sources... [ 42%] cpychecker DEBUG: reading sources... [ 45%] examples DEBUG: reading sources... [ 48%] gcc-overview DEBUG: reading sources... [ 51%] gcc-with-python DEBUG: reading sources... [ 54%] getting-involved DEBUG: reading sources... [ 57%] gimple DEBUG: reading sources... [ 60%] index DEBUG: reading sources... [ 62%] lto DEBUG: reading sources... [ 65%] misc DEBUG: reading sources... [ 68%] operators DEBUG: reading sources... [ 71%] options DEBUG: reading sources... [ 74%] parameters DEBUG: reading sources... [ 77%] passes DEBUG: reading sources... [ 80%] preprocessor DEBUG: reading sources... [ 82%] release-notes DEBUG: reading sources... [ 85%] rtl DEBUG: reading sources... [ 88%] success DEBUG: reading sources... [ 91%] tables-of-passes DEBUG: reading sources... [ 94%] tree DEBUG: reading sources... [ 97%] versions DEBUG: reading sources... [100%] working-with-c DEBUG: looking for now-outdated files... none found DEBUG: pickling environment... done DEBUG: checking consistency... done DEBUG: writing... gcc-python-plugin.1 { /builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2_debug/docs/gcc-with-python.rst:: WARNING: document isn't included in any toctree DEBUG: basics gcc-overview examples working-with-c cfg tree gimple passes callbacks attributes cpychecker success getting-involved misc callgraph lto options parameters preprocessor versions rtl release-notes 0.14 0.13 0.12 0.11 0.10 0.9 0.8 0.7 appendices tables-of-passes operators } gcc-with-python.1 { } DEBUG: build succeeded, 1 warning. DEBUG: Build finished. The manual pages are in _build/man. DEBUG: make[1]: Leaving directory '/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2_debug/docs' DEBUG: # Fixup the generic manpage for this build: DEBUG: cp docs/_build/man/gcc-with-python.1 gcc-with-python2_debug.1 DEBUG: sed \ DEBUG: -i \ DEBUG: -e"s|gcc-with-python|gcc-with-python2_debug|g" \ DEBUG: gcc-with-python2_debug.1 DEBUG: sed \ DEBUG: -i \ DEBUG: -e"s|GCC-WITH-PYTHON|GCC-WITH-PYTHON2_DEBUG|g" \ DEBUG: gcc-with-python2_debug.1 DEBUG: rm -f gcc-with-python2_debug.1.gz DEBUG: gzip gcc-with-python2_debug.1 DEBUG: mkdir -p /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin DEBUG: cd gcc-c-api && make install DEBUG: make[1]: Entering directory '/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2_debug/gcc-c-api' DEBUG: mkdir -p /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin DEBUG: cp libgcc-c-api.so /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin DEBUG: make[1]: Leaving directory '/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2_debug/gcc-c-api' DEBUG: cp python2_debug.so /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin DEBUG: mkdir -p /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug DEBUG: cp -a gccutils /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug DEBUG: cp -a libcpychecker /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug DEBUG: # Create "gcc-with-" support script: DEBUG: mkdir -p /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/bin DEBUG: install -m 755 gcc-with-python /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64//usr/bin/gcc-with-python2_debug DEBUG: # Fixup the reference to the plugin in that script, from being expressed as DEBUG: # a DSO filename with a path (for a working copy) to a name of an installed DEBUG: # plugin within GCC's search directory: DEBUG: sed \ DEBUG: -i \ DEBUG: -e"s|-fplugin=[^ ]*|-fplugin=python2_debug|" \ DEBUG: /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/bin/gcc-with-python2_debug DEBUG: # name for this specific build: DEBUG: sed \ DEBUG: -i \ DEBUG: -e"s|-fplugin-arg-python-script|-fplugin-arg-python2_debug-script|" \ DEBUG: /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/bin/gcc-with-python2_debug DEBUG: mkdir -p /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/share/man/man1 DEBUG: cp gcc-with-python2_debug.1.gz /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/share/man/man1 DEBUG: ~/build/BUILD/gcc-python-plugin-0.14 DEBUG: ~/build/BUILD/gcc-python-plugin-0.14-building-for-python3 ~/build/BUILD/gcc-python-plugin-0.14 DEBUG: + popd DEBUG: + InstallPlugin python3 python3-config python3.so python3 DEBUG: + PythonExe=python3 DEBUG: + PythonConfig=python3-config DEBUG: + PluginDso=python3.so DEBUG: + PluginName=python3 DEBUG: + BuildDir=../gcc-python-plugin-0.14-building-for-python3 DEBUG: + pushd ../gcc-python-plugin-0.14-building-for-python3 DEBUG: + make install DESTDIR=/builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64 PLUGIN_NAME=python3 PLUGIN_DSO=python3.so DEBUG: Makefile:193: warning: overriding recipe for target 'autogenerated-casts.c' DEBUG: Makefile:190: warning: ignoring old recipe for target 'autogenerated-casts.c' DEBUG: cd docs && make man DEBUG: make[1]: Entering directory '/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python3/docs' DEBUG: sphinx-build -b man -d _build/doctrees . _build/man DEBUG: Making output directory... DEBUG: Running Sphinx v1.2.3 DEBUG: loading pickled environment... not yet created DEBUG: building [man]: all manpages DEBUG: updating environment: 35 added, 0 changed, 0 removed DEBUG: reading sources... [ 2%] 0.10 DEBUG: reading sources... [ 5%] 0.11 DEBUG: reading sources... [ 8%] 0.12 DEBUG: reading sources... [ 11%] 0.13 DEBUG: reading sources... [ 14%] 0.14 DEBUG: reading sources... [ 17%] 0.7 DEBUG: reading sources... [ 20%] 0.8 DEBUG: reading sources... [ 22%] 0.9 DEBUG: reading sources... [ 25%] appendices DEBUG: reading sources... [ 28%] attributes DEBUG: reading sources... [ 31%] basics DEBUG: reading sources... [ 34%] callbacks DEBUG: reading sources... [ 37%] callgraph DEBUG: reading sources... [ 40%] cfg DEBUG: reading sources... [ 42%] cpychecker DEBUG: reading sources... [ 45%] examples DEBUG: reading sources... [ 48%] gcc-overview DEBUG: reading sources... [ 51%] gcc-with-python DEBUG: reading sources... [ 54%] getting-involved DEBUG: reading sources... [ 57%] gimple DEBUG: reading sources... [ 60%] index DEBUG: reading sources... [ 62%] lto DEBUG: reading sources... [ 65%] misc DEBUG: reading sources... [ 68%] operators DEBUG: reading sources... [ 71%] options DEBUG: reading sources... [ 74%] parameters DEBUG: reading sources... [ 77%] passes DEBUG: reading sources... [ 80%] preprocessor DEBUG: reading sources... [ 82%] release-notes DEBUG: reading sources... [ 85%] rtl DEBUG: reading sources... [ 88%] success DEBUG: reading sources... [ 91%] tables-of-passes DEBUG: reading sources... [ 94%] tree DEBUG: reading sources... [ 97%] versions DEBUG: reading sources... [100%] working-with-c DEBUG: looking for now-outdated files... none found DEBUG: pickling environment... done DEBUG: checking consistency... done DEBUG: writing... gcc-python-plugin.1 { /builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python3/docs/gcc-with-python.rst:: WARNING: document isn't included in any toctree DEBUG: basics gcc-overview examples working-with-c cfg tree gimple passes callbacks attributes cpychecker success getting-involved misc callgraph lto options parameters preprocessor versions rtl release-notes 0.14 0.13 0.12 0.11 0.10 0.9 0.8 0.7 appendices tables-of-passes operators } gcc-with-python.1 { } DEBUG: build succeeded, 1 warning. DEBUG: Build finished. The manual pages are in _build/man. DEBUG: make[1]: Leaving directory '/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python3/docs' DEBUG: # Fixup the generic manpage for this build: DEBUG: cp docs/_build/man/gcc-with-python.1 gcc-with-python3.1 DEBUG: sed \ DEBUG: -i \ DEBUG: -e"s|gcc-with-python|gcc-with-python3|g" \ DEBUG: gcc-with-python3.1 DEBUG: sed \ DEBUG: -i \ DEBUG: -e"s|GCC-WITH-PYTHON|GCC-WITH-PYTHON3|g" \ DEBUG: gcc-with-python3.1 DEBUG: rm -f gcc-with-python3.1.gz DEBUG: gzip gcc-with-python3.1 DEBUG: mkdir -p /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin DEBUG: cd gcc-c-api && make install DEBUG: make[1]: Entering directory '/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python3/gcc-c-api' DEBUG: mkdir -p /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin DEBUG: cp libgcc-c-api.so /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin DEBUG: make[1]: Leaving directory '/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python3/gcc-c-api' DEBUG: cp python3.so /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin DEBUG: mkdir -p /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3 DEBUG: cp -a gccutils /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3 DEBUG: cp -a libcpychecker /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3 DEBUG: # Create "gcc-with-" support script: DEBUG: mkdir -p /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/bin DEBUG: install -m 755 gcc-with-python /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64//usr/bin/gcc-with-python3 DEBUG: # Fixup the reference to the plugin in that script, from being expressed as DEBUG: # a DSO filename with a path (for a working copy) to a name of an installed DEBUG: # plugin within GCC's search directory: DEBUG: sed \ DEBUG: -i \ DEBUG: -e"s|-fplugin=[^ ]*|-fplugin=python3|" \ DEBUG: /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/bin/gcc-with-python3 DEBUG: # name for this specific build: DEBUG: sed \ DEBUG: -i \ DEBUG: -e"s|-fplugin-arg-python-script|-fplugin-arg-python3-script|" \ DEBUG: /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/bin/gcc-with-python3 DEBUG: mkdir -p /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/share/man/man1 DEBUG: cp gcc-with-python3.1.gz /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/share/man/man1 DEBUG: ~/build/BUILD/gcc-python-plugin-0.14 DEBUG: ~/build/BUILD/gcc-python-plugin-0.14-building-for-python3_debug ~/build/BUILD/gcc-python-plugin-0.14 DEBUG: + popd DEBUG: + InstallPlugin python3-debug python3.4dm-config python3_debug.so python3_debug DEBUG: + PythonExe=python3-debug DEBUG: + PythonConfig=python3.4dm-config DEBUG: + PluginDso=python3_debug.so DEBUG: + PluginName=python3_debug DEBUG: + BuildDir=../gcc-python-plugin-0.14-building-for-python3_debug DEBUG: + pushd ../gcc-python-plugin-0.14-building-for-python3_debug DEBUG: + make install DESTDIR=/builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64 PLUGIN_NAME=python3_debug PLUGIN_DSO=python3_debug.so DEBUG: Makefile:193: warning: overriding recipe for target 'autogenerated-casts.c' DEBUG: Makefile:190: warning: ignoring old recipe for target 'autogenerated-casts.c' DEBUG: cd docs && make man DEBUG: make[1]: Entering directory '/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python3_debug/docs' DEBUG: sphinx-build -b man -d _build/doctrees . _build/man DEBUG: Making output directory... DEBUG: Running Sphinx v1.2.3 DEBUG: loading pickled environment... not yet created DEBUG: building [man]: all manpages DEBUG: updating environment: 35 added, 0 changed, 0 removed DEBUG: reading sources... [ 2%] 0.10 DEBUG: reading sources... [ 5%] 0.11 DEBUG: reading sources... [ 8%] 0.12 DEBUG: reading sources... [ 11%] 0.13 DEBUG: reading sources... [ 14%] 0.14 DEBUG: reading sources... [ 17%] 0.7 DEBUG: reading sources... [ 20%] 0.8 DEBUG: reading sources... [ 22%] 0.9 DEBUG: reading sources... [ 25%] appendices DEBUG: reading sources... [ 28%] attributes DEBUG: reading sources... [ 31%] basics DEBUG: reading sources... [ 34%] callbacks DEBUG: reading sources... [ 37%] callgraph DEBUG: reading sources... [ 40%] cfg DEBUG: reading sources... [ 42%] cpychecker DEBUG: reading sources... [ 45%] examples DEBUG: reading sources... [ 48%] gcc-overview DEBUG: reading sources... [ 51%] gcc-with-python DEBUG: reading sources... [ 54%] getting-involved DEBUG: reading sources... [ 57%] gimple DEBUG: reading sources... [ 60%] index DEBUG: reading sources... [ 62%] lto DEBUG: reading sources... [ 65%] misc DEBUG: reading sources... [ 68%] operators DEBUG: reading sources... [ 71%] options DEBUG: reading sources... [ 74%] parameters DEBUG: reading sources... [ 77%] passes DEBUG: reading sources... [ 80%] preprocessor DEBUG: reading sources... [ 82%] release-notes DEBUG: reading sources... [ 85%] rtl DEBUG: reading sources... [ 88%] success DEBUG: reading sources... [ 91%] tables-of-passes DEBUG: reading sources... [ 94%] tree DEBUG: reading sources... [ 97%] versions DEBUG: reading sources... [100%] working-with-c DEBUG: looking for now-outdated files... none found DEBUG: pickling environment... done DEBUG: checking consistency... done DEBUG: /builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python3_debug/docs/gcc-with-python.rst:: WARNING: document isn't included in any toctree DEBUG: writing... gcc-python-plugin.1 { basics gcc-overview examples working-with-c cfg tree gimple passes callbacks attributes cpychecker success getting-involved misc callgraph lto options parameters preprocessor versions rtl release-notes 0.14 0.13 0.12 0.11 0.10 0.9 0.8 0.7 appendices tables-of-passes operators } gcc-with-python.1 { } DEBUG: build succeeded, 1 warning. DEBUG: Build finished. The manual pages are in _build/man. DEBUG: make[1]: Leaving directory '/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python3_debug/docs' DEBUG: # Fixup the generic manpage for this build: DEBUG: cp docs/_build/man/gcc-with-python.1 gcc-with-python3_debug.1 DEBUG: sed \ DEBUG: -i \ DEBUG: -e"s|gcc-with-python|gcc-with-python3_debug|g" \ DEBUG: gcc-with-python3_debug.1 DEBUG: sed \ DEBUG: -i \ DEBUG: -e"s|GCC-WITH-PYTHON|GCC-WITH-PYTHON3_DEBUG|g" \ DEBUG: gcc-with-python3_debug.1 DEBUG: rm -f gcc-with-python3_debug.1.gz DEBUG: gzip gcc-with-python3_debug.1 DEBUG: mkdir -p /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin DEBUG: cd gcc-c-api && make install DEBUG: make[1]: Entering directory '/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python3_debug/gcc-c-api' DEBUG: mkdir -p /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin DEBUG: cp libgcc-c-api.so /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin DEBUG: make[1]: Leaving directory '/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python3_debug/gcc-c-api' DEBUG: cp python3_debug.so /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin DEBUG: mkdir -p /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug DEBUG: cp -a gccutils /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug DEBUG: cp -a libcpychecker /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug DEBUG: # Create "gcc-with-" support script: DEBUG: mkdir -p /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/bin DEBUG: install -m 755 gcc-with-python /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64//usr/bin/gcc-with-python3_debug DEBUG: # Fixup the reference to the plugin in that script, from being expressed as DEBUG: # a DSO filename with a path (for a working copy) to a name of an installed DEBUG: # plugin within GCC's search directory: DEBUG: sed \ DEBUG: -i \ DEBUG: -e"s|-fplugin=[^ ]*|-fplugin=python3_debug|" \ DEBUG: /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/bin/gcc-with-python3_debug DEBUG: # name for this specific build: DEBUG: sed \ DEBUG: -i \ DEBUG: -e"s|-fplugin-arg-python-script|-fplugin-arg-python3_debug-script|" \ DEBUG: /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/bin/gcc-with-python3_debug DEBUG: mkdir -p /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/share/man/man1 DEBUG: cp gcc-with-python3_debug.1.gz /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/share/man/man1 DEBUG: ~/build/BUILD/gcc-python-plugin-0.14 DEBUG: + popd DEBUG: + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /builddir/build/BUILD/gcc-python-plugin-0.14 DEBUG: extracting debug info from /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3_debug.so DEBUG: extracting debug info from /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python3.so DEBUG: extracting debug info from /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2_debug.so DEBUG: extracting debug info from /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/libgcc-c-api.so DEBUG: extracting debug info from /builddir/build/BUILDROOT/gcc-python-plugin-0.14-4.fc23.x86_64/usr/lib/gcc/x86_64-redhat-linux/5.3.1/plugin/python2.so DEBUG: /usr/lib/rpm/sepdebugcrcfix: Updated 5 CRC32s, 0 CRC32s did match. DEBUG: 13585 blocks DEBUG: + /usr/lib/rpm/check-buildroot DEBUG: + /usr/lib/rpm/brp-compress DEBUG: + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip DEBUG: + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 DEBUG: + /usr/lib/rpm/brp-python-hardlink DEBUG: + /usr/lib/rpm/redhat/brp-java-repack-jars DEBUG: Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.ukWbCy DEBUG: + umask 022 DEBUG: + cd /builddir/build/BUILD DEBUG: + cd gcc-python-plugin-0.14 DEBUG: ~/build/BUILD/gcc-python-plugin-0.14-building-for-python2 ~/build/BUILD/gcc-python-plugin-0.14 DEBUG: + CheckPlugin python python-config python2.so python2 DEBUG: + PythonExe=python DEBUG: + PythonConfig=python-config DEBUG: + PluginDso=python2.so DEBUG: + PluginName=python2 DEBUG: + SelftestArgs= DEBUG: + BuildDir=../gcc-python-plugin-0.14-building-for-python2 DEBUG: + pushd ../gcc-python-plugin-0.14-building-for-python2 DEBUG: + LD_LIBRARY_PATH=gcc-c-api DEBUG: + PLUGIN_NAME=python2 DEBUG: + python run-test-suite.py DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,8 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): UnknownValue(gcctype=gcc.PointerType(dereference=gcc.IntegerType(name=gcc.TypeDecl('char'))), loc=gcc.Location(file='tests/cpychecker/absinterp/arrays4/input.c', line=37)) DEBUG: - str(): unknown const char * from tests/cpychecker/absinterp/arrays4/input.c:37 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/arrays4/input.c:36 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/arrays4/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/arrays4/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/Py_BuildValue/code_lower_d/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/Py_BuildValue/code_lower_d/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,8 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): WithinRange(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/nonnull-attribute/input.c', line=39), minvalue=-0x80000000, maxvalue=0x7fffffff) DEBUG: - str(): (int)val [-0x80000000 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/nonnull-attribute/input.c:39 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/nonnull-attribute/input.c:38 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/nonnull-attribute/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/nonnull-attribute/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,13 +1,4 @@ DEBUG: -In function 'incorrect_usage_of_S_and_U': DEBUG: -tests/cpychecker/PyArg_Parse/incorrect_codes_S_and_U/input.c:33:nn: warning: Mismatching type in call to PyArg_Parse with format code "SU" DEBUG: - argument 3 ("&val1") had type DEBUG: - "int *" (pointing to 32 bits) DEBUG: - but was expecting DEBUG: - one of "struct PyStringObject * *" or "struct PyObject * *" DEBUG: - for format code "S" DEBUG: -tests/cpychecker/PyArg_Parse/incorrect_codes_S_and_U/input.c:33:nn: warning: Mismatching type in call to PyArg_Parse with format code "SU" DEBUG: - argument 4 ("&val2") had type DEBUG: - "int *" (pointing to 32 bits) DEBUG: - but was expecting DEBUG: - one of "struct PyUnicodeObject * *" or "struct PyObject * *" DEBUG: - for format code "U" DEBUG: +tests/cpychecker/PyArg_Parse/incorrect_codes_S_and_U/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/PyArg_Parse/incorrect_codes_S_and_U/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,32 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when considering range: -0x80000000 <= value <= -1' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/comparisons/boundaries/WithinRange-eq-ConcreteValue-in-middle/input.c', line=33), value=0) DEBUG: - str(): (int)0 from tests/cpychecker/absinterp/comparisons/boundaries/WithinRange-eq-ConcreteValue-in-middle/input.c:33 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/comparisons/boundaries/WithinRange-eq-ConcreteValue-in-middle/input.c:24 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when considering value == (int)0 from tests/cpychecker/absinterp/comparisons/boundaries/WithinRange-eq-ConcreteValue-in-middle/input.c:23' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/comparisons/boundaries/WithinRange-eq-ConcreteValue-in-middle/input.c', line=31), value=1) DEBUG: - str(): (int)1 from tests/cpychecker/absinterp/comparisons/boundaries/WithinRange-eq-ConcreteValue-in-middle/input.c:31 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/comparisons/boundaries/WithinRange-eq-ConcreteValue-in-middle/input.c:24 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when considering range: 1 <= value <= 0x7fffffff' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/comparisons/boundaries/WithinRange-eq-ConcreteValue-in-middle/input.c', line=33), value=0) DEBUG: - str(): (int)0 from tests/cpychecker/absinterp/comparisons/boundaries/WithinRange-eq-ConcreteValue-in-middle/input.c:33 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/comparisons/boundaries/WithinRange-eq-ConcreteValue-in-middle/input.c:24 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/comparisons/boundaries/WithinRange-eq-ConcreteValue-in-middle/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/comparisons/boundaries/WithinRange-eq-ConcreteValue-in-middle/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,2 +1,4 @@ DEBUG: -In function 'parse_to_a_typedef': DEBUG: -tests/cpychecker/PyArg_ParseTuple/keywords/input.c:32:nn: warning: keywords to PyArg_ParseTupleAndKeywords are not NULL-terminated DEBUG: +tests/cpychecker/PyArg_ParseTuple/keywords/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/PyArg_ParseTuple/keywords/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,21 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when considering j.1 == (const unsigned int)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-min-of-WithinRange/input.c:22' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-min-of-WithinRange/input.c', line=37), value=1) DEBUG: - str(): (int)1 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-min-of-WithinRange/input.c:37 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-min-of-WithinRange/input.c:26 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when considering range: 1 <= j.1 <= 0xffffffff' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-min-of-WithinRange/input.c', line=39), value=0) DEBUG: - str(): (int)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-min-of-WithinRange/input.c:39 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-min-of-WithinRange/input.c:26 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-min-of-WithinRange/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-min-of-WithinRange/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,17 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when considering range: -0x80000000 <= j <= -1' DEBUG: - error: PredictedArithmeticError() DEBUG: - error: possible negative shift count with right-hand-side (int)val [-0x80000000 <= val <= -1] from tests/cpychecker/absinterp/arithmetic/negative-shift/possible/input.c:29 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/arithmetic/negative-shift/possible/input.c:30 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when considering range: 0 <= j <= 0x7fffffff' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): WithinRange(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/arithmetic/negative-shift/possible/input.c', line=31), minvalue=-0x80000000, maxvalue=0x7fffffff) DEBUG: - str(): (int)val [-0x80000000 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/arithmetic/negative-shift/possible/input.c:31 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/arithmetic/negative-shift/possible/input.c:30 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/arithmetic/negative-shift/possible/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/arithmetic/negative-shift/possible/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/Py_BuildValue/code_s_hash/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/Py_BuildValue/code_s_hash/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,21 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct coord * from tests/cpychecker/absinterp/read-through-global-ptr-checked/input.c:31 as non-NULL' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): WithinRange(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/read-through-global-ptr-checked/input.c', line=36), minvalue=-0x80000000, maxvalue=0x7fffffff) DEBUG: - str(): (int)val [-0x80000000 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/read-through-global-ptr-checked/input.c:36 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/read-through-global-ptr-checked/input.c:34 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct coord * from tests/cpychecker/absinterp/read-through-global-ptr-checked/input.c:31 as NULL' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/read-through-global-ptr-checked/input.c', line=38), value=42) DEBUG: - str(): (int)42 from tests/cpychecker/absinterp/read-through-global-ptr-checked/input.c:38 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/read-through-global-ptr-checked/input.c:34 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/read-through-global-ptr-checked/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/read-through-global-ptr-checked/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/PyArg_ParseTuple/typedefs/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/PyArg_ParseTuple/typedefs/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,19 +1,4 @@ DEBUG: -In function 'handle_subclasses': DEBUG: -tests/cpychecker/PyArg_ParseTuple/code_O_bang/input.c:85:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "O!O!O!O!O!O!O!" DEBUG: - argument 10 ("long_obj") had type DEBUG: - "struct PyLongObject *" DEBUG: - but was expecting DEBUG: - "struct PyUnicodeObject * *" (based on PyTypeObject: 'PyUnicode_Type') or "struct PyObject * *" DEBUG: - for format code "O!" DEBUG: -tests/cpychecker/PyArg_ParseTuple/code_O_bang/input.c:90:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "O!O!O!O!O!O!O!" DEBUG: - argument 12 ("&unknown_obj") had type DEBUG: - "struct UnknownObject * *" DEBUG: - but was expecting DEBUG: - ""struct PyObject * *"" (unable to determine relevant PyTypeObject) DEBUG: - for format code "O!" DEBUG: -tests/cpychecker/PyArg_ParseTuple/code_O_bang/input.c:90:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "O!O!O!O!O!O!O!" DEBUG: - argument 14 ("&extension_obj") had type DEBUG: - "struct ExtensionObject * *" DEBUG: - but was expecting DEBUG: - ""struct PyObject * *"" (unfamiliar with PyTypeObject: 'UnknownExtension_Type') DEBUG: - for format code "O!" DEBUG: +tests/cpychecker/PyArg_ParseTuple/code_O_bang/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/PyArg_ParseTuple/code_O_bang/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/comparisons/pointers/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/comparisons/pointers/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,9 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-max-of-WithinRange/input.c', line=35), value=1) DEBUG: - str(): (int)1 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-max-of-WithinRange/input.c:35 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-max-of-WithinRange/input.c:26 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-max-of-WithinRange/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-max-of-WithinRange/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,6 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - error: UsageOfUninitializedData() DEBUG: - error: usage of uninitialized data (D.nnnnn) on right-hand side of + at tests/cpychecker/absinterp/arrays6/input.c:35 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/arrays6/input.c:26 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,3 +1,4 @@ DEBUG: -In function 'test_arrays6': DEBUG: -tests/cpychecker/absinterp/arrays6/input.c:35:nn: warning: usage of uninitialized data (D.nnnnn) on right-hand side of + at tests/cpychecker/absinterp/arrays6/input.c:35 DEBUG: -tests/cpychecker/absinterp/arrays6/input.c:26:nn: note: graphical error report for function 'test_arrays6' written out to 'tests/cpychecker/absinterp/arrays6/input.c.test_arrays6-refcount-errors.html' DEBUG: +tests/cpychecker/absinterp/arrays6/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/arrays6/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,82 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - '__dump((int)val [-0x80000000 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/array-range/fully-checked/input.c:32)' DEBUG: - 'when considering range: -0x80000000 <= value <= -1' DEBUG: - 'taking True path' DEBUG: - '__dump((int)val [-0x80000000 <= val <= -1] from tests/cpychecker/absinterp/array-range/fully-checked/input.c:32)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/array-range/fully-checked/input.c', line=39), value=0) DEBUG: - str(): (int)0 from tests/cpychecker/absinterp/array-range/fully-checked/input.c:39 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/array-range/fully-checked/input.c:33 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - '__dump((int)val [-0x80000000 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/array-range/fully-checked/input.c:32)' DEBUG: - 'when considering range: 0 <= value <= 0x7fffffff' DEBUG: - 'taking False path' DEBUG: - '__dump((int)val [0 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/array-range/fully-checked/input.c:32)' DEBUG: - 'when considering range: 0 <= value <= 11' DEBUG: - 'taking False path' DEBUG: - '__dump((int)val [0 <= val <= 11] from tests/cpychecker/absinterp/array-range/fully-checked/input.c:32)' DEBUG: - 'when considering range: -128 <= value <= 7' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/array-range/fully-checked/input.c', line=56), value=3) DEBUG: - str(): (int)3 from tests/cpychecker/absinterp/array-range/fully-checked/input.c:56 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/array-range/fully-checked/input.c:33 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - '__dump((int)val [-0x80000000 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/array-range/fully-checked/input.c:32)' DEBUG: - 'when considering range: 0 <= value <= 0x7fffffff' DEBUG: - 'taking False path' DEBUG: - '__dump((int)val [0 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/array-range/fully-checked/input.c:32)' DEBUG: - 'when considering range: 0 <= value <= 11' DEBUG: - 'taking False path' DEBUG: - '__dump((int)val [0 <= val <= 11] from tests/cpychecker/absinterp/array-range/fully-checked/input.c:32)' DEBUG: - 'when considering value == (char)8 from tests/cpychecker/absinterp/array-range/fully-checked/input.c:53' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/array-range/fully-checked/input.c', line=54), value=2) DEBUG: - str(): (int)2 from tests/cpychecker/absinterp/array-range/fully-checked/input.c:54 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/array-range/fully-checked/input.c:33 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - '__dump((int)val [-0x80000000 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/array-range/fully-checked/input.c:32)' DEBUG: - 'when considering range: 0 <= value <= 0x7fffffff' DEBUG: - 'taking False path' DEBUG: - '__dump((int)val [0 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/array-range/fully-checked/input.c:32)' DEBUG: - 'when considering range: 0 <= value <= 11' DEBUG: - 'taking False path' DEBUG: - '__dump((int)val [0 <= val <= 11] from tests/cpychecker/absinterp/array-range/fully-checked/input.c:32)' DEBUG: - 'when considering range: 9 <= value <= 127' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/array-range/fully-checked/input.c', line=56), value=3) DEBUG: - str(): (int)3 from tests/cpychecker/absinterp/array-range/fully-checked/input.c:56 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/array-range/fully-checked/input.c:33 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - '__dump((int)val [-0x80000000 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/array-range/fully-checked/input.c:32)' DEBUG: - 'when considering range: 0 <= value <= 0x7fffffff' DEBUG: - 'taking False path' DEBUG: - '__dump((int)val [0 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/array-range/fully-checked/input.c:32)' DEBUG: - 'when considering range: 12 <= value <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - '__dump((int)val [12 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/array-range/fully-checked/input.c:32)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/array-range/fully-checked/input.c', line=47), value=1) DEBUG: - str(): (int)1 from tests/cpychecker/absinterp/array-range/fully-checked/input.c:47 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/array-range/fully-checked/input.c:33 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/array-range/fully-checked/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/array-range/fully-checked/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/Py_BuildValue/code_u/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/Py_BuildValue/code_u/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,50 +1,4 @@ DEBUG: -In file included from tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/input.c:29:nn: DEBUG: -In function 'hash_format_codes': DEBUG: -tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:49:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "s#" DEBUG: - argument 4 ("&ival") had type DEBUG: - "int *" (pointing to 32 bits) DEBUG: - but was expecting DEBUG: - "Py_ssize_t *" (pointing to 64 bits) DEBUG: - for format code "s#" DEBUG: -tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:52:nn: warning: Mismatching type in call to PyArg_ParseTupleAndKeywords with format code "s#" DEBUG: - argument 6 ("&ival") had type DEBUG: - "int *" (pointing to 32 bits) DEBUG: - but was expecting DEBUG: - "Py_ssize_t *" (pointing to 64 bits) DEBUG: - for format code "s#" DEBUG: -tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:72:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "z#" DEBUG: - argument 4 ("&ival") had type DEBUG: - "int *" (pointing to 32 bits) DEBUG: - but was expecting DEBUG: - "Py_ssize_t *" (pointing to 64 bits) DEBUG: - for format code "z#" DEBUG: -tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:83:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "u#" DEBUG: - argument 4 ("&ival") had type DEBUG: - "int *" (pointing to 32 bits) DEBUG: - but was expecting DEBUG: - "Py_ssize_t *" (pointing to 64 bits) DEBUG: - for format code "u#" DEBUG: -tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:94:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "es#" DEBUG: - argument 5 ("&ival") had type DEBUG: - "int *" (pointing to 32 bits) DEBUG: - but was expecting DEBUG: - "Py_ssize_t *" (pointing to 64 bits) DEBUG: - for format code "es#" DEBUG: -tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:105:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "et#" DEBUG: - argument 5 ("&ival") had type DEBUG: - "int *" (pointing to 32 bits) DEBUG: - but was expecting DEBUG: - "Py_ssize_t *" (pointing to 64 bits) DEBUG: - for format code "et#" DEBUG: -tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:116:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "t#" DEBUG: - argument 4 ("&ival") had type DEBUG: - "int *" (pointing to 32 bits) DEBUG: - but was expecting DEBUG: - "Py_ssize_t *" (pointing to 64 bits) DEBUG: - for format code "t#" DEBUG: -tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:127:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "w#" DEBUG: - argument 4 ("&ival") had type DEBUG: - "int *" (pointing to 32 bits) DEBUG: - but was expecting DEBUG: - "Py_ssize_t *" (pointing to 64 bits) DEBUG: - for format code "w#" DEBUG: +tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,7 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/PyArg_ParseTuple/code_s/incorrect-constness/input.c:34:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "s" DEBUG: - argument 3 ("&str") had type DEBUG: - "char * *" DEBUG: - but was expecting DEBUG: - "const char * *" DEBUG: - for format code "s" DEBUG: +tests/cpychecker/PyArg_ParseTuple/code_s/incorrect-constness/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/PyArg_ParseTuple/code_s/incorrect-constness/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,19 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown char * * from tests/cpychecker/absinterp/arrays7/input.c:27 as non-NULL' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='char[4] *', loc=gcc.Location(file='tests/cpychecker/absinterp/arrays7/input.c', line=32), region=ArrayElementRegion('foo[0]')) DEBUG: - str(): (char[4] *)&ArrayElementRegion('foo[0]') from tests/cpychecker/absinterp/arrays7/input.c:32 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/arrays7/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown char * * from tests/cpychecker/absinterp/arrays7/input.c:27 as NULL' DEBUG: - error: NullPtrDereference() DEBUG: - error: possibly dereferencing NULL (*arr) at tests/cpychecker/absinterp/arrays7/input.c:35 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/arrays7/input.c:28 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/arrays7/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/arrays7/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,21 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when considering j.1 == (const unsigned int)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-min-of-WithinRange/input.c:22' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-min-of-WithinRange/input.c', line=37), value=1) DEBUG: - str(): (int)1 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-min-of-WithinRange/input.c:37 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-min-of-WithinRange/input.c:26 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when considering range: 1 <= j.1 <= 0xffffffff' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-min-of-WithinRange/input.c', line=39), value=0) DEBUG: - str(): (int)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-min-of-WithinRange/input.c:39 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-min-of-WithinRange/input.c:26 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-min-of-WithinRange/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-min-of-WithinRange/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,17 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct coord * from tests/cpychecker/absinterp/read-through-global-ptr-unchecked/input.c:31 as non-NULL' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): WithinRange(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/read-through-global-ptr-unchecked/input.c', line=35), minvalue=-0x80000000, maxvalue=0x7fffffff) DEBUG: - str(): (int)val [-0x80000000 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/read-through-global-ptr-unchecked/input.c:35 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/read-through-global-ptr-unchecked/input.c:34 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct coord * from tests/cpychecker/absinterp/read-through-global-ptr-unchecked/input.c:31 as NULL' DEBUG: - error: NullPtrDereference() DEBUG: - error: possibly dereferencing NULL (coord_ptr.0->x) at tests/cpychecker/absinterp/read-through-global-ptr-unchecked/input.c:35 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/read-through-global-ptr-unchecked/input.c:34 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,4 +1,4 @@ DEBUG: -In function 'test_read_through_global_without_check': DEBUG: -tests/cpychecker/absinterp/read-through-global-ptr-unchecked/input.c:35:nn: warning: possibly dereferencing NULL (coord_ptr.0->x) at tests/cpychecker/absinterp/read-through-global-ptr-unchecked/input.c:35 DEBUG: -tests/cpychecker/absinterp/read-through-global-ptr-unchecked/input.c:35:nn: note: when treating unknown struct coord * from tests/cpychecker/absinterp/read-through-global-ptr-unchecked/input.c:31 as NULL at: return coord_ptr->x; DEBUG: -tests/cpychecker/absinterp/read-through-global-ptr-unchecked/input.c:34:nn: note: graphical error report for function 'test_read_through_global_without_check' written out to 'tests/cpychecker/absinterp/read-through-global-ptr-unchecked/input.c.test_read_through_global_without_check-refcount-errors.html' DEBUG: +tests/cpychecker/absinterp/read-through-global-ptr-unchecked/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/read-through-global-ptr-unchecked/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,72 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown void * from tests/cpychecker/absinterp/custom-strdup/input.c:43 as non-NULL' DEBUG: - 'taking False path' DEBUG: - 'when treating unknown const char * from tests/cpychecker/absinterp/custom-strdup/input.c:38 as non-NULL' DEBUG: - 'when considering range: -128 <= value <= -1' DEBUG: - 'taking True path' DEBUG: - 'when considering value == (const char)0 from tests/cpychecker/absinterp/custom-strdup/input.c:50' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='void *', loc=gcc.Location(file='tests/cpychecker/absinterp/custom-strdup/input.c', line=45), region=Region('heap-region-0')) DEBUG: - str(): (void *)&Region('heap-region-0') from tests/cpychecker/absinterp/custom-strdup/input.c:45 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/custom-strdup/input.c:39 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown void * from tests/cpychecker/absinterp/custom-strdup/input.c:43 as non-NULL' DEBUG: - 'taking False path' DEBUG: - 'when treating unknown const char * from tests/cpychecker/absinterp/custom-strdup/input.c:38 as non-NULL' DEBUG: - 'when considering value == (const char)0 from tests/cpychecker/absinterp/custom-strdup/input.c:50' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='void *', loc=gcc.Location(file='tests/cpychecker/absinterp/custom-strdup/input.c', line=45), region=Region('heap-region-0')) DEBUG: - str(): (void *)&Region('heap-region-0') from tests/cpychecker/absinterp/custom-strdup/input.c:45 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/custom-strdup/input.c:39 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when treating unknown void * from tests/cpychecker/absinterp/custom-strdup/input.c:43 as non-NULL' DEBUG: - 'taking False path' DEBUG: - 'when treating unknown const char * from tests/cpychecker/absinterp/custom-strdup/input.c:38 as non-NULL' DEBUG: - 'when considering range: 1 <= value <= 127' DEBUG: - 'taking True path' DEBUG: - 'when considering value == (const char)0 from tests/cpychecker/absinterp/custom-strdup/input.c:50' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='void *', loc=gcc.Location(file='tests/cpychecker/absinterp/custom-strdup/input.c', line=45), region=Region('heap-region-0')) DEBUG: - str(): (void *)&Region('heap-region-0') from tests/cpychecker/absinterp/custom-strdup/input.c:45 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/custom-strdup/input.c:39 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when treating unknown void * from tests/cpychecker/absinterp/custom-strdup/input.c:43 as non-NULL' DEBUG: - 'taking False path' DEBUG: - 'when treating unknown const char * from tests/cpychecker/absinterp/custom-strdup/input.c:38 as NULL' DEBUG: - error: NullPtrDereference() DEBUG: - error: possibly dereferencing NULL (*str) at tests/cpychecker/absinterp/custom-strdup/input.c:50 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/custom-strdup/input.c:39 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when treating unknown void * from tests/cpychecker/absinterp/custom-strdup/input.c:43 as NULL' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='char *', loc=gcc.Location(file='tests/cpychecker/absinterp/custom-strdup/input.c', line=46), value=0) DEBUG: - str(): (char *)0 from tests/cpychecker/absinterp/custom-strdup/input.c:46 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/custom-strdup/input.c:39 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,7 +1,4 @@ DEBUG: -In function 'test_strdup': DEBUG: -tests/cpychecker/absinterp/custom-strdup/input.c:50:nn: warning: possibly dereferencing NULL (*str) at tests/cpychecker/absinterp/custom-strdup/input.c:50 DEBUG: -tests/cpychecker/absinterp/custom-strdup/input.c:45:nn: note: when treating unknown void * from tests/cpychecker/absinterp/custom-strdup/input.c:43 as non-NULL at: if (!result) { DEBUG: -tests/cpychecker/absinterp/custom-strdup/input.c:45:nn: note: taking False path at: if (!result) { DEBUG: -tests/cpychecker/absinterp/custom-strdup/input.c:49:nn: note: reaching: dst = result; DEBUG: -tests/cpychecker/absinterp/custom-strdup/input.c:50:nn: note: when treating unknown const char * from tests/cpychecker/absinterp/custom-strdup/input.c:38 as NULL at: while (*str) { DEBUG: -tests/cpychecker/absinterp/custom-strdup/input.c:39:nn: note: graphical error report for function 'test_strdup' written out to 'tests/cpychecker/absinterp/custom-strdup/input.c.test_strdup-refcount-errors.html' DEBUG: +tests/cpychecker/absinterp/custom-strdup/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/custom-strdup/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,41 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - '__dump((int)val [-0x80000000 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/array-range/implicitly-correct/input.c:32)' DEBUG: - '__dump((int)val [0 <= val <= 255] from tests/cpychecker/absinterp/array-range/implicitly-correct/input.c:37)' DEBUG: - '__dump((int)val [0 <= val <= 7] from tests/cpychecker/absinterp/array-range/implicitly-correct/input.c:41)' DEBUG: - 'when considering range: -128 <= value <= 7' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/array-range/implicitly-correct/input.c', line=48), value=0) DEBUG: - str(): (int)0 from tests/cpychecker/absinterp/array-range/implicitly-correct/input.c:48 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/array-range/implicitly-correct/input.c:33 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - '__dump((int)val [-0x80000000 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/array-range/implicitly-correct/input.c:32)' DEBUG: - '__dump((int)val [0 <= val <= 255] from tests/cpychecker/absinterp/array-range/implicitly-correct/input.c:37)' DEBUG: - '__dump((int)val [0 <= val <= 7] from tests/cpychecker/absinterp/array-range/implicitly-correct/input.c:41)' DEBUG: - 'when considering value == (char)8 from tests/cpychecker/absinterp/array-range/implicitly-correct/input.c:45' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/array-range/implicitly-correct/input.c', line=46), value=1) DEBUG: - str(): (int)1 from tests/cpychecker/absinterp/array-range/implicitly-correct/input.c:46 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/array-range/implicitly-correct/input.c:33 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - '__dump((int)val [-0x80000000 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/array-range/implicitly-correct/input.c:32)' DEBUG: - '__dump((int)val [0 <= val <= 255] from tests/cpychecker/absinterp/array-range/implicitly-correct/input.c:37)' DEBUG: - '__dump((int)val [0 <= val <= 7] from tests/cpychecker/absinterp/array-range/implicitly-correct/input.c:41)' DEBUG: - 'when considering range: 9 <= value <= 127' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/array-range/implicitly-correct/input.c', line=48), value=0) DEBUG: - str(): (int)0 from tests/cpychecker/absinterp/array-range/implicitly-correct/input.c:48 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/array-range/implicitly-correct/input.c:33 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/array-range/implicitly-correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/array-range/implicitly-correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/Py_BuildValue/code_u_hash/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/Py_BuildValue/code_u_hash/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,3 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'returning' DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,5 @@ DEBUG: +tests/cpychecker/absinterp/asm/empty/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/asm/empty/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +tests/cpychecker/absinterp/asm/empty/input.c:27:nn: warning: ISO C99 requires whitespace after the macro name DEBUG: +tests/cpychecker/absinterp/asm/empty/input.c:27: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,50 +1,4 @@ DEBUG: -In file included from tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/input.c:28:nn: DEBUG: -In function 'hash_format_codes': DEBUG: -tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:59:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "s#" DEBUG: - argument 4 ("&sval") had type DEBUG: - "Py_ssize_t *" (pointing to 64 bits) DEBUG: - but was expecting DEBUG: - "int *" (pointing to 32 bits) DEBUG: - for format code "s#" DEBUG: -tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:62:nn: warning: Mismatching type in call to PyArg_ParseTupleAndKeywords with format code "s#" DEBUG: - argument 6 ("&sval") had type DEBUG: - "Py_ssize_t *" (pointing to 64 bits) DEBUG: - but was expecting DEBUG: - "int *" (pointing to 32 bits) DEBUG: - for format code "s#" DEBUG: -tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:77:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "z#" DEBUG: - argument 4 ("&sval") had type DEBUG: - "Py_ssize_t *" (pointing to 64 bits) DEBUG: - but was expecting DEBUG: - "int *" (pointing to 32 bits) DEBUG: - for format code "z#" DEBUG: -tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:88:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "u#" DEBUG: - argument 4 ("&sval") had type DEBUG: - "Py_ssize_t *" (pointing to 64 bits) DEBUG: - but was expecting DEBUG: - "int *" (pointing to 32 bits) DEBUG: - for format code "u#" DEBUG: -tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:99:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "es#" DEBUG: - argument 5 ("&sval") had type DEBUG: - "Py_ssize_t *" (pointing to 64 bits) DEBUG: - but was expecting DEBUG: - "int *" (pointing to 32 bits) DEBUG: - for format code "es#" DEBUG: -tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:110:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "et#" DEBUG: - argument 5 ("&sval") had type DEBUG: - "Py_ssize_t *" (pointing to 64 bits) DEBUG: - but was expecting DEBUG: - "int *" (pointing to 32 bits) DEBUG: - for format code "et#" DEBUG: -tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:121:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "t#" DEBUG: - argument 4 ("&sval") had type DEBUG: - "Py_ssize_t *" (pointing to 64 bits) DEBUG: - but was expecting DEBUG: - "int *" (pointing to 32 bits) DEBUG: - for format code "t#" DEBUG: -tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/../hash_format_codes.inc:132:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "w#" DEBUG: - argument 4 ("&sval") had type DEBUG: - "Py_ssize_t *" (pointing to 64 bits) DEBUG: - but was expecting DEBUG: - "int *" (pointing to 32 bits) DEBUG: - for format code "w#" DEBUG: +tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/PyArg_ParseTuple/codes_accepting_null/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/PyArg_ParseTuple/codes_accepting_null/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-min-of-WithinRange: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-min-of-WithinRange/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-min-of-WithinRange/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-min-of-WithinRange/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-min-of-WithinRange/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-min-of-WithinRange/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-max-of-WithinRange: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-max-of-WithinRange/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-max-of-WithinRange/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-max-of-WithinRange/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-max-of-WithinRange/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-max-of-WithinRange/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-min-of-WithinRange: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-min-of-WithinRange/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-min-of-WithinRange/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-min-of-WithinRange/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-min-of-WithinRange/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-min-of-WithinRange/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-max-of-WithinRange: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-max-of-WithinRange/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-max-of-WithinRange/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-max-of-WithinRange/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-max-of-WithinRange/i--- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,21 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when considering range: 0 <= j.0 <= 0xfffffffe' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-max-of-WithinRange/input.c', line=37), value=1) DEBUG: - str(): (int)1 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-max-of-WithinRange/input.c:37 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-max-of-WithinRange/input.c:26 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when considering j.0 == (const unsigned int)0xffffffff from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-max-of-WithinRange/input.c:22' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-max-of-WithinRange/input.c', line=39), value=0) DEBUG: - str(): (int)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-max-of-WithinRange/input.c:39 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-max-of-WithinRange/input.c:26 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-max-of-WithinRange/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-max-of-WithinRange/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,6 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - error: UsageOfUninitializedData() DEBUG: - error: dereferencing uninitialized pointer (coord_ptr->x) at tests/cpychecker/absinterp/read-through-uninitialized-ptr/input.c:35 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/read-through-uninitialized-ptr/input.c:32 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,3 +1,4 @@ DEBUG: -In function 'test_read_through_uninitialized_pointer': DEBUG: -tests/cpychecker/absinterp/read-through-uninitialized-ptr/input.c:35:nn: warning: dereferencing uninitialized pointer (coord_ptr->x) at tests/cpychecker/absinterp/read-through-uninitialized-ptr/input.c:35 DEBUG: -tests/cpychecker/absinterp/read-through-uninitialized-ptr/input.c:32:nn: note: graphical error report for function 'test_read_through_uninitialized_pointer' written out to 'tests/cpychecker/absinterp/read-through-uninitialized-ptr/input.c.test_read_through_uninitialized_pointer-refcount-errors.html' DEBUG: +tests/cpychecker/absinterp/read-through-uninitialized-ptr/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/read-through-uninitialized-ptr/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,40 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown void * from tests/cpychecker/absinterp/custom-strdup-with-attr/input.c:46 as non-NULL' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'when considering value == (const char)0 from tests/cpychecker/absinterp/custom-strdup-with-attr/input.c:53' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='void *', loc=gcc.Location(file='tests/cpychecker/absinterp/custom-strdup-with-attr/input.c', line=48), region=Region('heap-region-0')) DEBUG: - str(): (void *)&Region('heap-region-0') from tests/cpychecker/absinterp/custom-strdup-with-attr/input.c:48 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/custom-strdup-with-attr/input.c:42 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown void * from tests/cpychecker/absinterp/custom-strdup-with-attr/input.c:46 as non-NULL' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='void *', loc=gcc.Location(file='tests/cpychecker/absinterp/custom-strdup-with-attr/input.c', line=48), region=Region('heap-region-0')) DEBUG: - str(): (void *)&Region('heap-region-0') from tests/cpychecker/absinterp/custom-strdup-with-attr/input.c:48 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/custom-strdup-with-attr/input.c:42 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when treating unknown void * from tests/cpychecker/absinterp/custom-strdup-with-attr/input.c:46 as NULL' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='char *', loc=gcc.Location(file='tests/cpychecker/absinterp/custom-strdup-with-attr/input.c', line=49), value=0) DEBUG: - str(): (char *)0 from tests/cpychecker/absinterp/custom-strdup-with-attr/input.c:49 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/custom-strdup-with-attr/input.c:42 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/custom-strdup-with-attr/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/custom-strdup-with-attr/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,57 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - '__dump((int)val [-0x80000000 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/array-range/off-by-one/input.c:32)' DEBUG: - 'when considering range: -0x80000000 <= value <= 12' DEBUG: - 'taking True path' DEBUG: - '__dump((int)val [-0x80000000 <= val <= 12] from tests/cpychecker/absinterp/array-range/off-by-one/input.c:32)' DEBUG: - 'when considering range: -128 <= value <= 7' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/array-range/off-by-one/input.c', line=51), value=1) DEBUG: - str(): (int)1 from tests/cpychecker/absinterp/array-range/off-by-one/input.c:51 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/array-range/off-by-one/input.c:33 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - '__dump((int)val [-0x80000000 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/array-range/off-by-one/input.c:32)' DEBUG: - 'when considering range: -0x80000000 <= value <= 12' DEBUG: - 'taking True path' DEBUG: - '__dump((int)val [-0x80000000 <= val <= 12] from tests/cpychecker/absinterp/array-range/off-by-one/input.c:32)' DEBUG: - 'when considering value == (char)8 from tests/cpychecker/absinterp/array-range/off-by-one/input.c:48' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/array-range/off-by-one/input.c', line=49), value=0) DEBUG: - str(): (int)0 from tests/cpychecker/absinterp/array-range/off-by-one/input.c:49 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/array-range/off-by-one/input.c:33 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - '__dump((int)val [-0x80000000 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/array-range/off-by-one/input.c:32)' DEBUG: - 'when considering range: -0x80000000 <= value <= 12' DEBUG: - 'taking True path' DEBUG: - '__dump((int)val [-0x80000000 <= val <= 12] from tests/cpychecker/absinterp/array-range/off-by-one/input.c:32)' DEBUG: - 'when considering range: 9 <= value <= 127' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/array-range/off-by-one/input.c', line=51), value=1) DEBUG: - str(): (int)1 from tests/cpychecker/absinterp/array-range/off-by-one/input.c:51 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/array-range/off-by-one/input.c:33 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - '__dump((int)val [-0x80000000 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/array-range/off-by-one/input.c:32)' DEBUG: - 'when considering range: 13 <= value <= 0x7fffffff' DEBUG: - 'taking False path' DEBUG: - '__dump((int)val [13 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/array-range/off-by-one/input.c:32)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/array-range/off-by-one/input.c', line=56), value=2) DEBUG: - str(): (int)2 from tests/cpychecker/absinterp/array-range/off-by-one/input.c:56 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/array-range/off-by-one/input.c:33 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/array-range/off-by-one/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/array-range/off-by-one/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/arrays4: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/arrays4/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/arrays4/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/arrays4/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/arrays4/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/arrays4/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/arrays6: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/arrays6/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/arrays6/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/arrays6/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/arrays6/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/arrays6/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/arrays7: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/arrays7/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/arrays7/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/arrays7/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/arrays7/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/arrays7/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/asm/empty: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/asm/empty/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/asm/empty/script.py -fsigned-char tests/cpychecker/absinterp/asm/empty/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/asm/empty/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/asm/empty/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: tests/cpychecker/absinterp/asm/empty/input.c:27:1: warning: ISO C99 requires whitespace after the macro name DEBUG: tests/cpychecker/absinterp/asm/empty/input.c:27: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/assignment-from-string-const: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/assignment-from-string-const/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/assignment-from-string-const/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/assignment-from-string-const/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/assignment-from-string-const/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinter--- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,8 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): UnknownValue(gcctype=gcc.PointerType(dereference=), loc=gcc.Location(file='tests/cpychecker/absinterp/assignment-from-string-const/input.c', line=25)) DEBUG: - str(): unknown char[256] * from tests/cpychecker/absinterp/assignment-from-string-const/input.c:25 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/assignment-from-string-const/input.c:23 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/assignment-from-string-const/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/assignment-from-string-const/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/Py_BuildValue/code_lower_d/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/Py_BuildValue/code_lower_d/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/Py_BuildValue/code_lower_d/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/Py_BuildValue/code_lower_d/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/Py_BuildValue/code_lower_d/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/Py_BuildValue/code_lower_d/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/Py_BuildValue/code_s_hash/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/Py_BuildValue/code_s_hash/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/Py_BuildValue/code_s_hash/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/Py_BuildValue/code_s_hash/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/Py_BuildValue/code_s_hash/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/Py_BuildValue/code_s_hash/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/Py_BuildValue/code_u/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/Py_BuildValue/code_u/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/Py_BuildValue/code_u/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/Py_BuildValue/code_u/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/Py_BuildValue/code_u/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/Py_BuildValue/code_u/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/Py_BuildValue/code_u_hash/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/Py_BuildValue/code_u_hash/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/Py_BuildValue/code_u_hash/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/Py_BuildValue/code_u_hash/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/Py_BuildValue/code_u_hash/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/Py_BuildValue/code_u_hash/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/Py_BuildValue/code_upper_D/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/Py_BuildValue/code_upper_D/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/Py_BuildValue/code_upper_D/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/Py_BuildValue/code_upper_D/co--- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/Py_BuildValue/code_upper_D/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/Py_BuildValue/code_upper_D/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/PyArg_ParseTuple/correct_codes_S_and_U/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/PyArg_ParseTuple/correct_codes_S_and_U/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/PyArg_Parse/incorrect_codes_S_and_U: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/PyArg_Parse/incorrect_codes_S_and_U/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/PyArg_Parse/incorrect_codes_S_and_U/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/PyArg_Parse/incorrect_codes_S_and_U/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/PyArg_Parse/incorrect_codes_S_and_U/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/PyArg_Parse/incorrect_codes_S_and_U/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/PyArg_ParseTuple/code_O_bang: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/PyArg_ParseTuple/code_O_bang/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/PyArg_ParseTuple/code_O_bang/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/PyArg_ParseTuple/code_O_bang/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/PyArg_ParseTuple/code_O_bang/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/PyArg_ParseTuple/code_O_bang/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/PyArg_ParseTuple/code_s/incorrect-constness: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/PyArg_ParseTuple/code_s/incorrect-constness/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/PyArg_ParseTuple/code_s/incorrect-constness/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/PyArg_ParseTuple/code_s/incorrect-constness/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/PyArg_ParseTuple/code_s/incorrect-constness/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/PyArg_ParseTuple/code_s/incorrect-constness/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/PyArg_ParseTuple/codes_accepting_null: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/PyArg_ParseTuple/codes_accepting_null/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/PyArg_ParseTuple/codes_accepting_null/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/PyArg_ParseTuple/codes_accepting_null/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/PyArg_ParseTuple/codes_accepting_null/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/PyArg_ParseTuple/codes_accepting_null/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/PyArg_ParseTuple/correct_codes_S_and_U: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/PyArg_ParseTuple/correct_codes_S_and_U/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/PyArg_ParseTuple/correct_codes_Stests/cpychecker/PyArg_ParseTuple/keywords: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/PyArg_ParseTuple/keywords/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/PyArg_ParseTuple/keywords/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/PyArg_ParseTuple/keywords/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/PyArg_ParseTuple/keywords/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/PyArg_ParseTuple/keywords/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/PyArg_ParseTuple/typedefs: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/PyArg_ParseTuple/typedefs/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/PyArg_ParseTuple/typedefs/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/PyArg_ParseTuple/typedefs/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/PyArg_ParseTuple/typedefs/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/PyArg_ParseTuple/typedefs/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/PyMethodDef/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/PyMethodDef/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/PyMethodDef/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/PyMethodDef/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/Py--- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/PyMethodDef/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/PyMethodDef/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,9 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-min-of-WithinRange/input.c', line=38), value=0) DEBUG: - str(): (int)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-min-of-WithinRange/input.c:38 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-min-of-WithinRange/input.c:26 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-min-of-WithinRange/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-min-of-WithinRange/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/WithinRange-eq-ConcreteValue-in-middle: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/comparisons/boundaries/WithinRange-eq-ConcreteValue-in-middle/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/comparisons/boundaries/WithinRange-eq-ConcreteValue-in-middle/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/comparisons/boundaries/WithinRange-eq-ConcreteValue-in-middle/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/WithinRange-eq-ConcreteValue-in-middle/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/WithinRange-eq-ConcreteValue-in-middle/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/comparisons/pointers: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/comparisons/pointers/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/comparisons/pointers/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/comparisons/pointers/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/comparisons/pointers/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/comparisons/pointers/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/custom-strdup: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/custom-strdup/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/custom-strdup/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/custom-strdup/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/custom-strdup/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/custom-strdup/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/custom-strdup-with-attr: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/custom-strdup-with-attr/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/custom-strdup-with-attr/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/custom-strdup-with-attr/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/custom-strdup-with-attr/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/custom-strdup-with-attr/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/exceptions: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/exceptions/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=t--- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/exceptions/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/exceptions/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/nonnull-attribute: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/nonnull-attribute/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/nonnull-attribute/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/nonnull-attribute/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/nonnull-attribute/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/nonnull-attribute/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/read-through-global-ptr-checked: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/read-through-global-ptr-checked/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/read-through-global-ptr-checked/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/read-through-global-ptr-checked/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/read-through-global-ptr-checked/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/read-through-global-ptr-checked/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/read-through-global-ptr-unchecked: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/read-through-global-ptr-unchecked/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/read-through-global-ptr-unchecked/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/read-through-global-ptr-unchecked/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/read-through-global-ptr-unchecked/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/read-through-global-ptr-unchecked/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/read-through-uninitialized-ptr: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/read-through-uninitialized-ptr/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/read-through-uninitialized-ptr/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/read-through-uninitialized-ptr/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/read-through-uninitialized-ptr/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/read-through-uninitialized-ptr/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/real-cst/regular: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/real-cst/regular/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinter--- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,8 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='double', loc=gcc.Location(file='tests/cpychecker/absinterp/real-cst/regular/input.c', line=30), value=42.0) DEBUG: - str(): (double)42.0 from tests/cpychecker/absinterp/real-cst/regular/input.c:30 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/real-cst/regular/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/real-cst/regular/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/real-cst/regular/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,72 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when considering range: 0 <= value <= 2' DEBUG: - 'taking False path' DEBUG: - 'when treating unknown struct Foo * from tests/cpychecker/absinterp/bitfields/reading/input.c:31 as non-NULL' DEBUG: - 'when considering value == (unsigned char)0 from tests/cpychecker/absinterp/bitfields/reading/input.c:40' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/bitfields/reading/input.c', line=43), value=2) DEBUG: - str(): (int)2 from tests/cpychecker/absinterp/bitfields/reading/input.c:43 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when considering range: 0 <= value <= 2' DEBUG: - 'taking False path' DEBUG: - 'when treating unknown struct Foo * from tests/cpychecker/absinterp/bitfields/reading/input.c:31 as non-NULL' DEBUG: - 'when considering range: 1 <= value <= 64' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/bitfields/reading/input.c', line=41), value=1) DEBUG: - str(): (int)1 from tests/cpychecker/absinterp/bitfields/reading/input.c:41 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when considering range: 0 <= value <= 2' DEBUG: - 'taking False path' DEBUG: - 'when treating unknown struct Foo * from tests/cpychecker/absinterp/bitfields/reading/input.c:31 as NULL' DEBUG: - error: NullPtrDereference() DEBUG: - error: possibly dereferencing NULL (foo->a) at tests/cpychecker/absinterp/bitfields/reading/input.c:36 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when considering value == (unsigned char)3 from tests/cpychecker/absinterp/bitfields/reading/input.c:33' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/bitfields/reading/input.c', line=34), value=0) DEBUG: - str(): (int)0 from tests/cpychecker/absinterp/bitfields/reading/input.c:34 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when considering range: 4 <= value <= 15' DEBUG: - 'taking False path' DEBUG: - 'when treating unknown struct Foo * from tests/cpychecker/absinterp/bitfields/reading/input.c:31 as non-NULL' DEBUG: - 'when considering value == (unsigned char)0 from tests/cpychecker/absinterp/bitfields/reading/input.c:40' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/bitfields/reading/input.c', line=43), value=2) DEBUG: - str(): (int)2 from tests/cpychecker/absinterp/bitfields/reading/input.c:43 DEBUG: - DEBUG: -Trace 5: DEBUG: - Transitions: DEBUG: - 'when considering range: 4 <= value <= 15' DEBUG: - 'taking False path' DEBUG: - 'when treating unknown struct Foo * from tests/cpychecker/absinterp/bitfields/reading/input.c:31 as non-NULL' DEBUG: - 'when considering range: 1 <= value <= 64' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/bitfields/reading/input.c', line=41), value=1) DEBUG: - str(): (int)1 from tests/cpychecker/absinterp/bitfields/reading/input.c:41 DEBUG: - DEBUG: -Trace 6: DEBUG: - Transitions: DEBUG: - 'when considering range: 4 <= value <= 15' DEBUG: - 'taking False path' DEBUG: - 'when treating unknown struct Foo * from tests/cpychecker/absinterp/bitfields/reading/input.c:31 as NULL' DEBUG: - error: NullPtrDereference() DEBUG: - error: possibly dereferencing NULL (foo->a) at tests/cpychecker/absinterp/bitfields/reading/input.c:36 DEBUG: tests/cpychecker/absinterp/arithmetic/negative-shift/possible: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/arithmetic/negative-shift/possible/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/arithmetic/negative-shift/possible/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/arithmetic/negative-shift/possible/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/arithmetic/negative-shift/possible/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/arithmetic/negative-shift/possible/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/array-range/fully-checked: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/array-range/fully-checked/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/array-range/fully-checked/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/array-range/fully-checked/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/array-range/fully-checked/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/array-range/fully-checked/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/array-range/implicitly-correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/array-range/implicitly-correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/array-range/implicitly-correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/array-range/implicitly-correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/array-range/implicitly-correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/array-range/implicitly-correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/array-range/off-by-one: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/array-range/off-by-one/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/array-range/off-by-one/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/array-range/off-by-one/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/array-range/off-by-one/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/array-range/off-by-one/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/array-range/partial-initialization-on-stack: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/array-range/partial-initialization-on-stack/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so--- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/bitfields/reading/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/bitfields/reading/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +tests/cpychecker/absinterp/bitfields/reading/input.c:23: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,10 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - '__dump((short int)42 from tests/cpychecker/absinterp/array-range/partial-initialization-on-stack/input.c:39)' DEBUG: - '__dump((short int)0 from tests/cpychecker/absinterp/array-range/partial-initialization-on-stack/input.c:42)' DEBUG: - '__dump((int)val [-0x80000000 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/array-range/partial-initialization-on-stack/input.c:33)' DEBUG: - '__dump((int)val [1 <= val <= 8] from tests/cpychecker/absinterp/array-range/partial-initialization-on-stack/input.c:46)' DEBUG: - '__dump((short int)0 from tests/cpychecker/absinterp/array-range/partial-initialization-on-stack/input.c:51)' DEBUG: - 'returning' DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/array-range/partial-initialization-on-stack/input.c:34 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/array-range/partial-initialization-on-stack/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/array-range/partial-initialization-on-stack/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/PyArg_ParseTuple/correct_converter/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/PyArg_ParseTuple/correct_converter/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,12 +1,4 @@ DEBUG: -tests/cpychecker/PyMethodDef/incorrect-types/input.c:59:nn: warning: flags do not match callback signature for 'incorrect_pycfunction' within PyMethodDef table DEBUG: -tests/cpychecker/PyMethodDef/incorrect-types/input.c:59:nn: note: expected ml_meth callback of type "PyObject (fn)(someobject *, PyObject *args, PyObject *kwargs)" due to METH_KEYWORDS flag (3 arguments) DEBUG: -tests/cpychecker/PyMethodDef/incorrect-types/input.c:59:nn: note: actual type of underlying callback: struct PyObject * (struct PyObject *, struct PyObject *) (2 arguments) DEBUG: -tests/cpychecker/PyMethodDef/incorrect-types/input.c:59:nn: note: see http://docs.python.org/c-api/structures.html#PyMethodDef DEBUG: -tests/cpychecker/PyMethodDef/incorrect-types/input.c:65:nn: warning: flags do not match callback signature for 'incorrect_subclass' within PyMethodDef table DEBUG: -tests/cpychecker/PyMethodDef/incorrect-types/input.c:65:nn: note: expected ml_meth callback of type "PyObject (fn)(someobject *, PyObject *args, PyObject *kwargs)" due to METH_KEYWORDS flag (3 arguments) DEBUG: -tests/cpychecker/PyMethodDef/incorrect-types/input.c:65:nn: note: actual type of underlying callback: struct PyObject * (struct MySubclass *, struct PyObject *) (2 arguments) DEBUG: -tests/cpychecker/PyMethodDef/incorrect-types/input.c:65:nn: note: see http://docs.python.org/c-api/structures.html#PyMethodDef DEBUG: -tests/cpychecker/PyMethodDef/incorrect-types/input.c:71:nn: warning: flags do not match callback signature for 'incorrect_pycfunction_with_keywords' within PyMethodDef table DEBUG: -tests/cpychecker/PyMethodDef/incorrect-types/input.c:71:nn: note: expected ml_meth callback of type "PyObject (fn)(someobject *, PyObject *)" (2 arguments) DEBUG: -tests/cpychecker/PyMethodDef/incorrect-types/input.c:71:nn: note: actual type of underlying callback: struct PyObject * (struct PyObject *, struct PyObject *, struct PyObject *) (3 arguments) DEBUG: -tests/cpychecker/PyMethodDef/incorrect-types/input.c:71:nn: note: see http://docs.python.org/c-api/structures.html#PyMethodDef DEBUG: +tests/cpychecker/PyMethodDef/incorrect-types/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/PyMethodDef/incorrect-types/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,7 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/Py_BuildValue/code_upper_D/incorrect/input.c:25:nn: warning: Mismatching type in call to Py_BuildValue with format code "D" DEBUG: - argument 2 ("d") had type DEBUG: - "double" DEBUG: - but was expecting DEBUG: - "struct Py_complex *" DEBUG: - for format code "D" DEBUG: +tests/cpychecker/Py_BuildValue/code_upper_D/incorrect/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/Py_BuildValue/code_upper_D/incorrect/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,21 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when considering range: 0 <= j.0 <= 0xfffffffe' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-max-of-WithinRange/input.c', line=39), value=0) DEBUG: - str(): (int)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-max-of-WithinRange/input.c:39 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-max-of-WithinRange/input.c:26 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when considering j.0 == (const unsigned int)0xffffffff from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-max-of-WithinRange/input.c:22' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-max-of-WithinRange/input.c', line=37), value=1) DEBUG: - str(): (int)1 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-max-of-WithinRange/input.c:37 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-max-of-WithinRange/input.c:26 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-max-of-WithinRange/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-max-of-WithinRange/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,5 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'not returning from exit' DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/exit/input.c:26 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/exit/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/exit/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,8 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): UninitializedData(gcctype='struct foo', loc=gcc.Location(file='tests/cpychecker/absinterp/result-decl/input.c', line=41)) DEBUG: - str(): uninitialized data at tests/cpychecker/absinterp/result-decl/input.c:41 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/result-decl/input.c:41 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/result-decl/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/result-decl/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/casts/int-to-float/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/casts/int-to-float/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,35 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - '__dump((int)val [-0x80000000 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/array-range/unchecked/input.c:32)' DEBUG: - 'when considering range: -128 <= value <= 7' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/array-range/unchecked/input.c', line=39), value=0) DEBUG: - str(): (int)0 from tests/cpychecker/absinterp/array-range/unchecked/input.c:39 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/array-range/unchecked/input.c:33 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - '__dump((int)val [-0x80000000 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/array-range/unchecked/input.c:32)' DEBUG: - 'when considering value == (char)8 from tests/cpychecker/absinterp/array-range/unchecked/input.c:36' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/array-range/unchecked/input.c', line=37), value=1) DEBUG: - str(): (int)1 from tests/cpychecker/absinterp/array-range/unchecked/input.c:37 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/array-range/unchecked/input.c:33 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - '__dump((int)val [-0x80000000 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/array-range/unchecked/input.c:32)' DEBUG: - 'when considering range: 9 <= value <= 127' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/array-range/unchecked/input.c', line=39), value=0) DEBUG: - str(): (int)0 from tests/cpychecker/absinterp/array-range/unchecked/input.c:39 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/array-range/unchecked/input.c:33 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/array-range/unchecked/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/array-range/unchecked/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/PyArg_ParseTuple/encodings/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/PyArg_ParseTuple/encodings/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1 +1,4 @@ DEBUG: -tests/cpychecker/PyMethodDef/missing-sentinel/input.c:39:nn: warning: missing NULL sentinel value at end of PyMethodDef table DEBUG: +tests/cpychecker/PyMethodDef/missing-sentinel/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/PyMethodDef/missing-sentinel/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,19 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - '__dump((int)0 from tests/cpychecker/absinterp/arithmetic/correct/input.c:31)' DEBUG: - '__dump((int)1 from tests/cpychecker/absinterp/arithmetic/correct/input.c:33)' DEBUG: - '__dump((int)2 from tests/cpychecker/absinterp/arithmetic/correct/input.c:34)' DEBUG: - '__dump((int)2 from tests/cpychecker/absinterp/arithmetic/correct/input.c:36)' DEBUG: - '__dump((int)0 from tests/cpychecker/absinterp/arithmetic/correct/input.c:37)' DEBUG: - '__dump((int)1 from tests/cpychecker/absinterp/arithmetic/correct/input.c:38)' DEBUG: - '__dump((int)-1 from tests/cpychecker/absinterp/arithmetic/correct/input.c:39)' DEBUG: - '__dump((int)1 from tests/cpychecker/absinterp/arithmetic/correct/input.c:41)' DEBUG: - '__dump((int)1 from tests/cpychecker/absinterp/arithmetic/correct/input.c:42)' DEBUG: - '__dump((int)2570 from tests/cpychecker/absinterp/arithmetic/correct/input.c:47)' DEBUG: - '__dump((int)-2571 from tests/cpychecker/absinterp/arithmetic/correct/input.c:51)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/arithmetic/correct/input.c', line=56), value=-5142) DEBUG: - str(): (int)-5142 from tests/cpychecker/absinterp/arithmetic/correct/input.c:56 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/arithmetic/correct/input.c:30 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/arithmetic/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/arithmetic/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,21 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when considering j.1 == (const unsigned int)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-min-of-WithinRange/input.c:22' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-min-of-WithinRange/input.c', line=39), value=0) DEBUG: - str(): (int)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-min-of-WithinRange/input.c:39 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-min-of-WithinRange/input.c:26 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when considering range: 1 <= j.1 <= 0xffffffff' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-min-of-WithinRange/input.c', line=37), value=1) DEBUG: - str(): (int)1 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-min-of-WithinRange/input.c:37 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-min-of-WithinRange/input.c:26 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-min-of-WithinRange/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-min-of-WithinRange/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,26 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when considering range: -0x80000000 <= value <= -1' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/static-data/input.c', line=35), value=42) DEBUG: - str(): (int)42 from tests/cpychecker/absinterp/static-data/input.c:35 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when considering value == (int)0 from tests/cpychecker/absinterp/static-data/input.c:24' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/static-data/input.c', line=37), value=43) DEBUG: - str(): (int)43 from tests/cpychecker/absinterp/static-data/input.c:37 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when considering range: 1 <= value <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/static-data/input.c', line=35), value=42) DEBUG: - str(): (int)42 from tests/cpychecker/absinterp/static-data/input.c:35 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/static-data/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/static-data/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +tests/cpychecker/absinterp/static-data/input.c:23: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,46 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when considering range: -0x80000000 <= value <= -1' DEBUG: - 'taking True path' DEBUG: - "calling (int (*) (int))&RegionForGlobal(gcc.FunctionDecl('foo')) from tests/cpychecker/absinterp/function-pointers/input.c:32" DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): WithinRange(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/function-pointers/input.c', line=45), minvalue=-0x80000000, maxvalue=0x7fffffff) DEBUG: - str(): (int)val [-0x80000000 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/function-pointers/input.c:45 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when considering value == (int)0 from tests/cpychecker/absinterp/function-pointers/input.c:27' DEBUG: - 'taking False path' DEBUG: - 'when considering range: -0x80000000 <= value <= -1' DEBUG: - 'taking True path' DEBUG: - error: CallOfNullFunctionPtr() DEBUG: - error: call of NULL function pointer at tests/cpychecker/absinterp/function-pointers/input.c:45: (int (*) (int))0 from tests/cpychecker/absinterp/function-pointers/input.c:39 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when considering value == (int)0 from tests/cpychecker/absinterp/function-pointers/input.c:27' DEBUG: - 'taking False path' DEBUG: - 'when considering value == (int)0 from tests/cpychecker/absinterp/function-pointers/input.c:27' DEBUG: - 'taking False path' DEBUG: - error: CallOfUninitializedFunctionPtr() DEBUG: - error: call of uninitialized function pointer at tests/cpychecker/absinterp/function-pointers/input.c:45: uninitialized data at tests/cpychecker/absinterp/function-pointers/input.c:28 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when considering value == (int)0 from tests/cpychecker/absinterp/function-pointers/input.c:27' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 1 <= value <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - error: CallOfNullFunctionPtr() DEBUG: - error: call of NULL function pointer at tests/cpychecker/absinterp/function-pointers/input.c:45: (int (*) (int))0 from tests/cpychecker/absinterp/function-pointers/input.c:39 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when considering range: 1 <= value <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - "calling (int (*) (int))&RegionForGlobal(gcc.FunctionDecl('foo')) from tests/cpychecker/absinterp/function-pointers/input.c:32" DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): WithinRange(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/function-pointers/input.c', line=45), minvalue=-0x80000000, maxvalue=0x7fffffff) DEBUG: - str(): (int)val [-0x80000000 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/function-pointers/input.c:45 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,17 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/absinterp/function-pointers/input.c:45:nn: warning: call of NULL function pointer at tests/cpychecker/absinterp/function-pointers/input.c:45: (int (*) (int))0 from tests/cpychecker/absinterp/function-pointers/input.c:39 DEBUG: -tests/cpychecker/absinterp/function-pointers/input.c:31:nn: note: when considering value == (int)0 from tests/cpychecker/absinterp/function-pointers/input.c:27 at: if (i) { DEBUG: -tests/cpychecker/absinterp/function-pointers/input.c:31:nn: note: taking False path at: if (i) { DEBUG: -tests/cpychecker/absinterp/function-pointers/input.c:34:nn: note: reaching: if (j) { DEBUG: -tests/cpychecker/absinterp/function-pointers/input.c:34:nn: note: when considering range: -0x80000000 <= value <= -1 at: if (j) { DEBUG: -tests/cpychecker/absinterp/function-pointers/input.c:34:nn: note: taking True path at: if (j) { DEBUG: -tests/cpychecker/absinterp/function-pointers/input.c:39:nn: note: reaching: fn_ptr = NULL; DEBUG: -tests/cpychecker/absinterp/function-pointers/input.c:45:nn: note: found 1 similar trace(s) to this DEBUG: -tests/cpychecker/absinterp/function-pointers/input.c:45:nn: warning: call of uninitialized function pointer at tests/cpychecker/absinterp/function-pointers/input.c:45: uninitialized data at tests/cpychecker/absinterp/function-pointers/input.c:28 DEBUG: -tests/cpychecker/absinterp/function-pointers/input.c:31:nn: note: when considering value == (int)0 from tests/cpychecker/absinterp/function-pointers/input.c:27 at: if (i) { DEBUG: -tests/cpychecker/absinterp/function-pointers/input.c:31:nn: note: taking False path at: if (i) { DEBUG: -tests/cpychecker/absinterp/function-pointers/input.c:34:nn: note: reaching: if (j) { DEBUG: -tests/cpychecker/absinterp/function-pointers/input.c:34:nn: note: when considering value == (int)0 from tests/cpychecker/absinterp/function-pointers/input.c:27 at: if (j) { DEBUG: -tests/cpychecker/absinterp/function-pointers/input.c:34:nn: note: taking False path at: if (j) { DEBUG: -tests/cpychecker/absinterp/function-pointers/input.c:45:nn: note: reaching: return fn_ptr(i); DEBUG: -tests/cpychecker/absinterp/function-pointers/input.c:28:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/absinterp/function-pointers/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/absinterp/function-pointers/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/function-pointers/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdlib.h:33: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/casts/int-to-pointer/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/casts/int-to-pointer/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,49 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when considering range: -0x80000000 <= value <= 11' DEBUG: - 'taking True path' DEBUG: - 'when considering range: -128 <= value <= 7' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/array-range/upper-checked/input.c', line=40), value=1) DEBUG: - str(): (int)1 from tests/cpychecker/absinterp/array-range/upper-checked/input.c:40 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/array-range/upper-checked/input.c:31 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when considering range: -0x80000000 <= value <= 11' DEBUG: - 'taking True path' DEBUG: - 'when considering value == (char)8 from tests/cpychecker/absinterp/array-range/upper-checked/input.c:37' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/array-range/upper-checked/input.c', line=38), value=0) DEBUG: - str(): (int)0 from tests/cpychecker/absinterp/array-range/upper-checked/input.c:38 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/array-range/upper-checked/input.c:31 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when considering range: -0x80000000 <= value <= 11' DEBUG: - 'taking True path' DEBUG: - 'when considering range: 9 <= value <= 127' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/array-range/upper-checked/input.c', line=40), value=1) DEBUG: - str(): (int)1 from tests/cpychecker/absinterp/array-range/upper-checked/input.c:40 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/array-range/upper-checked/input.c:31 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when considering range: 12 <= value <= 0x7fffffff' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/array-range/upper-checked/input.c', line=44), value=2) DEBUG: - str(): (int)2 from tests/cpychecker/absinterp/array-range/upper-checked/input.c:44 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/array-range/upper-checked/input.c:31 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/array-range/upper-checked/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/array-range/upper-checked/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,7 +1,4 @@ DEBUG: -In function 'incorrect_code_z_hash': DEBUG: -tests/cpychecker/PyArg_ParseTuple/incorrect_code_z_hash/input.c:34:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "z#" DEBUG: - argument 4 ("&len") had type DEBUG: - "float *" (pointing to 32 bits) DEBUG: - but was expecting DEBUG: - "int *" (pointing to 32 bits) DEBUG: - for format code "z#" DEBUG: +tests/cpychecker/PyArg_ParseTuple/incorrect_code_z_hash/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/PyArg_ParseTuple/incorrect_code_z_hash/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/Py_BuildValue/code_O/subclass/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/Py_BuildValue/code_O/subclass/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: nput.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-max-of-WithinRange/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-min-of-WithinRange: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-min-of-WithinRange/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-min-of-WithinRange/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-min-of-WithinRange/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-min-of-WithinRange/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-min-of-WithinRange/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-max-of-WithinRange: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-max-of-WithinRange/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-max-of-WithinRange/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-max-of-WithinRange/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-max-of-WithinRange/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-max-of-WithinRange/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-min-of-WithinRange: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-min-of-WithinRange/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-min-of-WithinRange/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-min-of-WithinRange/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-min-of-WithinRange/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-min-of-WithinRange/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-max-of-WithinRange: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-max-of-WithinRange/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-build--- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,9 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-max-of-WithinRange/input.c', line=37), value=0) DEBUG: - str(): (int)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-max-of-WithinRange/input.c:37 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-max-of-WithinRange/input.c:26 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-max-of-WithinRange/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-max-of-WithinRange/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,6 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - error: PredictedArithmeticError() DEBUG: - error: integer division or modulo by zero with right-hand-side (int)0 from tests/cpychecker/absinterp/arithmetic/division-by-zero/definite/input.c:30 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/arithmetic/division-by-zero/definite/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,4 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/absinterp/arithmetic/division-by-zero/definite/input.c:30:nn: warning: division by zero [-Wdiv-by-zero] DEBUG: -tests/cpychecker/absinterp/arithmetic/division-by-zero/definite/input.c:30:nn: warning: integer division or modulo by zero with right-hand-side (int)0 from tests/cpychecker/absinterp/arithmetic/division-by-zero/definite/input.c:30 DEBUG: -tests/cpychecker/absinterp/arithmetic/division-by-zero/definite/input.c:29:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/absinterp/arithmetic/division-by-zero/definite/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/absinterp/arithmetic/division-by-zero/definite/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/arithmetic/division-by-zero/definite/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,38 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when considering range: -0x80000000 <= value <= -1' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='char[6] *', loc=gcc.Location(file='tests/cpychecker/absinterp/string-constants/input.c', line=28), region=ArrayElementRegion('Hello[0]')) DEBUG: - str(): (char[6] *)&ArrayElementRegion('Hello[0]') from tests/cpychecker/absinterp/string-constants/input.c:28 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/string-constants/input.c:26 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when considering value == (int)0 from tests/cpychecker/absinterp/string-constants/input.c:25' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='char[8] *', loc=gcc.Location(file='tests/cpychecker/absinterp/string-constants/input.c', line=30), region=ArrayElementRegion('Goodbye[0]')) DEBUG: - str(): (char[8] *)&ArrayElementRegion('Goodbye[0]') from tests/cpychecker/absinterp/string-constants/input.c:30 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/string-constants/input.c:26 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when considering range: 1 <= value <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='char[6] *', loc=gcc.Location(file='tests/cpychecker/absinterp/string-constants/input.c', line=28), region=ArrayElementRegion('Hello[0]')) DEBUG: - str(): (char[6] *)&ArrayElementRegion('Hello[0]') from tests/cpychecker/absinterp/string-constants/input.c:28 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/string-constants/input.c:26 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/string-constants/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/string-constants/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,8 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/nested-fields/input.c', line=50), value=1110) DEBUG: - str(): (int)1110 from tests/cpychecker/absinterp/nested-fields/input.c:50 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/nested-fields/input.c:40 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/nested-fields/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/nested-fields/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,8 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/arrays/input.c', line=31), value=42) DEBUG: - str(): (int)42 from tests/cpychecker/absinterp/arrays/input.c:31 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/arrays/input.c:26 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/arrays/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/arrays/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/casts/int-to-pointer2/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/casts/int-to-pointer2/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: _and_U/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/PyArg_ParseTuple/correct_codes_S_and_U/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/PyArg_ParseTuple/correct_codes_S_and_U/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/PyArg_ParseTuple/correct_codes_S_and_U/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/PyArg_ParseTuple/correct_converter: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/PyArg_ParseTuple/correct_converter/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/PyArg_ParseTuple/correct_converter/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/PyArg_ParseTuple/correct_converter/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/PyArg_ParseTuple/correct_converter/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/PyArg_ParseTuple/correct_converter/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/PyArg_ParseTuple/encodings: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/PyArg_ParseTuple/encodings/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/PyArg_ParseTuple/encodings/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/PyArg_ParseTuple/encodings/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/PyArg_ParseTuple/encodings/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/PyArg_ParseTuple/encodings/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/PyArg_ParseTuple/incorrect_code_z_hash: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/PyArg_ParseTuple/incorrect_code_z_hash/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/PyArg_ParseTuple/incorrect_code_z_hash/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/PyArg_ParseTuple/incorrect_code_z_hash/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/PyArg_ParseTuple/incorrect_code_z_hash/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/PyArg_ParseTuple/incorrect_code_z_hash/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/PyArg_ParseTuple/incorrect_codes_S_and_U: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/PyArg_ParseTuple/incorrect_codes_S_and_U/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/PyArg_ParseTuple/incorrect_codes_S_and_U/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/PyArg_ParseTuple/incorrect_codes_S_and_U/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/PyArg_ParseTuple/incorrect_codes_S_and_U/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/PyArg_ParseTuple/incorrect_codes_S_and_U/input.c:1:48: warning: extra tokens at end of ## direct--- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,13 +1,4 @@ DEBUG: -In function 'incorrect_usage_of_S_and_U': DEBUG: -tests/cpychecker/PyArg_ParseTuple/incorrect_codes_S_and_U/input.c:29:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "SU" DEBUG: - argument 3 ("&val1") had type DEBUG: - "int *" (pointing to 32 bits) DEBUG: - but was expecting DEBUG: - one of "struct PyStringObject * *" or "struct PyObject * *" DEBUG: - for format code "S" DEBUG: -tests/cpychecker/PyArg_ParseTuple/incorrect_codes_S_and_U/input.c:29:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "SU" DEBUG: - argument 4 ("&val2") had type DEBUG: - "int *" (pointing to 32 bits) DEBUG: - but was expecting DEBUG: - one of "struct PyUnicodeObject * *" or "struct PyObject * *" DEBUG: - for format code "U" DEBUG: +tests/cpychecker/PyArg_ParseTuple/incorrect_codes_S_and_U/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/PyArg_ParseTuple/incorrect_codes_S_and_U/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/Py_BuildValue/code_c/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/Py_BuildValue/code_c/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,21 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when considering j.1 == (const unsigned int)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-min-of-WithinRange/input.c:22' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-min-of-WithinRange/input.c', line=39), value=0) DEBUG: - str(): (int)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-min-of-WithinRange/input.c:39 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-min-of-WithinRange/input.c:26 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when considering range: 1 <= j.1 <= 0xffffffff' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-min-of-WithinRange/input.c', line=37), value=1) DEBUG: - str(): (int)1 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-min-of-WithinRange/input.c:37 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-min-of-WithinRange/input.c:26 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-min-of-WithinRange/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-min-of-WithinRange/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,17 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when considering j == (unsigned int)0 from tests/cpychecker/absinterp/arithmetic/division-by-zero/possible/input.c:28' DEBUG: - error: PredictedArithmeticError() DEBUG: - error: possible integer division or modulo by zero with right-hand-side (unsigned int)0 from tests/cpychecker/absinterp/arithmetic/division-by-zero/possible/input.c:28 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/arithmetic/division-by-zero/possible/input.c:29 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when considering range: 1 <= j <= 0xffffffff' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): WithinRange(gcctype='unsigned int', loc=gcc.Location(file='tests/cpychecker/absinterp/arithmetic/division-by-zero/possible/input.c', line=30), minvalue=0, maxvalue=0x7fffffff) DEBUG: - str(): (unsigned int)val [0 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/arithmetic/division-by-zero/possible/input.c:30 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/arithmetic/division-by-zero/possible/input.c:29 DEBUG: rrect/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/Py_BuildValue/code_upper_D/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/Py_BuildValue/code_upper_D/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/Py_BuildValue/code_upper_D/incorrect: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/Py_BuildValue/code_upper_D/incorrect/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/Py_BuildValue/code_upper_D/incorrect/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/Py_BuildValue/code_upper_D/incorrect/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/Py_BuildValue/code_upper_D/incorrect/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/Py_BuildValue/code_upper_D/incorrect/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/arithmetic/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/arithmetic/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/arithmetic/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/arithmetic/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/arithmetic/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/arithmetic/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/arithmetic/division-by-zero/definite: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/arithmetic/division-by-zero/definite/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/arithmetic/division-by-zero/definite/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/arithmetic/division-by-zero/definite/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/arithmetic/division-by-zero/definite/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/arithmetic/division-by-zero/definite/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/arithmetic/division-by-zero/possible: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/arithmetic/division-by-zero/possible/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/arithmetic/division-by-zero/possible/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/arithmetic/division-by-zero/possible/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/arithmetic/division-by-zero/possible/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/arithmetic/division-by-zero/possible/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/arithmetic/division-by-zero/possible/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/arithmetic/division-by-zero/possible/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,45 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when following default' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='char[6] *', loc=gcc.Location(file='tests/cpychecker/absinterp/switch/input.c', line=32), region=ArrayElementRegion('Green[0]')) DEBUG: - str(): (char[6] *)&ArrayElementRegion('Green[0]') from tests/cpychecker/absinterp/switch/input.c:32 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/switch/input.c:26 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when following case 0' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='char[4] *', loc=gcc.Location(file='tests/cpychecker/absinterp/switch/input.c', line=29), region=ArrayElementRegion('Red[0]')) DEBUG: - str(): (char[4] *)&ArrayElementRegion('Red[0]') from tests/cpychecker/absinterp/switch/input.c:29 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/switch/input.c:26 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when following case 2' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='char[5] *', loc=gcc.Location(file='tests/cpychecker/absinterp/switch/input.c', line=34), region=ArrayElementRegion('Blue[0]')) DEBUG: - str(): (char[5] *)&ArrayElementRegion('Blue[0]') from tests/cpychecker/absinterp/switch/input.c:34 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/switch/input.c:26 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when following cases 3...5' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='const char *', loc=gcc.Location(file='tests/cpychecker/absinterp/switch/input.c', line=39), value=0) DEBUG: - str(): (const char *)0 from tests/cpychecker/absinterp/switch/input.c:39 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/switch/input.c:26 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/switch/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/switch/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,17 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct FooType * from tests/cpychecker/absinterp/nested-fields2/input.c:41 as non-NULL' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): WithinRange(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/nested-fields2/input.c', line=41), minvalue=-0x80000000, maxvalue=0x7fffffff) DEBUG: - str(): (int)val [-0x80000000 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/nested-fields2/input.c:41 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/nested-fields2/input.c:34 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct FooType * from tests/cpychecker/absinterp/nested-fields2/input.c:41 as NULL' DEBUG: - error: NullPtrDereference() DEBUG: - error: possibly dereferencing NULL (D.nnnnn->field) at tests/cpychecker/absinterp/nested-fields2/input.c:41 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/nested-fields2/input.c:34 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/nested-fields2/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/nested-fields2/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: p/assignment-from-string-const/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/bitfields/reading: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/bitfields/reading/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/bitfields/reading/script.py -fsigned-char tests/cpychecker/absinterp/bitfields/reading/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/bitfields/reading/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/bitfields/reading/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: tests/cpychecker/absinterp/bitfields/reading/input.c:23: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/casts/int-to-float: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/casts/int-to-float/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/casts/int-to-float/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/casts/int-to-float/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/casts/int-to-float/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/casts/int-to-float/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/casts/int-to-pointer: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/casts/int-to-pointer/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/casts/int-to-pointer/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/casts/int-to-pointer/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/casts/int-to-pointer/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/casts/int-to-pointer/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/casts/int-to-pointer2: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/casts/int-to-pointer2/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/casts/int-to-pointer2/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/casts/int-to-pointer2/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/casts/int-to-pointer2/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/casts/int-to-pointer2/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-max-of-WithinRange: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-max-of-WithinRange/output.o -fplugin=/builddir/build--- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,21 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when considering range: 0 <= j.0 <= 0xfffffffe' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-max-of-WithinRange/input.c', line=39), value=0) DEBUG: - str(): (int)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-max-of-WithinRange/input.c:39 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-max-of-WithinRange/input.c:26 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when considering j.0 == (const unsigned int)0xffffffff from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-max-of-WithinRange/input.c:22' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-max-of-WithinRange/input.c', line=37), value=1) DEBUG: - str(): (int)1 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-max-of-WithinRange/input.c:37 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-max-of-WithinRange/input.c:26 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-max-of-WithinRange/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-max-of-WithinRange/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,8 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/arrays2/input.c', line=38), value=6) DEBUG: - str(): (int)6 from tests/cpychecker/absinterp/arrays2/input.c:38 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/arrays2/input.c:26 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/arrays2/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/arrays2/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: -fplugin-arg-python2-script=tests/cpychecker/absinterp/array-range/partial-initialization-on-stack/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/array-range/partial-initialization-on-stack/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/array-range/partial-initialization-on-stack/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/array-range/partial-initialization-on-stack/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/array-range/unchecked: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/array-range/unchecked/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/array-range/unchecked/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/array-range/unchecked/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/array-range/unchecked/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/array-range/unchecked/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/array-range/upper-checked: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/array-range/upper-checked/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/array-range/upper-checked/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/array-range/upper-checked/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/array-range/upper-checked/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/array-range/upper-checked/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/arrays: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/arrays/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/arrays/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/arrays/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/arrays/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/arrays/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/arrays2: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/arrays2/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/arrays2/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/arrays2/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/arrays2/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/arrays2/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reprMethodDef/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/PyMethodDef/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/PyMethodDef/incorrect-types: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/PyMethodDef/incorrect-types/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/PyMethodDef/incorrect-types/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/PyMethodDef/incorrect-types/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/PyMethodDef/incorrect-types/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/PyMethodDef/incorrect-types/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/PyMethodDef/missing-sentinel: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/PyMethodDef/missing-sentinel/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/PyMethodDef/missing-sentinel/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/PyMethodDef/missing-sentinel/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/PyMethodDef/missing-sentinel/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/PyMethodDef/missing-sentinel/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/Py_BuildValue/code_O/subclass: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/Py_BuildValue/code_O/subclass/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/Py_BuildValue/code_O/subclass/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/Py_BuildValue/code_O/subclass/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/Py_BuildValue/code_O/subclass/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/Py_BuildValue/code_O/subclass/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/Py_BuildValue/code_c/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/Py_BuildValue/code_c/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/Py_BuildValue/code_c/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/Py_BuildValue/code_c/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/Py_BuildValue/code_c/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/Py_BuildValue/code_c/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/Py_BuildValue/code_f/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/Py_BuildValue/code_f/correct/output.o -fplugi--- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,62 +1,4 @@ DEBUG: -In function 'incorrect_usages_of_converter': DEBUG: -tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c:36:nn: warning: Not enough arguments in call to PyArg_ParseTuple with format string "O&" DEBUG: - expected 2 extra arguments: DEBUG: - "int (converter)(PyObject *, T*)" for some type T DEBUG: - "T*" for some type T DEBUG: - but got none DEBUG: - DEBUG: -tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c:39:nn: warning: Not enough arguments in call to PyArg_ParseTuple with format string "O&" DEBUG: - expected 2 extra arguments: DEBUG: - "int (converter)(PyObject *, T*)" for some type T DEBUG: - "T*" for some type T DEBUG: - but got 1: DEBUG: - "int" DEBUG: - DEBUG: -tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c:44:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "O&" DEBUG: - argument 3 ("42") had type DEBUG: - "int" DEBUG: - but was expecting DEBUG: - "int (converter)(PyObject *, T*)" for some type T DEBUG: - for format code "O&" DEBUG: -tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c:49:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "O&" DEBUG: - argument 3 ("&i0") had type DEBUG: - "int *" (pointing to 32 bits) DEBUG: - but was expecting DEBUG: - "int (converter)(PyObject *, T*)" for some type T DEBUG: - for format code "O&" DEBUG: -tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c:54:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "O&" DEBUG: - argument 3 ("not_returning_int") had type DEBUG: - "void (*fn) ()" DEBUG: - but was expecting DEBUG: - "int (converter)(PyObject *, T*)" for some type T DEBUG: - for format code "O&" DEBUG: -tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c:57:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "O&" DEBUG: - argument 3 ("not_enough_args") had type DEBUG: - "int (*fn) (struct PyObject *)" DEBUG: - but was expecting DEBUG: - "int (converter)(PyObject *, T*)" for some type T DEBUG: - for format code "O&" DEBUG: -tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c:60:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "O&" DEBUG: - argument 3 ("too_many_args") had type DEBUG: - "int (*fn) (struct PyObject *, int *, int)" DEBUG: - but was expecting DEBUG: - "int (converter)(PyObject *, T*)" for some type T DEBUG: - for format code "O&" DEBUG: -tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c:63:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "O&" DEBUG: - argument 3 ("not_taking_PyObjectPtr") had type DEBUG: - "int (*fn) (int, int)" DEBUG: - but was expecting DEBUG: - "int (converter)(PyObject *, T*)" for some type T DEBUG: - for format code "O&" DEBUG: -tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c:68:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "O&" DEBUG: - argument 4 ("42") had type DEBUG: - "int" DEBUG: - but was expecting DEBUG: - "Py_ssize_t *" (pointing to 64 bits) (from second argument of "int (*fn) (struct PyObject *, Py_ssize_t *)") DEBUG: - for format code "O&" DEBUG: -tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c:73:nn: warning: Mismatching type in call to PyArg_ParseTuple with format code "O&" DEBUG: - argument 4 ("&i0") had type DEBUG: - "int *" (pointing to 32 bits) DEBUG: - but was expecting DEBUG: - "Py_ssize_t *" (pointing to 64 bits) (from second argument of "int (*fn) (struct PyObject *, Py_ssize_t *)") DEBUG: - for format code "O&" DEBUG: +tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/Py_BuildValue/code_f/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/Py_BuildValue/code_f/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,53 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when considering range: -0x80000000 <= value <= -1' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-two-value-range/input.c', line=27), value=0) DEBUG: - str(): (int)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-two-value-range/input.c:27 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-two-value-range/input.c:24 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when considering range: 0 <= value <= 0x7fffffff' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 0 <= value <= 1' DEBUG: - 'taking False path' DEBUG: - 'when considering j == (int)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-two-value-range/input.c:23' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-two-value-range/input.c', line=43), value=3) DEBUG: - str(): (int)3 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-two-value-range/input.c:43 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-two-value-range/input.c:24 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when considering range: 0 <= value <= 0x7fffffff' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 0 <= value <= 1' DEBUG: - 'taking False path' DEBUG: - 'when considering j == (int)1 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-two-value-range/input.c:23' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-two-value-range/input.c', line=41), value=2) DEBUG: - str(): (int)2 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-two-value-range/input.c:41 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-two-value-range/input.c:24 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when considering range: 0 <= value <= 0x7fffffff' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 2 <= value <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-two-value-range/input.c', line=30), value=1) DEBUG: - str(): (int)1 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-two-value-range/input.c:30 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-two-value-range/input.c:24 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-two-value-range/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-two-value-range/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,8 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): WithinRange(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/arithmetic/fix-trunc-expr/input.c', line=29), minvalue=-0x80000000, maxvalue=0x7fffffff) DEBUG: - str(): (int)val [-0x80000000 <= val <= 0x7fffffff] from tests/cpychecker/absinterp/arithmetic/fix-trunc-expr/input.c:29 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/arithmetic/fix-trunc-expr/input.c:28 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/arithmetic/fix-trunc-expr/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/arithmetic/fix-trunc-expr/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: p/real-cst/regular/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/real-cst/regular/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/real-cst/regular/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/real-cst/regular/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/result-decl: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/result-decl/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/result-decl/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/result-decl/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/result-decl/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/result-decl/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/static-data: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/static-data/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/static-data/script.py -fsigned-char tests/cpychecker/absinterp/static-data/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/static-data/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/static-data/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: tests/cpychecker/absinterp/static-data/input.c:23: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/string-constants: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/string-constants/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/string-constants/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/string-constants/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/string-constants/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/string-constants/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/switch: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/switch/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/switch/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/switch/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/switch/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/switch/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/two-loops: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/two-loops/output.o -fplugin=/builddir--- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,20 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when considering range: -0x80000000 <= len <= 0' DEBUG: - 'taking False path' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/two-loops/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when considering range: 1 <= len <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - 'when considering len == (int)1 from tests/cpychecker/absinterp/two-loops/input.c:27' DEBUG: - 'taking False path' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/two-loops/input.c:28 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/two-loops/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/two-loops/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: ests/cpychecker/absinterp/exceptions/script.py -fsigned-char -I/usr/include/python2.7 -fexceptions tests/cpychecker/absinterp/exceptions/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/exceptions/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/exceptions/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/exit: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/exit/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/exit/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/exit/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/exit/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/exit/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/function-pointers: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/function-pointers/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/function-pointers/script.py -fsigned-char tests/cpychecker/absinterp/function-pointers/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/function-pointers/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/function-pointers/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdlib.h:33: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/nested-fields: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/nested-fields/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/nested-fields/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/nested-fields/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/nested-fields/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/nested-fields/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/nested-fields2: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/nested-fields2/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/nested-fields2/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/nested-fields2/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/nested-fields2/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/nested-fields2/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/nested-fields3: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/nested-fields3/outpu--- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,6 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - error: UsageOfUninitializedData() DEBUG: - error: dereferencing uninitialized pointer (D.nnnnn->field) at tests/cpychecker/absinterp/nested-fields3/input.c:42 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/nested-fields3/input.c:34 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,3 +1,4 @@ DEBUG: -In function 'test_nested': DEBUG: -tests/cpychecker/absinterp/nested-fields3/input.c:42:nn: warning: dereferencing uninitialized pointer (D.nnnnn->field) at tests/cpychecker/absinterp/nested-fields3/input.c:42 DEBUG: -tests/cpychecker/absinterp/nested-fields3/input.c:34:nn: note: graphical error report for function 'test_nested' written out to 'tests/cpychecker/absinterp/nested-fields3/input.c.test_nested-refcount-errors.html' DEBUG: +tests/cpychecker/absinterp/nested-fields3/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/nested-fields3/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,46 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when considering range: -0x80000000 <= value <= -1' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/uninitialized-data/input.c', line=54), value=2) DEBUG: - str(): (int)2 from tests/cpychecker/absinterp/uninitialized-data/input.c:54 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when considering range: -0x80000000 <= value <= -1' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): UnknownValue(gcctype=gcc.PointerType(dereference=gcc.IntegerType(name=gcc.TypeDecl('int'))), loc=gcc.Location(file='tests/cpychecker/absinterp/uninitialized-data/input.c', line=46)) DEBUG: - str(): unknown int * from tests/cpychecker/absinterp/uninitialized-data/input.c:46 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when considering value == (int)0 from tests/cpychecker/absinterp/uninitialized-data/input.c:26' DEBUG: - 'taking True path' DEBUG: - error: UsageOfUninitializedData() DEBUG: - error: comparison against uninitialized data (j.0) at tests/cpychecker/absinterp/uninitialized-data/input.c:35 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when considering range: 1 <= value <= 0x7fffffff' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/absinterp/uninitialized-data/input.c', line=54), value=2) DEBUG: - str(): (int)2 from tests/cpychecker/absinterp/uninitialized-data/input.c:54 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when considering range: 1 <= value <= 0x7fffffff' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): UnknownValue(gcctype=gcc.PointerType(dereference=gcc.IntegerType(name=gcc.TypeDecl('int'))), loc=gcc.Location(file='tests/cpychecker/absinterp/uninitialized-data/input.c', line=46)) DEBUG: - str(): unknown int * from tests/cpychecker/absinterp/uninitialized-data/input.c:46 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,6 +1,4 @@ DEBUG: -In function 'test_void': DEBUG: -tests/cpychecker/absinterp/uninitialized-data/input.c:35:nn: warning: comparison against uninitialized data (j.0) at tests/cpychecker/absinterp/uninitialized-data/input.c:35 DEBUG: -tests/cpychecker/absinterp/uninitialized-data/input.c:30:nn: note: when considering value == (int)0 from tests/cpychecker/absinterp/uninitialized-data/input.c:26 at: if (i == 0) { DEBUG: -tests/cpychecker/absinterp/uninitialized-data/input.c:30:nn: note: taking True path at: if (i == 0) { DEBUG: -tests/cpychecker/absinterp/uninitialized-data/input.c:35:nn: note: reaching: if (i < j) { DEBUG: -tests/cpychecker/absinterp/uninitialized-data/input.c:27:nn: note: graphical error report for function 'test_void' written out to 'tests/cpychecker/absinterp/uninitialized-data/input.c.test_void-refcount-errors.html' DEBUG: +tests/cpychecker/absinterp/uninitialized-data/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/uninitialized-data/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +tests/cpychecker/absinterp/uninitialized-data/input.c:24: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,17 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct Foo * from tests/cpychecker/absinterp/arrays3/input.c:37 as non-NULL' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): UnknownValue(gcctype=gcc.PointerType(dereference=gcc.IntegerType(name=gcc.TypeDecl('char'))), loc=gcc.Location(file='tests/cpychecker/absinterp/arrays3/input.c', line=37)) DEBUG: - str(): unknown const char * from tests/cpychecker/absinterp/arrays3/input.c:37 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/arrays3/input.c:36 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct Foo * from tests/cpychecker/absinterp/arrays3/input.c:37 as NULL' DEBUG: - error: NullPtrDereference() DEBUG: - error: possibly dereferencing NULL (D.nnnnn->fieldA) at tests/cpychecker/absinterp/arrays3/input.c:37 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/arrays3/input.c:36 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/arrays3/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/arrays3/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,43 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyArg_ParseTuple() succeeds' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_converter/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('_Py_NoneStruct'))) DEBUG: - str(): (struct PyObject *)&RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) from tests/cpychecker/refcounts/PyArg_ParseTuple/correct_converter/input.c:33 DEBUG: - r->ob_refcnt: refs: 1 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_converter/input.c', line=24), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_converter/input.c', line=24), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyArg_ParseTuple/correct_converter/input.c:25 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyArg_ParseTuple() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_converter/input.c', line=30), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyArg_ParseTuple/correct_converter/input.c:30 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_converter/input.c', line=24), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_converter/input.c', line=24), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_TypeError')) from tests/cpychecker/refcounts/PyArg_ParseTuple/correct_converter/input.c:27 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyArg_ParseTuple/correct_converter/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyArg_ParseTuple/correct_converter/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,19 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'PyErr_Format()' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_Format/correct/input.c', line=36), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyErr_Format/correct/input.c:36 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_Format/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_Format/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - unknown struct PyObject * from /usr/include/python?.?/pyerrors.h:nn DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyErr_Format/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyErr_Format/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,61 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c:26 as non-NULL' DEBUG: - 'when PyDict_GetItem() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c', line=35), region=RegionOnHeap('borrowed reference returned by PyDict_GetItem()', gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c', line=35))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('borrowed reference returned by PyDict_GetItem()', gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c', line=35)) from tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c:35 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c', line=35), region=Region('PyTypeObject for borrowed reference returned by PyDict_GetItem()')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c:30 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c:26 as non-NULL' DEBUG: - 'when PyDict_GetItem does not find item' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c', line=35), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c:35 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c:30 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c:26 as NULL' DEBUG: - error: NullPtrArgument() DEBUG: - error: possibly calling PyDict_GetItem with NULL as argument 1 (some_dict.0) at tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c:35 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c:30 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,13 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c:35:nn: warning: future use-after-free: ob_refcnt of return value is 1 too low DEBUG: -tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c:35:nn: note: return value was allocated at: return PyDict_GetItem(some_dict, args); DEBUG: -tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c:35:nn: note: was expecting final owned ob_refcnt of return value to be 1 due to object being referenced by: return value but final ob_refcnt is refs: 0 owned, 1 borrowed DEBUG: -tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c:35:nn: note: when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c:26 as non-NULL at: return PyDict_GetItem(some_dict, args); DEBUG: -tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c:35:nn: note: when PyDict_GetItem() succeeds at: return PyDict_GetItem(some_dict, args); DEBUG: -tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c:35:nn: note: ob_refcnt is now refs: 0 owned, 1 borrowed DEBUG: -tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c:35:nn: note: returning at: return PyDict_GetItem(some_dict, args); DEBUG: -tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c:35:nn: warning: returning (PyObject*)NULL without setting an exception DEBUG: -tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c:35:nn: note: when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c:26 as non-NULL at: return PyDict_GetItem(some_dict, args); DEBUG: -tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c:35:nn: note: when PyDict_GetItem does not find item at: return PyDict_GetItem(some_dict, args); DEBUG: -tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c:35:nn: note: returning at: return PyDict_GetItem(some_dict, args); DEBUG: -tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c:30:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,48 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyFloat_FromDouble() succeeds' DEBUG: - 'PyFloat_AsDouble() returns ob_fval' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='double', loc=gcc.Location(file='tests/cpychecker/refcounts/PyFloat_AsDouble/correct_PyFloatObject/input.c', line=33), value=42.0) DEBUG: - str(): (double)42.0 from tests/cpychecker/refcounts/PyFloat_AsDouble/correct_PyFloatObject/input.c:33 DEBUG: - PyFloatObject allocated at tests/cpychecker/refcounts/PyFloat_AsDouble/correct_PyFloatObject/input.c:33: DEBUG: - repr(): RegionOnHeap('PyFloatObject', gcc.Location(file='tests/cpychecker/refcounts/PyFloat_AsDouble/correct_PyFloatObject/input.c', line=33)) DEBUG: - str(): PyFloatObject allocated at tests/cpychecker/refcounts/PyFloat_AsDouble/correct_PyFloatObject/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyFloat_AsDouble/correct_PyFloatObject/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyFloat_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyFloat_AsDouble/correct_PyFloatObject/input.c:29 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyFloat_FromDouble() succeeds' DEBUG: - 'PyFloat_AsDouble() returns ob_fval' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyFloatObject allocated at tests/cpychecker/refcounts/PyFloat_AsDouble/correct_PyFloatObject/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='double', loc=gcc.Location(file='tests/cpychecker/refcounts/PyFloat_AsDouble/correct_PyFloatObject/input.c', line=33), value=42.0) DEBUG: - str(): (double)42.0 from tests/cpychecker/refcounts/PyFloat_AsDouble/correct_PyFloatObject/input.c:33 DEBUG: - PyFloatObject allocated at tests/cpychecker/refcounts/PyFloat_AsDouble/correct_PyFloatObject/input.c:33: DEBUG: - repr(): RegionOnHeap('PyFloatObject', gcc.Location(file='tests/cpychecker/refcounts/PyFloat_AsDouble/correct_PyFloatObject/input.c', line=33)) DEBUG: - str(): PyFloatObject allocated at tests/cpychecker/refcounts/PyFloat_AsDouble/correct_PyFloatObject/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyFloat_AsDouble/correct_PyFloatObject/input.c:29 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyFloat_FromDouble() fails' DEBUG: - 'PyFloat_AsDouble() fails due to NULL argument' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='double', loc=gcc.Location(file='tests/cpychecker/refcounts/PyFloat_AsDouble/correct_PyFloatObject/input.c', line=36), value=-1) DEBUG: - str(): (double)-1 from tests/cpychecker/refcounts/PyFloat_AsDouble/correct_PyFloatObject/input.c:36 DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_TypeError')) from tests/cpychecker/refcounts/PyFloat_AsDouble/correct_PyFloatObject/input.c:36 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyFloat_AsDouble/correct_PyFloatObject/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyFloat_AsDouble/correct_PyFloatObject/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,29 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyMapping_Size() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): WithinRange(gcctype='Py_ssize_t', loc=gcc.Location(file='tests/cpychecker/refcounts/PyMapping_Size/basic/input.c', line=29), minvalue=-0x8000000000000000, maxvalue=0x7fffffffffffffff) DEBUG: - str(): (Py_ssize_t)val [-0x8000000000000000 <= val <= 0x7fffffffffffffff] from tests/cpychecker/refcounts/PyMapping_Size/basic/input.c:29 DEBUG: - region for gcc.ParmDecl('obj') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('obj')") DEBUG: - str(): region for gcc.ParmDecl('obj') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyMapping_Size/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('obj')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyMapping_Size/basic/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyMapping_Size() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='Py_ssize_t', loc=gcc.Location(file='tests/cpychecker/refcounts/PyMapping_Size/basic/input.c', line=29), value=-1) DEBUG: - str(): (Py_ssize_t)-1 from tests/cpychecker/refcounts/PyMapping_Size/basic/input.c:29 DEBUG: - region for gcc.ParmDecl('obj') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('obj')") DEBUG: - str(): region for gcc.ParmDecl('obj') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyMapping_Size/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('obj')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_TypeError')) from tests/cpychecker/refcounts/PyMapping_Size/basic/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyMapping_Size/basic/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyMapping_Size/basic/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,263 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_Append() succeeds' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=32), region=RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=32))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=32)) from tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:32 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:36: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=36)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:36 DEBUG: - r->ob_refcnt: refs: 2 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=36), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_Append() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=45), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:45 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:32: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=32)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:32 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:36: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=36)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:36 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=36), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:42 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_Append() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:36' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=45), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:45 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:32: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=32)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:32 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:36: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=36)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:36 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:42 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_Append() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:32' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=45), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:45 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:32: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=32)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:32 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:36: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=36)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:36 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=36), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:42 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_Append() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:32' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:36' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=45), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:45 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:32: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=32)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:32 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:36: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=36)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:36 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:42 DEBUG: - DEBUG: -Trace 5: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=39), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:39 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:32: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=32)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:32 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:36 DEBUG: - DEBUG: -Trace 6: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:32' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=39), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:39 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:32: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=32)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:32 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:36 DEBUG: - DEBUG: -Trace 7: DEBUG: - Transitions: DEBUG: - 'when PyList_New() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=34), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:34 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:32 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,18 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:53:nn: warning: memory leak: ob_refcnt of '*item' is 1 too high DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:36:nn: note: '*item' was allocated at: item = PyLong_FromLong(42); DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:53:nn: note: was expecting final owned ob_refcnt of '*item' to be 1 due to object being referenced by: PyListObject.ob_item[0] but final ob_refcnt is refs: 2 owned DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:32:nn: note: when PyList_New() succeeds at: list = PyList_New(0); DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:33:nn: note: taking False path at: if (!list) { DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:36:nn: note: reaching: item = PyLong_FromLong(42); DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:36:nn: note: when PyLong_FromLong() succeeds at: item = PyLong_FromLong(42); DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:36:nn: note: ob_refcnt is now refs: 1 owned DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:37:nn: note: taking False path at: if (!item) { DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:42:nn: note: reaching: if (-1 == PyList_Append(list, item)) { DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:42:nn: note: when PyList_Append() succeeds at: if (-1 == PyList_Append(list, item)) { DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:42:nn: note: ob_refcnt is now refs: 2 owned DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:42:nn: note: '*item' is now referenced by 1 non-stack value(s): PyListObject.ob_item[0] DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:42:nn: note: taking False path at: if (-1 == PyList_Append(list, item)) { DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:53:nn: note: reaching: return list; DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:53:nn: note: returning DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:28:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyList_Append/incorrect/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,5 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'returning' DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/void-return/input.c:26 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/void-return/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/void-return/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,43 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyArg_ParseTuple() succeeds' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_simple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('_Py_NoneStruct'))) DEBUG: - str(): (struct PyObject *)&RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) from tests/cpychecker/refcounts/PyArg_ParseTuple/correct_simple/input.c:44 DEBUG: - r->ob_refcnt: refs: 1 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_simple/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_simple/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyArg_ParseTuple/correct_simple/input.c:31 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyArg_ParseTuple() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_simple/input.c', line=39), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyArg_ParseTuple/correct_simple/input.c:39 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_simple/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_simple/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_TypeError')) from tests/cpychecker/refcounts/PyArg_ParseTuple/correct_simple/input.c:37 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyArg_ParseTuple/correct_simple/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyArg_ParseTuple/correct_simple/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,163 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyObject_CallMethodObjArgs() succeeds' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=43), region=RegionOnHeap('new ref from call to PyObject_CallMethodObjArgs', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=43))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new ref from call to PyObject_CallMethodObjArgs', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=43)) from tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:43 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=43), region=Region('PyTypeObject for new ref from call to PyObject_CallMethodObjArgs')) DEBUG: - region for gcc.ParmDecl('obj') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('obj')") DEBUG: - str(): region for gcc.ParmDecl('obj') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=33), region=Region("region-for-type-of-arg-gcc.ParmDecl('obj')")) DEBUG: - region for gcc.ParmDecl('a') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('a')") DEBUG: - str(): region for gcc.ParmDecl('a') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=33), region=Region("region-for-type-of-arg-gcc.ParmDecl('a')")) DEBUG: - region for gcc.ParmDecl('b') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('b')") DEBUG: - str(): region for gcc.ParmDecl('b') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=33), region=Region("region-for-type-of-arg-gcc.ParmDecl('b')")) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:35: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=35)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:35 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=35), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:34 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyObject_CallMethodObjArgs() succeeds' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyStringObject allocated at tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:35' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=43), region=RegionOnHeap('new ref from call to PyObject_CallMethodObjArgs', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=43))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new ref from call to PyObject_CallMethodObjArgs', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=43)) from tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:43 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=43), region=Region('PyTypeObject for new ref from call to PyObject_CallMethodObjArgs')) DEBUG: - region for gcc.ParmDecl('obj') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('obj')") DEBUG: - str(): region for gcc.ParmDecl('obj') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=33), region=Region("region-for-type-of-arg-gcc.ParmDecl('obj')")) DEBUG: - region for gcc.ParmDecl('a') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('a')") DEBUG: - str(): region for gcc.ParmDecl('a') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=33), region=Region("region-for-type-of-arg-gcc.ParmDecl('a')")) DEBUG: - region for gcc.ParmDecl('b') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('b')") DEBUG: - str(): region for gcc.ParmDecl('b') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=33), region=Region("region-for-type-of-arg-gcc.ParmDecl('b')")) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:35: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=35)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:35 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:34 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyObject_CallMethodObjArgs() fails' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=43), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:43 DEBUG: - region for gcc.ParmDecl('obj') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('obj')") DEBUG: - str(): region for gcc.ParmDecl('obj') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=33), region=Region("region-for-type-of-arg-gcc.ParmDecl('obj')")) DEBUG: - region for gcc.ParmDecl('a') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('a')") DEBUG: - str(): region for gcc.ParmDecl('a') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=33), region=Region("region-for-type-of-arg-gcc.ParmDecl('a')")) DEBUG: - region for gcc.ParmDecl('b') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('b')") DEBUG: - str(): region for gcc.ParmDecl('b') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=33), region=Region("region-for-type-of-arg-gcc.ParmDecl('b')")) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:35: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=35)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:35 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=35), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:43 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyObject_CallMethodObjArgs() fails' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyStringObject allocated at tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:35' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=43), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:43 DEBUG: - region for gcc.ParmDecl('obj') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('obj')") DEBUG: - str(): region for gcc.ParmDecl('obj') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=33), region=Region("region-for-type-of-arg-gcc.ParmDecl('obj')")) DEBUG: - region for gcc.ParmDecl('a') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('a')") DEBUG: - str(): region for gcc.ParmDecl('a') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=33), region=Region("region-for-type-of-arg-gcc.ParmDecl('a')")) DEBUG: - region for gcc.ParmDecl('b') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('b')") DEBUG: - str(): region for gcc.ParmDecl('b') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=33), region=Region("region-for-type-of-arg-gcc.ParmDecl('b')")) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:35: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=35)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:35 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:43 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when PyString_FromString() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=38), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:38 DEBUG: - region for gcc.ParmDecl('obj') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('obj')") DEBUG: - str(): region for gcc.ParmDecl('obj') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=33), region=Region("region-for-type-of-arg-gcc.ParmDecl('obj')")) DEBUG: - region for gcc.ParmDecl('a') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('a')") DEBUG: - str(): region for gcc.ParmDecl('a') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=33), region=Region("region-for-type-of-arg-gcc.ParmDecl('a')")) DEBUG: - region for gcc.ParmDecl('b') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('b')") DEBUG: - str(): region for gcc.ParmDecl('b') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c', line=33), region=Region("region-for-type-of-arg-gcc.ParmDecl('b')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:35 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,7 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:43:nn: warning: argument 3 had type char[13] * but was expecting a PyObject* (or subclass) DEBUG: -tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:43:nn: warning: argument 4 had type char[4] * but was expecting a PyObject* (or subclass) DEBUG: -tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:43:nn: warning: argument 5 had type char[3] * but was expecting a PyObject* (or subclass) DEBUG: -tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:43:nn: warning: argument 6 had type char[3] * but was expecting a PyObject* (or subclass) DEBUG: -tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:43:nn: warning: argument 7 had type char[4] * but was expecting a PyObject* (or subclass) DEBUG: -tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:43:nn: warning: arguments to PyObject_CallMethodObjArgs were not NULL-terminated DEBUG: +tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: ing-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-max-of-WithinRange/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-max-of-WithinRange/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-max-of-WithinRange/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-max-of-WithinRange/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-min-of-WithinRange: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-min-of-WithinRange/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-min-of-WithinRange/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-min-of-WithinRange/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-min-of-WithinRange/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-min-of-WithinRange/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-two-value-range: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-two-value-range/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-two-value-range/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-two-value-range/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-two-value-range/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-two-value-range/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyErr_Format/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyErr_Format/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyErr_Format/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyErr_Format/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyErr_Format/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyErr_Format/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyErr_NewException/basic: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyErr_NewExcept--- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,61 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown char * from tests/cpychecker/refcounts/PyErr_NewException/basic/input.c:27 as non-NULL' DEBUG: - 'when PyErr_NewException() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_NewException/basic/input.c', line=29), region=RegionOnHeap('new exception object from PyErr_NewException', gcc.Location(file='tests/cpychecker/refcounts/PyErr_NewException/basic/input.c', line=29))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new exception object from PyErr_NewException', gcc.Location(file='tests/cpychecker/refcounts/PyErr_NewException/basic/input.c', line=29)) from tests/cpychecker/refcounts/PyErr_NewException/basic/input.c:29 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_NewException/basic/input.c', line=29), region=Region('PyTypeObject for new exception object from PyErr_NewException')) DEBUG: - region for gcc.ParmDecl('base') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('base')") DEBUG: - str(): region for gcc.ParmDecl('base') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_NewException/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('base')")) DEBUG: - region for gcc.ParmDecl('dict') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('dict')") DEBUG: - str(): region for gcc.ParmDecl('dict') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_NewException/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('dict')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyErr_NewException/basic/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown char * from tests/cpychecker/refcounts/PyErr_NewException/basic/input.c:27 as non-NULL' DEBUG: - 'when PyErr_NewException() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_NewException/basic/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyErr_NewException/basic/input.c:29 DEBUG: - region for gcc.ParmDecl('base') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('base')") DEBUG: - str(): region for gcc.ParmDecl('base') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_NewException/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('base')")) DEBUG: - region for gcc.ParmDecl('dict') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('dict')") DEBUG: - str(): region for gcc.ParmDecl('dict') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_NewException/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('dict')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyErr_NewException/basic/input.c:29 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when treating unknown char * from tests/cpychecker/refcounts/PyErr_NewException/basic/input.c:27 as NULL' DEBUG: - error: NullPtrArgument() DEBUG: - error: possibly calling PyErr_NewException with NULL as argument 1 (name) at tests/cpychecker/refcounts/PyErr_NewException/basic/input.c:29 DEBUG: - region for gcc.ParmDecl('base') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('base')") DEBUG: - str(): region for gcc.ParmDecl('base') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_NewException/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('base')")) DEBUG: - region for gcc.ParmDecl('dict') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('dict')") DEBUG: - str(): region for gcc.ParmDecl('dict') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_NewException/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('dict')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyErr_NewException/basic/input.c:28 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyErr_NewException/basic/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyErr_NewException/basic/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,64 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyDict_GetItemString/correct/input.c:26 as non-NULL' DEBUG: - 'when PyDict_GetItemString() succeeds' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItemString/correct/input.c', line=32), region=RegionOnHeap('borrowed reference returned by PyDict_GetItemString()', gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItemString/correct/input.c', line=32))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('borrowed reference returned by PyDict_GetItemString()', gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItemString/correct/input.c', line=32)) from tests/cpychecker/refcounts/PyDict_GetItemString/correct/input.c:32 DEBUG: - r->ob_refcnt: refs: 1 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItemString/correct/input.c', line=32), region=Region('PyTypeObject for borrowed reference returned by PyDict_GetItemString()')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItemString/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItemString/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_GetItemString/correct/input.c:30 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyDict_GetItemString/correct/input.c:26 as non-NULL' DEBUG: - 'PyDict_GetItemString does not find string' DEBUG: - 'taking False path' DEBUG: - 'calling PyErr_SetString()' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItemString/correct/input.c', line=42), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_GetItemString/correct/input.c:42 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItemString/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItemString/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - unknown struct PyObject * from /usr/include/python?.?/pyerrors.h:nn DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyDict_GetItemString/correct/input.c:26 as NULL' DEBUG: - error: NullPtrArgument() DEBUG: - error: possibly calling PyDict_GetItemString with NULL as argument 1 (some_dict.0) at tests/cpychecker/refcounts/PyDict_GetItemString/correct/input.c:32 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItemString/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItemString/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_GetItemString/correct/input.c:30 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyDict_GetItemString/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyDict_GetItemString/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,72 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyFloat_AsDouble() succeeds' DEBUG: - 'when taking True path' DEBUG: - 'PyErr_Occurred()' DEBUG: - 'taking False path' DEBUG: - '__dump(unknown double from tests/cpychecker/refcounts/PyFloat_AsDouble/correct_cast/input.c:34)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyFloat_AsDouble/correct_cast/input.c', line=49), region=RegionForGlobal(gcc.VarDecl('_Py_NoneStruct'))) DEBUG: - str(): (struct PyObject *)&RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) from tests/cpychecker/refcounts/PyFloat_AsDouble/correct_cast/input.c:49 DEBUG: - r->ob_refcnt: refs: 1 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyFloat_AsDouble/correct_cast/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyFloat_AsDouble/correct_cast/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyFloat_AsDouble/correct_cast/input.c:31 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyFloat_AsDouble() succeeds' DEBUG: - 'when taking False path' DEBUG: - '__dump(unknown double from tests/cpychecker/refcounts/PyFloat_AsDouble/correct_cast/input.c:34)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyFloat_AsDouble/correct_cast/input.c', line=49), region=RegionForGlobal(gcc.VarDecl('_Py_NoneStruct'))) DEBUG: - str(): (struct PyObject *)&RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) from tests/cpychecker/refcounts/PyFloat_AsDouble/correct_cast/input.c:49 DEBUG: - r->ob_refcnt: refs: 1 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyFloat_AsDouble/correct_cast/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyFloat_AsDouble/correct_cast/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyFloat_AsDouble/correct_cast/input.c:31 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyFloat_AsDouble() fails' DEBUG: - 'taking True path' DEBUG: - 'PyErr_Occurred()' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyFloat_AsDouble/correct_cast/input.c', line=38), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyFloat_AsDouble/correct_cast/input.c:38 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyFloat_AsDouble/correct_cast/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyFloat_AsDouble/correct_cast/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyFloat_AsDouble/correct_cast/input.c:34 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyFloat_AsDouble/correct_cast/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyFloat_AsDouble/correct_cast/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,45 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyMem_Malloc() succeeds' DEBUG: - 'taking False path' DEBUG: - 'calling PyMem_Free on PyMem_Malloc allocated at tests/cpychecker/refcounts/PyMem_Malloc/correct/alloc-and-free/input.c:31' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyMem_Malloc/correct/alloc-and-free/input.c', line=41), region=RegionForGlobal(gcc.VarDecl('_Py_NoneStruct'))) DEBUG: - str(): (struct PyObject *)&RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) from tests/cpychecker/refcounts/PyMem_Malloc/correct/alloc-and-free/input.c:41 DEBUG: - r->ob_refcnt: refs: 1 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyMem_Malloc/correct/alloc-and-free/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyMem_Malloc/correct/alloc-and-free/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyMem_Malloc/correct/alloc-and-free/input.c:30 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyMem_Malloc() fails' DEBUG: - 'taking True path' DEBUG: - 'PyErr_NoMemory() returns NULL, raising MemoryError' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyMem_Malloc/correct/alloc-and-free/input.c', line=34), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyMem_Malloc/correct/alloc-and-free/input.c:34 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyMem_Malloc/correct/alloc-and-free/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyMem_Malloc/correct/alloc-and-free/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyMem_Malloc/correct/alloc-and-free/input.c:34 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyMem_Malloc/correct/alloc-and-free/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyMem_Malloc/correct/alloc-and-free/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,53 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyArg_ParseTupleAndKeywords() succeeds' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTupleAndKeywords/correct_O/input.c', line=33), region=RegionOnHeap('object from arg "O"', gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTupleAndKeywords/correct_O/input.c', line=33))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('object from arg "O"', gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTupleAndKeywords/correct_O/input.c', line=33)) from tests/cpychecker/refcounts/PyArg_ParseTupleAndKeywords/correct_O/input.c:33 DEBUG: - r->ob_refcnt: (Py_ssize_t)val [-0x7fffffffffffffff <= val <= 0x7fffffffffffffff] from tests/cpychecker/refcounts/PyArg_ParseTupleAndKeywords/correct_O/input.c:44 DEBUG: - r->ob_type: None DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTupleAndKeywords/correct_O/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTupleAndKeywords/correct_O/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - region for gcc.ParmDecl('kwargs') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('kwargs')") DEBUG: - str(): region for gcc.ParmDecl('kwargs') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTupleAndKeywords/correct_O/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('kwargs')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyArg_ParseTupleAndKeywords/correct_O/input.c:29 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyArg_ParseTupleAndKeywords() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTupleAndKeywords/correct_O/input.c', line=36), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyArg_ParseTupleAndKeywords/correct_O/input.c:36 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTupleAndKeywords/correct_O/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTupleAndKeywords/correct_O/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - region for gcc.ParmDecl('kwargs') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('kwargs')") DEBUG: - str(): region for gcc.ParmDecl('kwargs') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTupleAndKeywords/correct_O/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('kwargs')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_TypeError')) from tests/cpychecker/refcounts/PyArg_ParseTupleAndKeywords/correct_O/input.c:33 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyArg_ParseTupleAndKeywords/correct_O/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyArg_ParseTupleAndKeywords/correct_O/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,41 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyObject_CallObject() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallObject/correct/input.c', line=29), region=RegionOnHeap('new ref from call to PyObject_CallObject', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallObject/correct/input.c', line=29))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new ref from call to PyObject_CallObject', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallObject/correct/input.c', line=29)) from tests/cpychecker/refcounts/PyObject_CallObject/correct/input.c:29 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallObject/correct/input.c', line=29), region=Region('PyTypeObject for new ref from call to PyObject_CallObject')) DEBUG: - region for gcc.ParmDecl('callable') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('callable')") DEBUG: - str(): region for gcc.ParmDecl('callable') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallObject/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('callable')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallObject/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_CallObject/correct/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyObject_CallObject() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallObject/correct/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_CallObject/correct/input.c:29 DEBUG: - region for gcc.ParmDecl('callable') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('callable')") DEBUG: - str(): region for gcc.ParmDecl('callable') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallObject/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('callable')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallObject/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyObject_CallObject/correct/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyObject_CallObject/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyObject_CallObject/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,14 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown char * from tests/cpychecker/absinterp/write-through-arg-unchecked/input.c:27 as non-NULL' DEBUG: - 'returning' DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/write-through-arg-unchecked/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown char * from tests/cpychecker/absinterp/write-through-arg-unchecked/input.c:27 as NULL' DEBUG: - error: NullPtrDereference() DEBUG: - error: possibly dereferencing NULL (*out) at tests/cpychecker/absinterp/write-through-arg-unchecked/input.c:30 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/write-through-arg-unchecked/input.c:28 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,4 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/absinterp/write-through-arg-unchecked/input.c:29:nn: warning: possibly dereferencing NULL (*out) at tests/cpychecker/absinterp/write-through-arg-unchecked/input.c:30 DEBUG: -tests/cpychecker/absinterp/write-through-arg-unchecked/input.c:29:nn: note: when treating unknown char * from tests/cpychecker/absinterp/write-through-arg-unchecked/input.c:27 as NULL at: out[0] = '\0'; DEBUG: -tests/cpychecker/absinterp/write-through-arg-unchecked/input.c:28:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/absinterp/write-through-arg-unchecked/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/absinterp/write-through-arg-unchecked/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/write-through-arg-unchecked/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,19 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'PyErr_NoMemory() returns NULL, raising MemoryError' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_NoMemory/correct/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyErr_NoMemory/correct/input.c:29 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_NoMemory/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_NoMemory/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyErr_NoMemory/correct/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyErr_NoMemory/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyErr_NoMemory/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,214 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: -0x80000000 <= n <= 0' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=34), region=RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=34))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=34)) from tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:34 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=34), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:30 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 1 <= n <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - 'when item_ctor() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_Append() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering n == (int)1 from tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:29' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=34), region=RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=34))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=34)) from tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:34 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=34), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - new ref from (unknown) item_ctor allocated at tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:41: DEBUG: - repr(): RegionOnHeap('new ref from (unknown) item_ctor', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=41)) DEBUG: - str(): new ref from (unknown) item_ctor allocated at tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:41 DEBUG: - r->ob_refcnt: refs: 2 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=41), region=Region('PyTypeObject for new ref from (unknown) item_ctor')) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:30 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 1 <= n <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - 'when item_ctor() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_Append() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=50), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:50 DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:34: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=34)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:34 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=34), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - new ref from (unknown) item_ctor allocated at tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:41: DEBUG: - repr(): RegionOnHeap('new ref from (unknown) item_ctor', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=41)) DEBUG: - str(): new ref from (unknown) item_ctor allocated at tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:41 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=41), region=Region('PyTypeObject for new ref from (unknown) item_ctor')) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:47 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 1 <= n <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - 'when item_ctor() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_Append() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on new ref from (unknown) item_ctor allocated at tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:41' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=50), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:50 DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:34: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=34)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:34 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=34), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - new ref from (unknown) item_ctor allocated at tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:41: DEBUG: - repr(): RegionOnHeap('new ref from (unknown) item_ctor', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=41)) DEBUG: - str(): new ref from (unknown) item_ctor allocated at tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:41 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:47 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 1 <= n <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - 'when item_ctor() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_Append() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:34' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=50), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:50 DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:34: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=34)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:34 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - new ref from (unknown) item_ctor allocated at tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:41: DEBUG: - repr(): RegionOnHeap('new ref from (unknown) item_ctor', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=41)) DEBUG: - str(): new ref from (unknown) item_ctor allocated at tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:41 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=41), region=Region('PyTypeObject for new ref from (unknown) item_ctor')) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:47 DEBUG: - DEBUG: -Trace 5: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 1 <= n <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - 'when item_ctor() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_Append() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:34' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on new ref from (unknown) item_ctor allocated at tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:41' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=50), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:50 DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:34: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=34)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:34 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - new ref from (unknown) item_ctor allocated at tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:41: DEBUG: - repr(): RegionOnHeap('new ref from (unknown) item_ctor', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=41)) DEBUG: - str(): new ref from (unknown) item_ctor allocated at tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:41 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:47 DEBUG: - DEBUG: -Trace 6: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 1 <= n <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - 'when item_ctor() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=44), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:44 DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:34: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=34)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:34 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=34), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:41 DEBUG: - DEBUG: -Trace 7: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 1 <= n <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - 'when item_ctor() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:34' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=44), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:44 DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:34: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=34)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:34 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:41 DEBUG: - DEBUG: -Trace 8: DEBUG: - Transitions: DEBUG: - 'when PyList_New() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c', line=36), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:36 DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:34 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,24 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:59:nn: warning: memory leak: ob_refcnt of '*item' is 1 too high DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:41:nn: note: '*item' was allocated at: item = item_ctor(); DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:59:nn: note: was expecting final owned ob_refcnt of '*item' to be 1 due to object being referenced by: PyListObject.ob_item[0] but final ob_refcnt is refs: 2 owned DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:34:nn: note: when PyList_New() succeeds at: list = PyList_New(0); DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:35:nn: note: taking False path at: if (!list) { DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:38:nn: note: reaching: for (i = 0; i < n; i++) { DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:38:nn: note: when considering range: 1 <= n <= 0x7fffffff at: for (i = 0; i < n; i++) { DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:38:nn: note: taking True path at: for (i = 0; i < n; i++) { DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:41:nn: note: reaching: item = item_ctor(); DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:41:nn: note: when item_ctor() succeeds at: item = item_ctor(); DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:41:nn: note: ob_refcnt is now refs: 1 owned DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:42:nn: note: taking False path at: if (!item) { DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:47:nn: note: reaching: if (PyList_Append(list, item)) { DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:47:nn: note: when PyList_Append() succeeds at: if (PyList_Append(list, item)) { DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:47:nn: note: ob_refcnt is now refs: 2 owned DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:47:nn: note: '*item' is now referenced by 1 non-stack value(s): PyListObject.ob_item[0] DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:47:nn: note: taking False path at: if (PyList_Append(list, item)) { DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:38:nn: note: reaching: for (i = 0; i < n; i++) { DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:38:nn: note: when considering n == (int)1 from tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:29 at: for (i = 0; i < n; i++) { DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:38:nn: note: taking False path at: for (i = 0; i < n; i++) { DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:59:nn: note: reaching: return list; DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:59:nn: note: returning DEBUG: -tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:30:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,21 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyFloat_FromDouble() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyFloat_FromDouble/simple/input.c', line=29), region=RegionOnHeap('PyFloatObject', gcc.Location(file='tests/cpychecker/refcounts/PyFloat_FromDouble/simple/input.c', line=29))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyFloatObject', gcc.Location(file='tests/cpychecker/refcounts/PyFloat_FromDouble/simple/input.c', line=29)) from tests/cpychecker/refcounts/PyFloat_FromDouble/simple/input.c:29 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyFloat_FromDouble/simple/input.c', line=29), region=RegionForGlobal(gcc.VarDecl('PyFloat_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyFloat_FromDouble/simple/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyFloat_FromDouble() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyFloat_FromDouble/simple/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyFloat_FromDouble/simple/input.c:29 DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyFloat_FromDouble/simple/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyFloat_FromDouble/simple/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyFloat_FromDouble/simple/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,61 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c:26 as non-NULL' DEBUG: - 'when PyDict_GetItemString() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c', line=35), region=RegionOnHeap('borrowed reference returned by PyDict_GetItemString()', gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c', line=35))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('borrowed reference returned by PyDict_GetItemString()', gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c', line=35)) from tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c:35 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c', line=35), region=Region('PyTypeObject for borrowed reference returned by PyDict_GetItemString()')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c:30 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c:26 as non-NULL' DEBUG: - 'PyDict_GetItemString does not find string' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c', line=35), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c:35 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c:30 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c:26 as NULL' DEBUG: - error: NullPtrArgument() DEBUG: - error: possibly calling PyDict_GetItemString with NULL as argument 1 (some_dict.0) at tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c:35 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c:30 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,13 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c:35:nn: warning: future use-after-free: ob_refcnt of return value is 1 too low DEBUG: -tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c:35:nn: note: return value was allocated at: return PyDict_GetItemString(some_dict, "item"); DEBUG: -tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c:35:nn: note: was expecting final owned ob_refcnt of return value to be 1 due to object being referenced by: return value but final ob_refcnt is refs: 0 owned, 1 borrowed DEBUG: -tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c:35:nn: note: when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c:26 as non-NULL at: return PyDict_GetItemString(some_dict, "item"); DEBUG: -tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c:35:nn: note: when PyDict_GetItemString() succeeds at: return PyDict_GetItemString(some_dict, "item"); DEBUG: -tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c:35:nn: note: ob_refcnt is now refs: 0 owned, 1 borrowed DEBUG: -tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c:35:nn: note: returning at: return PyDict_GetItemString(some_dict, "item"); DEBUG: -tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c:35:nn: warning: returning (PyObject*)NULL without setting an exception DEBUG: -tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c:35:nn: note: when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c:26 as non-NULL at: return PyDict_GetItemString(some_dict, "item"); DEBUG: -tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c:35:nn: note: PyDict_GetItemString does not find string at: return PyDict_GetItemString(some_dict, "item"); DEBUG: -tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c:35:nn: note: returning at: return PyDict_GetItemString(some_dict, "item"); DEBUG: -tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c:30:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,21 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'calling PyMem_Free on NULL' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyMem_Malloc/correct/free-NULL/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('_Py_NoneStruct'))) DEBUG: - str(): (struct PyObject *)&RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) from tests/cpychecker/refcounts/PyMem_Malloc/correct/free-NULL/input.c:33 DEBUG: - r->ob_refcnt: refs: 1 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyMem_Malloc/correct/free-NULL/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyMem_Malloc/correct/free-NULL/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyMem_Malloc/correct/free-NULL/input.c:30 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyMem_Malloc/correct/free-NULL/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyMem_Malloc/correct/free-NULL/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: /BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-max-of-WithinRange/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-max-of-WithinRange/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-max-of-WithinRange/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-max-of-WithinRange/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/uninitialized-data: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/uninitialized-data/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/uninitialized-data/script.py -fsigned-char tests/cpychecker/absinterp/uninitialized-data/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/uninitialized-data/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/uninitialized-data/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: tests/cpychecker/absinterp/uninitialized-data/input.c:24: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/void-return: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/void-return/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/void-return/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/void-return/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/void-return/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/void-return/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/write-through-arg-unchecked: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/write-through-arg-unchecked/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/write-through-arg-unchecked/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/write-through-arg-unchecked/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/write-through-arg-unchecked/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/write-through-arg-unchecked/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/write-through-global-ptr-checked: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/write-through-global-ptr-checked/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/write-through-global-ptr-checked/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/write-through-global-ptr-checked/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/write-through-global-ptr-checked/input.c:1:1:--- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,15 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct coord * from tests/cpychecker/absinterp/write-through-global-ptr-checked/input.c:31 as non-NULL' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/write-through-global-ptr-checked/input.c:34 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct coord * from tests/cpychecker/absinterp/write-through-global-ptr-checked/input.c:31 as NULL' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/write-through-global-ptr-checked/input.c:34 DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,41 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyObject_GenericGetAttr() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GenericGetAttr/basic/input.c', line=29), region=RegionOnHeap('new ref from PyObject_GenericGetAttr()', gcc.Location(file='tests/cpychecker/refcounts/PyObject_GenericGetAttr/basic/input.c', line=29))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new ref from PyObject_GenericGetAttr()', gcc.Location(file='tests/cpychecker/refcounts/PyObject_GenericGetAttr/basic/input.c', line=29)) from tests/cpychecker/refcounts/PyObject_GenericGetAttr/basic/input.c:29 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GenericGetAttr/basic/input.c', line=29), region=Region('PyTypeObject for new ref from PyObject_GenericGetAttr()')) DEBUG: - region for gcc.ParmDecl('o') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('o')") DEBUG: - str(): region for gcc.ParmDecl('o') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GenericGetAttr/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('o')")) DEBUG: - region for gcc.ParmDecl('name') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('name')") DEBUG: - str(): region for gcc.ParmDecl('name') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GenericGetAttr/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('name')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_GenericGetAttr/basic/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyObject_GenericGetAttr() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GenericGetAttr/basic/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_GenericGetAttr/basic/input.c:29 DEBUG: - region for gcc.ParmDecl('o') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('o')") DEBUG: - str(): region for gcc.ParmDecl('o') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GenericGetAttr/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('o')")) DEBUG: - region for gcc.ParmDecl('name') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('name')") DEBUG: - str(): region for gcc.ParmDecl('name') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GenericGetAttr/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('name')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyObject_GenericGetAttr/basic/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/absinterp/write-through-global-ptr-checked/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/write-through-global-ptr-checked/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyObject_GenericGetAttr/basic/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyObject_GenericGetAttr/basic/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: ive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/PyArg_ParseTuple/incorrect_converters: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/PyArg_ParseTuple/incorrect_converters/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/PyArg_ParseTuple/incorrect_converters/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/PyArg_ParseTuple/incorrect_converters/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyArg_ParseTuple/correct_converter: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyArg_ParseTuple/correct_converter/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyArg_ParseTuple/correct_converter/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyArg_ParseTuple/correct_converter/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyArg_ParseTuple/correct_converter/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyArg_ParseTuple/correct_converter/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyArg_ParseTuple/correct_simple: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyArg_ParseTuple/correct_simple/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyArg_ParseTuple/correct_simple/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyArg_ParseTuple/correct_simple/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyArg_ParseTuple/correct_simple/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyArg_ParseTuple/correct_simple/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyArg_ParseTupleAndKeywords/correct_O: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyArg_ParseTupleAndKeywords/correct_O/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyArg_ParseTupleAndKeywords/correct_O/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyArg_ParseTupleAndKeywords/correct_O/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyArg_ParseTupleAndKeywords/correct_O/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyArg_ParseTupleAndKeywords/correct_O/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyArg_UnpackTuple/correct: FAIL DEBUG: returncode: 1 DEBUG: co--- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,253 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyArg_UnpackTuple() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=34), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:34 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')): DEBUG: - repr(): RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) DEBUG: - str(): RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_TypeError')) from tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:33 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyArg_UnpackTuple() successfully unpacks 1 argument(s)' DEBUG: - 'taking False path' DEBUG: - 'when PyTuple_Pack() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=37), region=RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=37))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=37)) from tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:37 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=37), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')): DEBUG: - repr(): RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) DEBUG: - str(): RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - argument 1 allocated at tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:33: DEBUG: - repr(): RegionOnHeap('argument 1', gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=33)) DEBUG: - str(): argument 1 allocated at tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=33), region=Region('PyTypeObject for argument 1')) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:28 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyArg_UnpackTuple() successfully unpacks 1 argument(s)' DEBUG: - 'taking False path' DEBUG: - 'when PyTuple_Pack() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=37), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:37 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')): DEBUG: - repr(): RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) DEBUG: - str(): RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - argument 1 allocated at tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:33: DEBUG: - repr(): RegionOnHeap('argument 1', gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=33)) DEBUG: - str(): argument 1 allocated at tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=33), region=Region('PyTypeObject for argument 1')) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:37 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyArg_UnpackTuple() successfully unpacks 2 argument(s)' DEBUG: - 'taking False path' DEBUG: - 'when PyTuple_Pack() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=37), region=RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=37))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=37)) from tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:37 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=37), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')): DEBUG: - repr(): RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) DEBUG: - str(): RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - argument 1 allocated at tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:33: DEBUG: - repr(): RegionOnHeap('argument 1', gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=33)) DEBUG: - str(): argument 1 allocated at tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=33), region=Region('PyTypeObject for argument 1')) DEBUG: - argument 2 allocated at tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:33: DEBUG: - repr(): RegionOnHeap('argument 2', gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=33)) DEBUG: - str(): argument 2 allocated at tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=33), region=Region('PyTypeObject for argument 2')) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:28 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when PyArg_UnpackTuple() successfully unpacks 2 argument(s)' DEBUG: - 'taking False path' DEBUG: - 'when PyTuple_Pack() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=37), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:37 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')): DEBUG: - repr(): RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) DEBUG: - str(): RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - argument 1 allocated at tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:33: DEBUG: - repr(): RegionOnHeap('argument 1', gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=33)) DEBUG: - str(): argument 1 allocated at tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=33), region=Region('PyTypeObject for argument 1')) DEBUG: - argument 2 allocated at tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:33: DEBUG: - repr(): RegionOnHeap('argument 2', gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=33)) DEBUG: - str(): argument 2 allocated at tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=33), region=Region('PyTypeObject for argument 2')) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:37 DEBUG: - DEBUG: -Trace 5: DEBUG: - Transitions: DEBUG: - 'when PyArg_UnpackTuple() successfully unpacks 3 argument(s)' DEBUG: - 'taking False path' DEBUG: - 'when PyTuple_Pack() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=37), region=RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=37))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=37)) from tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:37 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=37), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')): DEBUG: - repr(): RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) DEBUG: - str(): RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - argument 1 allocated at tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:33: DEBUG: - repr(): RegionOnHeap('argument 1', gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=33)) DEBUG: - str(): argument 1 allocated at tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=33), region=Region('PyTypeObject for argument 1')) DEBUG: - argument 2 allocated at tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:33: DEBUG: - repr(): RegionOnHeap('argument 2', gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=33)) DEBUG: - str(): argument 2 allocated at tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=33), region=Region('PyTypeObject for argument 2')) DEBUG: - argument 3 allocated at tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:33: DEBUG: - repr(): RegionOnHeap('argument 3', gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=33)) DEBUG: - str(): argument 3 allocated at tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=33), region=Region('PyTypeObject for argument 3')) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:28 DEBUG: - DEBUG: -Trace 6: DEBUG: - Transitions: DEBUG: - 'when PyArg_UnpackTuple() successfully unpacks 3 argument(s)' DEBUG: - 'taking False path' DEBUG: - 'when PyTuple_Pack() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=37), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:37 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')): DEBUG: - repr(): RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) DEBUG: - str(): RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - argument 1 allocated at tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:33: DEBUG: - repr(): RegionOnHeap('argument 1', gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=33)) DEBUG: - str(): argument 1 allocated at tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=33), region=Region('PyTypeObject for argument 1')) DEBUG: - argument 2 allocated at tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:33: DEBUG: - repr(): RegionOnHeap('argument 2', gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=33)) DEBUG: - str(): argument 2 allocated at tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=33), region=Region('PyTypeObject for argument 2')) DEBUG: - argument 3 allocated at tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:33: DEBUG: - repr(): RegionOnHeap('argument 3', gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=33)) DEBUG: - str(): argument 3 allocated at tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c', line=33), region=Region('PyTypeObject for argument 3')) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:37 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,10 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'calling PyErr_SetString()' DEBUG: - 'calling PyErr_PrintEx()' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_PrintEx/input.c', line=37), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyErr_PrintEx/input.c:37 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyErr_PrintEx/input.c:34 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,8 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyErr_PrintEx/input.c:37:nn: warning: returning (PyObject*)NULL without setting an exception DEBUG: -tests/cpychecker/refcounts/PyErr_PrintEx/input.c:30:nn: note: calling PyErr_SetString() at: PyErr_SetString(PyExc_RuntimeError, DEBUG: -tests/cpychecker/refcounts/PyErr_PrintEx/input.c:30:nn: note: thread-local exception state now has value: unknown struct PyObject * from /usr/include/python?.?/pyerrors.h:nn DEBUG: -tests/cpychecker/refcounts/PyErr_PrintEx/input.c:34:nn: note: calling PyErr_PrintEx() at: PyErr_PrintEx(1); DEBUG: -tests/cpychecker/refcounts/PyErr_PrintEx/input.c:34:nn: note: thread-local exception state now has value: (struct PyObject *)0 from tests/cpychecker/refcounts/PyErr_PrintEx/input.c:34 DEBUG: -tests/cpychecker/refcounts/PyErr_PrintEx/input.c:37:nn: note: returning at: return NULL; DEBUG: -tests/cpychecker/refcounts/PyErr_PrintEx/input.c:28:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyErr_PrintEx/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyErr_PrintEx/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyErr_PrintEx/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,77 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'returning -1 from PyList_Append() due to NULL item' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c', line=37), value=-1) DEBUG: - str(): (int)-1 from tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c:37 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c:32: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c', line=32)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c:32 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_SystemError')) from tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c:37 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'returning -1 from PyList_Append() due to NULL item' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c:32' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c', line=37), value=-1) DEBUG: - str(): (int)-1 from tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c:37 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c:32: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c', line=32)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c:32 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_SystemError')) from tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c:37 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyList_New() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c', line=34), value=42) DEBUG: - str(): (int)42 from tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c:34 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c:32 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/arithmetic/fix-trunc-expr: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/arithmetic/fix-trunc-expr/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/arithmetic/fix-trunc-expr/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/arithmetic/fix-trunc-expr/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/arithmetic/fix-trunc-expr/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/arithmetic/fix-trunc-expr/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyFloat_AsDouble/correct_PyFloatObject: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyFloat_AsDouble/correct_PyFloatObject/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyFloat_AsDouble/correct_PyFloatObject/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyFloat_AsDouble/correct_PyFloatObject/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyFloat_AsDouble/correct_PyFloatObject/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyFloat_AsDouble/correct_PyFloatObject/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyFloat_AsDouble/correct_cast: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyFloat_AsDouble/correct_cast/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyFloat_AsDouble/correct_cast/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyFloat_AsDouble/correct_cast/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyFloat_AsDouble/correct_cast/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyFloat_AsDouble/correct_cast/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyFloat_FromDouble/simple: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyFloat_FromDouble/simple/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyFloat_FromDouble/simple/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyFloat_FromDouble/simple/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyFloat_FromDouble/simple/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyFloat_FromDouble/simple/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyGILState_Ensure/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests--- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,7 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'PyGILState_Ensure' DEBUG: - 'calling PyGILState_Release()' DEBUG: - 'returning' DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyGILState_Ensure/correct/input.c:28 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyGILState_Ensure/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyGILState_Ensure/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: n=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/Py_BuildValue/code_f/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/Py_BuildValue/code_f/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/Py_BuildValue/code_f/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/Py_BuildValue/code_f/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyDict_GetItem/incorrect: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyDict_GetItem/incorrect/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyDict_GetItem/incorrect/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyDict_GetItem/incorrect/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyDict_GetItemString/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyDict_GetItemString/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyDict_GetItemString/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyDict_GetItemString/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyDict_GetItemString/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyDict_GetItemString/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyDict_GetItemString/incorrect: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyDict_GetItemString/incorrect/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyDict_New/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyDict_New/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyDict_New/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyDict_New/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyDict_New/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIB--- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,43 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_New/correct/input.c', line=30), region=RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_New/correct/input.c', line=30))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_New/correct/input.c', line=30)) from tests/cpychecker/refcounts/PyDict_New/correct/input.c:30 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_New/correct/input.c', line=30), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_New/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_New/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_New/correct/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_New/correct/input.c', line=32), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_New/correct/input.c:32 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_New/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_New/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_New/correct/input.c:30 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyDict_New/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyDict_New/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,39 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyModule_AddObject() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/refcounts/PyModule_AddObject/incorrect-with-cast/input.c', line=31), value=0) DEBUG: - str(): (int)0 from tests/cpychecker/refcounts/PyModule_AddObject/incorrect-with-cast/input.c:31 DEBUG: - region for gcc.ParmDecl('module') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('module')") DEBUG: - str(): region for gcc.ParmDecl('module') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyModule_AddObject/incorrect-with-cast/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('module')")) DEBUG: - RegionForGlobal(gcc.VarDecl('fooType')): DEBUG: - repr(): RegionForGlobal(gcc.VarDecl('fooType')) DEBUG: - str(): RegionForGlobal(gcc.VarDecl('fooType')) DEBUG: - r->ob_refcnt: refs: -1 owned, 2 borrowed DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyModule_AddObject/incorrect-with-cast/input.c:30 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyModule_AddObject() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/refcounts/PyModule_AddObject/incorrect-with-cast/input.c', line=31), value=-1) DEBUG: - str(): (int)-1 from tests/cpychecker/refcounts/PyModule_AddObject/incorrect-with-cast/input.c:31 DEBUG: - region for gcc.ParmDecl('module') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('module')") DEBUG: - str(): region for gcc.ParmDecl('module') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyModule_AddObject/incorrect-with-cast/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('module')")) DEBUG: - RegionForGlobal(gcc.VarDecl('fooType')): DEBUG: - repr(): RegionForGlobal(gcc.VarDecl('fooType')) DEBUG: - str(): RegionForGlobal(gcc.VarDecl('fooType')) DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyModule_AddObject/incorrect-with-cast/input.c:31 DEBUG: t.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/nested-fields3/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/nested-fields3/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/nested-fields3/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/nested-fields3/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyMapping_Size/basic: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyMapping_Size/basic/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyMapping_Size/basic/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyMapping_Size/basic/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyMapping_Size/basic/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyMapping_Size/basic/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyMem_Malloc/correct/alloc-and-free: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyMem_Malloc/correct/alloc-and-free/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyMem_Malloc/correct/alloc-and-free/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyMem_Malloc/correct/alloc-and-free/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyMem_Malloc/correct/alloc-and-free/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyMem_Malloc/correct/alloc-and-free/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyMem_Malloc/correct/free-NULL: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyMem_Malloc/correct/free-NULL/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyMem_Malloc/correct/free-NULL/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyMem_Malloc/correct/free-NULL/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyMem_Malloc/correct/free-NULL/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyMem_Malloc/correct/free-NULL/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyModule_AddObject/incorrect-with-cast: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyModule_AddObject/incorrect-with-cast/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyModule_AddObject/incorrect-with-cast/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyModule_AddObject/incorrect-with-cast/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyM--- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,7 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyModule_AddObject/incorrect-with-cast/input.c:31:nn: warning: future use-after-free: ob_refcnt of fooType is 1 too low DEBUG: -tests/cpychecker/refcounts/PyModule_AddObject/incorrect-with-cast/input.c:31:nn: note: was expecting final owned ob_refcnt of fooType to be 0 since nothing references it but final ob_refcnt is refs: -1 owned, 2 borrowed DEBUG: -tests/cpychecker/refcounts/PyModule_AddObject/incorrect-with-cast/input.c:31:nn: note: when PyModule_AddObject() succeeds at: return PyModule_AddObject(module, DEBUG: -tests/cpychecker/refcounts/PyModule_AddObject/incorrect-with-cast/input.c:31:nn: note: ob_refcnt is now refs: -1 owned, 2 borrowed DEBUG: -tests/cpychecker/refcounts/PyModule_AddObject/incorrect-with-cast/input.c:31:nn: note: returning at: return PyModule_AddObject(module, DEBUG: -tests/cpychecker/refcounts/PyModule_AddObject/incorrect-with-cast/input.c:30:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyModule_AddObject/incorrect-with-cast/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyModule_AddObject/incorrect-with-cast/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyModule_AddObject/incorrect-with-cast/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: oducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/arrays3: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/arrays3/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/arrays3/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/arrays3/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/arrays3/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/arrays3/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyObject_CallObject/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyObject_CallObject/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyObject_CallObject/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyObject_CallObject/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyObject_CallObject/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyObject_CallObject/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyObject_GenericGetAttr/basic: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyObject_GenericGetAttr/basic/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyObject_GenericGetAttr/basic/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyObject_GenericGetAttr/basic/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyObject_GenericGetAttr/basic/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyObject_GenericGetAttr/basic/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyObject_GenericSetAttr/basic: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyObject_GenericSetAttr/basic/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/re--- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,49 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyObject_GenericSetAttr() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GenericSetAttr/basic/input.c', line=29), value=0) DEBUG: - str(): (int)0 from tests/cpychecker/refcounts/PyObject_GenericSetAttr/basic/input.c:29 DEBUG: - region for gcc.ParmDecl('o') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('o')") DEBUG: - str(): region for gcc.ParmDecl('o') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GenericSetAttr/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('o')")) DEBUG: - region for gcc.ParmDecl('name') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('name')") DEBUG: - str(): region for gcc.ParmDecl('name') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GenericSetAttr/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('name')")) DEBUG: - region for gcc.ParmDecl('value') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('value')") DEBUG: - str(): region for gcc.ParmDecl('value') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GenericSetAttr/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('value')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_GenericSetAttr/basic/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyObject_GenericSetAttr() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GenericSetAttr/basic/input.c', line=29), value=-1) DEBUG: - str(): (int)-1 from tests/cpychecker/refcounts/PyObject_GenericSetAttr/basic/input.c:29 DEBUG: - region for gcc.ParmDecl('o') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('o')") DEBUG: - str(): region for gcc.ParmDecl('o') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GenericSetAttr/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('o')")) DEBUG: - region for gcc.ParmDecl('name') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('name')") DEBUG: - str(): region for gcc.ParmDecl('name') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GenericSetAttr/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('name')")) DEBUG: - region for gcc.ParmDecl('value') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('value')") DEBUG: - str(): region for gcc.ParmDecl('value') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GenericSetAttr/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('value')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_AttributeError')) from tests/cpychecker/refcounts/PyObject_GenericSetAttr/basic/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyObject_GenericSetAttr/basic/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyObject_GenericSetAttr/basic/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,19 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'calling PyErr_SetFromErrno()' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_SetFromErrno/correct/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyErr_SetFromErrno/correct/input.c:29 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_SetFromErrno/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_SetFromErrno/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - unknown struct PyObject * from /usr/include/python?.?/pyerrors.h:nn DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyErr_SetFromErrno/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyErr_SetFromErrno/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,14 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct coord * from tests/cpychecker/absinterp/write-through-global-ptr-unchecked/input.c:31 as non-NULL' DEBUG: - 'returning' DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/write-through-global-ptr-unchecked/input.c:34 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct coord * from tests/cpychecker/absinterp/write-through-global-ptr-unchecked/input.c:31 as NULL' DEBUG: - error: NullPtrDereference() DEBUG: - error: possibly dereferencing NULL (coord_ptr.0->x) at tests/cpychecker/absinterp/write-through-global-ptr-unchecked/input.c:36 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/absinterp/write-through-global-ptr-unchecked/input.c:34 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,4 +1,4 @@ DEBUG: -In function 'test_write_through_global_without_check': DEBUG: -tests/cpychecker/absinterp/write-through-global-ptr-unchecked/input.c:35:nn: warning: possibly dereferencing NULL (coord_ptr.0->x) at tests/cpychecker/absinterp/write-through-global-ptr-unchecked/input.c:36 DEBUG: -tests/cpychecker/absinterp/write-through-global-ptr-unchecked/input.c:35:nn: note: when treating unknown struct coord * from tests/cpychecker/absinterp/write-through-global-ptr-unchecked/input.c:31 as NULL at: coord_ptr->x = x; DEBUG: -tests/cpychecker/absinterp/write-through-global-ptr-unchecked/input.c:34:nn: note: graphical error report for function 'test_write_through_global_without_check' written out to 'tests/cpychecker/absinterp/write-through-global-ptr-unchecked/input.c.test_write_through_global_without_check-refcount-errors.html' DEBUG: +tests/cpychecker/absinterp/write-through-global-ptr-unchecked/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/absinterp/write-through-global-ptr-unchecked/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,46 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown void * from tests/cpychecker/refcounts/PyList_Append/ticket-19/input.c:30 as non-NULL' DEBUG: - 'when treating ob_size as 0' DEBUG: - 'when PyList_Append() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/ticket-19/input.c', line=33), value=0) DEBUG: - str(): (int)0 from tests/cpychecker/refcounts/PyList_Append/ticket-19/input.c:33 DEBUG: - region for gcc.ParmDecl('item') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('item')") DEBUG: - str(): region for gcc.ParmDecl('item') on stack DEBUG: - r->ob_refcnt: refs: 1 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/ticket-19/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('item')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/ticket-19/input.c:31 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown void * from tests/cpychecker/refcounts/PyList_Append/ticket-19/input.c:30 as non-NULL' DEBUG: - 'when treating ob_size as 0' DEBUG: - 'when PyList_Append() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/ticket-19/input.c', line=33), value=-1) DEBUG: - str(): (int)-1 from tests/cpychecker/refcounts/PyList_Append/ticket-19/input.c:33 DEBUG: - region for gcc.ParmDecl('item') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('item')") DEBUG: - str(): region for gcc.ParmDecl('item') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/ticket-19/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('item')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_Append/ticket-19/input.c:33 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when treating unknown void * from tests/cpychecker/refcounts/PyList_Append/ticket-19/input.c:30 as NULL' DEBUG: - error: NullPtrArgument() DEBUG: - error: possibly calling PyList_Append with NULL as argument 1 (list) at tests/cpychecker/refcounts/PyList_Append/ticket-19/input.c:33 DEBUG: - region for gcc.ParmDecl('item') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('item')") DEBUG: - str(): region for gcc.ParmDecl('item') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/ticket-19/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('item')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/ticket-19/input.c:31 DEBUG: /build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/two-loops/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/two-loops/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/two-loops/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/two-loops/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyList_Append/incorrect: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyList_Append/incorrect/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyList_Append/incorrect/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyList_Append/incorrect/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyList_Append/incorrect/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyList_Append/incorrect-loop: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyList_Append/incorrect-loop/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyList_Append/incorrect-loop/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyList_Append/incorrect-loop/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyList_Append/null-newitem: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyList_Append/null-newitem/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyList_Append/null-newitem/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyList_Append/null-newitem/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyList_Append/ticket-19: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyList_Append/ticket-19/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyList_Append/ticket-19/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyList_Append/ticket-19/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyList_Append/ticket-19/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcount--- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyList_Append/ticket-19/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyList_Append/ticket-19/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,23 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyInt_FromLong() succeeds' DEBUG: - 'PyInt_AsLong() returns ob_ival' DEBUG: - '__dump((long int)42 from tests/cpychecker/refcounts/PyInt_AsLong/correct_PyIntObject/input.c:35)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyInt_AsLong/correct_PyIntObject/input.c', line=35), region=RegionOnHeap('PyIntObject', gcc.Location(file='tests/cpychecker/refcounts/PyInt_AsLong/correct_PyIntObject/input.c', line=35))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyIntObject', gcc.Location(file='tests/cpychecker/refcounts/PyInt_AsLong/correct_PyIntObject/input.c', line=35)) from tests/cpychecker/refcounts/PyInt_AsLong/correct_PyIntObject/input.c:35 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyInt_AsLong/correct_PyIntObject/input.c', line=35), region=RegionForGlobal(gcc.VarDecl('PyInt_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyInt_AsLong/correct_PyIntObject/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyInt_AsLong/correct_PyIntObject/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyInt_AsLong/correct_PyIntObject/input.c:30 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyInt_AsLong/correct_PyIntObject/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyInt_AsLong/correct_PyIntObject/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,21 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - error: WrongNumberOfVarargs() DEBUG: - error: expected 3 vararg pointer(s); got 2 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/wrong-number-of-varargs/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_UnpackTuple/wrong-number-of-varargs/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')): DEBUG: - repr(): RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) DEBUG: - str(): RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyArg_UnpackTuple/wrong-number-of-varargs/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,3 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyArg_UnpackTuple/wrong-number-of-varargs/input.c:37:nn: warning: expected 3 vararg pointer(s); got 2 DEBUG: -tests/cpychecker/refcounts/PyArg_UnpackTuple/wrong-number-of-varargs/input.c:29:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyArg_UnpackTuple/wrong-number-of-varargs/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyArg_UnpackTuple/wrong-number-of-varargs/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyArg_UnpackTuple/wrong-number-of-varargs/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,31 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyObject_CallFunction() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallFunction/correct/input.c', line=29), region=RegionOnHeap('new ref from call to PyObject_CallFunction', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallFunction/correct/input.c', line=29))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new ref from call to PyObject_CallFunction', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallFunction/correct/input.c', line=29)) from tests/cpychecker/refcounts/PyObject_CallFunction/correct/input.c:29 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallFunction/correct/input.c', line=29), region=Region('PyTypeObject for new ref from call to PyObject_CallFunction')) DEBUG: - region for gcc.ParmDecl('callable') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('callable')") DEBUG: - str(): region for gcc.ParmDecl('callable') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallFunction/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('callable')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_CallFunction/correct/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyObject_CallFunction() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallFunction/correct/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_CallFunction/correct/input.c:29 DEBUG: - region for gcc.ParmDecl('callable') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('callable')") DEBUG: - str(): region for gcc.ParmDecl('callable') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallFunction/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('callable')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyObject_CallFunction/correct/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyObject_CallFunction/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyObject_CallFunction/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,41 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyObject_GetAttr() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetAttr/correct/input.c', line=29), region=RegionOnHeap('new ref from call to PyObject_GetAttr', gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetAttr/correct/input.c', line=29))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new ref from call to PyObject_GetAttr', gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetAttr/correct/input.c', line=29)) from tests/cpychecker/refcounts/PyObject_GetAttr/correct/input.c:29 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetAttr/correct/input.c', line=29), region=Region('PyTypeObject for new ref from call to PyObject_GetAttr')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetAttr/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('attrname') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('attrname')") DEBUG: - str(): region for gcc.ParmDecl('attrname') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetAttr/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('attrname')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_GetAttr/correct/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyObject_GetAttr() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetAttr/correct/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_GetAttr/correct/input.c:29 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetAttr/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('attrname') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('attrname')") DEBUG: - str(): region for gcc.ParmDecl('attrname') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetAttr/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('attrname')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyObject_GetAttr/correct/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyObject_GetAttr/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyObject_GetAttr/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/fileptr-missing-error-check/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/fileptr-missing-error-check/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: ion/basic/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyErr_NewException/basic/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyErr_NewException/basic/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyErr_NewException/basic/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyErr_NewException/basic/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyErr_NoMemory/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyErr_NoMemory/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyErr_NoMemory/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyErr_NoMemory/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyErr_NoMemory/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyErr_NoMemory/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyErr_PrintEx: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyErr_PrintEx/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyErr_PrintEx/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyErr_PrintEx/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyErr_PrintEx/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyErr_PrintEx/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyErr_SetFromErrno/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyErr_SetFromErrno/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyErr_SetFromErrno/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyErr_SetFromErrno/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyErr_SetFromErrno/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyErr_SetFromErrno/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyErr_SetNone/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyErr_SetNone/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyErr_SetNone/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyErr_SetNone/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyErr_SetNone/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyErr_S--- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,19 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'calling PyErr_SetNone()' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_SetNone/correct/input.c', line=30), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyErr_SetNone/correct/input.c:30 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_SetNone/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_SetNone/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - unknown struct PyObject * from /usr/include/python?.?/pyerrors.h:nn DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyErr_SetNone/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyErr_SetNone/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,731 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItem() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33), region=RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33)) from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=38)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=38), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=43)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=43), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItem() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33), region=RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33)) from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=38)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=43)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=43), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:28 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItem() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=65), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:65 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=38)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=38), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=43)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=43), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:48 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItem() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=65), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:65 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=38)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=38), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=43)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:48 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItem() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=65), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:65 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=38)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=43)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=43), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:48 DEBUG: - DEBUG: -Trace 5: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItem() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=65), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:65 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=38)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=43)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:48 DEBUG: - DEBUG: -Trace 6: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItem() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=65), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:65 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=38)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=38), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=43)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=43), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:48 DEBUG: - DEBUG: -Trace 7: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItem() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=65), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:65 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=38)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=38), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=43)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:48 DEBUG: - DEBUG: -Trace 8: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItem() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=65), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:65 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=38)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=43)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=43), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:48 DEBUG: - DEBUG: -Trace 9: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItem() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=65), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:65 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=38)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=43)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:48 DEBUG: - DEBUG: -Trace 10: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=65), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:65 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=38)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=38), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43 DEBUG: - DEBUG: -Trace 11: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=65), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:65 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=38)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43 DEBUG: - DEBUG: -Trace 12: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=65), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:65 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=38)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=38), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43 DEBUG: - DEBUG: -Trace 13: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=65), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:65 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=38)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:43 DEBUG: - DEBUG: -Trace 14: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking True path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=65), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:65 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38 DEBUG: - DEBUG: -Trace 15: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33' DEBUG: - 'taking True path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=65), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:65 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=33)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:38 DEBUG: - DEBUG: -Trace 16: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() fails' DEBUG: - 'taking True path' DEBUG: - 'taking True path' DEBUG: - 'taking True path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=65), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:65 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:33 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,21 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'PyBool_FromLong() returns' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyBool_FromLong/correct/input.c', line=30), region=RegionOnHeap('PyBool_FromLong', gcc.Location(file='tests/cpychecker/refcounts/PyBool_FromLong/correct/input.c', line=30))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyBool_FromLong', gcc.Location(file='tests/cpychecker/refcounts/PyBool_FromLong/correct/input.c', line=30)) from tests/cpychecker/refcounts/PyBool_FromLong/correct/input.c:30 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyBool_FromLong/correct/input.c', line=30), region=Region('PyTypeObject for PyBool_FromLong')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyBool_FromLong/correct/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyBool_FromLong/correct/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyBool_FromLong/correct/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyBool_FromLong/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyBool_FromLong/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,138 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:29 as non-NULL' DEBUG: - 'when PyList_Append() succeeds' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c', line=37), region=RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c', line=37))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c', line=37)) from tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:37 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c', line=37), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c', line=32), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:33 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:29 as non-NULL' DEBUG: - 'when PyList_Append() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c', line=44), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:44 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c', line=32), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:37: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c', line=37)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:37 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c', line=37), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:42 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:29 as non-NULL' DEBUG: - 'when PyList_Append() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:37' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c', line=44), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:44 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c', line=32), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:37: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c', line=37)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:37 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:42 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:29 as NULL' DEBUG: - 'returning -1 from PyList_Append() due to NULL item' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c', line=44), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:44 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c', line=32), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:37: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c', line=37)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:37 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c', line=37), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_SystemError')) from tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:42 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:29 as NULL' DEBUG: - 'returning -1 from PyList_Append() due to NULL item' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:37' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c', line=44), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:44 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c', line=32), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:37: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c', line=37)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:37 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_SystemError')) from tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:42 DEBUG: - DEBUG: -Trace 5: DEBUG: - Transitions: DEBUG: - 'when PyList_New() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c', line=39), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:39 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c', line=32), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:37 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,99 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyInt_AsLong() succeeds' DEBUG: - 'when considering range: -0x8000000000000000 <= value <= -2' DEBUG: - 'taking False path' DEBUG: - '__dump((long int)val [-0x8000000000000000 <= val <= -2] from tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c:34)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c', line=49), region=RegionForGlobal(gcc.VarDecl('_Py_NoneStruct'))) DEBUG: - str(): (struct PyObject *)&RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) from tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c:49 DEBUG: - r->ob_refcnt: refs: 1 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c:31 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyInt_AsLong() succeeds' DEBUG: - 'when considering value == (long int)-1 from tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c:34' DEBUG: - 'taking True path' DEBUG: - 'PyErr_Occurred()' DEBUG: - 'taking False path' DEBUG: - '__dump((long int)-1 from tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c:34)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c', line=49), region=RegionForGlobal(gcc.VarDecl('_Py_NoneStruct'))) DEBUG: - str(): (struct PyObject *)&RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) from tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c:49 DEBUG: - r->ob_refcnt: refs: 1 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c:31 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyInt_AsLong() succeeds' DEBUG: - 'when considering range: 0 <= value <= 0x7fffffffffffffff' DEBUG: - 'taking False path' DEBUG: - '__dump((long int)val [0 <= val <= 0x7fffffffffffffff] from tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c:34)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c', line=49), region=RegionForGlobal(gcc.VarDecl('_Py_NoneStruct'))) DEBUG: - str(): (struct PyObject *)&RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) from tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c:49 DEBUG: - r->ob_refcnt: refs: 1 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c:31 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyInt_AsLong() fails' DEBUG: - 'taking True path' DEBUG: - 'PyErr_Occurred()' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c', line=38), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c:38 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c:34 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,51 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyObject_CallFunctionObjArgs() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/correct/input.c', line=34), region=RegionOnHeap('new ref from call to PyObject_CallFunctionObjArgs', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/correct/input.c', line=34))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new ref from call to PyObject_CallFunctionObjArgs', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/correct/input.c', line=34)) from tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/correct/input.c:34 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/correct/input.c', line=34), region=Region('PyTypeObject for new ref from call to PyObject_CallFunctionObjArgs')) DEBUG: - region for gcc.ParmDecl('callable') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('callable')") DEBUG: - str(): region for gcc.ParmDecl('callable') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/correct/input.c', line=32), region=Region("region-for-type-of-arg-gcc.ParmDecl('callable')")) DEBUG: - region for gcc.ParmDecl('a') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('a')") DEBUG: - str(): region for gcc.ParmDecl('a') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/correct/input.c', line=32), region=Region("region-for-type-of-arg-gcc.ParmDecl('a')")) DEBUG: - region for gcc.ParmDecl('b') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('b')") DEBUG: - str(): region for gcc.ParmDecl('b') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/correct/input.c', line=32), region=Region("region-for-type-of-arg-gcc.ParmDecl('b')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/correct/input.c:33 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyObject_CallFunctionObjArgs() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/correct/input.c', line=34), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/correct/input.c:34 DEBUG: - region for gcc.ParmDecl('callable') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('callable')") DEBUG: - str(): region for gcc.ParmDecl('callable') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/correct/input.c', line=32), region=Region("region-for-type-of-arg-gcc.ParmDecl('callable')")) DEBUG: - region for gcc.ParmDecl('a') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('a')") DEBUG: - str(): region for gcc.ParmDecl('a') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/correct/input.c', line=32), region=Region("region-for-type-of-arg-gcc.ParmDecl('a')")) DEBUG: - region for gcc.ParmDecl('b') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('b')") DEBUG: - str(): region for gcc.ParmDecl('b') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/correct/input.c', line=32), region=Region("region-for-type-of-arg-gcc.ParmDecl('b')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/correct/input.c:34 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,37 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyString_AsString() succeeds' DEBUG: - 'releasing the GIL by calling PyEval_SaveThread()' DEBUG: - 'reacquiring the GIL by calling PyEval_RestoreThread()' DEBUG: - 'returning' DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/GIL/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/GIL/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/GIL/correct/input.c:30 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyString_AsString() fails' DEBUG: - 'releasing the GIL by calling PyEval_SaveThread()' DEBUG: - 'reacquiring the GIL by calling PyEval_RestoreThread()' DEBUG: - 'returning' DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/GIL/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/GIL/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/GIL/correct/input.c:31 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/GIL/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/GIL/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,16 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - error: NullPtrArgument() DEBUG: - error: calling PyObject_GetAttr with NULL as argument 2 (0B) at tests/cpychecker/refcounts/PyObject_GetAttr/incorrect/input.c:29 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetAttr/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetAttr/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_GetAttr/incorrect/input.c:28 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,4 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyObject_GetAttr/incorrect/input.c:29:nn: warning: calling PyObject_GetAttr with NULL as argument 2 (0B) at tests/cpychecker/refcounts/PyObject_GetAttr/incorrect/input.c:29 DEBUG: -tests/cpychecker/refcounts/PyObject_GetAttr/incorrect/input.c:29:nn: note: PyObject_GetAttr() invokes Py_TYPE() on the pointer via the PyString_Check() macro, thus accessing (NULL)->ob_type DEBUG: -tests/cpychecker/refcounts/PyObject_GetAttr/incorrect/input.c:28:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyObject_GetAttr/incorrect/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyObject_GetAttr/incorrect/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyObject_GetAttr/incorrect/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,19 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'calling PyErr_SetObject()' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_SetObject/correct/input.c', line=31), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyErr_SetObject/correct/input.c:31 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 2 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_SetObject/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_SetObject/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - unknown struct PyObject * from /usr/include/python?.?/pyerrors.h:nn DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyErr_SetObject/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyErr_SetObject/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,40 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyList_GetItem/correct/input.c:26 as non-NULL' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_GetItem/correct/input.c', line=32), region=RegionOnHeap('borrowed reference returned by PyList_GetItem()', gcc.Location(file='tests/cpychecker/refcounts/PyList_GetItem/correct/input.c', line=32))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('borrowed reference returned by PyList_GetItem()', gcc.Location(file='tests/cpychecker/refcounts/PyList_GetItem/correct/input.c', line=32)) from tests/cpychecker/refcounts/PyList_GetItem/correct/input.c:32 DEBUG: - r->ob_refcnt: refs: 1 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_GetItem/correct/input.c', line=32), region=Region('PyTypeObject for borrowed reference returned by PyList_GetItem()')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_GetItem/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_GetItem/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_GetItem/correct/input.c:30 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyList_GetItem/correct/input.c:26 as NULL' DEBUG: - error: NullPtrArgument() DEBUG: - error: possibly calling PyList_GetItem with NULL as argument 1 (some_list.0) at tests/cpychecker/refcounts/PyList_GetItem/correct/input.c:32 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_GetItem/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_GetItem/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_GetItem/correct/input.c:30 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyList_GetItem/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyList_GetItem/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,41 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyInt_FromLong() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyInt_FromLong/correct_large_int/input.c', line=34), region=RegionOnHeap('PyIntObject', gcc.Location(file='tests/cpychecker/refcounts/PyInt_FromLong/correct_large_int/input.c', line=34))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyIntObject', gcc.Location(file='tests/cpychecker/refcounts/PyInt_FromLong/correct_large_int/input.c', line=34)) from tests/cpychecker/refcounts/PyInt_FromLong/correct_large_int/input.c:34 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyInt_FromLong/correct_large_int/input.c', line=34), region=RegionForGlobal(gcc.VarDecl('PyInt_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyInt_FromLong/correct_large_int/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyInt_FromLong/correct_large_int/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyInt_FromLong/correct_large_int/input.c:29 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyInt_FromLong() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyInt_FromLong/correct_large_int/input.c', line=34), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyInt_FromLong/correct_large_int/input.c:34 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyInt_FromLong/correct_large_int/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyInt_FromLong/correct_large_int/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyInt_FromLong/correct_large_int/input.c:34 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyInt_FromLong/correct_large_int/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyInt_FromLong/correct_large_int/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,89 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyCObject_FromVoidPtr() succeeds' DEBUG: - 'when PyTuple_Pack() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c', line=44), region=RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c', line=44))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c', line=44)) from tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:44 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c', line=36), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c', line=36), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyCObject allocated at tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:38: DEBUG: - repr(): RegionOnHeap('PyCObject', gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c', line=38)) DEBUG: - str(): PyCObject allocated at tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:38 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c', line=38), region=RegionForGlobal(gcc.VarDecl('PyCObject_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:37 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyCObject_FromVoidPtr() succeeds' DEBUG: - 'when PyTuple_Pack() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c', line=44), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:44 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c', line=36), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c', line=36), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyCObject allocated at tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:38: DEBUG: - repr(): RegionOnHeap('PyCObject', gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c', line=38)) DEBUG: - str(): PyCObject allocated at tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:38 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c', line=38), region=RegionForGlobal(gcc.VarDecl('PyCObject_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:44 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyCObject_FromVoidPtr() fails (when py3k deprecation warnings are enabled and configured to raise exceptions)' DEBUG: - error: NullPtrArgument() DEBUG: - error: calling PyTuple_Pack with NULL as argument 3 (obj) at tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:44 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c', line=36), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c', line=36), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:38 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyCObject_FromVoidPtr() fails' DEBUG: - error: NullPtrArgument() DEBUG: - error: calling PyTuple_Pack with NULL as argument 3 (obj) at tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:44 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c', line=36), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c', line=36), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:38 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,14 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:44:nn: warning: memory leak: ob_refcnt of '*obj' is 1 too high DEBUG: -tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:38:nn: note: '*obj' was allocated at: PyObject *obj = PyCObject_FromVoidPtr(&some_foo, NULL); DEBUG: -tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:44:nn: note: was expecting final owned ob_refcnt of '*obj' to be 0 since nothing references it but final ob_refcnt is refs: 1 owned DEBUG: -tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:38:nn: note: when PyCObject_FromVoidPtr() succeeds at: PyObject *obj = PyCObject_FromVoidPtr(&some_foo, NULL); DEBUG: -tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:38:nn: note: ob_refcnt is now refs: 1 owned DEBUG: -tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:44:nn: note: when PyTuple_Pack() succeeds at: return PyTuple_Pack(2, self, obj); DEBUG: -tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:44:nn: note: returning at: return PyTuple_Pack(2, self, obj); DEBUG: -tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:44:nn: note: found 1 similar trace(s) to this DEBUG: -tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:44:nn: warning: calling PyTuple_Pack with NULL as argument 3 (obj) at tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:44 DEBUG: -tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:38:nn: note: when PyCObject_FromVoidPtr() fails (when py3k deprecation warnings are enabled and configured to raise exceptions) at: PyObject *obj = PyCObject_FromVoidPtr(&some_foo, NULL); DEBUG: -tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:44:nn: note: PyTuple_Pack() invokes Py_INCREF() on the pointer, thus accessing (NULL)->ob_refcnt DEBUG: -tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:44:nn: note: found 1 similar trace(s) to this DEBUG: -tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:37:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,41 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyObject_CallFunctionObjArgs() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect/input.c', line=33), region=RegionOnHeap('new ref from call to PyObject_CallFunctionObjArgs', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect/input.c', line=33))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new ref from call to PyObject_CallFunctionObjArgs', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect/input.c', line=33)) from tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect/input.c:33 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect/input.c', line=33), region=Region('PyTypeObject for new ref from call to PyObject_CallFunctionObjArgs')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect/input.c:29 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyObject_CallFunctionObjArgs() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect/input.c', line=33), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect/input.c:33 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect/input.c:33 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,8 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect/input.c:33:nn: warning: argument 2 had type char[12] * but was expecting a PyObject* (or subclass) DEBUG: -tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect/input.c:33:nn: warning: argument 3 had type char[13] * but was expecting a PyObject* (or subclass) DEBUG: -tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect/input.c:33:nn: warning: argument 4 had type char[4] * but was expecting a PyObject* (or subclass) DEBUG: -tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect/input.c:33:nn: warning: argument 5 had type char[3] * but was expecting a PyObject* (or subclass) DEBUG: -tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect/input.c:33:nn: warning: argument 6 had type char[3] * but was expecting a PyObject* (or subclass) DEBUG: -tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect/input.c:33:nn: warning: argument 7 had type char[4] * but was expecting a PyObject* (or subclass) DEBUG: -tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect/input.c:33:nn: warning: arguments to PyObject_CallFunctionObjArgs were not NULL-terminated DEBUG: +tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,43 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyArg_Parse() succeeds' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_Parse/correct_simple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('_Py_NoneStruct'))) DEBUG: - str(): (struct PyObject *)&RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) from tests/cpychecker/refcounts/PyArg_Parse/correct_simple/input.c:44 DEBUG: - r->ob_refcnt: refs: 1 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_Parse/correct_simple/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_Parse/correct_simple/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyArg_Parse/correct_simple/input.c:31 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyArg_Parse() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_Parse/correct_simple/input.c', line=39), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyArg_Parse/correct_simple/input.c:39 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_Parse/correct_simple/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_Parse/correct_simple/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_TypeError')) from tests/cpychecker/refcounts/PyArg_Parse/correct_simple/input.c:37 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyArg_Parse/correct_simple/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyArg_Parse/correct_simple/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,41 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyObject_GetAttrString() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetAttrString/correct/input.c', line=29), region=RegionOnHeap('new ref from call to PyObject_GetAttrString', gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetAttrString/correct/input.c', line=29))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new ref from call to PyObject_GetAttrString', gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetAttrString/correct/input.c', line=29)) from tests/cpychecker/refcounts/PyObject_GetAttrString/correct/input.c:29 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetAttrString/correct/input.c', line=29), region=Region('PyTypeObject for new ref from call to PyObject_GetAttrString')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetAttrString/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetAttrString/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_GetAttrString/correct/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyObject_GetAttrString() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetAttrString/correct/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_GetAttrString/correct/input.c:29 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetAttrString/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetAttrString/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyObject_GetAttrString/correct/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyObject_GetAttrString/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyObject_GetAttrString/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,19 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'calling PyErr_SetString()' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_SetString/correct/input.c', line=31), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyErr_SetString/correct/input.c:31 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_SetString/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_SetString/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - unknown struct PyObject * from /usr/include/python?.?/pyerrors.h:nn DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyErr_SetString/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyErr_SetString/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,570 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when PyDict_SetItem() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=33), region=RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=33))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=33)) from tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=38)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=38), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when PyDict_SetItem() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=33), region=RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=33))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=33)) from tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=38)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:28 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when PyDict_SetItem() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=63), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:63 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=33)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=38)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=38), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:45 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when PyDict_SetItem() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=63), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:63 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=33)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=38)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=38), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:45 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when PyDict_SetItem() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=63), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:63 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=33)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=38)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:45 DEBUG: - DEBUG: -Trace 5: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when PyDict_SetItem() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=63), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:63 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=33)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=38)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:45 DEBUG: - DEBUG: -Trace 6: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when PyDict_SetItem() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=63), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:63 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=33)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=38)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=38), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:45 DEBUG: - DEBUG: -Trace 7: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when PyDict_SetItem() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=63), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:63 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=33)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=38)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=38), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:45 DEBUG: - DEBUG: -Trace 8: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when PyDict_SetItem() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=63), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:63 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=33)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=38)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:45 DEBUG: - DEBUG: -Trace 9: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when PyDict_SetItem() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=63), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:63 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=33)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=38)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:45 DEBUG: - DEBUG: -Trace 10: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - error: NullPtrArgument() DEBUG: - error: calling PyDict_SetItem with NULL as argument 3 (value) at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:45 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=33)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=38)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=38), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39 DEBUG: - DEBUG: -Trace 11: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - error: NullPtrArgument() DEBUG: - error: calling PyDict_SetItem with NULL as argument 2 (key) at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:45 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=33)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38 DEBUG: - DEBUG: -Trace 12: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - error: NullPtrArgument() DEBUG: - error: calling PyDict_SetItem with NULL as argument 2 (key) at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:45 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=33)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39 DEBUG: - DEBUG: -Trace 13: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() fails' DEBUG: - 'taking True path' DEBUG: - 'taking True path' DEBUG: - 'taking True path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=63), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:63 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,17 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:45:nn: warning: calling PyDict_SetItem with NULL as argument 3 (value) at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:45 DEBUG: -tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33:nn: note: when PyDict_New() succeeds at: dict = PyDict_New(); DEBUG: -tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:34:nn: note: taking False path at: if (!dict) { DEBUG: -tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38:nn: note: reaching: key = PyLong_FromLong(500); DEBUG: -tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38:nn: note: when PyLong_FromLong() succeeds at: key = PyLong_FromLong(500); DEBUG: -tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39:nn: note: when PyLong_FromLong() fails at: value = PyLong_FromLong(1000); DEBUG: -tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:45:nn: note: PyDict_SetItem() invokes Py_INCREF() on the pointer, thus accessing (NULL)->ob_refcnt DEBUG: -tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:45:nn: warning: calling PyDict_SetItem with NULL as argument 2 (key) at tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:45 DEBUG: -tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:33:nn: note: when PyDict_New() succeeds at: dict = PyDict_New(); DEBUG: -tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:34:nn: note: taking False path at: if (!dict) { DEBUG: -tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38:nn: note: reaching: key = PyLong_FromLong(500); DEBUG: -tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:38:nn: note: when PyLong_FromLong() fails at: key = PyLong_FromLong(500); DEBUG: -tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:39:nn: note: when PyLong_FromLong() succeeds at: value = PyLong_FromLong(1000); DEBUG: -tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:45:nn: note: PyDict_SetItem() invokes Py_TYPE() on the pointer via the PyString_CheckExact() macro, thus accessing (NULL)->ob_type DEBUG: -tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:45:nn: note: found 1 similar trace(s) to this DEBUG: -tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:28:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,109 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c', line=27), region=RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c', line=27))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c', line=27)) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c:27 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c', line=27), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c:32: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c', line=32)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c:32 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c:24 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c', line=35), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c:35 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c:27: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c', line=27)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c:27 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c', line=27), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c:32 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c:27' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c', line=35), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c:35 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c:27: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c', line=27)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c:27 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c:32 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyList_New() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c:29 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c:27 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: /cpychecker/refcounts/PyGILState_Ensure/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyGILState_Ensure/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyGILState_Ensure/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyGILState_Ensure/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyGILState_Ensure/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyInt_AsLong/correct_PyIntObject: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyInt_AsLong/correct_PyIntObject/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyInt_AsLong/correct_PyIntObject/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyInt_AsLong/correct_PyIntObject/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyInt_AsLong/correct_PyIntObject/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyInt_AsLong/correct_PyIntObject/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyInt_AsLong/correct_cast: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyInt_AsLong/correct_cast/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyInt_FromLong/correct_large_int: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyInt_FromLong/correct_large_int/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyInt_FromLong/correct_large_int/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyInt_FromLong/correct_large_int/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyInt_FromLong/correct_large_int/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyInt_FromLong/correct_large_int/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyInt_FromLong/correct_small_int: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyInt_FromLong/correct_small_int/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyInt_FromLong/correct_small_int/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refco--- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,21 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyInt_FromLong() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyInt_FromLong/correct_small_int/input.c', line=31), region=RegionOnHeap('PyIntObject', gcc.Location(file='tests/cpychecker/refcounts/PyInt_FromLong/correct_small_int/input.c', line=31))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyIntObject', gcc.Location(file='tests/cpychecker/refcounts/PyInt_FromLong/correct_small_int/input.c', line=31)) from tests/cpychecker/refcounts/PyInt_FromLong/correct_small_int/input.c:31 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyInt_FromLong/correct_small_int/input.c', line=31), region=RegionForGlobal(gcc.VarDecl('PyInt_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyInt_FromLong/correct_small_int/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyInt_FromLong/correct_small_int/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyInt_FromLong/correct_small_int/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyInt_FromLong/correct_small_int/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyInt_FromLong/correct_small_int/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,89 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyCObject_FromVoidPtrAndDesc() succeeds' DEBUG: - 'when PyTuple_Pack() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c', line=44), region=RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c', line=44))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c', line=44)) from tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:44 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c', line=36), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c', line=36), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyCObject allocated at tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:38: DEBUG: - repr(): RegionOnHeap('PyCObject', gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c', line=38)) DEBUG: - str(): PyCObject allocated at tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:38 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c', line=38), region=RegionForGlobal(gcc.VarDecl('PyCObject_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:37 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyCObject_FromVoidPtrAndDesc() succeeds' DEBUG: - 'when PyTuple_Pack() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c', line=44), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:44 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c', line=36), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c', line=36), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyCObject allocated at tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:38: DEBUG: - repr(): RegionOnHeap('PyCObject', gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c', line=38)) DEBUG: - str(): PyCObject allocated at tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:38 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c', line=38), region=RegionForGlobal(gcc.VarDecl('PyCObject_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:44 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyCObject_FromVoidPtrAndDesc() fails (when py3k deprecation warnings are enabled and configured to raise exceptions)' DEBUG: - error: NullPtrArgument() DEBUG: - error: calling PyTuple_Pack with NULL as argument 3 (obj) at tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:44 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c', line=36), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c', line=36), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:38 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyCObject_FromVoidPtrAndDesc() fails' DEBUG: - error: NullPtrArgument() DEBUG: - error: calling PyTuple_Pack with NULL as argument 3 (obj) at tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:44 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c', line=36), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c', line=36), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:38 DEBUG: mpiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyArg_UnpackTuple/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyArg_UnpackTuple/wrong-number-of-varargs: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyArg_UnpackTuple/wrong-number-of-varargs/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyArg_UnpackTuple/wrong-number-of-varargs/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyArg_UnpackTuple/wrong-number-of-varargs/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyArg_UnpackTuple/wrong-number-of-varargs/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyArg_UnpackTuple/wrong-number-of-varargs/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyBool_FromLong/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyBool_FromLong/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyBool_FromLong/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyBool_FromLong/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyBool_FromLong/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyBool_FromLong/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests--- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,14 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:44:nn: warning: memory leak: ob_refcnt of '*obj' is 1 too high DEBUG: -tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:38:nn: note: '*obj' was allocated at: PyObject *obj = PyCObject_FromVoidPtrAndDesc(&some_foo, "struct foo", NULL); DEBUG: -tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:44:nn: note: was expecting final owned ob_refcnt of '*obj' to be 0 since nothing references it but final ob_refcnt is refs: 1 owned DEBUG: -tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:38:nn: note: when PyCObject_FromVoidPtrAndDesc() succeeds at: PyObject *obj = PyCObject_FromVoidPtrAndDesc(&some_foo, "struct foo", NULL); DEBUG: -tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:38:nn: note: ob_refcnt is now refs: 1 owned DEBUG: -tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:44:nn: note: when PyTuple_Pack() succeeds at: return PyTuple_Pack(2, self, obj); DEBUG: -tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:44:nn: note: returning at: return PyTuple_Pack(2, self, obj); DEBUG: -tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:44:nn: note: found 1 similar trace(s) to this DEBUG: -tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:44:nn: warning: calling PyTuple_Pack with NULL as argument 3 (obj) at tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:44 DEBUG: -tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:38:nn: note: when PyCObject_FromVoidPtrAndDesc() fails (when py3k deprecation warnings are enabled and configured to raise exceptions) at: PyObject *obj = PyCObject_FromVoidPtrAndDesc(&some_foo, "struct foo", NULL); DEBUG: -tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:44:nn: note: PyTuple_Pack() invokes Py_INCREF() on the pointer, thus accessing (NULL)->ob_refcnt DEBUG: -tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:44:nn: note: found 1 similar trace(s) to this DEBUG: -tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:37:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: odule_AddObject/incorrect-with-cast/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyModule_AddObject/incorrect-with-cast/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyObject_CallFunction/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyObject_CallFunction/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyObject_CallFunction/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyObject_CallFunction/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyObject_CallFunction/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyObject_CallFunction/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyObject_CallMethod/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyObject_CallMethod/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyObject_CallMethod/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyObject_CallMethod/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyObject_CallMethod/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyObject_CallMethod/correct/input.c:1:48: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,41 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyObject_CallMethod() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethod/correct/input.c', line=29), region=RegionOnHeap('new ref from call to PyObject_CallMethod', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethod/correct/input.c', line=29))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new ref from call to PyObject_CallMethod', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethod/correct/input.c', line=29)) from tests/cpychecker/refcounts/PyObject_CallMethod/correct/input.c:29 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethod/correct/input.c', line=29), region=Region('PyTypeObject for new ref from call to PyObject_CallMethod')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethod/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethod/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_CallMethod/correct/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyObject_CallMethod() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethod/correct/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_CallMethod/correct/input.c:29 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethod/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethod/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyObject_CallMethod/correct/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyObject_CallMethod/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyObject_CallMethod/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/write-through-global-ptr-checked/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/absinterp/write-through-global-ptr-unchecked: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/absinterp/write-through-global-ptr-unchecked/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/absinterp/write-through-global-ptr-unchecked/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/absinterp/write-through-global-ptr-unchecked/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/absinterp/write-through-global-ptr-unchecked/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/absinterp/write-through-global-ptr-unchecked/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/fileptr-missing-error-check: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/fileptr-missing-error-check/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/fileptr-missing-error-check/script.py -fsigned-char tests/cpychecker/fileptr-missing-error-check/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/fileptr-missing-error-check/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/fileptr-missing-error-check/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/GIL/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/GIL/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/GIL/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/GIL/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/GIL/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/GIL/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyArg_Parse/correct_simple: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyArg_Parse/correct_simple/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyArg_Parse/correct_simple/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyArg_Parse/correct_simple/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyArg_Parse/correct_simple/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyArg_Parse/correct_simple/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expan--- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,43 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyArg_ParseTuple() succeeds' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O/input.c', line=32), region=RegionOnHeap('object from arg "O"', gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O/input.c', line=32))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('object from arg "O"', gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O/input.c', line=32)) from tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O/input.c:32 DEBUG: - r->ob_refcnt: (Py_ssize_t)val [-0x7fffffffffffffff <= val <= 0x7fffffffffffffff] from tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O/input.c:42 DEBUG: - r->ob_type: None DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O/input.c:29 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyArg_ParseTuple() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O/input.c', line=34), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O/input.c:34 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_TypeError')) from tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O/input.c:32 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: fcounts/PyObject_GenericSetAttr/basic/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyObject_GenericSetAttr/basic/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyObject_GenericSetAttr/basic/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyObject_GenericSetAttr/basic/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyObject_GetAttr/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyObject_GetAttr/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyObject_GetAttr/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyObject_GetAttr/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyObject_GetAttr/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyObject_GetAttr/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyObject_GetAttr/incorrect: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyObject_GetAttr/incorrect/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyObject_GetAttr/incorrect/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyObject_GetAttr/incorrect/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyObject_GetAttr/incorrect/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyObject_GetAttr/incorrect/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyObject_GetAttrString/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyObject_GetAttrString/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyObject_GetAttrString/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyObject_GetAttrString/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyObject_GetAttrString/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyObject_GetAttrString/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyObject_GetAttrString/incorrect: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyObject_GetAttrString/incorrect/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyObject_GetAttrString/incorrect/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyObject_GetAttrString/incorrect/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyObject_GetAttrString/incorrect/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,16 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - error: NullPtrArgument() DEBUG: - error: calling PyObject_GetAttrString with NULL as argument 2 (0B) at tests/cpychecker/refcounts/PyObject_GetAttrString/incorrect/input.c:29 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetAttrString/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetAttrString/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_GetAttrString/incorrect/input.c:28 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,4 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyObject_GetAttrString/incorrect/input.c:29:nn: warning: calling PyObject_GetAttrString with NULL as argument 2 (0B) at tests/cpychecker/refcounts/PyObject_GetAttrString/incorrect/input.c:29 DEBUG: -tests/cpychecker/refcounts/PyObject_GetAttrString/incorrect/input.c:29:nn: note: PyObject_GetAttrString() can call PyString_InternFromString(), which calls PyString_FromString(), which requires a non-NULL pointer DEBUG: -tests/cpychecker/refcounts/PyObject_GetAttrString/incorrect/input.c:28:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyObject_GetAttrString/incorrect/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyObject_GetAttrString/incorrect/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyObject_GetAttrString/incorrect/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,41 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyEval_CallMethod() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyEval_CallMethod/correct/input.c', line=29), region=RegionOnHeap('new ref from call to PyEval_CallMethod', gcc.Location(file='tests/cpychecker/refcounts/PyEval_CallMethod/correct/input.c', line=29))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new ref from call to PyEval_CallMethod', gcc.Location(file='tests/cpychecker/refcounts/PyEval_CallMethod/correct/input.c', line=29)) from tests/cpychecker/refcounts/PyEval_CallMethod/correct/input.c:29 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyEval_CallMethod/correct/input.c', line=29), region=Region('PyTypeObject for new ref from call to PyEval_CallMethod')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyEval_CallMethod/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyEval_CallMethod/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyEval_CallMethod/correct/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyEval_CallMethod() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyEval_CallMethod/correct/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyEval_CallMethod/correct/input.c:29 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyEval_CallMethod/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyEval_CallMethod/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyEval_CallMethod/correct/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyEval_CallMethod/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyEval_CallMethod/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,278 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItemString() succeeds' DEBUG: - 'taking False path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=32), region=RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=32))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=32)) from tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:32 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:37: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=37)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:37 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=37), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItemString() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=56), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:56 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:32: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=32)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:32 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:37: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=37)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:37 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=37), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:42 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItemString() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:37' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=56), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:56 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:32: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=32)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:32 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:37: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=37)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:37 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:42 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItemString() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:32' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=56), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:56 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:32: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=32)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:32 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:37: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=37)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:37 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=37), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:42 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItemString() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:32' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:37' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=56), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:56 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:32: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=32)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:32 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:37: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=37)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:37 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:42 DEBUG: - DEBUG: -Trace 5: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=56), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:56 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:32: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=32)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:32 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:37 DEBUG: - DEBUG: -Trace 6: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:32' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=56), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:56 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:32: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=32)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:32 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:37 DEBUG: - DEBUG: -Trace 7: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() fails' DEBUG: - 'taking True path' DEBUG: - 'taking True path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=56), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:56 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:32 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,29 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyCapsule_GetPointer() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): UnknownValue(gcctype=gcc.PointerType(dereference=), loc=gcc.Location(file='tests/cpychecker/refcounts/PyCapsule_GetPointer/basic/input.c', line=29)) DEBUG: - str(): unknown void * from tests/cpychecker/refcounts/PyCapsule_GetPointer/basic/input.c:29 DEBUG: - region for gcc.ParmDecl('capsule') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('capsule')") DEBUG: - str(): region for gcc.ParmDecl('capsule') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCapsule_GetPointer/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('capsule')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyCapsule_GetPointer/basic/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyCapsule_GetPointer() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='void *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCapsule_GetPointer/basic/input.c', line=29), value=0) DEBUG: - str(): (void *)0 from tests/cpychecker/refcounts/PyCapsule_GetPointer/basic/input.c:29 DEBUG: - region for gcc.ParmDecl('capsule') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('capsule')") DEBUG: - str(): region for gcc.ParmDecl('capsule') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyCapsule_GetPointer/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('capsule')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_ValueError')) from tests/cpychecker/refcounts/PyCapsule_GetPointer/basic/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyCapsule_GetPointer/basic/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyCapsule_GetPointer/basic/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,46 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyIter_Next() retrieves a value (new ref)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyIter_Next/simple/input.c', line=29), region=RegionOnHeap('new ref returned by PyIter_Next()', gcc.Location(file='tests/cpychecker/refcounts/PyIter_Next/simple/input.c', line=29))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new ref returned by PyIter_Next()', gcc.Location(file='tests/cpychecker/refcounts/PyIter_Next/simple/input.c', line=29)) from tests/cpychecker/refcounts/PyIter_Next/simple/input.c:29 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyIter_Next/simple/input.c', line=29), region=Region('PyTypeObject for new ref returned by PyIter_Next()')) DEBUG: - region for gcc.ParmDecl('iter') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('iter')") DEBUG: - str(): region for gcc.ParmDecl('iter') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyIter_Next/simple/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('iter')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyIter_Next/simple/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyIter_Next() returns NULL without setting an exception (end of iteration)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyIter_Next/simple/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyIter_Next/simple/input.c:29 DEBUG: - region for gcc.ParmDecl('iter') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('iter')") DEBUG: - str(): region for gcc.ParmDecl('iter') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyIter_Next/simple/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('iter')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyIter_Next/simple/input.c:28 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyIter_Next() returns NULL setting an exception (error occurred)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyIter_Next/simple/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyIter_Next/simple/input.c:29 DEBUG: - region for gcc.ParmDecl('iter') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('iter')") DEBUG: - str(): region for gcc.ParmDecl('iter') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyIter_Next/simple/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('iter')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyIter_Next/simple/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,5 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyIter_Next/simple/input.c:29:nn: warning: returning (PyObject*)NULL without setting an exception DEBUG: -tests/cpychecker/refcounts/PyIter_Next/simple/input.c:29:nn: note: when PyIter_Next() returns NULL without setting an exception (end of iteration) at: return PyIter_Next(iter); DEBUG: -tests/cpychecker/refcounts/PyIter_Next/simple/input.c:29:nn: note: returning at: return PyIter_Next(iter); DEBUG: -tests/cpychecker/refcounts/PyIter_Next/simple/input.c:28:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyIter_Next/simple/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyIter_Next/simple/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyIter_Next/simple/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,74 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when PyObject_CallMethod() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c', line=30), region=RegionOnHeap('new ref from call to PyObject_CallMethod', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c', line=30))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new ref from call to PyObject_CallMethod', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c', line=30)) from tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c:30 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c', line=30), region=Region('PyTypeObject for new ref from call to PyObject_CallMethod')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c:30: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c', line=30)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c:30 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c', line=30), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c:29 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when PyObject_CallMethod() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c', line=30), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c:30 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c:30: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c', line=30)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c:30 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c', line=30), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c:30 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'when PyObject_CallMethod() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c', line=30), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c:30 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c:30 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,88 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyArg_ParseTuple() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when treating unknown char * from tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c:52 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c', line=52), region=RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c', line=52))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c', line=52)) from tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c:52 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c', line=52), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c', line=35), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c', line=35), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c:36 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyArg_ParseTuple() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when treating unknown char * from tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c:52 as non-NULL' DEBUG: - 'when PyString_FromString() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c', line=52), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c:52 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c', line=35), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c', line=35), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c:52 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyArg_ParseTuple() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when treating unknown char * from tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c:52 as NULL' DEBUG: - error: NullPtrArgument() DEBUG: - error: possibly calling PyString_FromString with NULL as argument 1 (D.nnnnn) at tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c:52 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c', line=35), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c', line=35), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c:36 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyArg_ParseTuple() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c', line=41), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c:41 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c', line=35), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c', line=35), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_TypeError')) from tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c:39 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,41 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyObject_GetItem() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetItem/correct/input.c', line=29), region=RegionOnHeap('new ref from call to PyObject_GetItem', gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetItem/correct/input.c', line=29))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new ref from call to PyObject_GetItem', gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetItem/correct/input.c', line=29)) from tests/cpychecker/refcounts/PyObject_GetItem/correct/input.c:29 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetItem/correct/input.c', line=29), region=Region('PyTypeObject for new ref from call to PyObject_GetItem')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('key') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('key')") DEBUG: - str(): region for gcc.ParmDecl('key') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('key')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_GetItem/correct/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyObject_GetItem() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetItem/correct/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_GetItem/correct/input.c:29 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('key') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('key')") DEBUG: - str(): region for gcc.ParmDecl('key') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetItem/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('key')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyObject_GetItem/correct/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyObject_GetItem/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyObject_GetItem/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,16 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - error: NullPtrArgument() DEBUG: - error: calling PyEval_CallMethod with NULL as argument 1 (0B) at tests/cpychecker/refcounts/PyEval_CallMethod/incorrect/input.c:30 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyEval_CallMethod/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyEval_CallMethod/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyEval_CallMethod/incorrect/input.c:28 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,4 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyEval_CallMethod/incorrect/input.c:30:nn: warning: calling PyEval_CallMethod with NULL as argument 1 (0B) at tests/cpychecker/refcounts/PyEval_CallMethod/incorrect/input.c:30 DEBUG: -tests/cpychecker/refcounts/PyEval_CallMethod/incorrect/input.c:30:nn: note: PyEval_CallMethod() invokes Py_TYPE() on the pointer within PyObject_GetAttrString(), thus accessing (NULL)->ob_type DEBUG: -tests/cpychecker/refcounts/PyEval_CallMethod/incorrect/input.c:28:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyEval_CallMethod/incorrect/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyEval_CallMethod/incorrect/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyEval_CallMethod/incorrect/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,647 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=33), region=RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=33))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=33)) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:50: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=50)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:50 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=50), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:24 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:50 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:50 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:50 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:50 DEBUG: - DEBUG: -Trace 5: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:44' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:44 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:50 DEBUG: - DEBUG: -Trace 6: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:44' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:44 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:50 DEBUG: - DEBUG: -Trace 7: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:44' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:44 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:50 DEBUG: - DEBUG: -Trace 8: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:44' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:44 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:50 DEBUG: - DEBUG: -Trace 9: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=48), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:48 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:44 DEBUG: - DEBUG: -Trace 10: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=48), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:48 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:44 DEBUG: - DEBUG: -Trace 11: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=48), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:48 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:44 DEBUG: - DEBUG: -Trace 12: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=48), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:48 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:44 DEBUG: - DEBUG: -Trace 13: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=42), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:42 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - DEBUG: -Trace 14: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=42), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:42 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - DEBUG: -Trace 15: DEBUG: - Transitions: DEBUG: - 'when PyList_New() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=35), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:35 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,64 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyDict_GetItem/correct/input.c:26 as non-NULL' DEBUG: - 'when PyDict_GetItem() succeeds' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItem/correct/input.c', line=32), region=RegionOnHeap('borrowed reference returned by PyDict_GetItem()', gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItem/correct/input.c', line=32))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('borrowed reference returned by PyDict_GetItem()', gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItem/correct/input.c', line=32)) from tests/cpychecker/refcounts/PyDict_GetItem/correct/input.c:32 DEBUG: - r->ob_refcnt: refs: 1 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItem/correct/input.c', line=32), region=Region('PyTypeObject for borrowed reference returned by PyDict_GetItem()')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItem/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItem/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_GetItem/correct/input.c:30 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyDict_GetItem/correct/input.c:26 as non-NULL' DEBUG: - 'when PyDict_GetItem does not find item' DEBUG: - 'taking False path' DEBUG: - 'calling PyErr_SetString()' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItem/correct/input.c', line=42), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_GetItem/correct/input.c:42 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItem/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItem/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - unknown struct PyObject * from /usr/include/python?.?/pyerrors.h:nn DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyDict_GetItem/correct/input.c:26 as NULL' DEBUG: - error: NullPtrArgument() DEBUG: - error: possibly calling PyDict_GetItem with NULL as argument 1 (some_dict.0) at tests/cpychecker/refcounts/PyDict_GetItem/correct/input.c:32 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItem/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_GetItem/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_GetItem/correct/input.c:30 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyDict_GetItem/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyDict_GetItem/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,163 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyObject_CallMethodObjArgs() succeeds' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=39), region=RegionOnHeap('new ref from call to PyObject_CallMethodObjArgs', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=39))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new ref from call to PyObject_CallMethodObjArgs', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=39)) from tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c:39 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=39), region=Region('PyTypeObject for new ref from call to PyObject_CallMethodObjArgs')) DEBUG: - region for gcc.ParmDecl('obj') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('obj')") DEBUG: - str(): region for gcc.ParmDecl('obj') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=32), region=Region("region-for-type-of-arg-gcc.ParmDecl('obj')")) DEBUG: - region for gcc.ParmDecl('a') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('a')") DEBUG: - str(): region for gcc.ParmDecl('a') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=32), region=Region("region-for-type-of-arg-gcc.ParmDecl('a')")) DEBUG: - region for gcc.ParmDecl('b') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('b')") DEBUG: - str(): region for gcc.ParmDecl('b') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=32), region=Region("region-for-type-of-arg-gcc.ParmDecl('b')")) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c:34: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=34)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c:34 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=34), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c:33 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyObject_CallMethodObjArgs() succeeds' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyStringObject allocated at tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c:34' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=39), region=RegionOnHeap('new ref from call to PyObject_CallMethodObjArgs', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=39))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new ref from call to PyObject_CallMethodObjArgs', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=39)) from tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c:39 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=39), region=Region('PyTypeObject for new ref from call to PyObject_CallMethodObjArgs')) DEBUG: - region for gcc.ParmDecl('obj') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('obj')") DEBUG: - str(): region for gcc.ParmDecl('obj') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=32), region=Region("region-for-type-of-arg-gcc.ParmDecl('obj')")) DEBUG: - region for gcc.ParmDecl('a') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('a')") DEBUG: - str(): region for gcc.ParmDecl('a') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=32), region=Region("region-for-type-of-arg-gcc.ParmDecl('a')")) DEBUG: - region for gcc.ParmDecl('b') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('b')") DEBUG: - str(): region for gcc.ParmDecl('b') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=32), region=Region("region-for-type-of-arg-gcc.ParmDecl('b')")) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c:34: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=34)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c:34 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c:33 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyObject_CallMethodObjArgs() fails' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=39), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c:39 DEBUG: - region for gcc.ParmDecl('obj') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('obj')") DEBUG: - str(): region for gcc.ParmDecl('obj') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=32), region=Region("region-for-type-of-arg-gcc.ParmDecl('obj')")) DEBUG: - region for gcc.ParmDecl('a') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('a')") DEBUG: - str(): region for gcc.ParmDecl('a') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=32), region=Region("region-for-type-of-arg-gcc.ParmDecl('a')")) DEBUG: - region for gcc.ParmDecl('b') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('b')") DEBUG: - str(): region for gcc.ParmDecl('b') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=32), region=Region("region-for-type-of-arg-gcc.ParmDecl('b')")) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c:34: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=34)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c:34 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=34), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c:39 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyObject_CallMethodObjArgs() fails' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyStringObject allocated at tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c:34' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=39), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c:39 DEBUG: - region for gcc.ParmDecl('obj') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('obj')") DEBUG: - str(): region for gcc.ParmDecl('obj') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=32), region=Region("region-for-type-of-arg-gcc.ParmDecl('obj')")) DEBUG: - region for gcc.ParmDecl('a') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('a')") DEBUG: - str(): region for gcc.ParmDecl('a') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=32), region=Region("region-for-type-of-arg-gcc.ParmDecl('a')")) DEBUG: - region for gcc.ParmDecl('b') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('b')") DEBUG: - str(): region for gcc.ParmDecl('b') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=32), region=Region("region-for-type-of-arg-gcc.ParmDecl('b')")) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c:34: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=34)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c:34 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c:39 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when PyString_FromString() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=37), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c:37 DEBUG: - region for gcc.ParmDecl('obj') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('obj')") DEBUG: - str(): region for gcc.ParmDecl('obj') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=32), region=Region("region-for-type-of-arg-gcc.ParmDecl('obj')")) DEBUG: - region for gcc.ParmDecl('a') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('a')") DEBUG: - str(): region for gcc.ParmDecl('a') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=32), region=Region("region-for-type-of-arg-gcc.ParmDecl('a')")) DEBUG: - region for gcc.ParmDecl('b') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('b')") DEBUG: - str(): region for gcc.ParmDecl('b') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c', line=32), region=Region("region-for-type-of-arg-gcc.ParmDecl('b')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c:34 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,264 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_Append() succeeds' DEBUG: - 'taking False path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=32), region=RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=32))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=32)) from tests/cpychecker/refcounts/PyList_Append/correct/input.c:32 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_Append/correct/input.c:36: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=36)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_Append/correct/input.c:36 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=36), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/correct/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_Append() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=45), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/correct/input.c:45 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/correct/input.c:32: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=32)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/correct/input.c:32 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_Append/correct/input.c:36: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=36)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_Append/correct/input.c:36 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=36), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_Append/correct/input.c:42 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_Append() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyList_Append/correct/input.c:36' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=45), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/correct/input.c:45 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/correct/input.c:32: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=32)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/correct/input.c:32 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_Append/correct/input.c:36: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=36)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_Append/correct/input.c:36 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_Append/correct/input.c:42 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_Append() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/correct/input.c:32' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=45), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/correct/input.c:45 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/correct/input.c:32: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=32)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/correct/input.c:32 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_Append/correct/input.c:36: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=36)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_Append/correct/input.c:36 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=36), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_Append/correct/input.c:42 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_Append() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/correct/input.c:32' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyList_Append/correct/input.c:36' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=45), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/correct/input.c:45 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/correct/input.c:32: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=32)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/correct/input.c:32 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_Append/correct/input.c:36: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=36)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_Append/correct/input.c:36 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_Append/correct/input.c:42 DEBUG: - DEBUG: -Trace 5: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=39), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/correct/input.c:39 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/correct/input.c:32: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=32)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/correct/input.c:32 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_Append/correct/input.c:36 DEBUG: - DEBUG: -Trace 6: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/correct/input.c:32' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=39), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/correct/input.c:39 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/correct/input.c:32: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=32)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_Append/correct/input.c:32 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_Append/correct/input.c:36 DEBUG: - DEBUG: -Trace 7: DEBUG: - Transitions: DEBUG: - 'when PyList_New() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=34), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Append/correct/input.c:34 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Append/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_Append/correct/input.c:32 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyList_Append/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyList_Append/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,277 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItemString() succeeds' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=32), region=RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=32))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=32)) from tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:32 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:37: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=37)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:37 DEBUG: - r->ob_refcnt: refs: 1 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=37), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItemString() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=57), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:57 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:32: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=32)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:32 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:37: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=37)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:37 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=37), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:42 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItemString() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:37' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=57), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:57 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:32: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=32)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:32 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:37: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=37)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:37 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:42 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItemString() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:32' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=57), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:57 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:32: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=32)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:32 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:37: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=37)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:37 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=37), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:42 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItemString() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:32' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:37' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=57), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:57 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:32: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=32)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:32 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:37: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=37)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:37 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:42 DEBUG: - DEBUG: -Trace 5: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=57), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:57 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:32: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=32)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:32 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:37 DEBUG: - DEBUG: -Trace 6: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:32' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=57), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:57 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:32: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=32)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:32 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:37 DEBUG: - DEBUG: -Trace 7: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() fails' DEBUG: - 'taking True path' DEBUG: - 'taking True path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=57), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:57 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:32 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,17 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:52:nn: warning: memory leak: ob_refcnt of '*value' is 1 too high DEBUG: -tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:37:nn: note: '*value' was allocated at: value = PyLong_FromLong(1000); DEBUG: -tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:52:nn: note: was expecting final owned ob_refcnt of '*value' to be 0 since nothing references it but final ob_refcnt is refs: 1 owned, 1 borrowed DEBUG: -tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:32:nn: note: when PyDict_New() succeeds at: dict = PyDict_New(); DEBUG: -tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:33:nn: note: taking False path at: if (!dict) { DEBUG: -tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:37:nn: note: reaching: value = PyLong_FromLong(1000); DEBUG: -tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:37:nn: note: when PyLong_FromLong() succeeds at: value = PyLong_FromLong(1000); DEBUG: -tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:37:nn: note: ob_refcnt is now refs: 1 owned DEBUG: -tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:38:nn: note: taking False path at: if (!value) { DEBUG: -tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:42:nn: note: reaching: if (-1 == PyDict_SetItemString(dict, "key", value)) { DEBUG: -tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:42:nn: note: when PyDict_SetItemString() succeeds at: if (-1 == PyDict_SetItemString(dict, "key", value)) { DEBUG: -tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:42:nn: note: ob_refcnt is now refs: 1 owned, 1 borrowed DEBUG: -tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:42:nn: note: taking False path at: if (-1 == PyDict_SetItemString(dict, "key", value)) { DEBUG: -tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:52:nn: note: reaching: return dict; DEBUG: -tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:52:nn: note: returning DEBUG: -tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:28:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,45 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyObject_HasAttrString() returns 1 (true)' DEBUG: - 'PyBool_FromLong() returns' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_HasAttrString/correct/input.c', line=30), region=RegionOnHeap('PyBool_FromLong', gcc.Location(file='tests/cpychecker/refcounts/PyObject_HasAttrString/correct/input.c', line=30))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyBool_FromLong', gcc.Location(file='tests/cpychecker/refcounts/PyObject_HasAttrString/correct/input.c', line=30)) from tests/cpychecker/refcounts/PyObject_HasAttrString/correct/input.c:30 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_HasAttrString/correct/input.c', line=30), region=Region('PyTypeObject for PyBool_FromLong')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_HasAttrString/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_HasAttrString/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_HasAttrString/correct/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyObject_HasAttrString() returns 0 (false)' DEBUG: - 'PyBool_FromLong() returns' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_HasAttrString/correct/input.c', line=30), region=RegionOnHeap('PyBool_FromLong', gcc.Location(file='tests/cpychecker/refcounts/PyObject_HasAttrString/correct/input.c', line=30))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyBool_FromLong', gcc.Location(file='tests/cpychecker/refcounts/PyObject_HasAttrString/correct/input.c', line=30)) from tests/cpychecker/refcounts/PyObject_HasAttrString/correct/input.c:30 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_HasAttrString/correct/input.c', line=30), region=Region('PyTypeObject for PyBool_FromLong')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_HasAttrString/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_HasAttrString/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_HasAttrString/correct/input.c:28 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyObject_HasAttrString/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyObject_HasAttrString/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,19 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyObject_GetItem raises SystemError due to NULL as argument 2 at tests/cpychecker/refcounts/PyObject_GetItem/incorrect/input.c:29' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetItem/incorrect/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_GetItem/incorrect/input.c:29 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_GetItem/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_SystemError')) from tests/cpychecker/refcounts/PyObject_GetItem/incorrect/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyObject_GetItem/incorrect/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyObject_GetItem/incorrect/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,87 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyString_AsString() succeeds' DEBUG: - 'when PyString_FromFormat() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/unknown/input.c', line=33), region=RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/unknown/input.c', line=33))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/unknown/input.c', line=33)) from tests/cpychecker/refcounts/PyString_AsString/unknown/input.c:33 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/unknown/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/unknown/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/unknown/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_AsString/unknown/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyString_AsString() succeeds' DEBUG: - 'when PyString_FromFormat() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/unknown/input.c', line=33), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_AsString/unknown/input.c:33 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/unknown/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/unknown/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_AsString/unknown/input.c:33 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyString_AsString() fails' DEBUG: - 'when PyString_FromFormat() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/unknown/input.c', line=33), region=RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/unknown/input.c', line=33))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/unknown/input.c', line=33)) from tests/cpychecker/refcounts/PyString_AsString/unknown/input.c:33 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/unknown/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/unknown/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/unknown/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_AsString/unknown/input.c:33 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyString_AsString() fails' DEBUG: - 'when PyString_FromFormat() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/unknown/input.c', line=33), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_AsString/unknown/input.c:33 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/unknown/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/unknown/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_AsString/unknown/input.c:33 DEBUG: etNone/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyErr_SetObject/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyErr_SetObject/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyErr_SetObject/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyErr_SetObject/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyErr_SetObject/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyErr_SetObject/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyErr_SetString/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyErr_SetString/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyErr_SetString/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyErr_SetString/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyErr_SetString/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyErr_SetString/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyEval_CallMethod/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyEval_CallMethod/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyEval_CallMethod/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyEval_CallMethod/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyEval_CallMethod/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyEval_CallMethod/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyEval_CallMethod/incorrect: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyEval_CallMethod/incorrect/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyEval_CallMethod/incorrect/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyEval_CallMethod/incorrect/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyEval_CallMethod/incorrect/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyEval_CallMethod/incorrect/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyString_AsString/unknown: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyString_AsStrin--- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyString_AsString/unknown/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyString_AsString/unknown/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,29 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyString_Size() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): WithinRange(gcctype='Py_ssize_t', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Size/correct/input.c', line=29), minvalue=0, maxvalue=0x7fffffffffffffff) DEBUG: - str(): (Py_ssize_t)val [0 <= val <= 0x7fffffffffffffff] from tests/cpychecker/refcounts/PyString_Size/correct/input.c:29 DEBUG: - region for gcc.ParmDecl('obj') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('obj')") DEBUG: - str(): region for gcc.ParmDecl('obj') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Size/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('obj')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_Size/correct/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyString_Size() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='Py_ssize_t', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Size/correct/input.c', line=29), value=-1) DEBUG: - str(): (Py_ssize_t)-1 from tests/cpychecker/refcounts/PyString_Size/correct/input.c:29 DEBUG: - region for gcc.ParmDecl('obj') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('obj')") DEBUG: - str(): region for gcc.ParmDecl('obj') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Size/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('obj')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_Size/correct/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyString_Size/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyString_Size/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,21 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown void * from tests/cpychecker/refcounts/PyDict_Size/simple/input.c:27 as non-NULL' DEBUG: - 'when PyDict_Size() returns ma_used' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): WithinRange(gcctype='Py_ssize_t', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_Size/simple/input.c', line=29), minvalue=-0x8000000000000000, maxvalue=0x7fffffffffffffff) DEBUG: - str(): (Py_ssize_t)val [-0x8000000000000000 <= val <= 0x7fffffffffffffff] from tests/cpychecker/refcounts/PyDict_Size/simple/input.c:29 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyDict_Size/simple/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown void * from tests/cpychecker/refcounts/PyDict_Size/simple/input.c:27 as NULL' DEBUG: - 'when PyDict_Size raises SystemError (via PyErr_BadInternalCall) due to NULL as argument 1 at tests/cpychecker/refcounts/PyDict_Size/simple/input.c:29' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='Py_ssize_t', loc=gcc.Location(file='tests/cpychecker/refcounts/PyDict_Size/simple/input.c', line=29), value=-1) DEBUG: - str(): (Py_ssize_t)-1 from tests/cpychecker/refcounts/PyDict_Size/simple/input.c:29 DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_SystemError')) from tests/cpychecker/refcounts/PyDict_Size/simple/input.c:29 DEBUG: UTE" in line directive DEBUG: tests/cpychecker/refcounts/PyDict_New/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyDict_SetItem/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyDict_SetItem/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyDict_SetItem/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyDict_SetItem/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyDict_SetItem/incorrect: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyDict_SetItem/incorrect/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyDict_SetItem/incorrect/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyDict_SetItem/incorrect/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyDict_SetItemString/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyDict_SetItemString/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyDict_SetItemString/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyDict_SetItemString/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyDict_SetItemString/incorrect: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyDict_SetItemString/incorrect/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyDict_Size/simple: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnost--- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyDict_Size/simple/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyDict_Size/simple/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,44 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c:26 as non-NULL' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c', line=32), region=RegionOnHeap('borrowed reference returned by PyWeakref_GetObject()', gcc.Location(file='tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c', line=32))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('borrowed reference returned by PyWeakref_GetObject()', gcc.Location(file='tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c', line=32)) from tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c:32 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c', line=32), region=Region('PyTypeObject for borrowed reference returned by PyWeakref_GetObject()')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c:30 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c:26 as NULL' DEBUG: - 'PyWeakref_GetObject() fails due to NULL argument' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c', line=37), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c:37 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_SystemError')) from tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c:32 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,10 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c:35:nn: warning: future use-after-free: ob_refcnt of return value is 1 too low DEBUG: -tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c:32:nn: note: return value was allocated at: item = PyWeakref_GetObject(some_ref); DEBUG: -tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c:35:nn: note: was expecting final owned ob_refcnt of return value to be 1 due to object being referenced by: return value but final ob_refcnt is refs: 0 owned, 1 borrowed DEBUG: -tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c:32:nn: note: when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c:26 as non-NULL at: item = PyWeakref_GetObject(some_ref); DEBUG: -tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c:32:nn: note: ob_refcnt is now refs: 0 owned, 1 borrowed DEBUG: -tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c:33:nn: note: taking True path at: if (item) { DEBUG: -tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c:35:nn: note: reaching: return item; DEBUG: -tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c:35:nn: note: returning DEBUG: -tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c:30:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,7 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'PyErr_NoMemory() returns NULL, raising MemoryError' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/__builtin_expect/input.c:56 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/__builtin_expect/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/__builtin_expect/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,16 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - error: NullPtrArgument() DEBUG: - error: calling PyObject_HasAttrString with NULL as argument 2 (0B) at tests/cpychecker/refcounts/PyObject_HasAttrString/incorrect/input.c:29 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_HasAttrString/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_HasAttrString/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_HasAttrString/incorrect/input.c:28 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,3 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyObject_HasAttrString/incorrect/input.c:29:nn: warning: calling PyObject_HasAttrString with NULL as argument 2 (0B) at tests/cpychecker/refcounts/PyObject_HasAttrString/incorrect/input.c:29 DEBUG: -tests/cpychecker/refcounts/PyObject_HasAttrString/incorrect/input.c:28:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyObject_HasAttrString/incorrect/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyObject_HasAttrString/incorrect/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyObject_HasAttrString/incorrect/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,101 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_Concat/basic/input.c:27 as non-NULL' DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_Concat/basic/input.c:29 as non-NULL' DEBUG: - 'when PyString_Concat() succeeds (Py_DECREF() without deallocation on *LHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/basic/input.c', line=29), region=RegionOnHeap('result of PyString_Concat', gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/basic/input.c', line=29))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('result of PyString_Concat', gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/basic/input.c', line=29)) from tests/cpychecker/refcounts/PyString_Concat/basic/input.c:29 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/basic/input.c', line=29), region=Region('PyTypeObject for result of PyString_Concat')) DEBUG: - region for gcc.ParmDecl('rhs') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('rhs')") DEBUG: - str(): region for gcc.ParmDecl('rhs') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('rhs')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_Concat/basic/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_Concat/basic/input.c:27 as non-NULL' DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_Concat/basic/input.c:29 as non-NULL' DEBUG: - 'when PyString_Concat() succeeds (Py_DECREF() with deallocation on *LHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/basic/input.c', line=29), region=RegionOnHeap('result of PyString_Concat', gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/basic/input.c', line=29))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('result of PyString_Concat', gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/basic/input.c', line=29)) from tests/cpychecker/refcounts/PyString_Concat/basic/input.c:29 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/basic/input.c', line=29), region=Region('PyTypeObject for result of PyString_Concat')) DEBUG: - region for gcc.ParmDecl('rhs') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('rhs')") DEBUG: - str(): region for gcc.ParmDecl('rhs') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('rhs')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_Concat/basic/input.c:28 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_Concat/basic/input.c:27 as non-NULL' DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_Concat/basic/input.c:29 as non-NULL' DEBUG: - 'when PyString_Concat() fails (Py_DECREF() without deallocation on *LHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/basic/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_Concat/basic/input.c:29 DEBUG: - region for gcc.ParmDecl('rhs') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('rhs')") DEBUG: - str(): region for gcc.ParmDecl('rhs') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('rhs')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_Concat/basic/input.c:29 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_Concat/basic/input.c:27 as non-NULL' DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_Concat/basic/input.c:29 as non-NULL' DEBUG: - 'when PyString_Concat() fails (Py_DECREF() with deallocation on *LHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/basic/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_Concat/basic/input.c:29 DEBUG: - region for gcc.ParmDecl('rhs') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('rhs')") DEBUG: - str(): region for gcc.ParmDecl('rhs') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('rhs')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_Concat/basic/input.c:29 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_Concat/basic/input.c:27 as non-NULL' DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_Concat/basic/input.c:29 as NULL' DEBUG: - 'when PyString_Concat() does nothing due to NULL *lhs' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/basic/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_Concat/basic/input.c:29 DEBUG: - region for gcc.ParmDecl('rhs') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('rhs')") DEBUG: - str(): region for gcc.ParmDecl('rhs') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('rhs')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_Concat/basic/input.c:28 DEBUG: - DEBUG: -Trace 5: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_Concat/basic/input.c:27 as NULL' DEBUG: - error: NullPtrArgument() DEBUG: - error: possibly calling PyString_Concat with NULL as argument 1 (lhs) at tests/cpychecker/refcounts/PyString_Concat/basic/input.c:29 DEBUG: - region for gcc.ParmDecl('rhs') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('rhs')") DEBUG: - str(): region for gcc.ParmDecl('rhs') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('rhs')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_Concat/basic/input.c:28 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,16 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyString_Concat/basic/input.c:30:nn: warning: future use-after-free: ob_refcnt of return value is 1 too low DEBUG: -tests/cpychecker/refcounts/PyString_Concat/basic/input.c:29:nn: note: return value was allocated at: PyString_Concat(lhs, rhs); DEBUG: -tests/cpychecker/refcounts/PyString_Concat/basic/input.c:30:nn: note: was expecting final owned ob_refcnt of return value to be 2 due to object being referenced by: return value, heap-region-0 but final ob_refcnt is refs: 1 owned DEBUG: -tests/cpychecker/refcounts/PyString_Concat/basic/input.c:29:nn: note: when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_Concat/basic/input.c:27 as non-NULL at: PyString_Concat(lhs, rhs); DEBUG: -tests/cpychecker/refcounts/PyString_Concat/basic/input.c:29:nn: note: when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_Concat/basic/input.c:29 as non-NULL at: PyString_Concat(lhs, rhs); DEBUG: -tests/cpychecker/refcounts/PyString_Concat/basic/input.c:30:nn: note: when PyString_Concat() succeeds (Py_DECREF() without deallocation on *LHS) at: return *lhs; DEBUG: -tests/cpychecker/refcounts/PyString_Concat/basic/input.c:30:nn: note: return value is now referenced by 1 non-stack value(s): heap-region-0 DEBUG: -tests/cpychecker/refcounts/PyString_Concat/basic/input.c:30:nn: note: returning at: return *lhs; DEBUG: -tests/cpychecker/refcounts/PyString_Concat/basic/input.c:30:nn: note: found 1 similar trace(s) to this DEBUG: -tests/cpychecker/refcounts/PyString_Concat/basic/input.c:30:nn: warning: returning (PyObject*)NULL without setting an exception DEBUG: -tests/cpychecker/refcounts/PyString_Concat/basic/input.c:29:nn: note: when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_Concat/basic/input.c:27 as non-NULL at: PyString_Concat(lhs, rhs); DEBUG: -tests/cpychecker/refcounts/PyString_Concat/basic/input.c:29:nn: note: when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_Concat/basic/input.c:29 as NULL at: PyString_Concat(lhs, rhs); DEBUG: -tests/cpychecker/refcounts/PyString_Concat/basic/input.c:29:nn: note: when PyString_Concat() does nothing due to NULL *lhs at: PyString_Concat(lhs, rhs); DEBUG: -tests/cpychecker/refcounts/PyString_Concat/basic/input.c:30:nn: note: returning at: return *lhs; DEBUG: -tests/cpychecker/refcounts/PyString_Concat/basic/input.c:28:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyString_Concat/basic/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyString_Concat/basic/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyString_Concat/basic/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: /cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyCapsule_GetPointer/basic: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyCapsule_GetPointer/basic/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyCapsule_GetPointer/basic/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyCapsule_GetPointer/basic/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyCapsule_GetPointer/basic/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyCapsule_GetPointer/basic/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyDict_GetItem/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyDict_GetItem/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyDict_GetItem/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyDict_GetItem/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyDict_GetItem/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyDict_GetItem/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyString_Size/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyString_Size/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyString_Size/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyString_Size/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyString_Size/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyString_Size/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyStructSequence/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyStructSequence/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyStructSequence/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyStructSequence/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyStructSequence/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyStructSequence/correct/i--- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,55 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyStructSequence_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyInt_FromLong() succeeds' DEBUG: - 'when PyInt_FromLong() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyStructSequence/correct/input.c', line=50), region=RegionOnHeap('PyStructSequence_New', gcc.Location(file='tests/cpychecker/refcounts/PyStructSequence/correct/input.c', line=50))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyStructSequence_New', gcc.Location(file='tests/cpychecker/refcounts/PyStructSequence/correct/input.c', line=50)) from tests/cpychecker/refcounts/PyStructSequence/correct/input.c:50 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyStructSequence/correct/input.c', line=50), region=RegionForGlobal(gcc.VarDecl('CoordType'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyStructSequence/correct/input.c', line=43), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyStructSequence/correct/input.c', line=43), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyIntObject allocated at tests/cpychecker/refcounts/PyStructSequence/correct/input.c:59: DEBUG: - repr(): RegionOnHeap('PyIntObject', gcc.Location(file='tests/cpychecker/refcounts/PyStructSequence/correct/input.c', line=59)) DEBUG: - str(): PyIntObject allocated at tests/cpychecker/refcounts/PyStructSequence/correct/input.c:59 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyStructSequence/correct/input.c', line=59), region=RegionForGlobal(gcc.VarDecl('PyInt_Type'))) DEBUG: - PyIntObject allocated at tests/cpychecker/refcounts/PyStructSequence/correct/input.c:60: DEBUG: - repr(): RegionOnHeap('PyIntObject', gcc.Location(file='tests/cpychecker/refcounts/PyStructSequence/correct/input.c', line=60)) DEBUG: - str(): PyIntObject allocated at tests/cpychecker/refcounts/PyStructSequence/correct/input.c:60 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyStructSequence/correct/input.c', line=60), region=RegionForGlobal(gcc.VarDecl('PyInt_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyStructSequence/correct/input.c:44 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyStructSequence_New() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyStructSequence/correct/input.c', line=52), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyStructSequence/correct/input.c:52 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyStructSequence/correct/input.c', line=43), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyStructSequence/correct/input.c', line=43), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyStructSequence/correct/input.c:50 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyStructSequence/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyStructSequence/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,11 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'calling PyErr_Clear()' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyErr_Clear/correct/input.c', line=30), region=RegionForGlobal(gcc.VarDecl('_Py_NoneStruct'))) DEBUG: - str(): (struct PyObject *)&RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) from tests/cpychecker/refcounts/PyErr_Clear/correct/input.c:30 DEBUG: - r->ob_refcnt: refs: 1 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyErr_Clear/correct/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyErr_Clear/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyErr_Clear/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,31 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when Py_BuildValue() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/Py_TYPE/input.c', line=30), region=RegionOnHeap('new ref from call to Py_BuildValue', gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/Py_TYPE/input.c', line=30))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new ref from call to Py_BuildValue', gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/Py_TYPE/input.c', line=30)) from tests/cpychecker/refcounts/Py_BuildValue/Py_TYPE/input.c:30 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/Py_TYPE/input.c', line=30), region=Region('PyTypeObject for new ref from call to Py_BuildValue')) DEBUG: - region for gcc.ParmDecl('a') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('a')") DEBUG: - str(): region for gcc.ParmDecl('a') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/Py_TYPE/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('a')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/Py_BuildValue/Py_TYPE/input.c:29 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when Py_BuildValue() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/Py_TYPE/input.c', line=30), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/Py_BuildValue/Py_TYPE/input.c:30 DEBUG: - region for gcc.ParmDecl('a') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('a')") DEBUG: - str(): region for gcc.ParmDecl('a') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/Py_TYPE/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('a')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/Py_BuildValue/Py_TYPE/input.c:30 DEBUG: unts/PyInt_FromLong/correct_small_int/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyInt_FromLong/correct_small_int/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyInt_FromLong/correct_small_int/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyIter_Next/simple: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyIter_Next/simple/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyIter_Next/simple/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyIter_Next/simple/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyIter_Next/simple/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyIter_Next/simple/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyList_Append/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyList_Append/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyList_Append/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyList_Append/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyList_Append/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyList_Append/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/Py_BuildValue/Py_TYPE: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/Py_BuildValue/Py_TYPE/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/Py_BuildValue/Py_TYPE/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/Py_BuildValue/Py_TYPE/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/Py_BuildValue/Py_TYPE/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/Py_BuildValue/Py_TYPE/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likel--- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/Py_BuildValue/Py_TYPE/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/Py_BuildValue/Py_TYPE/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: sion=0 -o tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyObject_HasAttrString/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyObject_HasAttrString/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyObject_HasAttrString/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyObject_HasAttrString/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyObject_HasAttrString/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyObject_HasAttrString/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyObject_HasAttrString/incorrect: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyObject_HasAttrString/incorrect/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyObject_HasAttrString/incorrect/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyObject_HasAttrString/incorrect/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyObject_HasAttrString/incorrect/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyObject_HasAttrString/incorrect/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyObject_IsTrue/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyObject_IsTrue/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyObject_IsTrue/correct/script.py -fsigned-char -I/usr/include/python2.7 tests--- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,68 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyObject_IsTrue() returns 1 (true)' DEBUG: - 'PyBool_FromLong() returns' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c', line=31), region=RegionOnHeap('PyBool_FromLong', gcc.Location(file='tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c', line=31))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyBool_FromLong', gcc.Location(file='tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c', line=31)) from tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c:31 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c', line=31), region=Region('PyTypeObject for PyBool_FromLong')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyObject_IsTrue() returns 0 (false)' DEBUG: - 'PyBool_FromLong() returns' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c', line=31), region=RegionOnHeap('PyBool_FromLong', gcc.Location(file='tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c', line=31))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyBool_FromLong', gcc.Location(file='tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c', line=31)) from tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c:31 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c', line=31), region=Region('PyTypeObject for PyBool_FromLong')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c:28 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyObject_IsTrue() returns -1 (failure)' DEBUG: - 'PyBool_FromLong() returns' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c', line=31), region=RegionOnHeap('PyBool_FromLong', gcc.Location(file='tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c', line=31))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyBool_FromLong', gcc.Location(file='tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c', line=31)) from tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c:31 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c', line=31), region=Region('PyTypeObject for PyBool_FromLong')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,647 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=33), region=RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=33))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:50: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=50)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:50 DEBUG: - r->ob_refcnt: refs: 2 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=50), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:24 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:50 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:50 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:50 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:50 DEBUG: - DEBUG: -Trace 5: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:50 DEBUG: - DEBUG: -Trace 6: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:50 DEBUG: - DEBUG: -Trace 7: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:50 DEBUG: - DEBUG: -Trace 8: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:50 DEBUG: - DEBUG: -Trace 9: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=48), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:48 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44 DEBUG: - DEBUG: -Trace 10: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=48), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:48 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44 DEBUG: - DEBUG: -Trace 11: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=48), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:48 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44 DEBUG: - DEBUG: -Trace 12: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=48), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:48 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44 DEBUG: - DEBUG: -Trace 13: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=42), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:42 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - DEBUG: -Trace 14: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=42), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:42 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - DEBUG: -Trace 15: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=35), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:35 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: s/PyList_Append/ticket-19/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyList_Append/ticket-22: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyList_Append/ticket-22/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyList_Append/ticket-22/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyList_Append/ticket-22/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyList_GetItem/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyList_GetItem/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyList_GetItem/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyList_GetItem/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyList_GetItem/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyList_GetItem/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple: FAIL DEBUG: returncode: 1 DEBUG: compilin--- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,21 +1,4 @@ DEBUG: -In function 'handle_SET_ITEM_macro': DEBUG: -cc1: warning: memory leak: ob_refcnt of PyLongObject is 1 too high DEBUG: -tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:50:nn: note: PyLongObject was allocated at: items[2] = PyLong_FromLong(3000); DEBUG: -cc1: note: was expecting final owned ob_refcnt of PyLongObject to be 1 due to object being referenced by: PyTupleObject.ob_item[2] but final ob_refcnt is refs: 2 owned DEBUG: -tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:33:nn: note: when PyTuple_New() succeeds at: tuple = PyTuple_New(3); DEBUG: -tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:34:nn: note: taking False path at: if (!tuple) { DEBUG: -tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39:nn: note: reaching: items[0] = PyLong_FromLong(1000); DEBUG: -tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:39:nn: note: when PyLong_FromLong() succeeds at: items[0] = PyLong_FromLong(1000); DEBUG: -tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:40:nn: note: taking False path at: if (!items[0]) { DEBUG: -tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44:nn: note: reaching: items[1] = PyLong_FromLong(2000); DEBUG: -tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:44:nn: note: when PyLong_FromLong() succeeds at: items[1] = PyLong_FromLong(2000); DEBUG: -tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:45:nn: note: taking False path at: if (!items[1]) { DEBUG: -tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:50:nn: note: reaching: items[2] = PyLong_FromLong(3000); DEBUG: -tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:50:nn: note: when PyLong_FromLong() succeeds at: items[2] = PyLong_FromLong(3000); DEBUG: -tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:50:nn: note: ob_refcnt is now refs: 1 owned DEBUG: -tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:51:nn: note: taking False path at: if (!items[2]) { DEBUG: -tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:64:nn: note: reaching: PyTuple_SET_ITEM(tuple, 0, items[0]); DEBUG: -tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:66:nn: note: PyLongObject is now referenced by 1 non-stack value(s): PyTupleObject.ob_item[2] DEBUG: -tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:71:nn: note: ob_refcnt is now refs: 2 owned DEBUG: -cc1: note: returning DEBUG: -tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:24:nn: note: graphical error report for function 'handle_SET_ITEM_macro' written out to 'tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c.handle_SET_ITEM_macro-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,647 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=33), region=RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=33))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:50: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=50)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:50 DEBUG: - r->ob_refcnt: refs: 2 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=50), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:24 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:50 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:50 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:50 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:50 DEBUG: - DEBUG: -Trace 5: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:50 DEBUG: - DEBUG: -Trace 6: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:50 DEBUG: - DEBUG: -Trace 7: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:50 DEBUG: - DEBUG: -Trace 8: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:50 DEBUG: - DEBUG: -Trace 9: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=48), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:48 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44 DEBUG: - DEBUG: -Trace 10: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=48), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:48 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44 DEBUG: - DEBUG: -Trace 11: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=48), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:48 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44 DEBUG: - DEBUG: -Trace 12: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=48), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:48 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44 DEBUG: - DEBUG: -Trace 13: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=42), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:42 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - DEBUG: -Trace 14: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=42), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:42 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39 DEBUG: - DEBUG: -Trace 15: DEBUG: - Transitions: DEBUG: - 'when PyList_New() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=35), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:35 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,21 +1,4 @@ DEBUG: -In function 'handle_SET_ITEM_macro': DEBUG: -cc1: warning: memory leak: ob_refcnt of PyLongObject is 1 too high DEBUG: -tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:50:nn: note: PyLongObject was allocated at: items[2] = PyLong_FromLong(3000); DEBUG: -cc1: note: was expecting final owned ob_refcnt of PyLongObject to be 1 due to object being referenced by: ob_item array for PyListObject[2] but final ob_refcnt is refs: 2 owned DEBUG: -tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:33:nn: note: when PyList_New() succeeds at: list = PyList_New(3); DEBUG: -tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:34:nn: note: taking False path at: if (!list) { DEBUG: -tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39:nn: note: reaching: items[0] = PyLong_FromLong(1000); DEBUG: -tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:39:nn: note: when PyLong_FromLong() succeeds at: items[0] = PyLong_FromLong(1000); DEBUG: -tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:40:nn: note: taking False path at: if (!items[0]) { DEBUG: -tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44:nn: note: reaching: items[1] = PyLong_FromLong(2000); DEBUG: -tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:44:nn: note: when PyLong_FromLong() succeeds at: items[1] = PyLong_FromLong(2000); DEBUG: -tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:45:nn: note: taking False path at: if (!items[1]) { DEBUG: -tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:50:nn: note: reaching: items[2] = PyLong_FromLong(3000); DEBUG: -tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:50:nn: note: when PyLong_FromLong() succeeds at: items[2] = PyLong_FromLong(3000); DEBUG: -tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:50:nn: note: ob_refcnt is now refs: 1 owned DEBUG: -tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:51:nn: note: taking False path at: if (!items[2]) { DEBUG: -tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:64:nn: note: reaching: PyList_SET_ITEM(list, 0, items[0]); DEBUG: -tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:66:nn: note: PyLongObject is now referenced by 1 non-stack value(s): ob_item array for PyListObject[2] DEBUG: -tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:71:nn: note: ob_refcnt is now refs: 2 owned DEBUG: -cc1: note: returning DEBUG: -tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:24:nn: note: graphical error report for function 'handle_SET_ITEM_macro' written out to 'tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c.handle_SET_ITEM_macro-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,21 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PySys_GetObject() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySys_GetObject/incorrect/input.c', line=29), region=RegionOnHeap('borrowed reference returned by PySys_GetObject()', gcc.Location(file='tests/cpychecker/refcounts/PySys_GetObject/incorrect/input.c', line=29))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('borrowed reference returned by PySys_GetObject()', gcc.Location(file='tests/cpychecker/refcounts/PySys_GetObject/incorrect/input.c', line=29)) from tests/cpychecker/refcounts/PySys_GetObject/incorrect/input.c:29 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySys_GetObject/incorrect/input.c', line=29), region=Region('PyTypeObject for borrowed reference returned by PySys_GetObject()')) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PySys_GetObject/incorrect/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'PySys_GetObject does not find string' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySys_GetObject/incorrect/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PySys_GetObject/incorrect/input.c:29 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PySys_GetObject/incorrect/input.c:28 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,11 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PySys_GetObject/incorrect/input.c:29:nn: warning: future use-after-free: ob_refcnt of return value is 1 too low DEBUG: -tests/cpychecker/refcounts/PySys_GetObject/incorrect/input.c:29:nn: note: return value was allocated at: return PySys_GetObject("foo"); DEBUG: -tests/cpychecker/refcounts/PySys_GetObject/incorrect/input.c:29:nn: note: was expecting final owned ob_refcnt of return value to be 1 due to object being referenced by: return value but final ob_refcnt is refs: 0 owned, 1 borrowed DEBUG: -tests/cpychecker/refcounts/PySys_GetObject/incorrect/input.c:29:nn: note: when PySys_GetObject() succeeds at: return PySys_GetObject("foo"); DEBUG: -tests/cpychecker/refcounts/PySys_GetObject/incorrect/input.c:29:nn: note: ob_refcnt is now refs: 0 owned, 1 borrowed DEBUG: -tests/cpychecker/refcounts/PySys_GetObject/incorrect/input.c:29:nn: note: returning at: return PySys_GetObject("foo"); DEBUG: -tests/cpychecker/refcounts/PySys_GetObject/incorrect/input.c:29:nn: warning: returning (PyObject*)NULL without setting an exception DEBUG: -tests/cpychecker/refcounts/PySys_GetObject/incorrect/input.c:29:nn: note: PySys_GetObject does not find string at: return PySys_GetObject("foo"); DEBUG: -tests/cpychecker/refcounts/PySys_GetObject/incorrect/input.c:29:nn: note: returning at: return PySys_GetObject("foo"); DEBUG: -tests/cpychecker/refcounts/PySys_GetObject/incorrect/input.c:28:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PySys_GetObject/incorrect/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PySys_GetObject/incorrect/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PySys_GetObject/incorrect/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,203 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when PyString_Concat() succeeds (Py_DECREF() without deallocation on *LHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=32), region=RegionOnHeap('result of PyString_Concat', gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=32))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('result of PyString_Concat', gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=32)) from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:32 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=32), region=Region('PyTypeObject for result of PyString_Concat')) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:29: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=29)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:29 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=29), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:32: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=32)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:32 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when PyString_Concat() succeeds (Py_DECREF() with deallocation on *LHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=32), region=RegionOnHeap('result of PyString_Concat', gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=32))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('result of PyString_Concat', gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=32)) from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:32 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=32), region=Region('PyTypeObject for result of PyString_Concat')) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:29: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=29)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:29 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=29), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:32: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=32)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:32 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:28 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when PyString_Concat() fails (Py_DECREF() without deallocation on *LHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=32), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:32 DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:29: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=29)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:29 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=29), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:32: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=32)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:32 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:32 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when PyString_Concat() fails (Py_DECREF() with deallocation on *LHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=32), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:32 DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:29: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=29)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:29 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=29), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:32: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=32)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:32 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:32 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() fails' DEBUG: - 'when PyString_Concat() cleans up due to NULL right-hand side (Py_DECREF() without deallocation on *LHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=32), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:32 DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:29: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=29)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:29 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=29), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:32 DEBUG: - DEBUG: -Trace 5: DEBUG: - Transitions: DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() fails' DEBUG: - 'when PyString_Concat() cleans up due to NULL right-hand side (Py_DECREF() with deallocation on *LHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=32), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:32 DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:29: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=29)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:29 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=29), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:32 DEBUG: - DEBUG: -Trace 6: DEBUG: - Transitions: DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:27 as NULL' DEBUG: - error: NullPtrArgument() DEBUG: - error: possibly calling PyString_FromString with NULL as argument 1 (msg1) at tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:32 DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:29: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=29)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:29 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=29), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:28 DEBUG: - DEBUG: -Trace 7: DEBUG: - Transitions: DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() fails' DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when PyString_Concat() does nothing due to NULL *lhs' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:29 DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:32: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=32)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:32 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:29 DEBUG: - DEBUG: -Trace 8: DEBUG: - Transitions: DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() fails' DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() fails' DEBUG: - 'when PyString_Concat() does nothing due to NULL *lhs' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:29 DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:32 DEBUG: - DEBUG: -Trace 9: DEBUG: - Transitions: DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() fails' DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:27 as NULL' DEBUG: - error: NullPtrArgument() DEBUG: - error: possibly calling PyString_FromString with NULL as argument 1 (msg1) at tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:32 DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:29 DEBUG: - DEBUG: -Trace 10: DEBUG: - Transitions: DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:27 as NULL' DEBUG: - error: NullPtrArgument() DEBUG: - error: possibly calling PyString_FromString with NULL as argument 1 (msg0) at tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:29 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:28 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,13 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:34:nn: warning: memory leak: ob_refcnt of PyStringObject is 1 too high DEBUG: -tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:32:nn: note: PyStringObject was allocated at: PyString_Concat(&result, PyString_FromString(msg1)); DEBUG: -tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:34:nn: note: was expecting final owned ob_refcnt of PyStringObject to be 0 since nothing references it but final ob_refcnt is refs: 1 owned DEBUG: -tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:29:nn: note: when treating unknown const char * from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:27 as non-NULL at: PyObject *result = PyString_FromString(msg0); DEBUG: -tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:29:nn: note: when PyString_FromString() succeeds at: PyObject *result = PyString_FromString(msg0); DEBUG: -tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:32:nn: note: when treating unknown const char * from tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:27 as non-NULL at: PyString_Concat(&result, PyString_FromString(msg1)); DEBUG: -tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:32:nn: note: when PyString_FromString() succeeds at: PyString_Concat(&result, PyString_FromString(msg1)); DEBUG: -tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:32:nn: note: ob_refcnt is now refs: 1 owned DEBUG: -tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:34:nn: note: when PyString_Concat() succeeds (Py_DECREF() without deallocation on *LHS) at: return result; DEBUG: -tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:34:nn: note: returning at: return result; DEBUG: -tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:34:nn: note: found 4 similar trace(s) to this DEBUG: -tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:28:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,41 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when Py_BuildValue() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct/input.c', line=29), region=RegionOnHeap('new ref from call to Py_BuildValue', gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct/input.c', line=29))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new ref from call to Py_BuildValue', gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct/input.c', line=29)) from tests/cpychecker/refcounts/Py_BuildValue/correct/input.c:29 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct/input.c', line=29), region=Region('PyTypeObject for new ref from call to Py_BuildValue')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/Py_BuildValue/correct/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when Py_BuildValue() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/Py_BuildValue/correct/input.c:29 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/Py_BuildValue/correct/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/Py_BuildValue/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/Py_BuildValue/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyObject_SetAttrString/ignored-lhs/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyObject_SetAttrString/ignored-lhs/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,16 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyList_Size() returns ob_size' DEBUG: - 'when PyList_Size() returns ob_size' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='Py_ssize_t', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Size/unknown-size/input.c', line=34), value=42) DEBUG: - str(): (Py_ssize_t)42 from tests/cpychecker/refcounts/PyList_Size/unknown-size/input.c:34 DEBUG: - region for gcc.ParmDecl('list') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('list')") DEBUG: - str(): region for gcc.ParmDecl('list') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyList_Size/unknown-size/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('list')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyList_Size/unknown-size/input.c:28 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyList_Size/unknown-size/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyList_Size/unknown-size/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,110 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyTuple_SetItem() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c', line=27), region=RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c', line=27))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c', line=27)) from tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c:27 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c', line=27), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c:32: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c', line=32)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c:32 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c:24 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c', line=35), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c:35 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c:27: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c', line=27)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c:27 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c', line=27), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c:32 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c:27' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c', line=35), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c:35 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c:27: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c', line=27)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c:27 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c:32 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c:29 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c:27 DEBUG: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyTuple_SetItem/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyTuple_SetItem/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyTuple_SetItem/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/re--- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyTuple_SetItem/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,111 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PySys_SetObject() succeeds' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySys_SetObject/correct/input.c', line=40), region=RegionForGlobal(gcc.VarDecl('_Py_NoneStruct'))) DEBUG: - str(): (struct PyObject *)&RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) from tests/cpychecker/refcounts/PySys_SetObject/correct/input.c:40 DEBUG: - r->ob_refcnt: refs: 1 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySys_SetObject/correct/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySys_SetObject/correct/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PySys_SetObject/correct/input.c:31: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PySys_SetObject/correct/input.c', line=31)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PySys_SetObject/correct/input.c:31 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySys_SetObject/correct/input.c', line=31), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PySys_SetObject/correct/input.c:29 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PySys_SetObject() fails' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySys_SetObject/correct/input.c', line=40), region=RegionForGlobal(gcc.VarDecl('_Py_NoneStruct'))) DEBUG: - str(): (struct PyObject *)&RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) from tests/cpychecker/refcounts/PySys_SetObject/correct/input.c:40 DEBUG: - r->ob_refcnt: refs: 1 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySys_SetObject/correct/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySys_SetObject/correct/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PySys_SetObject/correct/input.c:31: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PySys_SetObject/correct/input.c', line=31)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PySys_SetObject/correct/input.c:31 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySys_SetObject/correct/input.c', line=31), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PySys_SetObject/correct/input.c:37 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PySys_SetObject() fails' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyStringObject allocated at tests/cpychecker/refcounts/PySys_SetObject/correct/input.c:31' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySys_SetObject/correct/input.c', line=40), region=RegionForGlobal(gcc.VarDecl('_Py_NoneStruct'))) DEBUG: - str(): (struct PyObject *)&RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) from tests/cpychecker/refcounts/PySys_SetObject/correct/input.c:40 DEBUG: - r->ob_refcnt: refs: 1 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySys_SetObject/correct/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySys_SetObject/correct/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PySys_SetObject/correct/input.c:31: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PySys_SetObject/correct/input.c', line=31)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PySys_SetObject/correct/input.c:31 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PySys_SetObject/correct/input.c:37 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyString_FromString() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySys_SetObject/correct/input.c', line=33), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PySys_SetObject/correct/input.c:33 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySys_SetObject/correct/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySys_SetObject/correct/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PySys_SetObject/correct/input.c:31 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PySys_SetObject/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PySys_SetObject/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,6 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - error: NullPtrArgument() DEBUG: - error: calling PyString_Concat with NULL as argument 1 (0B) at tests/cpychecker/refcounts/PyString_Concat/null-lhs/input.c:29 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_Concat/null-lhs/input.c:28 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,4 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyString_Concat/null-lhs/input.c:29:nn: warning: calling PyString_Concat with NULL as argument 1 (0B) at tests/cpychecker/refcounts/PyString_Concat/null-lhs/input.c:29 DEBUG: -tests/cpychecker/refcounts/PyString_Concat/null-lhs/input.c:29:nn: note: PyString_Concat unconditionally dereferences its first argument DEBUG: -tests/cpychecker/refcounts/PyString_Concat/null-lhs/input.c:28:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyString_Concat/null-lhs/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyString_Concat/null-lhs/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyString_Concat/null-lhs/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,110 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when Py_BuildValue() succeeds' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c', line=34), region=RegionOnHeap('new ref from call to Py_BuildValue', gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c', line=34))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new ref from call to Py_BuildValue', gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c', line=34)) from tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c:34 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c', line=34), region=Region('PyTypeObject for new ref from call to Py_BuildValue')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c:33: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c', line=33)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c:29 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when Py_BuildValue() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c', line=34), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c:34 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c:33: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c', line=33)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c:34 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when Py_BuildValue() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c', line=34), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c:34 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c:33: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c', line=33)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c:34 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'when Py_BuildValue() fails' DEBUG: - 'taking True path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c', line=34), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c:34 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c:34 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,8 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): WithinRange(gcctype='int', loc=gcc.Location(file='tests/cpychecker/refcounts/cplusplus/this/input.cc', line=36), minvalue=-0x80000000, maxvalue=0x7fffffff) DEBUG: - str(): (int)val [-0x80000000 <= val <= 0x7fffffff] from tests/cpychecker/refcounts/cplusplus/this/input.cc:36 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/cplusplus/this/input.cc:34 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/cplusplus/this/input.cc:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/cplusplus/this/input.cc:1:48: warning: extra tokens at end of ## directive DEBUG: +/usr/include/python?.?/Python.h:nn: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,146 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'PySequence_SetItem() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c', line=29), region=RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c', line=29))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c', line=29)) from tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c:29 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c', line=29), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c:34: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c', line=34)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c:34 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c', line=34), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c:24 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'PySequence_SetItem() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c:34' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c', line=29), region=RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c', line=29))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c', line=29)) from tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c:29 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c', line=29), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c:34: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c', line=34)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c:34 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c:24 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c', line=37), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c:37 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c:29: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c', line=29)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c:29 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c', line=29), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c:34 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c:29' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c', line=37), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c:37 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c:29: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c', line=29)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c:29 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c:34 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when PyList_New() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c', line=31), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c:31 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,40 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyTuple_GetItem/correct/input.c:26 as non-NULL' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_GetItem/correct/input.c', line=32), region=RegionOnHeap('borrowed reference returned by PyTuple_GetItem()', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_GetItem/correct/input.c', line=32))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('borrowed reference returned by PyTuple_GetItem()', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_GetItem/correct/input.c', line=32)) from tests/cpychecker/refcounts/PyTuple_GetItem/correct/input.c:32 DEBUG: - r->ob_refcnt: refs: 1 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_GetItem/correct/input.c', line=32), region=Region('PyTypeObject for borrowed reference returned by PyTuple_GetItem()')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_GetItem/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_GetItem/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_GetItem/correct/input.c:30 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyTuple_GetItem/correct/input.c:26 as NULL' DEBUG: - error: NullPtrArgument() DEBUG: - error: possibly calling PyTuple_GetItem with NULL as argument 1 (some_tuple.0) at tests/cpychecker/refcounts/PyTuple_GetItem/correct/input.c:32 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_GetItem/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_GetItem/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_GetItem/correct/input.c:30 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyTuple_GetItem/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyTuple_GetItem/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,43 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:27 as non-NULL' DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:29 as non-NULL' DEBUG: - 'when PyString_Concat() cleans up due to NULL right-hand side (Py_DECREF() without deallocation on *LHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:29 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:27 as non-NULL' DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:29 as non-NULL' DEBUG: - 'when PyString_Concat() cleans up due to NULL right-hand side (Py_DECREF() with deallocation on *LHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:29 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:28 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:27 as non-NULL' DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:29 as NULL' DEBUG: - 'when PyString_Concat() does nothing due to NULL *lhs' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:29 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:28 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:27 as NULL' DEBUG: - error: NullPtrArgument() DEBUG: - error: possibly calling PyString_Concat with NULL as argument 1 (str) at tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:29 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:28 DEBUG: g/unknown/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyString_AsString/unknown/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyString_AsString/unknown/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyString_AsString/unknown/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyString_AsString/unknown/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyString_Concat/basic: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyString_Concat/basic/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyString_Concat/basic/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyString_Concat/basic/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyString_Concat/basic/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyString_Concat/basic/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyString_Concat/null-lhs: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyString_Concat/null-lhs/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyString_Concat/null-lhs/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyString_Concat/null-lhs/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyString_Concat/null-lhs/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyString_Concat/null-lhs/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyString_Concat/null-rhs: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyString_Concat/null-rhs/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyString_Concat/null-rhs/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RET--- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,8 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:32:nn: warning: returning (PyObject*)NULL without setting an exception DEBUG: -tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:29:nn: note: when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:27 as non-NULL at: PyString_Concat(str, NULL); DEBUG: -tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:29:nn: note: when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:29 as non-NULL at: PyString_Concat(str, NULL); DEBUG: -tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:32:nn: note: when PyString_Concat() cleans up due to NULL right-hand side (Py_DECREF() without deallocation on *LHS) at: return *str; DEBUG: -tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:32:nn: note: returning at: return *str; DEBUG: -tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:32:nn: note: found 2 similar trace(s) to this DEBUG: -tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:28:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,108 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when Py_BuildValue() succeeds' DEBUG: - 'taking False path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c', line=37), region=RegionOnHeap('new ref from call to Py_BuildValue', gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c', line=37))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new ref from call to Py_BuildValue', gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c', line=37)) from tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c:37 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c', line=37), region=Region('PyTypeObject for new ref from call to Py_BuildValue')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c:34: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c', line=34)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c:34 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c', line=34), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c:29 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when Py_BuildValue() fails' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c', line=37), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c:37 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c:34: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c', line=34)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c:34 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c', line=34), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c:37 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'when Py_BuildValue() fails' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c:34' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c', line=37), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c:37 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c:34: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c', line=34)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c:34 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c:37 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'when Py_BuildValue() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c', line=37), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c:37 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c:37 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,31 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyObject_Repr() succeeds' DEBUG: - 'taking True path' DEBUG: - 'PyString_AsString() returns ob_sval' DEBUG: - 'not returning from exit' DEBUG: - region for gcc.ParmDecl('obj') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('obj')") DEBUG: - str(): region for gcc.ParmDecl('obj') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/function-that-exits/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('obj')")) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/function-that-exits/input.c:33: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/function-that-exits/input.c', line=33)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/function-that-exits/input.c:33 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/function-that-exits/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/function-that-exits/input.c:29 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyObject_Repr() fails' DEBUG: - 'taking False path' DEBUG: - 'not returning from exit' DEBUG: - region for gcc.ParmDecl('obj') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('obj')") DEBUG: - str(): region for gcc.ParmDecl('obj') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/function-that-exits/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('obj')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/function-that-exits/input.c:33 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/function-that-exits/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/function-that-exits/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,111 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'PySequence_SetItem() succeeds' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c', line=29), region=RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c', line=29))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c', line=29)) from tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:29 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c', line=29), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:34: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c', line=34)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:34 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c', line=34), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:24 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c', line=37), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:37 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:29: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c', line=29)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:29 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c', line=29), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:34 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:29' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c', line=37), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:37 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:29: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c', line=29)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:29 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:34 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyList_New() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c', line=31), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:31 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,16 +1,4 @@ DEBUG: -In function 'handle_SetItem': DEBUG: -tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:50:nn: warning: memory leak: ob_refcnt of '*item' is 1 too high DEBUG: -tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:34:nn: note: '*item' was allocated at: item = PyLong_FromLong(42); DEBUG: -tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:50:nn: note: was expecting final owned ob_refcnt of '*item' to be 0 since nothing references it but final ob_refcnt is refs: 1 owned DEBUG: -tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:29:nn: note: when PyList_New() succeeds at: list = PyList_New(1); DEBUG: -tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:30:nn: note: taking False path at: if (!list) { DEBUG: -tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:34:nn: note: reaching: item = PyLong_FromLong(42); DEBUG: -tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:34:nn: note: when PyLong_FromLong() succeeds at: item = PyLong_FromLong(42); DEBUG: -tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:34:nn: note: ob_refcnt is now refs: 1 owned DEBUG: -tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:35:nn: note: taking False path at: if (!item) { DEBUG: -tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:41:nn: note: reaching: rv = PySequence_SetItem(list, 0, item); DEBUG: -tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:41:nn: note: PySequence_SetItem() succeeds at: rv = PySequence_SetItem(list, 0, item); DEBUG: -tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:42:nn: note: taking False path at: if (rv != 0) { DEBUG: -tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:50:nn: note: reaching: return list; DEBUG: -tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:50:nn: note: returning DEBUG: -tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:24:nn: note: graphical error report for function 'handle_SetItem' written out to 'tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c.handle_SetItem-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,650 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyTuple_SetItem() succeeds' DEBUG: - 'when PyTuple_SetItem() succeeds' DEBUG: - 'when PyTuple_SetItem() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=33), region=RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=33))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=33)) from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:50: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=50)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:50 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=50), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:24 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:50 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:50 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:50 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:50 DEBUG: - DEBUG: -Trace 5: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:44' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:44 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:50 DEBUG: - DEBUG: -Trace 6: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:44' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:44 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:50 DEBUG: - DEBUG: -Trace 7: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:44' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:44 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:50 DEBUG: - DEBUG: -Trace 8: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:44' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:44 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:50 DEBUG: - DEBUG: -Trace 9: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=48), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:48 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:44 DEBUG: - DEBUG: -Trace 10: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=48), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:48 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:44 DEBUG: - DEBUG: -Trace 11: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=48), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:48 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:44 DEBUG: - DEBUG: -Trace 12: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=48), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:48 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:44 DEBUG: - DEBUG: -Trace 13: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=42), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:42 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39 DEBUG: - DEBUG: -Trace 14: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=42), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:42 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:39 DEBUG: - DEBUG: -Trace 15: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=35), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:35 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:33 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,40 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c:26 as non-NULL' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c', line=32), region=RegionOnHeap('borrowed reference returned by PyTuple_GetItem()', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c', line=32))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('borrowed reference returned by PyTuple_GetItem()', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c', line=32)) from tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c:32 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c', line=32), region=Region('PyTypeObject for borrowed reference returned by PyTuple_GetItem()')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c:30 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c:26 as NULL' DEBUG: - error: NullPtrArgument() DEBUG: - error: possibly calling PyTuple_GetItem with NULL as argument 1 (some_tuple.0) at tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c:32 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c:30 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,10 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c:35:nn: warning: future use-after-free: ob_refcnt of return value is 1 too low DEBUG: -tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c:32:nn: note: return value was allocated at: item = PyTuple_GetItem(some_tuple, 3); DEBUG: -tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c:35:nn: note: was expecting final owned ob_refcnt of return value to be 1 due to object being referenced by: return value but final ob_refcnt is refs: 0 owned, 1 borrowed DEBUG: -tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c:32:nn: note: when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c:26 as non-NULL at: item = PyTuple_GetItem(some_tuple, 3); DEBUG: -tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c:32:nn: note: ob_refcnt is now refs: 0 owned, 1 borrowed DEBUG: -tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c:33:nn: note: taking True path at: if (item) { DEBUG: -tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c:35:nn: note: reaching: return item; DEBUG: -tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c:35:nn: note: returning DEBUG: -tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c:30:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,21 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when Py_BuildValue() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-s/input.c', line=29), region=RegionOnHeap('new ref from call to Py_BuildValue', gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-s/input.c', line=29))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new ref from call to Py_BuildValue', gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-s/input.c', line=29)) from tests/cpychecker/refcounts/Py_BuildValue/correct-code-s/input.c:29 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-s/input.c', line=29), region=Region('PyTypeObject for new ref from call to Py_BuildValue')) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/Py_BuildValue/correct-code-s/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when Py_BuildValue() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/Py_BuildValue/correct-code-s/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/Py_BuildValue/correct-code-s/input.c:29 DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/Py_BuildValue/correct-code-s/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/Py_BuildValue/correct-code-s/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/Py_BuildValue/correct-code-s/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: g: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyList_Size/unknown-size: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyList_Size/unknown-size/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyList_Size/unknown-size/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyList_Size/unknown-size/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyList_Size/unknown-size/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyList_Size/unknown-size/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/cplusplus/this: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/cplusplus/this/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/cplusplus/this/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/cplusplus/this/input.cc DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/cplusplus/this/input.cc:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/cplusplus/this/input.cc:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/python2.7/Python.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/function-that-exits: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/function-that-exits/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/function-that-exits/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/function-that-exits/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/function-that-exits/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/function-that-exits/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/getter: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/getter/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/getter/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/getter/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/getter/input.c:1:1: error: invalid flag "--- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,31 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when make_wrapper() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/getter/input.c', line=42), region=RegionOnHeap('new ref from (unknown) make_wrapper', gcc.Location(file='tests/cpychecker/refcounts/getter/input.c', line=42))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new ref from (unknown) make_wrapper', gcc.Location(file='tests/cpychecker/refcounts/getter/input.c', line=42)) from tests/cpychecker/refcounts/getter/input.c:42 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/getter/input.c', line=42), region=Region('PyTypeObject for new ref from (unknown) make_wrapper')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/getter/input.c', line=35), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/getter/input.c:36 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when make_wrapper() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/getter/input.c', line=42), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/getter/input.c:42 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/getter/input.c', line=35), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/getter/input.c:42 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/getter/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/getter/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,190 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:27 as non-NULL' DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 as non-NULL' DEBUG: - 'when PyString_Concat() succeeds (Py_DECREF() without deallocation on *LHS) (Py_DECREF() without deallocation on RHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=29), region=RegionOnHeap('result of PyString_Concat', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=29))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('result of PyString_Concat', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=29)) from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=29), region=Region('PyTypeObject for result of PyString_Concat')) DEBUG: - region for gcc.ParmDecl('rhs') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('rhs')") DEBUG: - str(): region for gcc.ParmDecl('rhs') on stack DEBUG: - r->ob_refcnt: refs: -1 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('rhs')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:27 as non-NULL' DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 as non-NULL' DEBUG: - 'when PyString_Concat() succeeds (Py_DECREF() without deallocation on *LHS) (Py_DECREF() with deallocation on RHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=29), region=RegionOnHeap('result of PyString_Concat', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=29))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('result of PyString_Concat', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=29)) from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=29), region=Region('PyTypeObject for result of PyString_Concat')) DEBUG: - region for gcc.ParmDecl('rhs') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('rhs')") DEBUG: - str(): region for gcc.ParmDecl('rhs') on stack DEBUG: - r->ob_refcnt: refs: -1 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('rhs')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:28 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:27 as non-NULL' DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 as non-NULL' DEBUG: - 'when PyString_Concat() succeeds (Py_DECREF() with deallocation on *LHS) (Py_DECREF() without deallocation on RHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=29), region=RegionOnHeap('result of PyString_Concat', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=29))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('result of PyString_Concat', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=29)) from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=29), region=Region('PyTypeObject for result of PyString_Concat')) DEBUG: - region for gcc.ParmDecl('rhs') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('rhs')") DEBUG: - str(): region for gcc.ParmDecl('rhs') on stack DEBUG: - r->ob_refcnt: refs: -1 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('rhs')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:28 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:27 as non-NULL' DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 as non-NULL' DEBUG: - 'when PyString_Concat() succeeds (Py_DECREF() with deallocation on *LHS) (Py_DECREF() with deallocation on RHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=29), region=RegionOnHeap('result of PyString_Concat', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=29))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('result of PyString_Concat', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=29)) from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=29), region=Region('PyTypeObject for result of PyString_Concat')) DEBUG: - region for gcc.ParmDecl('rhs') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('rhs')") DEBUG: - str(): region for gcc.ParmDecl('rhs') on stack DEBUG: - r->ob_refcnt: refs: -1 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('rhs')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:28 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:27 as non-NULL' DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 as non-NULL' DEBUG: - 'when PyString_Concat() fails (Py_DECREF() without deallocation on *LHS) (Py_DECREF() without deallocation on RHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 DEBUG: - region for gcc.ParmDecl('rhs') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('rhs')") DEBUG: - str(): region for gcc.ParmDecl('rhs') on stack DEBUG: - r->ob_refcnt: refs: -1 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('rhs')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 DEBUG: - DEBUG: -Trace 5: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:27 as non-NULL' DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 as non-NULL' DEBUG: - 'when PyString_Concat() fails (Py_DECREF() without deallocation on *LHS) (Py_DECREF() with deallocation on RHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 DEBUG: - region for gcc.ParmDecl('rhs') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('rhs')") DEBUG: - str(): region for gcc.ParmDecl('rhs') on stack DEBUG: - r->ob_refcnt: refs: -1 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('rhs')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 DEBUG: - DEBUG: -Trace 6: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:27 as non-NULL' DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 as non-NULL' DEBUG: - 'when PyString_Concat() fails (Py_DECREF() with deallocation on *LHS) (Py_DECREF() without deallocation on RHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 DEBUG: - region for gcc.ParmDecl('rhs') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('rhs')") DEBUG: - str(): region for gcc.ParmDecl('rhs') on stack DEBUG: - r->ob_refcnt: refs: -1 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('rhs')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 DEBUG: - DEBUG: -Trace 7: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:27 as non-NULL' DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 as non-NULL' DEBUG: - 'when PyString_Concat() fails (Py_DECREF() with deallocation on *LHS) (Py_DECREF() with deallocation on RHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 DEBUG: - region for gcc.ParmDecl('rhs') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('rhs')") DEBUG: - str(): region for gcc.ParmDecl('rhs') on stack DEBUG: - r->ob_refcnt: refs: -1 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('rhs')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 DEBUG: - DEBUG: -Trace 8: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:27 as non-NULL' DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 as NULL' DEBUG: - 'when PyString_Concat() does nothing due to NULL *lhs (Py_DECREF() without deallocation on RHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 DEBUG: - region for gcc.ParmDecl('rhs') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('rhs')") DEBUG: - str(): region for gcc.ParmDecl('rhs') on stack DEBUG: - r->ob_refcnt: refs: -1 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('rhs')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:28 DEBUG: - DEBUG: -Trace 9: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:27 as non-NULL' DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 as NULL' DEBUG: - 'when PyString_Concat() does nothing due to NULL *lhs (Py_DECREF() with deallocation on RHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 DEBUG: - region for gcc.ParmDecl('rhs') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('rhs')") DEBUG: - str(): region for gcc.ParmDecl('rhs') on stack DEBUG: - r->ob_refcnt: refs: -1 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('rhs')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:28 DEBUG: - DEBUG: -Trace 10: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:27 as NULL' DEBUG: - error: NullPtrArgument() DEBUG: - error: possibly calling PyString_ConcatAndDel with NULL as argument 1 (lhs) at tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 DEBUG: - region for gcc.ParmDecl('rhs') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('rhs')") DEBUG: - str(): region for gcc.ParmDecl('rhs') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('rhs')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:28 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,24 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:37:nn: warning: future use-after-free: ob_refcnt of '*rhs' is 1 too low DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:37:nn: note: was expecting final owned ob_refcnt of '*rhs' to be 0 since nothing references it but final ob_refcnt is refs: -1 owned, 1 borrowed DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29:nn: note: when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:27 as non-NULL at: PyString_ConcatAndDel(lhs, rhs); DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29:nn: note: when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 as non-NULL at: PyString_ConcatAndDel(lhs, rhs); DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:37:nn: note: when PyString_Concat() succeeds (Py_DECREF() without deallocation on *LHS) (Py_DECREF() without deallocation on RHS) at: return *lhs; DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:37:nn: note: ob_refcnt is now refs: -1 owned, 1 borrowed DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:37:nn: note: returning at: return *lhs; DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:37:nn: note: found 9 similar trace(s) to this DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:37:nn: warning: future use-after-free: ob_refcnt of return value is 1 too low DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29:nn: note: return value was allocated at: PyString_ConcatAndDel(lhs, rhs); DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:37:nn: note: was expecting final owned ob_refcnt of return value to be 2 due to object being referenced by: return value, heap-region-0 but final ob_refcnt is refs: 1 owned DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29:nn: note: when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:27 as non-NULL at: PyString_ConcatAndDel(lhs, rhs); DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29:nn: note: when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 as non-NULL at: PyString_ConcatAndDel(lhs, rhs); DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:37:nn: note: when PyString_Concat() succeeds (Py_DECREF() without deallocation on *LHS) (Py_DECREF() without deallocation on RHS) at: return *lhs; DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:37:nn: note: returning at: return *lhs; DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:37:nn: note: found 3 similar trace(s) to this DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:37:nn: warning: returning (PyObject*)NULL without setting an exception DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29:nn: note: when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:27 as non-NULL at: PyString_ConcatAndDel(lhs, rhs); DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29:nn: note: when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:29 as NULL at: PyString_ConcatAndDel(lhs, rhs); DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:37:nn: note: when PyString_Concat() does nothing due to NULL *lhs (Py_DECREF() without deallocation on RHS) at: return *lhs; DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:37:nn: note: returning at: return *lhs; DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:37:nn: note: found 1 similar trace(s) to this DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:28:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,147 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PySequence_Size() succeeds' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_Size/correct/input.c', line=36), region=RegionForGlobal(gcc.VarDecl('_Py_NoneStruct'))) DEBUG: - str(): (struct PyObject *)&RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) from tests/cpychecker/refcounts/PySequence_Size/correct/input.c:36 DEBUG: - r->ob_refcnt: refs: 1 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_Size/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_Size/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PySequence_Size/correct/input.c:28: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PySequence_Size/correct/input.c', line=28)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PySequence_Size/correct/input.c:28 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_Size/correct/input.c', line=28), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PySequence_Size/correct/input.c:24 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PySequence_Size() succeeds' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PySequence_Size/correct/input.c:28' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_Size/correct/input.c', line=36), region=RegionForGlobal(gcc.VarDecl('_Py_NoneStruct'))) DEBUG: - str(): (struct PyObject *)&RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) from tests/cpychecker/refcounts/PySequence_Size/correct/input.c:36 DEBUG: - r->ob_refcnt: refs: 1 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_Size/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_Size/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PySequence_Size/correct/input.c:28: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PySequence_Size/correct/input.c', line=28)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PySequence_Size/correct/input.c:28 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PySequence_Size/correct/input.c:24 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PySequence_Size() fails' DEBUG: - 'taking False path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_Size/correct/input.c', line=26), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PySequence_Size/correct/input.c:26 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_Size/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_Size/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PySequence_Size/correct/input.c:28: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PySequence_Size/correct/input.c', line=28)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PySequence_Size/correct/input.c:28 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_Size/correct/input.c', line=28), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_TypeError')) from tests/cpychecker/refcounts/PySequence_Size/correct/input.c:33 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PySequence_Size() fails' DEBUG: - 'taking False path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/PySequence_Size/correct/input.c:28' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_Size/correct/input.c', line=26), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PySequence_Size/correct/input.c:26 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_Size/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_Size/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/PySequence_Size/correct/input.c:28: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/PySequence_Size/correct/input.c', line=28)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/PySequence_Size/correct/input.c:28 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_TypeError')) from tests/cpychecker/refcounts/PySequence_Size/correct/input.c:33 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when PyList_New() fails' DEBUG: - 'taking True path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_Size/correct/input.c', line=26), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PySequence_Size/correct/input.c:26 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_Size/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_Size/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PySequence_Size/correct/input.c:28 DEBUG: /cpychecker/refcounts/PyObject_IsTrue/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyObject_IsTrue/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyObject_SetAttrString/ignored-lhs: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyObject_SetAttrString/ignored-lhs/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyObject_SetAttrString/ignored-lhs/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyObject_SetAttrString/ignored-lhs/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyObject_SetAttrString/ignored-lhs/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyObject_SetAttrString/ignored-lhs/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PySequence_SetItem/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PySequence_SetItem/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PySequence_SetItem/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PySequence_SetItem/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PySequence_SetItem/incorrect: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PySequence_SetItem/incorrect/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PySequence_SetItem/incorrect/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PySequence_SetItem/incorrect/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PySequence_Size/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PySequence_Size/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PySequence_Size/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PySequence_Size/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PySequence_Size/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PySequence_Size/correct/input.c:1:48: warning: extra tokens at end of ## dire--- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PySequence_Size/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PySequence_Size/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,45 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyTuple_Size() returns ob_size' DEBUG: - '__dump((Py_ssize_t)0 from tests/cpychecker/refcounts/PyTuple_New/correct/input.c:32)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_New/correct/input.c', line=32), region=RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_New/correct/input.c', line=32))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_New/correct/input.c', line=32)) from tests/cpychecker/refcounts/PyTuple_New/correct/input.c:32 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_New/correct/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_New/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_New/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_New/correct/input.c:30 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_New/correct/input.c', line=34), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_New/correct/input.c:34 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_New/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_New/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_New/correct/input.c:32 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyTuple_New/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyTuple_New/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: nput.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PySys_GetObject/incorrect: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PySys_GetObject/incorrect/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PySys_GetObject/incorrect/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PySys_GetObject/incorrect/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PySys_GetObject/incorrect/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PySys_GetObject/incorrect/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PySys_SetObject/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PySys_SetObject/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PySys_SetObject/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PySys_SetObject/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PySys_SetObject/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PySys_SetObject/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyTuple_GetItem/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyTuple_GetItem/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyTuple_GetItem/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyTuple_GetItem/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyTuple_GetItem/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyTuple_GetItem/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyTuple_GetItem/incorrect: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyTuple_GetItem/incorrect/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyTuple_New/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyTuple_New/correct/output.o -fplugin=/builddir/buy a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/Py_BuildValue/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/Py_BuildValue/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/Py_BuildValue/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/Py_BuildValue/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/Py_BuildValue/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/Py_BuildValue/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/Py_BuildValue/correct-code-N: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/Py_BuildValue/correct-code-N/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/Py_BuildValue/correct-code-O: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/Py_BuildValue/correct-code-O/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/Py_BuildValue/correct-code-s: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/Py_BuildValue/correct-code-s/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/Py_BuildValue/correct-code-s/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/Py_BuildValue/correct-code-s/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/Py_BuildValue/correct-code-s/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/Py_BuildValue/correct-code-s/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/Py_FatalError/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/Py_FatalError/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcou--- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,5 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'calling Py_FatalError() and exiting' DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/Py_FatalError/correct/input.c:28 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/Py_FatalError/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/Py_FatalError/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,44 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/correct_decref/input.c', line=30), region=RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/correct_decref/input.c', line=30))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/correct_decref/input.c', line=30)) from tests/cpychecker/refcounts/correct_decref/input.c:30 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/correct_decref/input.c', line=30), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/correct_decref/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/correct_decref/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/correct_decref/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/correct_decref/input.c', line=33), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/correct_decref/input.c:33 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/correct_decref/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/correct_decref/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/correct_decref/input.c:30 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/correct_decref/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/correct_decref/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,114 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when PyObject_GetItem() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/handle_null_error/input.c', line=38), region=RegionOnHeap('new ref from call to PyObject_GetItem', gcc.Location(file='tests/cpychecker/refcounts/handle_null_error/input.c', line=38))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new ref from call to PyObject_GetItem', gcc.Location(file='tests/cpychecker/refcounts/handle_null_error/input.c', line=38)) from tests/cpychecker/refcounts/handle_null_error/input.c:38 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/handle_null_error/input.c', line=38), region=Region('PyTypeObject for new ref from call to PyObject_GetItem')) DEBUG: - region for gcc.ParmDecl('mapping') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('mapping')") DEBUG: - str(): region for gcc.ParmDecl('mapping') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/handle_null_error/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('mapping')")) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/handle_null_error/input.c:33: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/handle_null_error/input.c', line=33)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/handle_null_error/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/handle_null_error/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/handle_null_error/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when PyObject_GetItem() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyStringObject allocated at tests/cpychecker/refcounts/handle_null_error/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/handle_null_error/input.c', line=38), region=RegionOnHeap('new ref from call to PyObject_GetItem', gcc.Location(file='tests/cpychecker/refcounts/handle_null_error/input.c', line=38))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new ref from call to PyObject_GetItem', gcc.Location(file='tests/cpychecker/refcounts/handle_null_error/input.c', line=38)) from tests/cpychecker/refcounts/handle_null_error/input.c:38 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/handle_null_error/input.c', line=38), region=Region('PyTypeObject for new ref from call to PyObject_GetItem')) DEBUG: - region for gcc.ParmDecl('mapping') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('mapping')") DEBUG: - str(): region for gcc.ParmDecl('mapping') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/handle_null_error/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('mapping')")) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/handle_null_error/input.c:33: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/handle_null_error/input.c', line=33)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/handle_null_error/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/handle_null_error/input.c:28 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when PyObject_GetItem() fails' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/handle_null_error/input.c', line=38), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/handle_null_error/input.c:38 DEBUG: - region for gcc.ParmDecl('mapping') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('mapping')") DEBUG: - str(): region for gcc.ParmDecl('mapping') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/handle_null_error/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('mapping')")) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/handle_null_error/input.c:33: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/handle_null_error/input.c', line=33)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/handle_null_error/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/handle_null_error/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/handle_null_error/input.c:38 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when PyObject_GetItem() fails' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyStringObject allocated at tests/cpychecker/refcounts/handle_null_error/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/handle_null_error/input.c', line=38), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/handle_null_error/input.c:38 DEBUG: - region for gcc.ParmDecl('mapping') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('mapping')") DEBUG: - str(): region for gcc.ParmDecl('mapping') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/handle_null_error/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('mapping')")) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/handle_null_error/input.c:33: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/handle_null_error/input.c', line=33)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/handle_null_error/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/handle_null_error/input.c:38 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when PyString_FromString() fails' DEBUG: - 'when PyObject_GetItem fails due to NULL as argument 2 at tests/cpychecker/refcounts/handle_null_error/input.c:38' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/handle_null_error/input.c', line=38), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/handle_null_error/input.c:38 DEBUG: - region for gcc.ParmDecl('mapping') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('mapping')") DEBUG: - str(): region for gcc.ParmDecl('mapping') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/handle_null_error/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('mapping')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/handle_null_error/input.c:33 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/handle_null_error/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/handle_null_error/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,322 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when PyString_Concat() succeeds (Py_DECREF() without deallocation on *LHS) (Py_DECREF() without deallocation on RHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30), region=RegionOnHeap('result of PyString_Concat', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('result of PyString_Concat', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30)) from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30), region=Region('PyTypeObject for result of PyString_Concat')) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=29)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=29), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when PyString_Concat() succeeds (Py_DECREF() without deallocation on *LHS) (Py_DECREF() with deallocation on RHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30), region=RegionOnHeap('result of PyString_Concat', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('result of PyString_Concat', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30)) from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30), region=Region('PyTypeObject for result of PyString_Concat')) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=29)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=29), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:28 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when PyString_Concat() succeeds (Py_DECREF() with deallocation on *LHS) (Py_DECREF() without deallocation on RHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30), region=RegionOnHeap('result of PyString_Concat', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('result of PyString_Concat', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30)) from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30), region=Region('PyTypeObject for result of PyString_Concat')) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=29)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=29), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:28 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when PyString_Concat() succeeds (Py_DECREF() with deallocation on *LHS) (Py_DECREF() with deallocation on RHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30), region=RegionOnHeap('result of PyString_Concat', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('result of PyString_Concat', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30)) from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30), region=Region('PyTypeObject for result of PyString_Concat')) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=29)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=29), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:28 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when PyString_Concat() fails (Py_DECREF() without deallocation on *LHS) (Py_DECREF() without deallocation on RHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=29)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=29), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - DEBUG: -Trace 5: DEBUG: - Transitions: DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when PyString_Concat() fails (Py_DECREF() without deallocation on *LHS) (Py_DECREF() with deallocation on RHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=29)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=29), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - DEBUG: -Trace 6: DEBUG: - Transitions: DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when PyString_Concat() fails (Py_DECREF() with deallocation on *LHS) (Py_DECREF() without deallocation on RHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=29)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=29), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - DEBUG: -Trace 7: DEBUG: - Transitions: DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when PyString_Concat() fails (Py_DECREF() with deallocation on *LHS) (Py_DECREF() with deallocation on RHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=29)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=29), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - DEBUG: -Trace 8: DEBUG: - Transitions: DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() fails' DEBUG: - 'when PyString_Concat() cleans up due to NULL right-hand side (Py_DECREF() without deallocation on *LHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=29)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=29), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - DEBUG: -Trace 9: DEBUG: - Transitions: DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() fails' DEBUG: - 'when PyString_Concat() cleans up due to NULL right-hand side (Py_DECREF() with deallocation on *LHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=29)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=29), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - DEBUG: -Trace 10: DEBUG: - Transitions: DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as NULL' DEBUG: - error: NullPtrArgument() DEBUG: - error: possibly calling PyString_FromString with NULL as argument 1 (msg1) at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=29)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=29), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:28 DEBUG: - DEBUG: -Trace 11: DEBUG: - Transitions: DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() fails' DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when PyString_Concat() does nothing due to NULL *lhs (Py_DECREF() without deallocation on RHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29 DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29 DEBUG: - DEBUG: -Trace 12: DEBUG: - Transitions: DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() fails' DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() succeeds' DEBUG: - 'when PyString_Concat() does nothing due to NULL *lhs (Py_DECREF() with deallocation on RHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29 DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=30), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29 DEBUG: - DEBUG: -Trace 13: DEBUG: - Transitions: DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() fails' DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() fails' DEBUG: - 'when PyString_Concat() does nothing due to NULL *lhs' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29 DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - DEBUG: -Trace 14: DEBUG: - Transitions: DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as non-NULL' DEBUG: - 'when PyString_FromString() fails' DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as NULL' DEBUG: - error: NullPtrArgument() DEBUG: - error: possibly calling PyString_FromString with NULL as argument 1 (msg1) at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:30 DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29 DEBUG: - DEBUG: -Trace 15: DEBUG: - Transitions: DEBUG: - 'when treating unknown const char * from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:27 as NULL' DEBUG: - error: NullPtrArgument() DEBUG: - error: possibly calling PyString_FromString with NULL as argument 1 (msg0) at tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:29 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:28 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,21 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PySequence_Size raises SystemError due to NULL as argument 1 at tests/cpychecker/refcounts/PySequence_Size/null/input.c:29' DEBUG: - 'taking False path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_Size/null/input.c', line=26), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PySequence_Size/null/input.c:26 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_Size/null/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PySequence_Size/null/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_SystemError')) from tests/cpychecker/refcounts/PySequence_Size/null/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PySequence_Size/null/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PySequence_Size/null/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,16 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - error: WrongArgCount() DEBUG: - error: mismatching argument count in call to PyTuple_Pack DEBUG: - region for gcc.ParmDecl('a') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('a')") DEBUG: - str(): region for gcc.ParmDecl('a') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_Pack/incorrect-arg-count/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('a')")) DEBUG: - region for gcc.ParmDecl('b') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('b')") DEBUG: - str(): region for gcc.ParmDecl('b') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_Pack/incorrect-arg-count/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('b')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_Pack/incorrect-arg-count/input.c:28 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,3 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyTuple_Pack/incorrect-arg-count/input.c:30:nn: warning: mismatching argument count in call to PyTuple_Pack DEBUG: -tests/cpychecker/refcounts/PyTuple_Pack/incorrect-arg-count/input.c:28:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyTuple_Pack/incorrect-arg-count/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyTuple_Pack/incorrect-arg-count/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyTuple_Pack/incorrect-arg-count/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,6 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'calling Py_Finalize()' DEBUG: - 'returning' DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/Py_Finalize/correct/input.c:28 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/Py_Finalize/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/Py_Finalize/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,20 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/correct_py_none/input.c', line=25), region=RegionForGlobal(gcc.VarDecl('_Py_NoneStruct'))) DEBUG: - str(): (struct PyObject *)&RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) from tests/cpychecker/refcounts/correct_py_none/input.c:25 DEBUG: - r->ob_refcnt: refs: 1 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/correct_py_none/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/correct_py_none/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/correct_py_none/input.c:24 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/correct_py_none/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/correct_py_none/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,2 +0,0 @@ DEBUG: -_Py_NoneStruct.ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: -state.return_rvalue: PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/incorrect_py_none/input.c', line=26), region=RegionForGlobal(gcc.VarDecl('_Py_NoneStruct'))) DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,6 +1,4 @@ DEBUG: -In function 'losing_refcnt_of_none': DEBUG: -tests/cpychecker/refcounts/incorrect_py_none/input.c:26:nn: warning: future use-after-free: ob_refcnt of return value is 1 too low DEBUG: -tests/cpychecker/refcounts/incorrect_py_none/input.c:26:nn: note: was expecting final owned ob_refcnt of return value to be 1 due to object being referenced by: return value but final ob_refcnt is refs: 0 owned, 1 borrowed DEBUG: -tests/cpychecker/refcounts/incorrect_py_none/input.c:26:nn: note: returning at: return Py_None; DEBUG: -tests/cpychecker/refcounts/incorrect_py_none/input.c:26:nn: note: consider using "Py_RETURN_NONE;" DEBUG: -tests/cpychecker/refcounts/incorrect_py_none/input.c:24:nn: note: graphical error report for function 'losing_refcnt_of_none' written out to 'tests/cpychecker/refcounts/incorrect_py_none/input.c.losing_refcnt_of_none-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/incorrect_py_none/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/incorrect_py_none/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,650 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyTuple_SetItem() succeeds' DEBUG: - 'when PyTuple_SetItem() succeeds' DEBUG: - 'when PyTuple_SetItem() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=33), region=RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=33))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=33)) from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:50: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=50)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:50 DEBUG: - r->ob_refcnt: refs: 2 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=50), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:24 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:50 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:50 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:50 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:50 DEBUG: - DEBUG: -Trace 5: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:50 DEBUG: - DEBUG: -Trace 6: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:50 DEBUG: - DEBUG: -Trace 7: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:50 DEBUG: - DEBUG: -Trace 8: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:50 DEBUG: - DEBUG: -Trace 9: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=48), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:48 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44 DEBUG: - DEBUG: -Trace 10: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=48), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:48 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44 DEBUG: - DEBUG: -Trace 11: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=48), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:48 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44 DEBUG: - DEBUG: -Trace 12: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=48), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:48 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44 DEBUG: - DEBUG: -Trace 13: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=42), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:42 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39 DEBUG: - DEBUG: -Trace 14: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=42), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:42 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39 DEBUG: - DEBUG: -Trace 15: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=35), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:35 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,24 +1,4 @@ DEBUG: -In function 'handle_SetItem': DEBUG: -cc1: warning: memory leak: ob_refcnt of PyLongObject is 1 too high DEBUG: -tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:50:nn: note: PyLongObject was allocated at: items[2] = PyLong_FromLong(3000); DEBUG: -cc1: note: was expecting final owned ob_refcnt of PyLongObject to be 1 due to object being referenced by: PyTupleObject.ob_item[2] but final ob_refcnt is refs: 2 owned DEBUG: -tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:33:nn: note: when PyTuple_New() succeeds at: tuple = PyTuple_New(3); DEBUG: -tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:34:nn: note: taking False path at: if (!tuple) { DEBUG: -tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39:nn: note: reaching: items[0] = PyLong_FromLong(1000); DEBUG: -tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:39:nn: note: when PyLong_FromLong() succeeds at: items[0] = PyLong_FromLong(1000); DEBUG: -tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:40:nn: note: taking False path at: if (!items[0]) { DEBUG: -tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44:nn: note: reaching: items[1] = PyLong_FromLong(2000); DEBUG: -tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:44:nn: note: when PyLong_FromLong() succeeds at: items[1] = PyLong_FromLong(2000); DEBUG: -tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:45:nn: note: taking False path at: if (!items[1]) { DEBUG: -tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:50:nn: note: reaching: items[2] = PyLong_FromLong(3000); DEBUG: -tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:50:nn: note: when PyLong_FromLong() succeeds at: items[2] = PyLong_FromLong(3000); DEBUG: -tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:50:nn: note: ob_refcnt is now refs: 1 owned DEBUG: -tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:51:nn: note: taking False path at: if (!items[2]) { DEBUG: -tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:64:nn: note: reaching: PyTuple_SetItem(tuple, 0, items[0]); DEBUG: -tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:64:nn: note: when PyTuple_SetItem() succeeds at: PyTuple_SetItem(tuple, 0, items[0]); DEBUG: -tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:65:nn: note: when PyTuple_SetItem() succeeds at: PyTuple_SetItem(tuple, 1, items[1]); DEBUG: -tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:66:nn: note: when PyTuple_SetItem() succeeds at: PyTuple_SetItem(tuple, 2, items[2]); DEBUG: -tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:66:nn: note: PyLongObject is now referenced by 1 non-stack value(s): PyTupleObject.ob_item[2] DEBUG: -tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:71:nn: note: ob_refcnt is now refs: 2 owned DEBUG: -cc1: note: returning DEBUG: -tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:24:nn: note: graphical error report for function 'handle_SetItem' written out to 'tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c.handle_SetItem-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,6 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - error: NullPtrArgument() DEBUG: - error: calling PyString_ConcatAndDel with NULL as argument 1 (0B) at tests/cpychecker/refcounts/PyString_ConcatAndDel/null-lhs/input.c:28 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/null-lhs/input.c:27 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,4 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/null-lhs/input.c:28:nn: warning: calling PyString_ConcatAndDel with NULL as argument 1 (0B) at tests/cpychecker/refcounts/PyString_ConcatAndDel/null-lhs/input.c:28 DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/null-lhs/input.c:28:nn: note: dereferences it unconditionally within PyString_Concat DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/null-lhs/input.c:27:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyString_ConcatAndDel/null-lhs/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyString_ConcatAndDel/null-lhs/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyString_ConcatAndDel/null-lhs/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,142 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyObject_Repr() succeeds' DEBUG: - 'taking False path' DEBUG: - 'PyString_AsString() returns ob_sval' DEBUG: - 'when PyString_FromFormat() succeeds' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/correct/input.c', line=36), region=RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/correct/input.c', line=36))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/correct/input.c', line=36)) from tests/cpychecker/refcounts/PyString_AsString/correct/input.c:36 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/correct/input.c', line=36), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/correct/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/correct/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_AsString/correct/input.c:31: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/correct/input.c', line=31)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_AsString/correct/input.c:31 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/correct/input.c', line=31), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_AsString/correct/input.c:27 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyObject_Repr() succeeds' DEBUG: - 'taking False path' DEBUG: - 'PyString_AsString() returns ob_sval' DEBUG: - 'when PyString_FromFormat() succeeds' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyStringObject allocated at tests/cpychecker/refcounts/PyString_AsString/correct/input.c:31' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/correct/input.c', line=36), region=RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/correct/input.c', line=36))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/correct/input.c', line=36)) from tests/cpychecker/refcounts/PyString_AsString/correct/input.c:36 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/correct/input.c', line=36), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/correct/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/correct/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_AsString/correct/input.c:31: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/correct/input.c', line=31)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_AsString/correct/input.c:31 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_AsString/correct/input.c:27 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyObject_Repr() succeeds' DEBUG: - 'taking False path' DEBUG: - 'PyString_AsString() returns ob_sval' DEBUG: - 'when PyString_FromFormat() fails' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/correct/input.c', line=36), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_AsString/correct/input.c:36 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/correct/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/correct/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_AsString/correct/input.c:31: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/correct/input.c', line=31)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_AsString/correct/input.c:31 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/correct/input.c', line=31), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_AsString/correct/input.c:36 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyObject_Repr() succeeds' DEBUG: - 'taking False path' DEBUG: - 'PyString_AsString() returns ob_sval' DEBUG: - 'when PyString_FromFormat() fails' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyStringObject allocated at tests/cpychecker/refcounts/PyString_AsString/correct/input.c:31' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/correct/input.c', line=36), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_AsString/correct/input.c:36 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/correct/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/correct/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_AsString/correct/input.c:31: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/correct/input.c', line=31)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_AsString/correct/input.c:31 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_AsString/correct/input.c:36 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when PyObject_Repr() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/correct/input.c', line=33), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_AsString/correct/input.c:33 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/correct/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/correct/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_AsString/correct/input.c:31 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyString_AsString/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyString_AsString/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,11 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'SWIG_Python_ErrorType()' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/SWIG_Python_ErrorType/correct/input.c', line=31), region=RegionForGlobal(gcc.VarDecl('PyExc_TypeError'))) DEBUG: - str(): (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_TypeError')) from tests/cpychecker/refcounts/SWIG_Python_ErrorType/correct/input.c:31 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/SWIG_Python_ErrorType/correct/input.c:30 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/SWIG_Python_ErrorType/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/SWIG_Python_ErrorType/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,109 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c', line=27), region=RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c', line=27))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c', line=27)) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c:27 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c', line=27), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c:32: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c', line=32)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c:32 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c:24 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c', line=35), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c:35 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c:27: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c', line=27)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c:27 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c', line=27), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c:32 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c:27' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c', line=35), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c:35 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c:27: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c', line=27)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c:27 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c:32 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c:29 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c:27 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: ics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyDict_Size/simple/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyDict_Size/simple/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyDict_Size/simple/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyDict_Size/simple/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyDict_Size/simple/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyErr_Clear/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyErr_Clear/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyErr_Clear/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyErr_Clear/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyErr_Clear/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyErr_Clear/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/attributes/sets-exception/incorrect-marking: OK DEBUG: tests/cpychecker/refcounts/attributes/steals-reference-to-arg/correct-marking: OK DEBUG: tests/cpychecker/refcounts/attributes/steals-reference-to-arg/correct-usage: OK DEBUG: tests/cpychecker/refcounts/attributes/steals-reference-to-arg/incorrect-marking: OK DEBUG: tests/cpychecker/refcounts/attributes/steals-reference-to-arg/incorrect-usage: OK DEBUG: tests/cpychecker/refcounts/correct_decref: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/correct_decref/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/correct_decref/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/correct_decref/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/correct_decref/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/correct_decref/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/correct_py_none: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/correct_py_none/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/correct_py_none/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/correct_py_none/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/correct_py_none/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/correct_py_none/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/cplusplus/method: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/cplusplus/method/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2--- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,64 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when considering range: -0x80000000 <= value <= -1' DEBUG: - 'taking True path' DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/cplusplus/method/input.cc', line=37), region=RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/cplusplus/method/input.cc', line=37))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/cplusplus/method/input.cc', line=37)) from tests/cpychecker/refcounts/cplusplus/method/input.cc:37 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/cplusplus/method/input.cc', line=37), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/cplusplus/method/input.cc:31 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when considering range: -0x80000000 <= value <= -1' DEBUG: - 'taking True path' DEBUG: - 'when PyDict_New() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/cplusplus/method/input.cc', line=37), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/cplusplus/method/input.cc:37 DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/cplusplus/method/input.cc:37 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when considering value == (int)0 from tests/cpychecker/refcounts/cplusplus/method/input.cc:30' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/cplusplus/method/input.cc', line=41), region=RegionForGlobal(gcc.VarDecl('_Py_NoneStruct'))) DEBUG: - str(): (struct PyObject *)&RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) from tests/cpychecker/refcounts/cplusplus/method/input.cc:41 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/cplusplus/method/input.cc:31 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when considering range: 1 <= value <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/cplusplus/method/input.cc', line=37), region=RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/cplusplus/method/input.cc', line=37))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/cplusplus/method/input.cc', line=37)) from tests/cpychecker/refcounts/cplusplus/method/input.cc:37 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/cplusplus/method/input.cc', line=37), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/cplusplus/method/input.cc:31 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when considering range: 1 <= value <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - 'when PyDict_New() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/cplusplus/method/input.cc', line=37), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/cplusplus/method/input.cc:37 DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/cplusplus/method/input.cc:37 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,10 +1,4 @@ DEBUG: -tests/cpychecker/refcounts/cplusplus/method/input.cc: In member function 'PyObject* Foo::test(int)': DEBUG: -tests/cpychecker/refcounts/cplusplus/method/input.cc:41:16: warning: future use-after-free: ob_refcnt of return value is 1 too low DEBUG: -tests/cpychecker/refcounts/cplusplus/method/input.cc:41:16: note: was expecting final owned ob_refcnt of return value to be 1 due to object being referenced by: return value but final ob_refcnt is refs: 0 owned, 1 borrowed DEBUG: -tests/cpychecker/refcounts/cplusplus/method/input.cc:32:5: note: when considering value == (int)0 from tests/cpychecker/refcounts/cplusplus/method/input.cc:30 at: if (i) { DEBUG: -tests/cpychecker/refcounts/cplusplus/method/input.cc:32:5: note: taking False path at: if (i) { DEBUG: -tests/cpychecker/refcounts/cplusplus/method/input.cc:41:16: note: reaching: return Py_None; DEBUG: -tests/cpychecker/refcounts/cplusplus/method/input.cc:32:5: note: ob_refcnt is now refs: 0 owned, 1 borrowed DEBUG: -tests/cpychecker/refcounts/cplusplus/method/input.cc:41:16: note: returning DEBUG: -tests/cpychecker/refcounts/cplusplus/method/input.cc:41:16: note: consider using "Py_RETURN_NONE;" DEBUG: -tests/cpychecker/refcounts/cplusplus/method/input.cc:31:1: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/cplusplus/method/input.cc.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/cplusplus/method/input.cc:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/cplusplus/method/input.cc:1:48: warning: extra tokens at end of ## directive DEBUG: +/usr/include/python?.?/Python.h:nn: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,79 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'PyList_SetItem() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/missing_decref/input.c', line=27), region=RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/missing_decref/input.c', line=27))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/missing_decref/input.c', line=27)) from tests/cpychecker/refcounts/missing_decref/input.c:27 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/missing_decref/input.c', line=27), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/missing_decref/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/missing_decref/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/missing_decref/input.c:30: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/missing_decref/input.c', line=30)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/missing_decref/input.c:30 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/missing_decref/input.c', line=30), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/missing_decref/input.c:24 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/missing_decref/input.c', line=34), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/missing_decref/input.c:34 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/missing_decref/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/missing_decref/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/missing_decref/input.c:27: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/missing_decref/input.c', line=27)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/missing_decref/input.c:27 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/missing_decref/input.c', line=27), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/missing_decref/input.c:30 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyList_New() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/missing_decref/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/missing_decref/input.c:29 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/missing_decref/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/missing_decref/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/missing_decref/input.c:27 DEBUG: tests/cpychecker/refcounts/PyObject_GetAttrString/incorrect/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyObject_GetItem/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyObject_GetItem/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyObject_GetItem/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyObject_GetItem/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyObject_GetItem/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyObject_GetItem/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyObject_GetItem/incorrect: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyObject_GetItem/incorrect/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyObject_GetItem/incorrect/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyObject_GetItem/incorrect/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyObject_GetItem/incorrect/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyObject_GetItem/incorrect/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/__builtin_expect: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/__builtin_expect/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/__builtin_expect/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/__builtin_expect/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/__builtin_expect/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/__builtin_expect/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/attributes/returns-borrowed-ref/correct-marking: OK DEBUG: tests/cpychecker/refcounts/attributes/returns-borrowed-ref/correct-usage: OK DEBUG: tests/cpychecker/refcounts/attributes/returns-borrowed-ref/incorrect-marking: OK DEBUG: tests/cpychecker/refcounts/attributes/returns-borrowed-ref/incorrect-usage: OK DEBUG: tests/cpychecker/refcounts/attributes/sets-exception-on-nonzero-return/correct-marking: OK DEBUG: tests/cpychecker/refcounts/attributes/sets-exception-on-nonzero-return/correct-usage: OK DEBUG: tests/cpychecker/refcounts/attributes/sets-exception-on-nonzero-return/incorrect-marking: OK DEBUG: tests/cpychecker/refcounts/attributes/sets-exception/correct-marking: OK DEBUG: tests/cpychecker/refcounts/attributes/sets-exception/correct-usage: OK DEBUG: tests/cpychecker/refcounts/missing_decref: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/missing_decref/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/missing_decref/script.py -fsigned-char -I/usr/i--- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,13 +1,4 @@ DEBUG: -In function 'missing_decref': DEBUG: -tests/cpychecker/refcounts/missing_decref/input.c:34:nn: warning: memory leak: ob_refcnt of '*list' is 1 too high DEBUG: -tests/cpychecker/refcounts/missing_decref/input.c:27:nn: note: '*list' was allocated at: list = PyList_New(1); DEBUG: -tests/cpychecker/refcounts/missing_decref/input.c:34:nn: note: was expecting final owned ob_refcnt of '*list' to be 0 since nothing references it but final ob_refcnt is refs: 1 owned DEBUG: -tests/cpychecker/refcounts/missing_decref/input.c:27:nn: note: when PyList_New() succeeds at: list = PyList_New(1); DEBUG: -tests/cpychecker/refcounts/missing_decref/input.c:27:nn: note: ob_refcnt is now refs: 1 owned DEBUG: -tests/cpychecker/refcounts/missing_decref/input.c:28:nn: note: taking False path at: if (!list) DEBUG: -tests/cpychecker/refcounts/missing_decref/input.c:30:nn: note: reaching: item = PyLong_FromLong(42); DEBUG: -tests/cpychecker/refcounts/missing_decref/input.c:30:nn: note: when PyLong_FromLong() fails at: item = PyLong_FromLong(42); DEBUG: -tests/cpychecker/refcounts/missing_decref/input.c:33:nn: note: taking True path at: if (!item) DEBUG: -tests/cpychecker/refcounts/missing_decref/input.c:34:nn: note: reaching: return NULL; DEBUG: -tests/cpychecker/refcounts/missing_decref/input.c:34:nn: note: returning DEBUG: -tests/cpychecker/refcounts/missing_decref/input.c:24:nn: note: graphical error report for function 'missing_decref' written out to 'tests/cpychecker/refcounts/missing_decref/input.c.missing_decref-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/missing_decref/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/missing_decref/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,43 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:27 as non-NULL' DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:29 as non-NULL' DEBUG: - 'when PyString_Concat() cleans up due to NULL right-hand side (Py_DECREF() without deallocation on *LHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:29 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:27 as non-NULL' DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:29 as non-NULL' DEBUG: - 'when PyString_Concat() cleans up due to NULL right-hand side (Py_DECREF() with deallocation on *LHS)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:29 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:28 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:27 as non-NULL' DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:29 as NULL' DEBUG: - 'when PyString_Concat() does nothing due to NULL *lhs' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:29 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:28 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:27 as NULL' DEBUG: - error: NullPtrArgument() DEBUG: - error: possibly calling PyString_ConcatAndDel with NULL as argument 1 (str) at tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:29 DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:28 DEBUG: URNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyString_Concat/null-rhs/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyString_ConcatAndDel/basic: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyString_ConcatAndDel/basic/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyString_ConcatAndDel/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyString_ConcatAndDel/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyString_ConcatAndDel/null-lhs: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyString_ConcatAndDel/null-lhs/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyString_ConcatAndDel/null-lhs/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyString_ConcatAndDel/null-lhs/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyString_ConcatAndDel/null-lhs/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyString_ConcatAndDel/null-lhs/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem--- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,8 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:32:nn: warning: returning (PyObject*)NULL without setting an exception DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:29:nn: note: when treating unknown struct PyObject * * from tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:27 as non-NULL at: PyString_ConcatAndDel(str, NULL); DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:29:nn: note: when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:29 as non-NULL at: PyString_ConcatAndDel(str, NULL); DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:32:nn: note: when PyString_Concat() cleans up due to NULL right-hand side (Py_DECREF() without deallocation on *LHS) at: return *str; DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:32:nn: note: returning at: return *str; DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:32:nn: note: found 2 similar trace(s) to this DEBUG: -tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:28:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,63 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'when PyTuple_Size() returns ob_size' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c', line=30), region=RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c', line=30))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c', line=30)) from tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c:30 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c', line=30), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'when PyTuple_Size() fails (not a tuple)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c', line=30), region=RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c', line=30))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c', line=30)) from tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c:30 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c', line=30), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_SystemError')) from tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c:37 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() fails' DEBUG: - error: NullPtrArgument() DEBUG: - error: calling PyTuple_Size with NULL as argument 1 (dict) at tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c:37 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c:30 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,5 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c:37:nn: warning: calling PyTuple_Size with NULL as argument 1 (dict) at tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c:37 DEBUG: -tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c:30:nn: note: when PyDict_New() fails at: dict = PyDict_New(); DEBUG: -tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c:37:nn: note: PyTuple_Size() invokes Py_TYPE() on the pointer via the PyTuple_Check() macro, thus accessing (NULL)->ob_type DEBUG: -tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c:28:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,43 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when _PyObject_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct FooObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/_PyObject_New/correct/input.c', line=40), region=RegionOnHeap('_PyObject_New', gcc.Location(file='tests/cpychecker/refcounts/_PyObject_New/correct/input.c', line=40))) DEBUG: - str(): (struct FooObject *)&RegionOnHeap('_PyObject_New', gcc.Location(file='tests/cpychecker/refcounts/_PyObject_New/correct/input.c', line=40)) from tests/cpychecker/refcounts/_PyObject_New/correct/input.c:40 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/_PyObject_New/correct/input.c', line=40), region=RegionForGlobal(gcc.VarDecl('FooType'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/_PyObject_New/correct/input.c', line=36), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/_PyObject_New/correct/input.c', line=36), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/_PyObject_New/correct/input.c:37 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when _PyObject_New() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/_PyObject_New/correct/input.c', line=42), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/_PyObject_New/correct/input.c:42 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/_PyObject_New/correct/input.c', line=36), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/_PyObject_New/correct/input.c', line=36), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/_PyObject_New/correct/input.c:40 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/_PyObject_New/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/_PyObject_New/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,5 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'returning' DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/cplusplus/reference/input.cc:26 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/cplusplus/reference/input.cc:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/cplusplus/reference/input.cc:1:48: warning: extra tokens at end of ## directive DEBUG: +/usr/include/python?.?/Python.h:nn: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,135 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyObject_Repr() succeeds' DEBUG: - 'PyString_AsString() returns ob_sval' DEBUG: - 'when PyString_FromFormat() succeeds' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c', line=38), region=RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c', line=38))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c', line=38)) from tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:38 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c', line=38), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:31: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c', line=31)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:31 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c', line=31), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:27 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyObject_Repr() succeeds' DEBUG: - 'PyString_AsString() returns ob_sval' DEBUG: - 'when PyString_FromFormat() succeeds' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyStringObject allocated at tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:31' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c', line=38), region=RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c', line=38))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c', line=38)) from tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:38 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c', line=38), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:31: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c', line=31)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:31 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:27 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyObject_Repr() succeeds' DEBUG: - 'PyString_AsString() returns ob_sval' DEBUG: - 'when PyString_FromFormat() fails' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c', line=38), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:38 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:31: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c', line=31)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:31 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c', line=31), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:38 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyObject_Repr() succeeds' DEBUG: - 'PyString_AsString() returns ob_sval' DEBUG: - 'when PyString_FromFormat() fails' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyStringObject allocated at tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:31' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c', line=38), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:38 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyStringObject allocated at tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:31: DEBUG: - repr(): RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c', line=31)) DEBUG: - str(): PyStringObject allocated at tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:31 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:38 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when PyObject_Repr() fails' DEBUG: - error: NullPtrArgument() DEBUG: - error: calling PyString_AsString with NULL as argument 1 (repr_args) at tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:38 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:31 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,5 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:38:nn: warning: calling PyString_AsString with NULL as argument 1 (repr_args) at tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:38 DEBUG: -tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:31:nn: note: when PyObject_Repr() fails at: repr_args = PyObject_Repr(args); DEBUG: -tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:38:nn: note: PyString_AsString() invokes Py_TYPE() on the pointer via the PyString_Check() macro, thus accessing (NULL)->ob_type DEBUG: -tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:27:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,215 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyArg_ParseTuple() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: -0x80000000 <= count.1 <= 0' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=38), region=RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=38))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=38)) from tests/cpychecker/refcounts/loop_n_times/input.c:38 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=38), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/loop_n_times/input.c:42: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=42)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/loop_n_times/input.c:42 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=42), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/loop_n_times/input.c:29 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyArg_ParseTuple() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: -0x80000000 <= count.1 <= 0' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/loop_n_times/input.c:42' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=38), region=RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=38))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=38)) from tests/cpychecker/refcounts/loop_n_times/input.c:38 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=38), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/loop_n_times/input.c:42: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=42)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/loop_n_times/input.c:42 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/loop_n_times/input.c:29 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyArg_ParseTuple() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 1 <= count.1 <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - 'PyList_SetItem() succeeds' DEBUG: - 'when considering count.1 == (int)1 from tests/cpychecker/refcounts/loop_n_times/input.c:34' DEBUG: - 'taking False path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=38), region=RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=38))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=38)) from tests/cpychecker/refcounts/loop_n_times/input.c:38 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=38), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/loop_n_times/input.c:42: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=42)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/loop_n_times/input.c:42 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=42), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/loop_n_times/input.c:29 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyArg_ParseTuple() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=45), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/loop_n_times/input.c:45 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/loop_n_times/input.c:38: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=38)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/loop_n_times/input.c:38 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=38), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/loop_n_times/input.c:42 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when PyArg_ParseTuple() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/loop_n_times/input.c:38' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=45), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/loop_n_times/input.c:45 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/loop_n_times/input.c:38: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=38)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/loop_n_times/input.c:38 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/loop_n_times/input.c:42 DEBUG: - DEBUG: -Trace 5: DEBUG: - Transitions: DEBUG: - 'when PyArg_ParseTuple() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_New() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=40), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/loop_n_times/input.c:40 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/loop_n_times/input.c:38 DEBUG: - DEBUG: -Trace 6: DEBUG: - Transitions: DEBUG: - 'when PyArg_ParseTuple() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=35), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/loop_n_times/input.c:35 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loop_n_times/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_TypeError')) from tests/cpychecker/refcounts/loop_n_times/input.c:34 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/loop_n_times/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/loop_n_times/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,41 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyString_FromStringAndSize() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_FromStringAndSize/correct/input.c', line=29), region=RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_FromStringAndSize/correct/input.c', line=29))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyString_FromStringAndSize/correct/input.c', line=29)) from tests/cpychecker/refcounts/PyString_FromStringAndSize/correct/input.c:29 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_FromStringAndSize/correct/input.c', line=29), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_FromStringAndSize/correct/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_FromStringAndSize/correct/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_FromStringAndSize/correct/input.c:27 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyString_FromStringAndSize() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_FromStringAndSize/correct/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyString_FromStringAndSize/correct/input.c:29 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_FromStringAndSize/correct/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyString_FromStringAndSize/correct/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyString_FromStringAndSize/correct/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyString_FromStringAndSize/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyString_FromStringAndSize/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,29 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyTuple_Size() returns ob_size' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): WithinRange(gcctype='Py_ssize_t', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_Size/ticket-24/input.c', line=29), minvalue=-0x8000000000000000, maxvalue=0x7fffffffffffffff) DEBUG: - str(): (Py_ssize_t)val [-0x8000000000000000 <= val <= 0x7fffffffffffffff] from tests/cpychecker/refcounts/PyTuple_Size/ticket-24/input.c:29 DEBUG: - region for gcc.ParmDecl('obj') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('obj')") DEBUG: - str(): region for gcc.ParmDecl('obj') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_Size/ticket-24/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('obj')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_Size/ticket-24/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyTuple_Size() fails (not a tuple)' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='Py_ssize_t', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_Size/ticket-24/input.c', line=29), value=-1) DEBUG: - str(): (Py_ssize_t)-1 from tests/cpychecker/refcounts/PyTuple_Size/ticket-24/input.c:29 DEBUG: - region for gcc.ParmDecl('obj') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('obj')") DEBUG: - str(): region for gcc.ParmDecl('obj') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_Size/ticket-24/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('obj')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_SystemError')) from tests/cpychecker/refcounts/PyTuple_Size/ticket-24/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyTuple_Size/ticket-24/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyTuple_Size/ticket-24/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,485 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when Py_InitModule4_64() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddObject() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddIntConstant() succeeds' DEBUG: - 'when PyModule_AddStringConstant() succeeds' DEBUG: - 'when PyModule_AddIntConstant() succeeds' DEBUG: - 'when PyModule_AddStringConstant() succeeds' DEBUG: - 'returning' DEBUG: - borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50: DEBUG: - repr(): RegionOnHeap('borrowed reference returned by Py_InitModule4_64()', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50)) DEBUG: - str(): borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50), region=Region('PyTypeObject for borrowed reference returned by Py_InitModule4_64()')) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/module_handling/input.c:44 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when Py_InitModule4_64() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddObject() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddIntConstant() succeeds' DEBUG: - 'when PyModule_AddStringConstant() succeeds' DEBUG: - 'when PyModule_AddIntConstant() succeeds' DEBUG: - 'when PyModule_AddStringConstant() fails' DEBUG: - 'returning' DEBUG: - borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50: DEBUG: - repr(): RegionOnHeap('borrowed reference returned by Py_InitModule4_64()', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50)) DEBUG: - str(): borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50), region=Region('PyTypeObject for borrowed reference returned by Py_InitModule4_64()')) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/module_handling/input.c:72 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when Py_InitModule4_64() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddObject() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddIntConstant() succeeds' DEBUG: - 'when PyModule_AddStringConstant() succeeds' DEBUG: - 'when PyModule_AddIntConstant() fails' DEBUG: - 'when PyModule_AddStringConstant() succeeds' DEBUG: - 'returning' DEBUG: - borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50: DEBUG: - repr(): RegionOnHeap('borrowed reference returned by Py_InitModule4_64()', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50)) DEBUG: - str(): borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50), region=Region('PyTypeObject for borrowed reference returned by Py_InitModule4_64()')) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/module_handling/input.c:71 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when Py_InitModule4_64() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddObject() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddIntConstant() succeeds' DEBUG: - 'when PyModule_AddStringConstant() succeeds' DEBUG: - 'when PyModule_AddIntConstant() fails' DEBUG: - 'when PyModule_AddStringConstant() fails' DEBUG: - 'returning' DEBUG: - borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50: DEBUG: - repr(): RegionOnHeap('borrowed reference returned by Py_InitModule4_64()', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50)) DEBUG: - str(): borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50), region=Region('PyTypeObject for borrowed reference returned by Py_InitModule4_64()')) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/module_handling/input.c:72 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when Py_InitModule4_64() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddObject() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddIntConstant() succeeds' DEBUG: - 'when PyModule_AddStringConstant() fails' DEBUG: - 'when PyModule_AddIntConstant() succeeds' DEBUG: - 'when PyModule_AddStringConstant() succeeds' DEBUG: - 'returning' DEBUG: - borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50: DEBUG: - repr(): RegionOnHeap('borrowed reference returned by Py_InitModule4_64()', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50)) DEBUG: - str(): borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50), region=Region('PyTypeObject for borrowed reference returned by Py_InitModule4_64()')) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/module_handling/input.c:70 DEBUG: - DEBUG: -Trace 5: DEBUG: - Transitions: DEBUG: - 'when Py_InitModule4_64() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddObject() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddIntConstant() succeeds' DEBUG: - 'when PyModule_AddStringConstant() fails' DEBUG: - 'when PyModule_AddIntConstant() succeeds' DEBUG: - 'when PyModule_AddStringConstant() fails' DEBUG: - 'returning' DEBUG: - borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50: DEBUG: - repr(): RegionOnHeap('borrowed reference returned by Py_InitModule4_64()', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50)) DEBUG: - str(): borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50), region=Region('PyTypeObject for borrowed reference returned by Py_InitModule4_64()')) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/module_handling/input.c:72 DEBUG: - DEBUG: -Trace 6: DEBUG: - Transitions: DEBUG: - 'when Py_InitModule4_64() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddObject() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddIntConstant() succeeds' DEBUG: - 'when PyModule_AddStringConstant() fails' DEBUG: - 'when PyModule_AddIntConstant() fails' DEBUG: - 'when PyModule_AddStringConstant() succeeds' DEBUG: - 'returning' DEBUG: - borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50: DEBUG: - repr(): RegionOnHeap('borrowed reference returned by Py_InitModule4_64()', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50)) DEBUG: - str(): borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50), region=Region('PyTypeObject for borrowed reference returned by Py_InitModule4_64()')) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/module_handling/input.c:71 DEBUG: - DEBUG: -Trace 7: DEBUG: - Transitions: DEBUG: - 'when Py_InitModule4_64() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddObject() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddIntConstant() succeeds' DEBUG: - 'when PyModule_AddStringConstant() fails' DEBUG: - 'when PyModule_AddIntConstant() fails' DEBUG: - 'when PyModule_AddStringConstant() fails' DEBUG: - 'returning' DEBUG: - borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50: DEBUG: - repr(): RegionOnHeap('borrowed reference returned by Py_InitModule4_64()', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50)) DEBUG: - str(): borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50), region=Region('PyTypeObject for borrowed reference returned by Py_InitModule4_64()')) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/module_handling/input.c:72 DEBUG: - DEBUG: -Trace 8: DEBUG: - Transitions: DEBUG: - 'when Py_InitModule4_64() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddObject() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddIntConstant() fails' DEBUG: - 'when PyModule_AddStringConstant() succeeds' DEBUG: - 'when PyModule_AddIntConstant() succeeds' DEBUG: - 'when PyModule_AddStringConstant() succeeds' DEBUG: - 'returning' DEBUG: - borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50: DEBUG: - repr(): RegionOnHeap('borrowed reference returned by Py_InitModule4_64()', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50)) DEBUG: - str(): borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50), region=Region('PyTypeObject for borrowed reference returned by Py_InitModule4_64()')) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/module_handling/input.c:69 DEBUG: - DEBUG: -Trace 9: DEBUG: - Transitions: DEBUG: - 'when Py_InitModule4_64() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddObject() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddIntConstant() fails' DEBUG: - 'when PyModule_AddStringConstant() succeeds' DEBUG: - 'when PyModule_AddIntConstant() succeeds' DEBUG: - 'when PyModule_AddStringConstant() fails' DEBUG: - 'returning' DEBUG: - borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50: DEBUG: - repr(): RegionOnHeap('borrowed reference returned by Py_InitModule4_64()', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50)) DEBUG: - str(): borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50), region=Region('PyTypeObject for borrowed reference returned by Py_InitModule4_64()')) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/module_handling/input.c:72 DEBUG: - DEBUG: -Trace 10: DEBUG: - Transitions: DEBUG: - 'when Py_InitModule4_64() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddObject() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddIntConstant() fails' DEBUG: - 'when PyModule_AddStringConstant() succeeds' DEBUG: - 'when PyModule_AddIntConstant() fails' DEBUG: - 'when PyModule_AddStringConstant() succeeds' DEBUG: - 'returning' DEBUG: - borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50: DEBUG: - repr(): RegionOnHeap('borrowed reference returned by Py_InitModule4_64()', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50)) DEBUG: - str(): borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50), region=Region('PyTypeObject for borrowed reference returned by Py_InitModule4_64()')) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/module_handling/input.c:71 DEBUG: - DEBUG: -Trace 11: DEBUG: - Transitions: DEBUG: - 'when Py_InitModule4_64() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddObject() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddIntConstant() fails' DEBUG: - 'when PyModule_AddStringConstant() succeeds' DEBUG: - 'when PyModule_AddIntConstant() fails' DEBUG: - 'when PyModule_AddStringConstant() fails' DEBUG: - 'returning' DEBUG: - borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50: DEBUG: - repr(): RegionOnHeap('borrowed reference returned by Py_InitModule4_64()', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50)) DEBUG: - str(): borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50), region=Region('PyTypeObject for borrowed reference returned by Py_InitModule4_64()')) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/module_handling/input.c:72 DEBUG: - DEBUG: -Trace 12: DEBUG: - Transitions: DEBUG: - 'when Py_InitModule4_64() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddObject() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddIntConstant() fails' DEBUG: - 'when PyModule_AddStringConstant() fails' DEBUG: - 'when PyModule_AddIntConstant() succeeds' DEBUG: - 'when PyModule_AddStringConstant() succeeds' DEBUG: - 'returning' DEBUG: - borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50: DEBUG: - repr(): RegionOnHeap('borrowed reference returned by Py_InitModule4_64()', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50)) DEBUG: - str(): borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50), region=Region('PyTypeObject for borrowed reference returned by Py_InitModule4_64()')) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/module_handling/input.c:70 DEBUG: - DEBUG: -Trace 13: DEBUG: - Transitions: DEBUG: - 'when Py_InitModule4_64() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddObject() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddIntConstant() fails' DEBUG: - 'when PyModule_AddStringConstant() fails' DEBUG: - 'when PyModule_AddIntConstant() succeeds' DEBUG: - 'when PyModule_AddStringConstant() fails' DEBUG: - 'returning' DEBUG: - borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50: DEBUG: - repr(): RegionOnHeap('borrowed reference returned by Py_InitModule4_64()', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50)) DEBUG: - str(): borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50), region=Region('PyTypeObject for borrowed reference returned by Py_InitModule4_64()')) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/module_handling/input.c:72 DEBUG: - DEBUG: -Trace 14: DEBUG: - Transitions: DEBUG: - 'when Py_InitModule4_64() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddObject() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddIntConstant() fails' DEBUG: - 'when PyModule_AddStringConstant() fails' DEBUG: - 'when PyModule_AddIntConstant() fails' DEBUG: - 'when PyModule_AddStringConstant() succeeds' DEBUG: - 'returning' DEBUG: - borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50: DEBUG: - repr(): RegionOnHeap('borrowed reference returned by Py_InitModule4_64()', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50)) DEBUG: - str(): borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50), region=Region('PyTypeObject for borrowed reference returned by Py_InitModule4_64()')) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/module_handling/input.c:71 DEBUG: - DEBUG: -Trace 15: DEBUG: - Transitions: DEBUG: - 'when Py_InitModule4_64() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddObject() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddIntConstant() fails' DEBUG: - 'when PyModule_AddStringConstant() fails' DEBUG: - 'when PyModule_AddIntConstant() fails' DEBUG: - 'when PyModule_AddStringConstant() fails' DEBUG: - 'returning' DEBUG: - borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50: DEBUG: - repr(): RegionOnHeap('borrowed reference returned by Py_InitModule4_64()', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50)) DEBUG: - str(): borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50), region=Region('PyTypeObject for borrowed reference returned by Py_InitModule4_64()')) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/module_handling/input.c:72 DEBUG: - DEBUG: -Trace 16: DEBUG: - Transitions: DEBUG: - 'when Py_InitModule4_64() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddObject() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50: DEBUG: - repr(): RegionOnHeap('borrowed reference returned by Py_InitModule4_64()', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50)) DEBUG: - str(): borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50), region=Region('PyTypeObject for borrowed reference returned by Py_InitModule4_64()')) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/module_handling/input.c:64 DEBUG: - DEBUG: -Trace 17: DEBUG: - Transitions: DEBUG: - 'when Py_InitModule4_64() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyModule_AddObject() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58' DEBUG: - 'returning' DEBUG: - borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50: DEBUG: - repr(): RegionOnHeap('borrowed reference returned by Py_InitModule4_64()', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50)) DEBUG: - str(): borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50), region=Region('PyTypeObject for borrowed reference returned by Py_InitModule4_64()')) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=58)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/module_handling/input.c:58 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/module_handling/input.c:64 DEBUG: - DEBUG: -Trace 18: DEBUG: - Transitions: DEBUG: - 'when Py_InitModule4_64() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_New() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50: DEBUG: - repr(): RegionOnHeap('borrowed reference returned by Py_InitModule4_64()', gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50)) DEBUG: - str(): borrowed reference returned by Py_InitModule4_64() allocated at tests/cpychecker/refcounts/module_handling/input.c:50 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/module_handling/input.c', line=50), region=Region('PyTypeObject for borrowed reference returned by Py_InitModule4_64()')) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/module_handling/input.c:58 DEBUG: - DEBUG: -Trace 19: DEBUG: - Transitions: DEBUG: - 'when Py_InitModule4_64() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/module_handling/input.c:50 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/module_handling/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/module_handling/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,64 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when considering range: -0x80000000 <= value <= -1' DEBUG: - 'taking True path' DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/cplusplus/simple/input.cc', line=32), region=RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/cplusplus/simple/input.cc', line=32))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/cplusplus/simple/input.cc', line=32)) from tests/cpychecker/refcounts/cplusplus/simple/input.cc:32 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/cplusplus/simple/input.cc', line=32), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/cplusplus/simple/input.cc:26 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when considering range: -0x80000000 <= value <= -1' DEBUG: - 'taking True path' DEBUG: - 'when PyDict_New() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/cplusplus/simple/input.cc', line=32), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/cplusplus/simple/input.cc:32 DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/cplusplus/simple/input.cc:32 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when considering value == (int)0 from tests/cpychecker/refcounts/cplusplus/simple/input.cc:25' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/cplusplus/simple/input.cc', line=36), region=RegionForGlobal(gcc.VarDecl('_Py_NoneStruct'))) DEBUG: - str(): (struct PyObject *)&RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) from tests/cpychecker/refcounts/cplusplus/simple/input.cc:36 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/cplusplus/simple/input.cc:26 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when considering range: 1 <= value <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/cplusplus/simple/input.cc', line=32), region=RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/cplusplus/simple/input.cc', line=32))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/cplusplus/simple/input.cc', line=32)) from tests/cpychecker/refcounts/cplusplus/simple/input.cc:32 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/cplusplus/simple/input.cc', line=32), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/cplusplus/simple/input.cc:26 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when considering range: 1 <= value <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - 'when PyDict_New() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/cplusplus/simple/input.cc', line=32), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/cplusplus/simple/input.cc:32 DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/cplusplus/simple/input.cc:32 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,10 +1,4 @@ DEBUG: -In function 'PyObject* test(int)': DEBUG: -tests/cpychecker/refcounts/cplusplus/simple/input.cc:36:16: warning: future use-after-free: ob_refcnt of return value is 1 too low DEBUG: -tests/cpychecker/refcounts/cplusplus/simple/input.cc:36:16: note: was expecting final owned ob_refcnt of return value to be 1 due to object being referenced by: return value but final ob_refcnt is refs: 0 owned, 1 borrowed DEBUG: -tests/cpychecker/refcounts/cplusplus/simple/input.cc:27:5: note: when considering value == (int)0 from tests/cpychecker/refcounts/cplusplus/simple/input.cc:25 at: if (i) { DEBUG: -tests/cpychecker/refcounts/cplusplus/simple/input.cc:27:5: note: taking False path at: if (i) { DEBUG: -tests/cpychecker/refcounts/cplusplus/simple/input.cc:36:16: note: reaching: return Py_None; DEBUG: -tests/cpychecker/refcounts/cplusplus/simple/input.cc:27:5: note: ob_refcnt is now refs: 0 owned, 1 borrowed DEBUG: -tests/cpychecker/refcounts/cplusplus/simple/input.cc:36:16: note: returning DEBUG: -tests/cpychecker/refcounts/cplusplus/simple/input.cc:36:16: note: consider using "Py_RETURN_NONE;" DEBUG: -tests/cpychecker/refcounts/cplusplus/simple/input.cc:26:1: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/cplusplus/simple/input.cc.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/cplusplus/simple/input.cc:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/cplusplus/simple/input.cc:1:48: warning: extra tokens at end of ## directive DEBUG: +/usr/include/python?.?/Python.h:nn: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,647 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=33), region=RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=33))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=33)) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:50: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=50)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:50 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=50), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:24 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:50 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:50 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:50 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:44 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=44), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:50 DEBUG: - DEBUG: -Trace 5: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:44' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:44 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:50 DEBUG: - DEBUG: -Trace 6: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:44' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:44 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:50 DEBUG: - DEBUG: -Trace 7: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:44' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:44 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:50 DEBUG: - DEBUG: -Trace 8: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:44' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:44: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=44)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:44 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:50 DEBUG: - DEBUG: -Trace 9: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=48), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:48 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:44 DEBUG: - DEBUG: -Trace 10: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=48), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:48 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:44 DEBUG: - DEBUG: -Trace 11: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=48), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:48 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:44 DEBUG: - DEBUG: -Trace 12: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=48), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:48 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:44 DEBUG: - DEBUG: -Trace 13: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=42), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:42 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyTuple_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - DEBUG: -Trace 14: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=42), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:42 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33: DEBUG: - repr(): RegionOnHeap('PyTupleObject', gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=33)) DEBUG: - str(): PyTupleObject allocated at tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:39 DEBUG: - DEBUG: -Trace 15: DEBUG: - Transitions: DEBUG: - 'when PyTuple_New() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=35), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:35 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:33 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,41 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when foo() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function/input.c', line=31), region=RegionOnHeap('new ref from (unknown) foo', gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function/input.c', line=31))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new ref from (unknown) foo', gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function/input.c', line=31)) from tests/cpychecker/refcounts/unrecognized_function/input.c:31 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function/input.c', line=31), region=Region('PyTypeObject for new ref from (unknown) foo')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/unrecognized_function/input.c:30 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when foo() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function/input.c', line=31), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/unrecognized_function/input.c:31 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/unrecognized_function/input.c:31 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/unrecognized_function/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/unrecognized_function/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: fcounts/PyTuple_SetItem/correct_multiple: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyTuple_Size/incorrect: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyTuple_Size/incorrect/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyTuple_Size/incorrect/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyTuple_Size/incorrect/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyTuple_Size/ticket-24: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyTuple_Size/ticket-24/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyTuple_Size/ticket-24/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyTuple_Size/ticket-24/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyTuple_Size/ticket-24/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyTuple_Size/ticket-24/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyType_IsSubtype/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyType_IsSubtype/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyType_--- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,74 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'taking False path' DEBUG: - 'when considering range: -0x80000000 <= value <= -1' DEBUG: - 'taking True path' DEBUG: - 'PyBool_FromLong() returns' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c', line=35), region=RegionOnHeap('PyBool_FromLong', gcc.Location(file='tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c', line=35))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyBool_FromLong', gcc.Location(file='tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c', line=35)) from tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c:35 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c', line=35), region=Region('PyTypeObject for PyBool_FromLong')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c:30 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'taking False path' DEBUG: - 'when considering value == (int)0 from tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c:35' DEBUG: - 'taking False path' DEBUG: - 'PyBool_FromLong() returns' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c', line=35), region=RegionOnHeap('PyBool_FromLong', gcc.Location(file='tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c', line=35))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyBool_FromLong', gcc.Location(file='tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c', line=35)) from tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c:35 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c', line=35), region=Region('PyTypeObject for PyBool_FromLong')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c:30 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'taking False path' DEBUG: - 'when considering range: 1 <= value <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - 'PyBool_FromLong() returns' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c', line=35), region=RegionOnHeap('PyBool_FromLong', gcc.Location(file='tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c', line=35))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyBool_FromLong', gcc.Location(file='tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c', line=35)) from tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c:35 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c', line=35), region=Region('PyTypeObject for PyBool_FromLong')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c:30 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: nts/Py_FatalError/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/Py_FatalError/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/Py_FatalError/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/Py_FatalError/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/Py_Finalize/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/Py_Finalize/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/Py_Finalize/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/Py_Finalize/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/Py_Finalize/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/Py_Finalize/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/SWIG_Python_ErrorType/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/SWIG_Python_ErrorType/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/SWIG_Python_ErrorType/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/SWIG_Python_ErrorType/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/SWIG_Python_ErrorType/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/SWIG_Python_ErrorType/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/_PyObject_New/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/_PyObject_New/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/_PyObject_New/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/_PyObject_New/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/_PyObject_New/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/_PyObject_New/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/subclass/detection: OK DEBUG: tests/cpychecker/refcounts/subclass/handling: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/subclass/handling/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/subclass/handling/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/subclass/handling/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/subclass/handling/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/subclass/handling/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/std--- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,41 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyString_FromFormat() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/subclass/handling/input.c', line=39), region=RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/subclass/handling/input.c', line=39))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/subclass/handling/input.c', line=39)) from tests/cpychecker/refcounts/subclass/handling/input.c:39 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/subclass/handling/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/subclass/handling/input.c', line=37), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/subclass/handling/input.c', line=37), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/subclass/handling/input.c:38 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyString_FromFormat() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/subclass/handling/input.c', line=39), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/subclass/handling/input.c:39 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/subclass/handling/input.c', line=37), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/subclass/handling/input.c', line=37), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/subclass/handling/input.c:39 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/subclass/handling/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/subclass/handling/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,111 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/multiple-returns/input.c', line=37), region=RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/multiple-returns/input.c', line=37))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/multiple-returns/input.c', line=37)) from tests/cpychecker/refcounts/multiple-returns/input.c:37 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/multiple-returns/input.c', line=37), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/multiple-returns/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/multiple-returns/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/multiple-returns/input.c:32: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/multiple-returns/input.c', line=32)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/multiple-returns/input.c:32 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/multiple-returns/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/multiple-returns/input.c:29 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyDictObject allocated at tests/cpychecker/refcounts/multiple-returns/input.c:32' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/multiple-returns/input.c', line=37), region=RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/multiple-returns/input.c', line=37))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/multiple-returns/input.c', line=37)) from tests/cpychecker/refcounts/multiple-returns/input.c:37 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/multiple-returns/input.c', line=37), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/multiple-returns/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/multiple-returns/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/multiple-returns/input.c:32: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/multiple-returns/input.c', line=32)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/multiple-returns/input.c:32 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/multiple-returns/input.c:29 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_New() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/multiple-returns/input.c', line=38), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/multiple-returns/input.c:38 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/multiple-returns/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/multiple-returns/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/multiple-returns/input.c:32: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/multiple-returns/input.c', line=32)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/multiple-returns/input.c:32 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/multiple-returns/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/multiple-returns/input.c:37 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/multiple-returns/input.c', line=33), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/multiple-returns/input.c:33 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/multiple-returns/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/multiple-returns/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/multiple-returns/input.c:32 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,13 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/multiple-returns/input.c:38:nn: warning: memory leak: ob_refcnt of '*dictA' is 1 too high DEBUG: -tests/cpychecker/refcounts/multiple-returns/input.c:32:nn: note: '*dictA' was allocated at: dictA = PyDict_New(); DEBUG: -tests/cpychecker/refcounts/multiple-returns/input.c:38:nn: note: was expecting final owned ob_refcnt of '*dictA' to be 0 since nothing references it but final ob_refcnt is refs: 1 owned DEBUG: -tests/cpychecker/refcounts/multiple-returns/input.c:32:nn: note: when PyDict_New() succeeds at: dictA = PyDict_New(); DEBUG: -tests/cpychecker/refcounts/multiple-returns/input.c:32:nn: note: ob_refcnt is now refs: 1 owned DEBUG: -tests/cpychecker/refcounts/multiple-returns/input.c:33:nn: note: taking False path at: if (!dictA) return NULL; DEBUG: -tests/cpychecker/refcounts/multiple-returns/input.c:37:nn: note: reaching: dictB = PyDict_New(); DEBUG: -tests/cpychecker/refcounts/multiple-returns/input.c:37:nn: note: when PyDict_New() fails at: dictB = PyDict_New(); DEBUG: -tests/cpychecker/refcounts/multiple-returns/input.c:38:nn: note: taking True path at: if (!dictB) return NULL; DEBUG: -tests/cpychecker/refcounts/multiple-returns/input.c:38:nn: note: reaching: if (!dictB) return NULL; DEBUG: -tests/cpychecker/refcounts/multiple-returns/input.c:38:nn: note: returning DEBUG: -tests/cpychecker/refcounts/multiple-returns/input.c:29:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/multiple-returns/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/multiple-returns/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/multiple-returns/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,311 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering unknown_unsigned_val.1 == (const unsigned int)0 from tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:22' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=33), region=RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=33))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=33)) from tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:33 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:29 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 1 <= unknown_unsigned_val.1 <= 0xffffffff' DEBUG: - 'taking True path' DEBUG: - 'when make_item() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_Append() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering unknown_unsigned_val.1 == (const unsigned int)1 from tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:22' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=33), region=RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=33))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=33)) from tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:33 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - new ref from (unknown) make_item allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:39: DEBUG: - repr(): RegionOnHeap('new ref from (unknown) make_item', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=39)) DEBUG: - str(): new ref from (unknown) make_item allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:39 DEBUG: - r->ob_refcnt: refs: 2 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=39), region=Region('PyTypeObject for new ref from (unknown) make_item')) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:29 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 1 <= unknown_unsigned_val.1 <= 0xffffffff' DEBUG: - 'taking True path' DEBUG: - 'when make_item() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_Append() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=61), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:61 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - new ref from (unknown) make_item allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:39: DEBUG: - repr(): RegionOnHeap('new ref from (unknown) make_item', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=39)) DEBUG: - str(): new ref from (unknown) make_item allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=39), region=Region('PyTypeObject for new ref from (unknown) make_item')) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:43 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 1 <= unknown_unsigned_val.1 <= 0xffffffff' DEBUG: - 'taking True path' DEBUG: - 'when make_item() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_Append() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=61), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:61 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - new ref from (unknown) make_item allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:39: DEBUG: - repr(): RegionOnHeap('new ref from (unknown) make_item', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=39)) DEBUG: - str(): new ref from (unknown) make_item allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=39), region=Region('PyTypeObject for new ref from (unknown) make_item')) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:43 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 1 <= unknown_unsigned_val.1 <= 0xffffffff' DEBUG: - 'taking True path' DEBUG: - 'when make_item() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_Append() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on new ref from (unknown) make_item allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:39' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=61), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:61 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - new ref from (unknown) make_item allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:39: DEBUG: - repr(): RegionOnHeap('new ref from (unknown) make_item', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=39)) DEBUG: - str(): new ref from (unknown) make_item allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:43 DEBUG: - DEBUG: -Trace 5: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 1 <= unknown_unsigned_val.1 <= 0xffffffff' DEBUG: - 'taking True path' DEBUG: - 'when make_item() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_Append() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on new ref from (unknown) make_item allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:39' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=61), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:61 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - new ref from (unknown) make_item allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:39: DEBUG: - repr(): RegionOnHeap('new ref from (unknown) make_item', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=39)) DEBUG: - str(): new ref from (unknown) make_item allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:43 DEBUG: - DEBUG: -Trace 6: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 1 <= unknown_unsigned_val.1 <= 0xffffffff' DEBUG: - 'taking True path' DEBUG: - 'when make_item() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=61), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:61 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:39 DEBUG: - DEBUG: -Trace 7: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 1 <= unknown_unsigned_val.1 <= 0xffffffff' DEBUG: - 'taking True path' DEBUG: - 'when make_item() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=61), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:61 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:39 DEBUG: - DEBUG: -Trace 8: DEBUG: - Transitions: DEBUG: - 'when PyList_New() fails' DEBUG: - 'taking True path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=61), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:61 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:33 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,24 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:57:nn: warning: memory leak: ob_refcnt of '*item' is 1 too high DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:39:nn: note: '*item' was allocated at: PyObject *item = make_item(i); DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:57:nn: note: was expecting final owned ob_refcnt of '*item' to be 1 due to object being referenced by: PyListObject.ob_item[0] but final ob_refcnt is refs: 2 owned DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:33:nn: note: when PyList_New() succeeds at: result = PyList_New(0); DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:34:nn: note: taking False path at: if (!result) { DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:38:nn: note: reaching: for (i = 0; i < unknown_unsigned_val; i++) { DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:38:nn: note: when considering range: 1 <= unknown_unsigned_val.1 <= 0xffffffff at: for (i = 0; i < unknown_unsigned_val; i++) { DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:38:nn: note: taking True path at: for (i = 0; i < unknown_unsigned_val; i++) { DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:39:nn: note: reaching: PyObject *item = make_item(i); DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:39:nn: note: when make_item() succeeds at: PyObject *item = make_item(i); DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:39:nn: note: ob_refcnt is now refs: 1 owned DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:40:nn: note: taking False path at: if (!item) { DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:43:nn: note: reaching: if (-1 == PyList_Append(result, item)) { DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:43:nn: note: when PyList_Append() succeeds at: if (-1 == PyList_Append(result, item)) { DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:43:nn: note: ob_refcnt is now refs: 2 owned DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:43:nn: note: '*item' is now referenced by 1 non-stack value(s): PyListObject.ob_item[0] DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:43:nn: note: taking False path at: if (-1 == PyList_Append(result, item)) { DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:38:nn: note: reaching: for (i = 0; i < unknown_unsigned_val; i++) { DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:38:nn: note: when considering unknown_unsigned_val.1 == (const unsigned int)1 from tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:22 at: for (i = 0; i < unknown_unsigned_val; i++) { DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:38:nn: note: taking False path at: for (i = 0; i < unknown_unsigned_val; i++) { DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:57:nn: note: reaching: return result; DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:57:nn: note: returning DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:29:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,138 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when foo() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'when foo() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function2/input.c', line=43), region=RegionOnHeap('new ref from (unknown) foo', gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function2/input.c', line=43))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new ref from (unknown) foo', gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function2/input.c', line=43)) from tests/cpychecker/refcounts/unrecognized_function2/input.c:43 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function2/input.c', line=43), region=Region('PyTypeObject for new ref from (unknown) foo')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function2/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function2/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - new ref from (unknown) foo allocated at tests/cpychecker/refcounts/unrecognized_function2/input.c:34: DEBUG: - repr(): RegionOnHeap('new ref from (unknown) foo', gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function2/input.c', line=34)) DEBUG: - str(): new ref from (unknown) foo allocated at tests/cpychecker/refcounts/unrecognized_function2/input.c:34 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function2/input.c', line=34), region=Region('PyTypeObject for new ref from (unknown) foo')) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/unrecognized_function2/input.c:30 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when foo() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'when foo() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function2/input.c', line=43), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/unrecognized_function2/input.c:43 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function2/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function2/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - new ref from (unknown) foo allocated at tests/cpychecker/refcounts/unrecognized_function2/input.c:34: DEBUG: - repr(): RegionOnHeap('new ref from (unknown) foo', gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function2/input.c', line=34)) DEBUG: - str(): new ref from (unknown) foo allocated at tests/cpychecker/refcounts/unrecognized_function2/input.c:34 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function2/input.c', line=34), region=Region('PyTypeObject for new ref from (unknown) foo')) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/unrecognized_function2/input.c:43 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when foo() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on new ref from (unknown) foo allocated at tests/cpychecker/refcounts/unrecognized_function2/input.c:34' DEBUG: - 'when foo() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function2/input.c', line=43), region=RegionOnHeap('new ref from (unknown) foo', gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function2/input.c', line=43))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('new ref from (unknown) foo', gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function2/input.c', line=43)) from tests/cpychecker/refcounts/unrecognized_function2/input.c:43 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function2/input.c', line=43), region=Region('PyTypeObject for new ref from (unknown) foo')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function2/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function2/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - new ref from (unknown) foo allocated at tests/cpychecker/refcounts/unrecognized_function2/input.c:34: DEBUG: - repr(): RegionOnHeap('new ref from (unknown) foo', gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function2/input.c', line=34)) DEBUG: - str(): new ref from (unknown) foo allocated at tests/cpychecker/refcounts/unrecognized_function2/input.c:34 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/unrecognized_function2/input.c:30 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when foo() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on new ref from (unknown) foo allocated at tests/cpychecker/refcounts/unrecognized_function2/input.c:34' DEBUG: - 'when foo() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function2/input.c', line=43), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/unrecognized_function2/input.c:43 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function2/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function2/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - new ref from (unknown) foo allocated at tests/cpychecker/refcounts/unrecognized_function2/input.c:34: DEBUG: - repr(): RegionOnHeap('new ref from (unknown) foo', gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function2/input.c', line=34)) DEBUG: - str(): new ref from (unknown) foo allocated at tests/cpychecker/refcounts/unrecognized_function2/input.c:34 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/unrecognized_function2/input.c:43 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when foo() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function2/input.c', line=36), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/unrecognized_function2/input.c:36 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function2/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function2/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/unrecognized_function2/input.c:34 DEBUG: ctive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PySequence_Size/null: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PySequence_Size/null/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PySequence_Size/null/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PySequence_Size/null/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PySequence_Size/null/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PySequence_Size/null/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyString_AsString/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyString_AsString/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyString_AsString/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyString_AsString/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyString_AsString/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyString_AsString/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyString_AsString/incorrect: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyString_AsString/incorrect/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyString_AsString/incorrect/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyString_AsString/incorrect/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/unrecognized_function: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/unrecognized_function/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/unrecognized_function/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/unrecognized_function/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/unrecognized_function/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/unrecognized_function/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/unrecognized_function2: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/unrecognized_function2/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so--- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/unrecognized_function2/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/unrecognized_function2/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,31 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyUnicode_AsUTF8String() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyUnicode_AsUTF8String/basic/input.c', line=29), region=RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyUnicode_AsUTF8String/basic/input.c', line=29))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/PyUnicode_AsUTF8String/basic/input.c', line=29)) from tests/cpychecker/refcounts/PyUnicode_AsUTF8String/basic/input.c:29 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyUnicode_AsUTF8String/basic/input.c', line=29), region=RegionForGlobal(gcc.VarDecl('PyString_Type'))) DEBUG: - region for gcc.ParmDecl('unicode') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('unicode')") DEBUG: - str(): region for gcc.ParmDecl('unicode') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyUnicode_AsUTF8String/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('unicode')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyUnicode_AsUTF8String/basic/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyUnicode_AsUTF8String() fails' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyUnicode_AsUTF8String/basic/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyUnicode_AsUTF8String/basic/input.c:29 DEBUG: - region for gcc.ParmDecl('unicode') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('unicode')") DEBUG: - str(): region for gcc.ParmDecl('unicode') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyUnicode_AsUTF8String/basic/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('unicode')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/PyUnicode_AsUTF8String/basic/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyUnicode_AsUTF8String/basic/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyUnicode_AsUTF8String/basic/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,10 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'returning' DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 5 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/subclass/incorrect-subclass-ptr/input.c', line=42), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/subclass/incorrect-subclass-ptr/input.c:43 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,10 +1,4 @@ DEBUG: -In function 'test_function': DEBUG: -tests/cpychecker/refcounts/subclass/incorrect-subclass-ptr/input.c:53:nn: warning: memory leak: ob_refcnt of '*self' is 5 too high DEBUG: -tests/cpychecker/refcounts/subclass/incorrect-subclass-ptr/input.c:53:nn: note: was expecting final owned ob_refcnt of '*self' to be 0 since nothing references it but final ob_refcnt is refs: 5 owned, 1 borrowed DEBUG: -tests/cpychecker/refcounts/subclass/incorrect-subclass-ptr/input.c:48:nn: note: ob_refcnt is now refs: 1 owned, 1 borrowed DEBUG: -tests/cpychecker/refcounts/subclass/incorrect-subclass-ptr/input.c:49:nn: note: ob_refcnt is now refs: 2 owned, 1 borrowed DEBUG: -tests/cpychecker/refcounts/subclass/incorrect-subclass-ptr/input.c:50:nn: note: ob_refcnt is now refs: 3 owned, 1 borrowed DEBUG: -tests/cpychecker/refcounts/subclass/incorrect-subclass-ptr/input.c:51:nn: note: ob_refcnt is now refs: 4 owned, 1 borrowed DEBUG: -tests/cpychecker/refcounts/subclass/incorrect-subclass-ptr/input.c:52:nn: note: ob_refcnt is now refs: 5 owned, 1 borrowed DEBUG: -tests/cpychecker/refcounts/subclass/incorrect-subclass-ptr/input.c:53:nn: note: returning at: } DEBUG: -tests/cpychecker/refcounts/subclass/incorrect-subclass-ptr/input.c:43:nn: note: graphical error report for function 'test_function' written out to 'tests/cpychecker/refcounts/subclass/incorrect-subclass-ptr/input.c.test_function-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/subclass/incorrect-subclass-ptr/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/subclass/incorrect-subclass-ptr/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,18 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/not_setting_exception/input.c', line=32), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/not_setting_exception/input.c:32 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/not_setting_exception/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/not_setting_exception/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/not_setting_exception/input.c:27 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,4 +1,4 @@ DEBUG: -In function 'not_setting_exception': DEBUG: -tests/cpychecker/refcounts/not_setting_exception/input.c:32:nn: warning: returning (PyObject*)NULL without setting an exception DEBUG: -tests/cpychecker/refcounts/not_setting_exception/input.c:32:nn: note: returning at: return NULL; DEBUG: -tests/cpychecker/refcounts/not_setting_exception/input.c:27:nn: note: graphical error report for function 'not_setting_exception' written out to 'tests/cpychecker/refcounts/not_setting_exception/input.c.not_setting_exception-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/not_setting_exception/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/not_setting_exception/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,38 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when foo() succeeds' DEBUG: - 'returning' DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function3/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function3/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - new ref from (unknown) foo allocated at tests/cpychecker/refcounts/unrecognized_function3/input.c:32: DEBUG: - repr(): RegionOnHeap('new ref from (unknown) foo', gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function3/input.c', line=32)) DEBUG: - str(): new ref from (unknown) foo allocated at tests/cpychecker/refcounts/unrecognized_function3/input.c:32 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function3/input.c', line=32), region=Region('PyTypeObject for new ref from (unknown) foo')) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/unrecognized_function3/input.c:30 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when foo() fails' DEBUG: - 'returning' DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function3/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function3/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/unrecognized_function3/input.c:32 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,8 +1,4 @@ DEBUG: -In function 'call_to_unrecognized_function': DEBUG: -tests/cpychecker/refcounts/unrecognized_function3/input.c:33:nn: warning: memory leak: ob_refcnt of new ref from (unknown) foo is 1 too high DEBUG: -tests/cpychecker/refcounts/unrecognized_function3/input.c:32:nn: note: new ref from (unknown) foo was allocated at: foo(42); DEBUG: -tests/cpychecker/refcounts/unrecognized_function3/input.c:33:nn: note: was expecting final owned ob_refcnt of new ref from (unknown) foo to be 0 since nothing references it but final ob_refcnt is refs: 1 owned DEBUG: -tests/cpychecker/refcounts/unrecognized_function3/input.c:32:nn: note: when foo() succeeds at: foo(42); DEBUG: -tests/cpychecker/refcounts/unrecognized_function3/input.c:32:nn: note: ob_refcnt is now refs: 1 owned DEBUG: -tests/cpychecker/refcounts/unrecognized_function3/input.c:33:nn: note: returning at: } DEBUG: -tests/cpychecker/refcounts/unrecognized_function3/input.c:30:nn: note: graphical error report for function 'call_to_unrecognized_function' written out to 'tests/cpychecker/refcounts/unrecognized_function3/input.c.call_to_unrecognized_function-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/unrecognized_function3/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/unrecognized_function3/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,311 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: -0x80000000 <= value <= 0' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=33), region=RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=33))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=33)) from tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:33 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:29 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 1 <= value <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - 'when make_item() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_Append() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: -0x80000000 <= value <= 1' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=33), region=RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=33))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=33)) from tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:33 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - new ref from (unknown) make_item allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:40: DEBUG: - repr(): RegionOnHeap('new ref from (unknown) make_item', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=40)) DEBUG: - str(): new ref from (unknown) make_item allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:40 DEBUG: - r->ob_refcnt: refs: 2 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=40), region=Region('PyTypeObject for new ref from (unknown) make_item')) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:29 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 1 <= value <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - 'when make_item() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_Append() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - new ref from (unknown) make_item allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:40: DEBUG: - repr(): RegionOnHeap('new ref from (unknown) make_item', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=40)) DEBUG: - str(): new ref from (unknown) make_item allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:40 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=40), region=Region('PyTypeObject for new ref from (unknown) make_item')) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:44 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 1 <= value <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - 'when make_item() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_Append() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - new ref from (unknown) make_item allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:40: DEBUG: - repr(): RegionOnHeap('new ref from (unknown) make_item', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=40)) DEBUG: - str(): new ref from (unknown) make_item allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:40 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=40), region=Region('PyTypeObject for new ref from (unknown) make_item')) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:44 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 1 <= value <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - 'when make_item() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_Append() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on new ref from (unknown) make_item allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:40' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - new ref from (unknown) make_item allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:40: DEBUG: - repr(): RegionOnHeap('new ref from (unknown) make_item', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=40)) DEBUG: - str(): new ref from (unknown) make_item allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:40 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:44 DEBUG: - DEBUG: -Trace 5: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 1 <= value <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - 'when make_item() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyList_Append() fails' DEBUG: - 'taking True path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on new ref from (unknown) make_item allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:40' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - new ref from (unknown) make_item allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:40: DEBUG: - repr(): RegionOnHeap('new ref from (unknown) make_item', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=40)) DEBUG: - str(): new ref from (unknown) make_item allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:40 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:44 DEBUG: - DEBUG: -Trace 6: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 1 <= value <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - 'when make_item() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:33 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=33), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:40 DEBUG: - DEBUG: -Trace 7: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 1 <= value <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - 'when make_item() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:33: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=33)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:33 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:40 DEBUG: - DEBUG: -Trace 8: DEBUG: - Transitions: DEBUG: - 'when PyList_New() fails' DEBUG: - 'taking True path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=55), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:55 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c', line=28), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:33 DEBUG: WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/getter/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/handle_null_error: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/handle_null_error/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/handle_null_error/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/handle_null_error/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/handle_null_error/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/handle_null_error/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/incorrect_py_none: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/incorrect_py_none/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/incorrect_py_none/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/incorrect_py_none/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/incorrect_py_none/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/incorrect_py_none/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/json/basic: OK DEBUG: tests/cpychecker/refcounts/loop_n_times: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/loop_n_times/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/loop_n_times/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/loop_n_times/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/loop_n_times/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/loop_n_times/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/loops/complex-loop-conditional-1: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/loops/complex-loop-conditional-1/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/loops/complex-loop-conditional-1/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/loops/complex-loop-conditional-1/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/loops/complex-loop-conditional-2: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcount--- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,24 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:51:nn: warning: memory leak: ob_refcnt of '*item' is 1 too high DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:40:nn: note: '*item' was allocated at: PyObject *item = make_item(i); DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:51:nn: note: was expecting final owned ob_refcnt of '*item' to be 1 due to object being referenced by: PyListObject.ob_item[0] but final ob_refcnt is refs: 2 owned DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:33:nn: note: when PyList_New() succeeds at: result = PyList_New(0); DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:34:nn: note: taking False path at: if (!result) { DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:39:nn: note: reaching: for (i = 0; i < (2 * get_limit()) + 42; i++) { DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:39:nn: note: when considering range: 1 <= value <= 0x7fffffff at: for (i = 0; i < (2 * get_limit()) + 42; i++) { DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:39:nn: note: taking True path at: for (i = 0; i < (2 * get_limit()) + 42; i++) { DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:40:nn: note: reaching: PyObject *item = make_item(i); DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:40:nn: note: when make_item() succeeds at: PyObject *item = make_item(i); DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:40:nn: note: ob_refcnt is now refs: 1 owned DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:41:nn: note: taking False path at: if (!item) { DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:44:nn: note: reaching: if (-1 == PyList_Append(result, item)) { DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:44:nn: note: when PyList_Append() succeeds at: if (-1 == PyList_Append(result, item)) { DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:44:nn: note: ob_refcnt is now refs: 2 owned DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:44:nn: note: '*item' is now referenced by 1 non-stack value(s): PyListObject.ob_item[0] DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:44:nn: note: taking False path at: if (-1 == PyList_Append(result, item)) { DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:39:nn: note: reaching: for (i = 0; i < (2 * get_limit()) + 42; i++) { DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:39:nn: note: when considering range: -0x80000000 <= value <= 1 at: for (i = 0; i < (2 * get_limit()) + 42; i++) { DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:39:nn: note: taking False path at: for (i = 0; i < (2 * get_limit()) + 42; i++) { DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:51:nn: note: reaching: return result; DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:51:nn: note: returning DEBUG: -tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:29:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,9 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'PyWeakref_GetObject() fails due to NULL argument' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyWeakref_GetObject/NULL/input.c', line=29), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyWeakref_GetObject/NULL/input.c:29 DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_SystemError')) from tests/cpychecker/refcounts/PyWeakref_GetObject/NULL/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyWeakref_GetObject/NULL/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyWeakref_GetObject/NULL/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,5 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'returning' DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/subclass/opaque-struct/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/subclass/opaque-struct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/subclass/opaque-struct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,79 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when make_foo() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function4/input.c', line=42), region=RegionForGlobal(gcc.VarDecl('_Py_NoneStruct'))) DEBUG: - str(): (struct PyObject *)&RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) from tests/cpychecker/refcounts/unrecognized_function4/input.c:42 DEBUG: - r->ob_refcnt: refs: 1 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function4/input.c', line=34), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function4/input.c', line=34), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - new ref from (unknown) make_foo allocated at tests/cpychecker/refcounts/unrecognized_function4/input.c:36: DEBUG: - repr(): RegionOnHeap('new ref from (unknown) make_foo', gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function4/input.c', line=36)) DEBUG: - str(): new ref from (unknown) make_foo allocated at tests/cpychecker/refcounts/unrecognized_function4/input.c:36 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function4/input.c', line=36), region=Region('PyTypeObject for new ref from (unknown) make_foo')) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/unrecognized_function4/input.c:35 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when make_foo() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on new ref from (unknown) make_foo allocated at tests/cpychecker/refcounts/unrecognized_function4/input.c:36' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function4/input.c', line=42), region=RegionForGlobal(gcc.VarDecl('_Py_NoneStruct'))) DEBUG: - str(): (struct PyObject *)&RegionForGlobal(gcc.VarDecl('_Py_NoneStruct')) from tests/cpychecker/refcounts/unrecognized_function4/input.c:42 DEBUG: - r->ob_refcnt: refs: 1 owned, 1 borrowed DEBUG: - r->ob_type: None DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function4/input.c', line=34), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function4/input.c', line=34), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - new ref from (unknown) make_foo allocated at tests/cpychecker/refcounts/unrecognized_function4/input.c:36: DEBUG: - repr(): RegionOnHeap('new ref from (unknown) make_foo', gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function4/input.c', line=36)) DEBUG: - str(): new ref from (unknown) make_foo allocated at tests/cpychecker/refcounts/unrecognized_function4/input.c:36 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/unrecognized_function4/input.c:35 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when make_foo() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function4/input.c', line=38), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/unrecognized_function4/input.c:38 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function4/input.c', line=34), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/unrecognized_function4/input.c', line=34), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/unrecognized_function4/input.c:36 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/unrecognized_function4/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/unrecognized_function4/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,44 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyWeakref_GetObject/correct/input.c:26 as non-NULL' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyWeakref_GetObject/correct/input.c', line=32), region=RegionOnHeap('borrowed reference returned by PyWeakref_GetObject()', gcc.Location(file='tests/cpychecker/refcounts/PyWeakref_GetObject/correct/input.c', line=32))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('borrowed reference returned by PyWeakref_GetObject()', gcc.Location(file='tests/cpychecker/refcounts/PyWeakref_GetObject/correct/input.c', line=32)) from tests/cpychecker/refcounts/PyWeakref_GetObject/correct/input.c:32 DEBUG: - r->ob_refcnt: refs: 1 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyWeakref_GetObject/correct/input.c', line=32), region=Region('PyTypeObject for borrowed reference returned by PyWeakref_GetObject()')) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyWeakref_GetObject/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyWeakref_GetObject/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/PyWeakref_GetObject/correct/input.c:30 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/PyWeakref_GetObject/correct/input.c:26 as NULL' DEBUG: - 'PyWeakref_GetObject() fails due to NULL argument' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyWeakref_GetObject/correct/input.c', line=41), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/PyWeakref_GetObject/correct/input.c:41 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyWeakref_GetObject/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/PyWeakref_GetObject/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_SystemError')) from tests/cpychecker/refcounts/PyWeakref_GetObject/correct/input.c:32 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/PyWeakref_GetObject/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/PyWeakref_GetObject/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,561 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when call succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItem() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34), region=RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34)) from tests/cpychecker/refcounts/object_from_callback/input.c:34 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - new ref from call through function pointer allocated at tests/cpychecker/refcounts/object_from_callback/input.c:48: DEBUG: - repr(): RegionOnHeap('new ref from call through function pointer', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=48)) DEBUG: - str(): new ref from call through function pointer allocated at tests/cpychecker/refcounts/object_from_callback/input.c:48 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=48), region=Region('PyTypeObject for new ref from call through function pointer')) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/object_from_callback/input.c:29 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when call succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItem() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34), region=RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34)) from tests/cpychecker/refcounts/object_from_callback/input.c:34 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - new ref from call through function pointer allocated at tests/cpychecker/refcounts/object_from_callback/input.c:48: DEBUG: - repr(): RegionOnHeap('new ref from call through function pointer', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=48)) DEBUG: - str(): new ref from call through function pointer allocated at tests/cpychecker/refcounts/object_from_callback/input.c:48 DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=48), region=Region('PyTypeObject for new ref from call through function pointer')) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/object_from_callback/input.c:29 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when call succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItem() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=71), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/object_from_callback/input.c:71 DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - new ref from call through function pointer allocated at tests/cpychecker/refcounts/object_from_callback/input.c:48: DEBUG: - repr(): RegionOnHeap('new ref from call through function pointer', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=48)) DEBUG: - str(): new ref from call through function pointer allocated at tests/cpychecker/refcounts/object_from_callback/input.c:48 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=48), region=Region('PyTypeObject for new ref from call through function pointer')) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/object_from_callback/input.c:54 DEBUG: - DEBUG: -Trace 3: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when call succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItem() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on new ref from call through function pointer allocated at tests/cpychecker/refcounts/object_from_callback/input.c:48' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=71), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/object_from_callback/input.c:71 DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - new ref from call through function pointer allocated at tests/cpychecker/refcounts/object_from_callback/input.c:48: DEBUG: - repr(): RegionOnHeap('new ref from call through function pointer', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=48)) DEBUG: - str(): new ref from call through function pointer allocated at tests/cpychecker/refcounts/object_from_callback/input.c:48 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/object_from_callback/input.c:54 DEBUG: - DEBUG: -Trace 4: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when call succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItem() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=71), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/object_from_callback/input.c:71 DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - new ref from call through function pointer allocated at tests/cpychecker/refcounts/object_from_callback/input.c:48: DEBUG: - repr(): RegionOnHeap('new ref from call through function pointer', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=48)) DEBUG: - str(): new ref from call through function pointer allocated at tests/cpychecker/refcounts/object_from_callback/input.c:48 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=48), region=Region('PyTypeObject for new ref from call through function pointer')) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/object_from_callback/input.c:54 DEBUG: - DEBUG: -Trace 5: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when call succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItem() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on new ref from call through function pointer allocated at tests/cpychecker/refcounts/object_from_callback/input.c:48' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=71), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/object_from_callback/input.c:71 DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - new ref from call through function pointer allocated at tests/cpychecker/refcounts/object_from_callback/input.c:48: DEBUG: - repr(): RegionOnHeap('new ref from call through function pointer', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=48)) DEBUG: - str(): new ref from call through function pointer allocated at tests/cpychecker/refcounts/object_from_callback/input.c:48 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/object_from_callback/input.c:54 DEBUG: - DEBUG: -Trace 6: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when call succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItem() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=71), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/object_from_callback/input.c:71 DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - new ref from call through function pointer allocated at tests/cpychecker/refcounts/object_from_callback/input.c:48: DEBUG: - repr(): RegionOnHeap('new ref from call through function pointer', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=48)) DEBUG: - str(): new ref from call through function pointer allocated at tests/cpychecker/refcounts/object_from_callback/input.c:48 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=48), region=Region('PyTypeObject for new ref from call through function pointer')) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/object_from_callback/input.c:54 DEBUG: - DEBUG: -Trace 7: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when call succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItem() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on new ref from call through function pointer allocated at tests/cpychecker/refcounts/object_from_callback/input.c:48' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=71), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/object_from_callback/input.c:71 DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - new ref from call through function pointer allocated at tests/cpychecker/refcounts/object_from_callback/input.c:48: DEBUG: - repr(): RegionOnHeap('new ref from call through function pointer', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=48)) DEBUG: - str(): new ref from call through function pointer allocated at tests/cpychecker/refcounts/object_from_callback/input.c:48 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/object_from_callback/input.c:54 DEBUG: - DEBUG: -Trace 8: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when call succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItem() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=71), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/object_from_callback/input.c:71 DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - new ref from call through function pointer allocated at tests/cpychecker/refcounts/object_from_callback/input.c:48: DEBUG: - repr(): RegionOnHeap('new ref from call through function pointer', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=48)) DEBUG: - str(): new ref from call through function pointer allocated at tests/cpychecker/refcounts/object_from_callback/input.c:48 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=48), region=Region('PyTypeObject for new ref from call through function pointer')) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/object_from_callback/input.c:54 DEBUG: - DEBUG: -Trace 9: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when call succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyDict_SetItem() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on new ref from call through function pointer allocated at tests/cpychecker/refcounts/object_from_callback/input.c:48' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=71), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/object_from_callback/input.c:71 DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - new ref from call through function pointer allocated at tests/cpychecker/refcounts/object_from_callback/input.c:48: DEBUG: - repr(): RegionOnHeap('new ref from call through function pointer', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=48)) DEBUG: - str(): new ref from call through function pointer allocated at tests/cpychecker/refcounts/object_from_callback/input.c:48 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/object_from_callback/input.c:54 DEBUG: - DEBUG: -Trace 10: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when call fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=71), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/object_from_callback/input.c:71 DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/object_from_callback/input.c:48 DEBUG: - DEBUG: -Trace 11: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when call fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=71), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/object_from_callback/input.c:71 DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/object_from_callback/input.c:48 DEBUG: - DEBUG: -Trace 12: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when call fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=71), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/object_from_callback/input.c:71 DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/object_from_callback/input.c:48 DEBUG: - DEBUG: -Trace 13: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when call fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=71), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/object_from_callback/input.c:71 DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=39)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:39 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/object_from_callback/input.c:48 DEBUG: - DEBUG: -Trace 14: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'taking True path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=71), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/object_from_callback/input.c:71 DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34), region=RegionForGlobal(gcc.VarDecl('PyDict_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/object_from_callback/input.c:39 DEBUG: - DEBUG: -Trace 15: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34' DEBUG: - 'taking True path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=71), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/object_from_callback/input.c:71 DEBUG: - PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34: DEBUG: - repr(): RegionOnHeap('PyDictObject', gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=34)) DEBUG: - str(): PyDictObject allocated at tests/cpychecker/refcounts/object_from_callback/input.c:34 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/object_from_callback/input.c:39 DEBUG: - DEBUG: -Trace 16: DEBUG: - Transitions: DEBUG: - 'when PyDict_New() fails' DEBUG: - 'taking True path' DEBUG: - 'taking True path' DEBUG: - 'taking True path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_from_callback/input.c', line=71), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/object_from_callback/input.c:71 DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/object_from_callback/input.c:34 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/object_from_callback/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/object_from_callback/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,27 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:46:nn: warning: memory leak: ob_refcnt of new ref from call to PyObject_CallObject is 1 too high DEBUG: -tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:35:nn: note: new ref from call to PyObject_CallObject was allocated at: Py_XDECREF(PyObject_CallObject(callable, args)); DEBUG: -tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:46:nn: note: was expecting final owned ob_refcnt of new ref from call to PyObject_CallObject to be 0 since nothing references it but final ob_refcnt is refs: 1 owned DEBUG: -tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:35:nn: note: when PyObject_CallObject() succeeds at: Py_XDECREF(PyObject_CallObject(callable, args)); DEBUG: -tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:35:nn: note: ob_refcnt is now refs: 1 owned DEBUG: -tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:35:nn: note: taking False path at: Py_XDECREF(PyObject_CallObject(callable, args)); DEBUG: -tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:35:nn: note: reaching: Py_XDECREF(PyObject_CallObject(callable, args)); DEBUG: -tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:35:nn: note: when PyObject_CallObject() succeeds at: Py_XDECREF(PyObject_CallObject(callable, args)); DEBUG: -tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:35:nn: note: when taking True path at: Py_XDECREF(PyObject_CallObject(callable, args)); DEBUG: -tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:46:nn: note: reaching: } DEBUG: -tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:46:nn: note: returning at: } DEBUG: -tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:46:nn: note: found 4 similar trace(s) to this DEBUG: -tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:35:nn: warning: dereferencing NULL (D.nnnnn->ob_type) at tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:35 DEBUG: -tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:35:nn: note: when PyObject_CallObject() succeeds at: Py_XDECREF(PyObject_CallObject(callable, args)); DEBUG: -tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:35:nn: note: taking False path at: Py_XDECREF(PyObject_CallObject(callable, args)); DEBUG: -tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:35:nn: note: reaching: Py_XDECREF(PyObject_CallObject(callable, args)); DEBUG: -tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:35:nn: note: when PyObject_CallObject() succeeds at: Py_XDECREF(PyObject_CallObject(callable, args)); DEBUG: -tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:35:nn: note: when taking False path at: Py_XDECREF(PyObject_CallObject(callable, args)); DEBUG: -tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:35:nn: note: reaching: Py_XDECREF(PyObject_CallObject(callable, args)); DEBUG: -tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:35:nn: note: when PyObject_CallObject() fails at: Py_XDECREF(PyObject_CallObject(callable, args)); DEBUG: -tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:35:nn: warning: dereferencing NULL (D.nnnnn->ob_refcnt) at tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:35 DEBUG: -tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:35:nn: note: when PyObject_CallObject() succeeds at: Py_XDECREF(PyObject_CallObject(callable, args)); DEBUG: -tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:35:nn: note: taking False path at: Py_XDECREF(PyObject_CallObject(callable, args)); DEBUG: -tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:35:nn: note: reaching: Py_XDECREF(PyObject_CallObject(callable, args)); DEBUG: -tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:35:nn: note: when PyObject_CallObject() fails at: Py_XDECREF(PyObject_CallObject(callable, args)); DEBUG: -tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:29:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,30 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/refcounts/ticket-20/input.c', line=36), value=0) DEBUG: - str(): (int)0 from tests/cpychecker/refcounts/ticket-20/input.c:36 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: -1 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/ticket-20/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/ticket-20/input.c:31 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when taking False path' DEBUG: - 'calling unknown void (*destructor) (struct PyObject *) from tests/cpychecker/refcounts/ticket-20/input.c:33' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/refcounts/ticket-20/input.c', line=36), value=0) DEBUG: - str(): (int)0 from tests/cpychecker/refcounts/ticket-20/input.c:36 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: -1 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/ticket-20/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/ticket-20/input.c:31 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,9 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/ticket-20/input.c:36:nn: warning: future use-after-free: ob_refcnt of '*self' is 1 too low DEBUG: -tests/cpychecker/refcounts/ticket-20/input.c:36:nn: note: was expecting final owned ob_refcnt of '*self' to be 0 since nothing references it but final ob_refcnt is refs: -1 owned, 1 borrowed DEBUG: -tests/cpychecker/refcounts/ticket-20/input.c:33:nn: note: ob_refcnt is now refs: -1 owned, 1 borrowed DEBUG: -tests/cpychecker/refcounts/ticket-20/input.c:33:nn: note: when taking True path at: Py_DECREF(self); DEBUG: -tests/cpychecker/refcounts/ticket-20/input.c:36:nn: note: reaching: return 0; DEBUG: -tests/cpychecker/refcounts/ticket-20/input.c:36:nn: note: returning at: return 0; DEBUG: -tests/cpychecker/refcounts/ticket-20/input.c:36:nn: note: found 1 similar trace(s) to this DEBUG: -tests/cpychecker/refcounts/ticket-20/input.c:31:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/ticket-20/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/ticket-20/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/ticket-20/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,70 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/use_after_dealloc/input.c', line=30), region=RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/use_after_dealloc/input.c', line=30))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/use_after_dealloc/input.c', line=30)) from tests/cpychecker/refcounts/use_after_dealloc/input.c:30 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/use_after_dealloc/input.c', line=30), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/use_after_dealloc/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/use_after_dealloc/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/use_after_dealloc/input.c:28 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/use_after_dealloc/input.c:30' DEBUG: - error: ReadFromDeallocatedMemory() DEBUG: - error: reading from deallocated memory at tests/cpychecker/refcounts/use_after_dealloc/input.c:42: memory deallocated at tests/cpychecker/refcounts/use_after_dealloc/input.c:41 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/use_after_dealloc/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/use_after_dealloc/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/use_after_dealloc/input.c:30: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/use_after_dealloc/input.c', line=30)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/use_after_dealloc/input.c:30 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/use_after_dealloc/input.c:28 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/use_after_dealloc/input.c', line=33), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/use_after_dealloc/input.c:33 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/use_after_dealloc/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/use_after_dealloc/input.c', line=27), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/use_after_dealloc/input.c:30 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,10 +1,4 @@ DEBUG: -In function 'use_after_dealloc': DEBUG: -tests/cpychecker/refcounts/use_after_dealloc/input.c:42:nn: warning: reading from deallocated memory at tests/cpychecker/refcounts/use_after_dealloc/input.c:42: memory deallocated at tests/cpychecker/refcounts/use_after_dealloc/input.c:41 DEBUG: -tests/cpychecker/refcounts/use_after_dealloc/input.c:30:nn: note: when PyLong_FromLong() succeeds at: PyObject *tmp = PyLong_FromLong(0x1000); DEBUG: -tests/cpychecker/refcounts/use_after_dealloc/input.c:32:nn: note: taking False path at: if (!tmp) { DEBUG: -tests/cpychecker/refcounts/use_after_dealloc/input.c:41:nn: note: reaching: Py_DECREF(tmp); DEBUG: -tests/cpychecker/refcounts/use_after_dealloc/input.c:41:nn: note: when taking False path at: Py_DECREF(tmp); DEBUG: -tests/cpychecker/refcounts/use_after_dealloc/input.c:41:nn: note: reaching: Py_DECREF(tmp); DEBUG: -tests/cpychecker/refcounts/use_after_dealloc/input.c:41:nn: note: calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/use_after_dealloc/input.c:30 at: Py_DECREF(tmp); DEBUG: -tests/cpychecker/refcounts/use_after_dealloc/input.c:42:nn: note: reaching: Py_INCREF(tmp); DEBUG: -tests/cpychecker/refcounts/use_after_dealloc/input.c:28:nn: note: graphical error report for function 'use_after_dealloc' written out to 'tests/cpychecker/refcounts/use_after_dealloc/input.c.use_after_dealloc-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/use_after_dealloc/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/use_after_dealloc/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,4 +0,0 @@ DEBUG: -Trace 0: DEBUG: - returned: ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_leak/input.c', line=29), value=0) DEBUG: -Trace 1: DEBUG: - returned: ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/object_leak/input.c', line=29), value=0) DEBUG: nclude/python2.7 tests/cpychecker/refcounts/missing_decref/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/missing_decref/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/missing_decref/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/module_handling: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/module_handling/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/module_handling/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/module_handling/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/module_handling/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/module_handling/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/multiple-returns: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/multiple-returns/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/multiple-returns/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/multiple-returns/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/multiple-returns/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/multiple-returns/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/not_setting_exception: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/not_setting_exception/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/not_setting_exception/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/not_setting_exception/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/not_setting_exception/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/not_setting_exception/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/object_from_callback: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/object_from_callback/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/object_from_callback/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/object_from_callback/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/object_from_callback/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/object_from_callback/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/object_leak: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diag--- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,11 +1,4 @@ DEBUG: -In function 'object_leak': DEBUG: -tests/cpychecker/refcounts/object_leak/input.c:29:nn: warning: memory leak: ob_refcnt of '*tmp' is 1 too high DEBUG: -tests/cpychecker/refcounts/object_leak/input.c:26:nn: note: '*tmp' was allocated at: PyObject *tmp = PyLong_FromLong(0x1000); DEBUG: -tests/cpychecker/refcounts/object_leak/input.c:29:nn: note: was expecting final owned ob_refcnt of '*tmp' to be 0 since nothing references it but final ob_refcnt is refs: 1 owned DEBUG: -tests/cpychecker/refcounts/object_leak/input.c:26:nn: note: when PyLong_FromLong() succeeds at: PyObject *tmp = PyLong_FromLong(0x1000); DEBUG: -tests/cpychecker/refcounts/object_leak/input.c:26:nn: note: ob_refcnt is now refs: 1 owned DEBUG: -tests/cpychecker/refcounts/object_leak/input.c:29:nn: note: returning at: return NULL; DEBUG: -tests/cpychecker/refcounts/object_leak/input.c:29:nn: warning: returning (PyObject*)NULL without setting an exception DEBUG: -tests/cpychecker/refcounts/object_leak/input.c:26:nn: note: when PyLong_FromLong() succeeds at: PyObject *tmp = PyLong_FromLong(0x1000); DEBUG: -tests/cpychecker/refcounts/object_leak/input.c:29:nn: note: returning at: return NULL; DEBUG: -tests/cpychecker/refcounts/object_leak/input.c:24:nn: note: graphical error report for function 'object_leak' written out to 'tests/cpychecker/refcounts/object_leak/input.c.object_leak-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/object_leak/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/object_leak/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,39 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/too_many_increfs/input.c', line=26), region=RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/too_many_increfs/input.c', line=26))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/too_many_increfs/input.c', line=26)) from tests/cpychecker/refcounts/too_many_increfs/input.c:26 DEBUG: - r->ob_refcnt: refs: 2 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/too_many_increfs/input.c', line=26), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/too_many_increfs/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/too_many_increfs/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/too_many_increfs/input.c:24 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - error: NullPtrDereference() DEBUG: - error: dereferencing NULL (tmp->ob_refcnt) at tests/cpychecker/refcounts/too_many_increfs/input.c:30 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/too_many_increfs/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/too_many_increfs/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/too_many_increfs/input.c:26 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,11 +1,4 @@ DEBUG: -In function 'too_many_increfs': DEBUG: -tests/cpychecker/refcounts/too_many_increfs/input.c:31:nn: warning: memory leak: ob_refcnt of return value is 1 too high DEBUG: -tests/cpychecker/refcounts/too_many_increfs/input.c:26:nn: note: return value was allocated at: tmp = PyLong_FromLong(0x1000); DEBUG: -tests/cpychecker/refcounts/too_many_increfs/input.c:31:nn: note: was expecting final owned ob_refcnt of return value to be 1 due to object being referenced by: return value but final ob_refcnt is refs: 2 owned DEBUG: -tests/cpychecker/refcounts/too_many_increfs/input.c:26:nn: note: when PyLong_FromLong() succeeds at: tmp = PyLong_FromLong(0x1000); DEBUG: -tests/cpychecker/refcounts/too_many_increfs/input.c:26:nn: note: ob_refcnt is now refs: 1 owned DEBUG: -tests/cpychecker/refcounts/too_many_increfs/input.c:30:nn: note: ob_refcnt is now refs: 2 owned DEBUG: -tests/cpychecker/refcounts/too_many_increfs/input.c:31:nn: note: returning at: return tmp; DEBUG: -tests/cpychecker/refcounts/too_many_increfs/input.c:30:nn: warning: dereferencing NULL (tmp->ob_refcnt) at tests/cpychecker/refcounts/too_many_increfs/input.c:30 DEBUG: -tests/cpychecker/refcounts/too_many_increfs/input.c:26:nn: note: when PyLong_FromLong() fails at: tmp = PyLong_FromLong(0x1000); DEBUG: -tests/cpychecker/refcounts/too_many_increfs/input.c:24:nn: note: graphical error report for function 'too_many_increfs' written out to 'tests/cpychecker/refcounts/too_many_increfs/input.c.too_many_increfs-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/too_many_increfs/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/too_many_increfs/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: -fplugin-arg-python2-script=tests/cpychecker/refcounts/unrecognized_function2/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/unrecognized_function2/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/unrecognized_function2/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/unrecognized_function2/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/unrecognized_function3: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/unrecognized_function3/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/unrecognized_function3/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/unrecognized_function3/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/unrecognized_function3/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/unrecognized_function3/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/unrecognized_function4: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/unrecognized_function4/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/unrecognized_function4/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/unrecognized_function4/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/unrecognized_function4/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/unrecognized_function4/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/use_after_dealloc: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/use_after_dealloc/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/use_after_dealloc/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/use_after_dealloc/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/use_after_dealloc/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/use_after_dealloc/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/without-python-headers: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/without-python-headers/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/without-python-headers/script.py -fsigned-char tests/cpychecker/refcounts/without-python-headers/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/without-python-headers/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/without-python-headers/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: tests/cpychecker/refcounts/without-python-headers/inp--- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,15 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/refcounts/without-python-headers/input.c', line=29), value=42) DEBUG: - str(): (int)42 from tests/cpychecker/refcounts/without-python-headers/input.c:29 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='int', loc=gcc.Location(file='tests/cpychecker/refcounts/without-python-headers/input.c', line=31), value=43) DEBUG: - str(): (int)43 from tests/cpychecker/refcounts/without-python-headers/input.c:31 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,5 @@ DEBUG: +tests/cpychecker/refcounts/without-python-headers/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/without-python-headers/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +tests/cpychecker/refcounts/without-python-headers/input.c:26:nn: warning: ISO C99 requires whitespace after the macro name DEBUG: +tests/cpychecker/refcounts/without-python-headers/input.c:26: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: io.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/subclass/incorrect-subclass-ptr: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/subclass/incorrect-subclass-ptr/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/subclass/incorrect-subclass-ptr/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/subclass/incorrect-subclass-ptr/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/subclass/incorrect-subclass-ptr/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/subclass/incorrect-subclass-ptr/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/subclass/opaque-struct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/subclass/opaque-struct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/subclass/opaque-struct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/subclass/opaque-struct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/subclass/opaque-struct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/subclass/opaque-struct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/ticket-20: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/ticket-20/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/ticket-20/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/ticket-20/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/ticket-20/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/ticket-20/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/too_many_increfs: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/too_many_increfs/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/too_many_increfs/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/too_many_increfs/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/too_many_increfs/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/too_many_increfs/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/tp_iternext/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/tp_iternext/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/tp_iternext/correct/script.py -fsigned-char -I/usr/include/python2--- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,13 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/tp_iternext/correct/input.c', line=31), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/tp_iternext/correct/input.c:31 DEBUG: - region for gcc.ParmDecl('iter') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('iter')") DEBUG: - str(): region for gcc.ParmDecl('iter') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/tp_iternext/correct/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('iter')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/tp_iternext/correct/input.c:30 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/tp_iternext/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/tp_iternext/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,67 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/passing_dead_object/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/passing_dead_object/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/passing_dead_object/input.c:32: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/passing_dead_object/input.c', line=32)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/passing_dead_object/input.c:32 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/passing_dead_object/input.c', line=32), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/passing_dead_object/input.c:30 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/passing_dead_object/input.c:32' DEBUG: - error: PassingPointerToDeallocatedMemory() DEBUG: - error: passing pointer to deallocated memory as argument 1 of function at tests/cpychecker/refcounts/passing_dead_object/input.c:45: memory deallocated at tests/cpychecker/refcounts/passing_dead_object/input.c:42 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/passing_dead_object/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/passing_dead_object/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - PyLongObject allocated at tests/cpychecker/refcounts/passing_dead_object/input.c:32: DEBUG: - repr(): RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/passing_dead_object/input.c', line=32)) DEBUG: - str(): PyLongObject allocated at tests/cpychecker/refcounts/passing_dead_object/input.c:32 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/passing_dead_object/input.c:30 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/passing_dead_object/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/passing_dead_object/input.c', line=29), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/passing_dead_object/input.c:32 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,10 +1,4 @@ DEBUG: -In function 'passing_dead_object_to_function': DEBUG: -tests/cpychecker/refcounts/passing_dead_object/input.c:45:nn: warning: passing pointer to deallocated memory as argument 1 of function at tests/cpychecker/refcounts/passing_dead_object/input.c:45: memory deallocated at tests/cpychecker/refcounts/passing_dead_object/input.c:42 DEBUG: -tests/cpychecker/refcounts/passing_dead_object/input.c:32:nn: note: when PyLong_FromLong() succeeds at: PyObject *tmp = PyLong_FromLong(0x1000); DEBUG: -tests/cpychecker/refcounts/passing_dead_object/input.c:34:nn: note: taking False path at: if (!tmp) { DEBUG: -tests/cpychecker/refcounts/passing_dead_object/input.c:42:nn: note: reaching: Py_DECREF(tmp); DEBUG: -tests/cpychecker/refcounts/passing_dead_object/input.c:42:nn: note: when taking False path at: Py_DECREF(tmp); DEBUG: -tests/cpychecker/refcounts/passing_dead_object/input.c:42:nn: note: reaching: Py_DECREF(tmp); DEBUG: -tests/cpychecker/refcounts/passing_dead_object/input.c:42:nn: note: calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/passing_dead_object/input.c:32 at: Py_DECREF(tmp); DEBUG: -tests/cpychecker/refcounts/passing_dead_object/input.c:45:nn: note: reaching: foo(tmp); DEBUG: -tests/cpychecker/refcounts/passing_dead_object/input.c:30:nn: note: graphical error report for function 'passing_dead_object_to_function' written out to 'tests/cpychecker/refcounts/passing_dead_object/input.c.passing_dead_object_to_function-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/passing_dead_object/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/passing_dead_object/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/unknown-function/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/unknown-function/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +tests/cpychecker/unknown-function/input.c:20: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,5 +0,0 @@ DEBUG: -attribute_callback_for_claims_mutex called: args: (gcc.FunctionDecl('some_function'), gcc.StringCst('io')) DEBUG: -attribute_callback_for_releases_mutex called: args: (gcc.FunctionDecl('some_other_function'), gcc.StringCst('io')) DEBUG: -attribute_callback_for_claims_mutex called: args: (gcc.FunctionDecl('yet_another_function'), gcc.StringCst('db')) DEBUG: -attribute_callback_for_claims_mutex called: args: (gcc.FunctionDecl('yet_another_function'), gcc.StringCst('io')) DEBUG: -attribute_callback_for_releases_mutex called: args: (gcc.FunctionDecl('yet_another_function'), gcc.StringCst('io')) DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/examples/attributes-with-macros/input.c:1:nn: error: invalid flag "WITH_ATTRIBUTE_CLAIMS_MUTEX" in line directive DEBUG: +tests/examples/attributes-with-macros/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +tests/examples/attributes-with-macros/input.c:36: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,13 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/tp_iternext/partial-type-object/input.c', line=33), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/tp_iternext/partial-type-object/input.c:33 DEBUG: - region for gcc.ParmDecl('obj') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('obj')") DEBUG: - str(): region for gcc.ParmDecl('obj') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/tp_iternext/partial-type-object/input.c', line=30), region=Region("region-for-type-of-arg-gcc.ParmDecl('obj')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/tp_iternext/partial-type-object/input.c:31 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,4 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/tp_iternext/partial-type-object/input.c:33:nn: warning: returning (PyObject*)NULL without setting an exception DEBUG: -tests/cpychecker/refcounts/tp_iternext/partial-type-object/input.c:33:nn: note: returning at: return NULL; DEBUG: -tests/cpychecker/refcounts/tp_iternext/partial-type-object/input.c:31:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/tp_iternext/partial-type-object/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/tp_iternext/partial-type-object/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/tp_iternext/partial-type-object/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,69 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/returning_dead_object/input.c', line=29), region=RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/returning_dead_object/input.c', line=29))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/returning_dead_object/input.c', line=29)) from tests/cpychecker/refcounts/returning_dead_object/input.c:29 DEBUG: - r->ob_refcnt: refs: 0 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/returning_dead_object/input.c', line=29), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/returning_dead_object/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/returning_dead_object/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/returning_dead_object/input.c:27 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when taking False path' DEBUG: - 'calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/returning_dead_object/input.c:29' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/returning_dead_object/input.c', line=29), region=RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/returning_dead_object/input.c', line=29))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/returning_dead_object/input.c', line=29)) from tests/cpychecker/refcounts/returning_dead_object/input.c:29 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/returning_dead_object/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/returning_dead_object/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/returning_dead_object/input.c:27 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/returning_dead_object/input.c', line=32), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/returning_dead_object/input.c:32 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/returning_dead_object/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/returning_dead_object/input.c', line=26), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/returning_dead_object/input.c:29 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,23 +1,4 @@ DEBUG: -In function 'returning_dead_object': DEBUG: -tests/cpychecker/refcounts/returning_dead_object/input.c:42:nn: warning: future use-after-free: ob_refcnt of return value is 1 too low DEBUG: -tests/cpychecker/refcounts/returning_dead_object/input.c:29:nn: note: return value was allocated at: PyObject *tmp = PyLong_FromLong(0x1000); DEBUG: -tests/cpychecker/refcounts/returning_dead_object/input.c:42:nn: note: was expecting final owned ob_refcnt of return value to be 1 due to object being referenced by: return value but final ob_refcnt is refs: 0 owned DEBUG: -tests/cpychecker/refcounts/returning_dead_object/input.c:29:nn: note: when PyLong_FromLong() succeeds at: PyObject *tmp = PyLong_FromLong(0x1000); DEBUG: -tests/cpychecker/refcounts/returning_dead_object/input.c:29:nn: note: ob_refcnt is now refs: 1 owned DEBUG: -tests/cpychecker/refcounts/returning_dead_object/input.c:31:nn: note: taking False path at: if (!tmp) { DEBUG: -tests/cpychecker/refcounts/returning_dead_object/input.c:39:nn: note: reaching: Py_DECREF(tmp); DEBUG: -tests/cpychecker/refcounts/returning_dead_object/input.c:39:nn: note: ob_refcnt is now refs: 0 owned DEBUG: -tests/cpychecker/refcounts/returning_dead_object/input.c:39:nn: note: when taking True path at: Py_DECREF(tmp); DEBUG: -tests/cpychecker/refcounts/returning_dead_object/input.c:42:nn: note: reaching: return tmp; DEBUG: -tests/cpychecker/refcounts/returning_dead_object/input.c:42:nn: note: returning DEBUG: -tests/cpychecker/refcounts/returning_dead_object/input.c:42:nn: warning: returning pointer to deallocated memory DEBUG: -tests/cpychecker/refcounts/returning_dead_object/input.c:29:nn: note: when PyLong_FromLong() succeeds at: PyObject *tmp = PyLong_FromLong(0x1000); DEBUG: -tests/cpychecker/refcounts/returning_dead_object/input.c:31:nn: note: taking False path at: if (!tmp) { DEBUG: -tests/cpychecker/refcounts/returning_dead_object/input.c:39:nn: note: reaching: Py_DECREF(tmp); DEBUG: -tests/cpychecker/refcounts/returning_dead_object/input.c:39:nn: note: when taking False path at: Py_DECREF(tmp); DEBUG: -tests/cpychecker/refcounts/returning_dead_object/input.c:39:nn: note: reaching: Py_DECREF(tmp); DEBUG: -tests/cpychecker/refcounts/returning_dead_object/input.c:39:nn: note: calling tp_dealloc on PyLongObject allocated at tests/cpychecker/refcounts/returning_dead_object/input.c:29 at: Py_DECREF(tmp); DEBUG: -tests/cpychecker/refcounts/returning_dead_object/input.c:42:nn: note: reaching: return tmp; DEBUG: -tests/cpychecker/refcounts/returning_dead_object/input.c:42:nn: note: returning DEBUG: -tests/cpychecker/refcounts/returning_dead_object/input.c:39:nn: note: memory deallocated here DEBUG: -tests/cpychecker/refcounts/returning_dead_object/input.c:27:nn: note: graphical error report for function 'returning_dead_object' written out to 'tests/cpychecker/refcounts/returning_dead_object/input.c.returning_dead_object-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/returning_dead_object/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/returning_dead_object/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,42 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: -0x80000000 <= len <= 0' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/uninitialized_data/comparison/input.c', line=34), region=RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/uninitialized_data/comparison/input.c', line=34))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/uninitialized_data/comparison/input.c', line=34)) from tests/cpychecker/refcounts/uninitialized_data/comparison/input.c:34 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/uninitialized_data/comparison/input.c', line=34), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/uninitialized_data/comparison/input.c:29 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 1 <= len <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - error: UsageOfUninitializedData() DEBUG: - error: comparison against uninitialized data (item) at tests/cpychecker/refcounts/uninitialized_data/comparison/input.c:41 DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/uninitialized_data/comparison/input.c:34: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/uninitialized_data/comparison/input.c', line=34)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/uninitialized_data/comparison/input.c:34 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/uninitialized_data/comparison/input.c', line=34), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/uninitialized_data/comparison/input.c:29 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyList_New() fails' DEBUG: - 'taking True path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/uninitialized_data/comparison/input.c', line=52), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/uninitialized_data/comparison/input.c:52 DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/uninitialized_data/comparison/input.c:34 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,9 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/uninitialized_data/comparison/input.c:41:nn: warning: comparison against uninitialized data (item) at tests/cpychecker/refcounts/uninitialized_data/comparison/input.c:41 DEBUG: -tests/cpychecker/refcounts/uninitialized_data/comparison/input.c:34:nn: note: when PyList_New() succeeds at: result = PyList_New(len); DEBUG: -tests/cpychecker/refcounts/uninitialized_data/comparison/input.c:35:nn: note: taking False path at: if (!result) { DEBUG: -tests/cpychecker/refcounts/uninitialized_data/comparison/input.c:39:nn: note: reaching: for (i = 0; i < len; i++) { DEBUG: -tests/cpychecker/refcounts/uninitialized_data/comparison/input.c:39:nn: note: when considering range: 1 <= len <= 0x7fffffff at: for (i = 0; i < len; i++) { DEBUG: -tests/cpychecker/refcounts/uninitialized_data/comparison/input.c:39:nn: note: taking True path at: for (i = 0; i < len; i++) { DEBUG: -tests/cpychecker/refcounts/uninitialized_data/comparison/input.c:41:nn: note: reaching: if (!item) { DEBUG: -tests/cpychecker/refcounts/uninitialized_data/comparison/input.c:29:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/uninitialized_data/comparison/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/uninitialized_data/comparison/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/uninitialized_data/comparison/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,80 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/storage_regions/static/correct/input.c:24 as non-NULL' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/storage_regions/static/correct/input.c', line=30), region=Region('heap-region-0')) DEBUG: - str(): (struct PyObject *)&Region('heap-region-0') from tests/cpychecker/refcounts/storage_regions/static/correct/input.c:30 DEBUG: - r->ob_refcnt: (Py_ssize_t)val [-0x7fffffffffffffff <= val <= 0x7fffffffffffffff] from tests/cpychecker/refcounts/storage_regions/static/correct/input.c:46 DEBUG: - r->ob_type: None DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/storage_regions/static/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/storage_regions/static/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/storage_regions/static/correct/input.c:24 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/storage_regions/static/correct/input.c:24 as NULL' DEBUG: - 'taking True path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/storage_regions/static/correct/input.c', line=36), region=RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/storage_regions/static/correct/input.c', line=36))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/storage_regions/static/correct/input.c', line=36)) from tests/cpychecker/refcounts/storage_regions/static/correct/input.c:36 DEBUG: - r->ob_refcnt: refs: 2 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/storage_regions/static/correct/input.c', line=36), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/storage_regions/static/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/storage_regions/static/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Region('heap-region-0'): DEBUG: - repr(): Region('heap-region-0') DEBUG: - str(): Region('heap-region-0') DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/storage_regions/static/correct/input.c:24 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/storage_regions/static/correct/input.c:24 as NULL' DEBUG: - 'taking True path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/storage_regions/static/correct/input.c', line=38), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/storage_regions/static/correct/input.c:38 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/storage_regions/static/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/storage_regions/static/correct/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Region('heap-region-0'): DEBUG: - repr(): Region('heap-region-0') DEBUG: - str(): Region('heap-region-0') DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/storage_regions/static/correct/input.c:36 DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -0,0 +1,4 @@ DEBUG: +tests/cpychecker/refcounts/storage_regions/static/correct/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/storage_regions/static/correct/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,70 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c:24 as non-NULL' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c', line=30), region=Region('heap-region-0')) DEBUG: - str(): (struct PyObject *)&Region('heap-region-0') from tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c:30 DEBUG: - r->ob_refcnt: None DEBUG: - r->ob_type: None DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c:24 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c:24 as NULL' DEBUG: - 'taking True path' DEBUG: - 'when PyLong_FromLong() succeeds' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c', line=36), region=RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c', line=36))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyLongObject', gcc.Location(file='tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c', line=36)) from tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c:36 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c', line=36), region=RegionForGlobal(gcc.VarDecl('PyLong_Type'))) DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c:24 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when treating unknown struct PyObject * from tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c:24 as NULL' DEBUG: - 'taking True path' DEBUG: - 'when PyLong_FromLong() fails' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c', line=38), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c:38 DEBUG: - region for gcc.ParmDecl('self') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('self')") DEBUG: - str(): region for gcc.ParmDecl('self') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('self')")) DEBUG: - region for gcc.ParmDecl('args') on stack: DEBUG: - repr(): RegionOnStack("region for gcc.ParmDecl('args')") DEBUG: - str(): region for gcc.ParmDecl('args') on stack DEBUG: - r->ob_refcnt: refs: 0 owned, 1 borrowed DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c', line=23), region=Region("region-for-type-of-arg-gcc.ParmDecl('args')")) DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c:36 DEBUG: nostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/object_leak/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/object_leak/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/object_leak/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/object_leak/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/object_leak/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/passing_dead_object: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/passing_dead_object/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/passing_dead_object/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/passing_dead_object/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/passing_dead_object/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/passing_dead_object/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/returning_dead_object: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/returning_dead_object/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/returning_dead_object/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/returning_dead_object/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/returning_dead_object/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/returning_dead_object/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/storage_regions/static/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/storage_regions/static/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/storage_regions/static/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/storage_regions/static/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/storage_regions/static/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/storage_regions/static/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/storage_regions/static/incorrect: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/storage_regions/static/incorrect/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/storage_regions/static/incorrect/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/storage_regions/static/incorrect/inpu--- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,14 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c:49:nn: warning: future use-after-free: ob_refcnt of return value is 1 too low DEBUG: -tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c:36:nn: note: return value was allocated at: cache = PyLong_FromLong(0x1000); DEBUG: -tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c:49:nn: note: was expecting final owned ob_refcnt of return value to be 2 due to object being referenced by: return value, cache but final ob_refcnt is refs: 1 owned DEBUG: -tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c:30:nn: note: when treating unknown struct PyObject * from tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c:24 as NULL at: if (!cache) { DEBUG: -tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c:30:nn: note: taking True path at: if (!cache) { DEBUG: -tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c:36:nn: note: reaching: cache = PyLong_FromLong(0x1000); DEBUG: -tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c:36:nn: note: when PyLong_FromLong() succeeds at: cache = PyLong_FromLong(0x1000); DEBUG: -tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c:36:nn: note: ob_refcnt is now refs: 1 owned DEBUG: -tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c:36:nn: note: return value is now referenced by 1 non-stack value(s): cache DEBUG: -tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c:37:nn: note: taking False path at: if (!cache) { DEBUG: -tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c:49:nn: note: reaching: return cache; DEBUG: -tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c:49:nn: note: returning DEBUG: -tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c:24:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: --- Expected stdout (after cleaning) DEBUG: +++ Actual stdout (after cleaning) DEBUG: @@ -1,42 +0,0 @@ DEBUG: -Trace 0: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: -0x80000000 <= len <= 0' DEBUG: - 'taking False path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c', line=34), region=RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c', line=34))) DEBUG: - str(): (struct PyObject *)&RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c', line=34)) from tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c:34 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c', line=34), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c:29 DEBUG: - DEBUG: -Trace 1: DEBUG: - Transitions: DEBUG: - 'when PyList_New() succeeds' DEBUG: - 'taking False path' DEBUG: - 'when considering range: 1 <= len <= 0x7fffffff' DEBUG: - 'taking True path' DEBUG: - error: UsageOfUninitializedData() DEBUG: - error: passing uninitialized data (item) as argument 3 to function at tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c:41 DEBUG: - PyListObject allocated at tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c:34: DEBUG: - repr(): RegionOnHeap('PyListObject', gcc.Location(file='tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c', line=34)) DEBUG: - str(): PyListObject allocated at tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c:34 DEBUG: - r->ob_refcnt: refs: 1 owned DEBUG: - r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c', line=34), region=RegionForGlobal(gcc.VarDecl('PyList_Type'))) DEBUG: - Exception: DEBUG: - (struct PyObject *)0 from tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c:29 DEBUG: - DEBUG: -Trace 2: DEBUG: - Transitions: DEBUG: - 'when PyList_New() fails' DEBUG: - 'taking True path' DEBUG: - 'taking True path' DEBUG: - 'returning' DEBUG: - Return value: DEBUG: - repr(): ConcreteValue(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c', line=48), value=0) DEBUG: - str(): (struct PyObject *)0 from tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c:48 DEBUG: - Exception: DEBUG: - (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c:34 DEBUG: 45 successes; 253 failures; 0 skipped DEBUG: Failed tests: DEBUG: tests/cpychecker/PyArg_Parse/incorrect_codes_S_and_U DEBUG: tests/cpychecker/PyArg_ParseTuple/code_O_bang DEBUG: tests/cpychecker/PyArg_ParseTuple/code_s/incorrect-constness DEBUG: tests/cpychecker/PyArg_ParseTuple/codes_accepting_null DEBUG: tests/cpychecker/PyArg_ParseTuple/correct_codes_S_and_U DEBUG: tests/cpychecker/PyArg_ParseTuple/correct_converter DEBUG: tests/cpychecker/PyArg_ParseTuple/encodings DEBUG: tests/cpychecker/PyArg_ParseTuple/incorrect_code_z_hash DEBUG: tests/cpychecker/PyArg_ParseTuple/incorrect_codes_S_and_U DEBUG: tests/cpychecker/PyArg_ParseTuple/incorrect_converters DEBUG: tests/cpychecker/PyArg_ParseTuple/keywords DEBUG: tests/cpychecker/PyArg_ParseTuple/typedefs DEBUG: tests/cpychecker/PyArg_ParseTuple/with_PY_SSIZE_T_CLEAN DEBUG: tests/cpychecker/PyArg_ParseTuple/without_PY_SSIZE_T_CLEAN DEBUG: tests/cpychecker/PyMethodDef/correct DEBUG: tests/cpychecker/PyMethodDef/incorrect-types DEBUG: tests/cpychecker/PyMethodDef/missing-sentinel DEBUG: tests/cpychecker/Py_BuildValue/code_O/subclass DEBUG: tests/cpychecker/Py_BuildValue/code_c/correct DEBUG: tests/cpychecker/Py_BuildValue/code_f/correct DEBUG: tests/cpychecker/Py_BuildValue/code_lower_d/correct DEBUG: tests/cpychecker/Py_BuildValue/code_s_hash/correct DEBUG: tests/cpychecker/Py_BuildValue/code_u/correct DEBUG: tests/cpychecker/Py_BuildValue/code_u_hash/correct DEBUG: tests/cpychecker/Py_BuildValue/code_upper_D/correct DEBUG: tests/cpychecker/Py_BuildValue/code_upper_D/incorrect DEBUG: tests/cpychecker/absinterp/arithmetic/correct DEBUG: tests/cpychecker/absinterp/arithmetic/division-by-zero/definite DEBUG: tests/cpychecker/absinterp/arithmetic/division-by-zero/possible DEBUG: tests/cpychecker/absinterp/arithmetic/fix-trunc-expr DEBUG: tests/cpychecker/absinterp/arithmetic/negative-shift/possible DEBUG: tests/cpychecker/absinterp/array-range/fully-checked DEBUG: tests/cpychecker/absinterp/array-range/implicitly-correct DEBUG: tests/cpychecker/absinterp/array-range/off-by-one DEBUG: tests/cpychecker/absinterp/array-range/partial-initialization-on-stack DEBUG: tests/cpychecker/absinterp/array-range/unchecked DEBUG: tests/cpychecker/absinterp/array-range/upper-checked DEBUG: tests/cpychecker/absinterp/arrays DEBUG: tests/cpychecker/absinterp/arrays2 DEBUG: tests/cpychecker/absinterp/arrays3 DEBUG: tests/cpychecker/absinterp/arrays4 DEBUG: tests/cpychecker/absinterp/arrays6 DEBUG: tests/cpychecker/absinterp/arrays7 DEBUG: tests/cpychecker/absinterp/asm/empty DEBUG: tests/cpychecker/absinterp/assignment-from-string-const DEBUG: tests/cpychecker/absinterp/bitfields/reading DEBUG: tests/cpychecker/absinterp/casts/int-to-float DEBUG: tests/cpychecker/absinterp/casts/int-to-pointer DEBUG: tests/cpychecker/absinterp/casts/int-to-pointer2 DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-max-of-WithinRange DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-eq-min-of-WithinRange DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-max-of-WithinRange DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-ge-min-of-WithinRange DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-max-of-WithinRange DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-gt-min-of-WithinRange DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-max-of-WithinRange DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-le-min-of-WithinRange DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-max-of-WithinRange DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-min-of-WithinRange DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/ConcreteValue-lt-two-value-range DEBUG: tests/cpychecker/absinterp/comparisons/boundaries/WithinRange-eq-ConcreteValue-in-middle DEBUG: tests/cpychecker/absinterp/comparisons/pointers DEBUG: tests/cpychecker/absinterp/custom-strdup DEBUG: tests/cpychecker/absinterp/custom-strdup-with-attr DEBUG: tests/cpychecker/absinterp/exceptions DEBUG: tests/cpychecker/absinterp/exit DEBUG: tests/cpychecker/absinterp/function-pointers DEBUG: tests/cpychecker/absinterp/nested-fields DEBUG: tests/cpychecker/absinterp/nested-fields2 DEBUG: tests/cpychecker/absinterp/nested-fields3 DEBUG: tests/cpychecker/absinterp/nonnull-attribute DEBUG: tests/cpychecker/absinterp/read-through-global-ptr-checked DEBUG: tests/cpychecker/absinterp/read-through-global-ptr-unchecked DEBUG: tests/cpychecker/absinterp/read-through-uninitialized-ptr DEBUG: tests/cpychecker/absinterp/real-cst/regular DEBUG: tests/cpychecker/absinterp/result-decl DEBUG: tests/cpychecker/absinterp/static-data DEBUG: tests/cpychecker/absinterp/string-constants DEBUG: tests/cpychecker/absinterp/switch DEBUG: tests/cpychecker/absinterp/two-loops DEBUG: tests/cpychecker/absinterp/uninitialized-data DEBUG: tests/cpychecker/absinterp/void-return DEBUG: tests/cpychecker/absinterp/write-through-arg-unchecked DEBUG: tests/cpychecker/absinterp/write-through-global-ptr-checked DEBUG: tests/cpychecker/absinterp/write-through-global-ptr-unchecked DEBUG: tests/cpychecker/fileptr-missing-error-check DEBUG: tests/cpychecker/refcounts/GIL/correct DEBUG: tests/cpychecker/refcounts/PyArg_Parse/correct_simple DEBUG: tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O DEBUG: tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O_bang DEBUG: tests/cpychecker/refcounts/PyArg_ParseTuple/correct_converter DEBUG: tests/cpychecker/refcounts/PyArg_ParseTuple/correct_simple DEBUG: tests/cpychecker/refcounts/PyArg_ParseTupleAndKeywords/correct_O DEBUG: tests/cpychecker/refcounts/PyArg_UnpackTuple/correct DEBUG: tests/cpychecker/refcounts/PyArg_UnpackTuple/wrong-number-of-varargs DEBUG: tests/cpychecker/refcounts/PyBool_FromLong/correct DEBUG: tests/cpychecker/refcounts/PyCObject_FromVoidPtr/incorrect DEBUG: tests/cpychecker/refcounts/PyCObject_FromVoidPtrAndDesc/incorrect DEBUG: tests/cpychecker/refcounts/PyCapsule_GetPointer/basic DEBUG: tests/cpychecker/refcounts/PyDict_GetItem/correct DEBUG: tests/cpychecker/refcounts/PyDict_GetItem/incorrect DEBUG: tests/cpychecker/refcounts/PyDict_GetItemString/correct DEBUG: tests/cpychecker/refcounts/PyDict_GetItemString/incorrect DEBUG: tests/cpychecker/refcounts/PyDict_New/correct DEBUG: tests/cpychecker/refcounts/PyDict_SetItem/correct DEBUG: tests/cpychecker/refcounts/PyDict_SetItem/incorrect DEBUG: tests/cpychecker/refcounts/PyDict_SetItemString/correct DEBUG: tests/cpychecker/refcounts/PyDict_SetItemString/incorrect DEBUG: tests/cpychecker/refcounts/PyDict_Size/simple DEBUG: tests/cpychecker/refcounts/PyErr_Clear/correct DEBUG: tests/cpychecker/refcounts/PyErr_Format/correct DEBUG: tests/cpychecker/refcounts/PyErr_NewException/basic DEBUG: tests/cpychecker/refcounts/PyErr_NoMemory/correct DEBUG: tests/cpychecker/refcounts/PyErr_PrintEx DEBUG: tests/cpychecker/refcounts/PyErr_SetFromErrno/correct DEBUG: tests/cpychecker/refcounts/PyErr_SetNone/correct DEBUG: tests/cpychecker/refcounts/PyErr_SetObject/correct DEBUG: tests/cpychecker/refcounts/PyErr_SetString/correct DEBUG: tests/cpychecker/refcounts/PyEval_CallMethod/correct DEBUG: tests/cpychecker/refcounts/PyEval_CallMethod/incorrect DEBUG: tests/cpychecker/refcounts/PyFloat_AsDouble/correct_PyFloatObject DEBUG: tests/cpychecker/refcounts/PyFloat_AsDouble/correct_cast DEBUG: tests/cpychecker/refcounts/PyFloat_FromDouble/simple DEBUG: tests/cpychecker/refcounts/PyGILState_Ensure/correct DEBUG: tests/cpychecker/refcounts/PyInt_AsLong/correct_PyIntObject DEBUG: tests/cpychecker/refcounts/PyInt_AsLong/correct_cast DEBUG: tests/cpychecker/refcounts/PyInt_FromLong/correct_large_int DEBUG: tests/cpychecker/refcounts/PyInt_FromLong/correct_small_int DEBUG: tests/cpychecker/refcounts/PyIter_Next/simple DEBUG: tests/cpychecker/refcounts/PyList_Append/correct DEBUG: tests/cpychecker/refcounts/PyList_Append/incorrect DEBUG: tests/cpychecker/refcounts/PyList_Append/incorrect-loop DEBUG: tests/cpychecker/refcounts/PyList_Append/null-newitem DEBUG: tests/cpychecker/refcounts/PyList_Append/ticket-19 DEBUG: tests/cpychecker/refcounts/PyList_Append/ticket-22 DEBUG: tests/cpychecker/refcounts/PyList_GetItem/correct DEBUG: tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct DEBUG: tests/cpychecker/refcounts/PyList_SET_ITEM_macro/correct_multiple DEBUG: tests/cpychecker/refcounts/PyList_SET_ITEM_macro/incorrect_multiple DEBUG: tests/cpychecker/refcounts/PyList_Size/unknown-size DEBUG: tests/cpychecker/refcounts/PyMapping_Size/basic DEBUG: tests/cpychecker/refcounts/PyMem_Malloc/correct/alloc-and-free DEBUG: tests/cpychecker/refcounts/PyMem_Malloc/correct/free-NULL DEBUG: tests/cpychecker/refcounts/PyModule_AddObject/incorrect-with-cast DEBUG: tests/cpychecker/refcounts/PyObject_CallFunction/correct DEBUG: tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/correct DEBUG: tests/cpychecker/refcounts/PyObject_CallFunctionObjArgs/incorrect DEBUG: tests/cpychecker/refcounts/PyObject_CallMethod/correct DEBUG: tests/cpychecker/refcounts/PyObject_CallMethod/correct-code-N DEBUG: tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/correct DEBUG: tests/cpychecker/refcounts/PyObject_CallMethodObjArgs/incorrect DEBUG: tests/cpychecker/refcounts/PyObject_CallObject/correct DEBUG: tests/cpychecker/refcounts/PyObject_GenericGetAttr/basic DEBUG: tests/cpychecker/refcounts/PyObject_GenericSetAttr/basic DEBUG: tests/cpychecker/refcounts/PyObject_GetAttr/correct DEBUG: tests/cpychecker/refcounts/PyObject_GetAttr/incorrect DEBUG: tests/cpychecker/refcounts/PyObject_GetAttrString/correct DEBUG: tests/cpychecker/refcounts/PyObject_GetAttrString/incorrect DEBUG: tests/cpychecker/refcounts/PyObject_GetItem/correct DEBUG: tests/cpychecker/refcounts/PyObject_GetItem/incorrect DEBUG: tests/cpychecker/refcounts/PyObject_HasAttrString/correct DEBUG: tests/cpychecker/refcounts/PyObject_HasAttrString/incorrect DEBUG: tests/cpychecker/refcounts/PyObject_IsTrue/correct DEBUG: tests/cpychecker/refcounts/PyObject_SetAttrString/ignored-lhs DEBUG: tests/cpychecker/refcounts/PySequence_SetItem/correct DEBUG: tests/cpychecker/refcounts/PySequence_SetItem/incorrect DEBUG: tests/cpychecker/refcounts/PySequence_Size/correct DEBUG: tests/cpychecker/refcounts/PySequence_Size/null DEBUG: tests/cpychecker/refcounts/PyString_AsString/correct DEBUG: tests/cpychecker/refcounts/PyString_AsString/incorrect DEBUG: tests/cpychecker/refcounts/PyString_AsString/unknown DEBUG: tests/cpychecker/refcounts/PyString_Concat/basic DEBUG: tests/cpychecker/refcounts/PyString_Concat/leak-of-rhs DEBUG: tests/cpychecker/refcounts/PyString_Concat/null-lhs DEBUG: tests/cpychecker/refcounts/PyString_Concat/null-rhs DEBUG: tests/cpychecker/refcounts/PyString_ConcatAndDel/basic DEBUG: tests/cpychecker/refcounts/PyString_ConcatAndDel/correct DEBUG: tests/cpychecker/refcounts/PyString_ConcatAndDel/null-lhs DEBUG: tests/cpychecker/refcounts/PyString_ConcatAndDel/null-rhs DEBUG: tests/cpychecker/refcounts/PyString_FromStringAndSize/correct DEBUG: tests/cpychecker/refcounts/PyString_Size/correct DEBUG: tests/cpychecker/refcounts/PyStructSequence/correct DEBUG: tests/cpychecker/refcounts/PySys_GetObject/incorrect DEBUG: tests/cpychecker/refcounts/PySys_SetObject/correct DEBUG: tests/cpychecker/refcounts/PyTuple_GetItem/correct DEBUG: tests/cpychecker/refcounts/PyTuple_GetItem/incorrect DEBUG: tests/cpychecker/refcounts/PyTuple_New/correct DEBUG: tests/cpychecker/refcounts/PyTuple_Pack/incorrect-arg-count DEBUG: tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct DEBUG: tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple DEBUG: tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/incorrect_multiple DEBUG: tests/cpychecker/refcounts/PyTuple_SetItem/correct DEBUG: tests/cpychecker/refcounts/PyTuple_SetItem/correct_multiple DEBUG: tests/cpychecker/refcounts/PyTuple_SetItem/incorrect_multiple DEBUG: tests/cpychecker/refcounts/PyTuple_Size/incorrect DEBUG: tests/cpychecker/refcounts/PyTuple_Size/ticket-24 DEBUG: tests/cpychecker/refcounts/PyType_IsSubtype/correct DEBUG: tests/cpychecker/refcounts/PyUnicode_AsUTF8String/basic DEBUG: tests/cpychecker/refcounts/PyWeakref_GetObject/NULL DEBUG: tests/cpychecker/refcounts/PyWeakref_GetObject/correct DEBUG: tests/cpychecker/refcounts/PyWeakref_GetObject/incorrect DEBUG: tests/cpychecker/refcounts/Py_BuildValue/Py_TYPE DEBUG: tests/cpychecker/refcounts/Py_BuildValue/correct DEBUG: tests/cpychecker/refcounts/Py_BuildValue/correct-code-N DEBUG: tests/cpychecker/refcounts/Py_BuildValue/correct-code-O DEBUG: tests/cpychecker/refcounts/Py_BuildValue/correct-code-s DEBUG: tests/cpychecker/refcounts/Py_FatalError/correct DEBUG: tests/cpychecker/refcounts/Py_Finalize/correct DEBUG: tests/cpychecker/refcounts/SWIG_Python_ErrorType/correct DEBUG: tests/cpychecker/refcounts/_PyObject_New/correct DEBUG: tests/cpychecker/refcounts/__builtin_expect DEBUG: tests/cpychecker/refcounts/correct_decref DEBUG: tests/cpychecker/refcounts/correct_py_none DEBUG: tests/cpychecker/refcounts/cplusplus/method DEBUG: tests/cpychecker/refcounts/cplusplus/reference DEBUG: tests/cpychecker/refcounts/cplusplus/simple DEBUG: tests/cpychecker/refcounts/cplusplus/this DEBUG: tests/cpychecker/refcounts/function-that-exits DEBUG: tests/cpychecker/refcounts/getter DEBUG: tests/cpychecker/refcounts/handle_null_error DEBUG: tests/cpychecker/refcounts/incorrect_py_none DEBUG: tests/cpychecker/refcounts/loop_n_times DEBUG: tests/cpychecker/refcounts/loops/complex-loop-conditional-1 DEBUG: tests/cpychecker/refcounts/loops/complex-loop-conditional-2 DEBUG: tests/cpychecker/refcounts/macros/Py_XDECREF/crash DEBUG: tests/cpychecker/refcounts/missing_decref DEBUG: tests/cpychecker/refcounts/module_handling DEBUG: tests/cpychecker/refcounts/multiple-returns DEBUG: tests/cpychecker/refcounts/not_setting_exception DEBUG: tests/cpychecker/refcounts/object_from_callback DEBUG: tests/cpychecker/refcounts/object_leak DEBUG: tests/cpychecker/refcounts/passing_dead_object DEBUG: tests/cpychecker/refcounts/returning_dead_object DEBUG: tests/cpychecker/refcounts/storage_regions/static/correct DEBUG: tests/cpychecker/refcounts/storage_regions/static/incorrect DEBUG: tests/cpychecker/refcounts/subclass/handling DEBUG: tests/cpychecker/refcounts/subclass/incorrect-subclass-ptr DEBUG: tests/cpychecker/refcounts/subclass/opaque-struct DEBUG: tests/cpychecker/refcounts/ticket-20 DEBUG: tests/cpychecker/refcounts/too_many_increfs DEBUG: tests/cpychecker/refcounts/tp_iternext/correct DEBUG: tests/cpychecker/refcounts/tp_iternext/partial-type-object DEBUG: tests/cpychecker/refcounts/uninitialized_data/comparison DEBUG: tests/cpychecker/refcounts/uninitialized_data/function_arg DEBUG: tests/cpychecker/refcounts/unrecognized_function DEBUG: tests/cpychecker/refcounts/unrecognized_function2 DEBUG: tests/cpychecker/refcounts/unrecognized_function3 DEBUG: tests/cpychecker/refcounts/unrecognized_function4 DEBUG: tests/cpychecker/refcounts/use_after_dealloc DEBUG: tests/cpychecker/refcounts/without-python-headers DEBUG: tests/cpychecker/unknown-function DEBUG: tests/examples/attributes-with-macros DEBUG: tests/gccutils/graph DEBUG: --- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -1,9 +1,4 @@ DEBUG: -In function 'test': DEBUG: -tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c:41:nn: warning: passing uninitialized data (item) as argument 3 to function at tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c:41 DEBUG: -tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c:34:nn: note: when PyList_New() succeeds at: result = PyList_New(len); DEBUG: -tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c:35:nn: note: taking False path at: if (!result) { DEBUG: -tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c:39:nn: note: reaching: for (i = 0; i < len; i++) { DEBUG: -tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c:39:nn: note: when considering range: 1 <= len <= 0x7fffffff at: for (i = 0; i < len; i++) { DEBUG: -tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c:39:nn: note: taking True path at: for (i = 0; i < len; i++) { DEBUG: -tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c:41:nn: note: reaching: PyList_SetItem(result, i, item); DEBUG: -tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c:29:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c.test-refcount-errors.html' DEBUG: +tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c:1:nn: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: +tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c:1:nn: warning: extra tokens at end of ## directive DEBUG: +/usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: +The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: error: Bad exit status from /var/tmp/rpm-tmp.ukWbCy (%check) DEBUG: Macro expanded in comment on line 17: # Release: %{gcc_release}%{?dist} DEBUG: Bad exit status from /var/tmp/rpm-tmp.ukWbCy (%check) DEBUG: ild/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyTuple_New/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyTuple_New/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyTuple_New/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyTuple_New/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyTuple_Pack/incorrect-arg-count: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyTuple_Pack/incorrect-arg-count/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyTuple_Pack/incorrect-arg-count/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyTuple_Pack/incorrect-arg-count/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyTuple_Pack/incorrect-arg-count/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyTuple_Pack/incorrect-arg-count/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyTuple_SET_ITEM_macro/correct_multiple/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/plugin/macros/correct: OK DEBUG: tests/plugin/macros/too-early: OK DEBUG: tests/plugin/namespace: OK DEBUG: tests/plugin/syntax-error: OK DEBUG: tests/plugin/sys: OK DEBUG: tests/plugin/type-attributes: OK DEBUG: tests/plugin/types: OK DEBUG: tests/plugin/version: OK DEBUG: IsSubtype/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyType_IsSubtype/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyUnicode_AsUTF8String/basic: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyUnicode_AsUTF8String/basic/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyUnicode_AsUTF8String/basic/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyUnicode_AsUTF8String/basic/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyUnicode_AsUTF8String/basic/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyUnicode_AsUTF8String/basic/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyWeakref_GetObject/NULL: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyWeakref_GetObject/NULL/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyWeakref_GetObject/NULL/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyWeakref_GetObject/NULL/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyWeakref_GetObject/NULL/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyWeakref_GetObject/NULL/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/PyWeakref_GetObject/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyWeakref_GetObject/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyWeakref_GetObject/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyWeakref_GetObject/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyWeakref_GetObject/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyWeakref_GetObject/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: s/loops/complex-loop-conditional-2/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/loops/complex-loop-conditional-2/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/macros/Py_XDECREF/crash: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/macros/Py_XDECREF/crash/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/macros/Py_XDECREF/crash/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/macros/Py_XDECREF/crash/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: -script=tests/cpychecker/refcounts/cplusplus/method/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/cplusplus/method/input.cc DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/cplusplus/method/input.cc:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/cplusplus/method/input.cc:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/python2.7/Python.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/cplusplus/reference: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/cplusplus/reference/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/cplusplus/reference/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/cplusplus/reference/input.cc DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/cplusplus/reference/input.cc:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/cplusplus/reference/input.cc:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/python2.7/Python.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/cplusplus/simple: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/cplusplus/simple/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/cplusplus/simple/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/cplusplus/simple/input.cc DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/cplusplus/simple/input.cc:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/cplusplus/simple/input.cc:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/python2.7/Python.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/plugin/constants: OK DEBUG: tests/plugin/diagnostics: OK DEBUG: tests/plugin/function-types: OK DEBUG: tests/plugin/functions: OK DEBUG: tests/plugin/gc/_force_garbage_collection: OK DEBUG: tests/plugin/gc/_gc_selftest: OK DEBUG: tests/plugin/gc/segfault-on-instance-of-pass-subclass: OK DEBUG: tests/plugin/gimple-asm: OK DEBUG: tests/plugin/identifiers: OK DEBUG: tests/plugin/language-specific-errors/fullname: OK DEBUG: . DEBUG: tests/cpychecker/refcounts/PyString_FromStringAndSize/correct: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/PyString_FromStringAndSize/correct/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/PyString_FromStringAndSize/correct/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/PyString_FromStringAndSize/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/PyString_FromStringAndSize/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/PyString_FromStringAndSize/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/examples/find-global-state: OK DEBUG: tests/examples/lto: OK DEBUG: tests/gccutils/graph: FAIL DEBUG: returncode: 0 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/gccutils/graph/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/gccutils/graph/script.py -fsigned-char tests/gccutils/graph/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: test_cycle (__main__.GraphTests) ... ok DEBUG: test_long_path (__main__.GraphTests) ... ok DEBUG: test_to_dot (__main__.GraphTests) ... ok DEBUG: test_cycles (__main__.PathfindingTests) ... ok DEBUG: test_fork (__main__.PathfindingTests) ... ok DEBUG: test_long_path (__main__.PathfindingTests) ... ok DEBUG: test_no_path (__main__.PathfindingTests) ... ok DEBUG: test_trivial_path (__main__.PathfindingTests) ... ok DEBUG: DEBUG: ---------------------------------------------------------------------- DEBUG: Ran 8 tests in 0.065s DEBUG: DEBUG: OK DEBUG: test_cycle (__main__.GraphTests) ... ok DEBUG: test_long_path (__main__.GraphTests) ... ok DEBUG: test_to_dot (__main__.GraphTests) ... ok DEBUG: test_cycles (__main__.PathfindingTests) ... ok DEBUG: test_fork (__main__.PathfindingTests) ... ok DEBUG: test_long_path (__main__.PathfindingTests) ... ok DEBUG: test_no_path (__main__.PathfindingTests) ... ok DEBUG: test_trivial_path (__main__.PathfindingTests) ... ok DEBUG: DEBUG: ---------------------------------------------------------------------- DEBUG: Ran 8 tests in 0.068s DEBUG: DEBUG: OK--- Expected stderr (after cleaning) DEBUG: +++ Actual stderr (after cleaning) DEBUG: @@ -11,3 +11,16 @@ DEBUG: Ran 8 tests in #s DEBUG: DEBUG: OK DEBUG: +test_cycle (__main__.GraphTests) ... ok DEBUG: +test_long_path (__main__.GraphTests) ... ok DEBUG: +test_to_dot (__main__.GraphTests) ... ok DEBUG: +test_cycles (__main__.PathfindingTests) ... ok DEBUG: +test_fork (__main__.PathfindingTests) ... ok DEBUG: +test_long_path (__main__.PathfindingTests) ... ok DEBUG: +test_no_path (__main__.PathfindingTests) ... ok DEBUG: +test_trivial_path (__main__.PathfindingTests) ... ok DEBUG: + DEBUG: +---------------------------------------------------------------------- DEBUG: +Ran 8 tests in #s DEBUG: + DEBUG: +OK DEBUG: tests/gccutils/topological-sort: OK DEBUG: tests/plugin/attributes: OK DEBUG: tests/plugin/callback-FINISH_DECL: OK DEBUG: tests/plugin/callbacks/PLUGIN_FINISH: OK DEBUG: tests/plugin/callbacks/args: OK DEBUG: tests/plugin/callbacks/exception: OK DEBUG: tests/plugin/callgraph: OK DEBUG: ut.c:26:1: warning: ISO C99 requires whitespace after the macro name DEBUG: tests/cpychecker/refcounts/without-python-headers/input.c:26: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/unknown-function: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/unknown-function/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/unknown-function/script.py -fsigned-char tests/cpychecker/unknown-function/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/unknown-function/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/unknown-function/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: tests/cpychecker/unknown-function/input.c:20: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/examples/attributes-with-macros: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/examples/attributes-with-macros/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/examples/attributes-with-macros/script.py -fsigned-char tests/examples/attributes-with-macros/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/examples/attributes-with-macros/input.c:1:1: error: invalid flag "WITH_ATTRIBUTE_CLAIMS_MUTEX" in line directive DEBUG: tests/examples/attributes-with-macros/input.c:1:29: warning: extra tokens at end of ## directive DEBUG: tests/examples/attributes-with-macros/input.c:36: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/examples/c/struct: OK DEBUG: tests/examples/cplusplus/methods: OK DEBUG: t.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/storage_regions/static/incorrect/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: .7 tests/cpychecker/refcounts/tp_iternext/correct/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/tp_iternext/correct/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/tp_iternext/correct/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/tp_iternext/partial-type-object: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/tp_iternext/partial-type-object/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/tp_iternext/partial-type-object/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/tp_iternext/partial-type-object/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/tp_iternext/partial-type-object/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/tp_iternext/partial-type-object/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/uninitialized_data/comparison: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/uninitialized_data/comparison/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/uninitialized_data/comparison/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/uninitialized_data/comparison/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/uninitialized_data/comparison/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/uninitialized_data/comparison/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: tests/cpychecker/refcounts/uninitialized_data/function_arg: FAIL DEBUG: returncode: 1 DEBUG: compiling: gcc -c -fno-diagnostics-show-caret -ftrack-macro-expansion=0 -o tests/cpychecker/refcounts/uninitialized_data/function_arg/output.o -fplugin=/builddir/build/BUILD/gcc-python-plugin-0.14-building-for-python2/python2.so -fplugin-arg-python2-script=tests/cpychecker/refcounts/uninitialized_data/function_arg/script.py -fsigned-char -I/usr/include/python2.7 tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c DEBUG: Stdout: DEBUG: Stderr: DEBUG: tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c:1:1: error: invalid flag "WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE" in line directive DEBUG: tests/cpychecker/refcounts/uninitialized_data/function_arg/input.c:1:48: warning: extra tokens at end of ## directive DEBUG: /usr/include/stdio.h:34: confused by earlier errors, bailing out DEBUG: The bug is not reproducible, so it is likely a hardware or OS problem. DEBUG: RPM build errors: DEBUG: Child return code was: 1 INFO: EXCEPTION: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/gcc-python-plugin.spec Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/mockbuild/trace_decorator.py", line 84, in trace result = func(*args, **kw) File "/usr/lib/python2.7/dist-packages/mockbuild/util.py", line 481, in do raise mockbuild.exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/gcc-python-plugin.spec INFO: LEAVE do --> EXCEPTION RAISED ERROR: Exception(gcc-python-plugin-0.14-4.fc23.src.rpm) Config(fedora-23-x86_64) 5 minutes 23 seconds INFO: Results and/or logs in: /tmp/gcc-python-plugin-rbuild-rpm-bj5l0usi INFO: Cleaning up build root ('cleanup_on_failure=True') Start: clean chroot DEBUG: kill orphans DEBUG: child environment: None DEBUG: Executing command: ['/bin/umount', '-n', '/var/lib/mock/fedora-23-x86_64-mock_2/root/tmp/ccache'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} DEBUG: Child return code was: 0 DEBUG: child environment: None DEBUG: Executing command: ['/bin/umount', '-n', '/var/lib/mock/fedora-23-x86_64-mock_2/root/var/cache/yum'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} DEBUG: Child return code was: 0 DEBUG: child environment: None DEBUG: Executing command: ['/bin/umount', '-n', '-l', '/var/lib/mock/fedora-23-x86_64-mock_2/root/dev/pts'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} DEBUG: Child return code was: 0 DEBUG: child environment: None DEBUG: Executing command: ['/bin/umount', '-n', '-l', '/var/lib/mock/fedora-23-x86_64-mock_2/root/dev/shm'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} DEBUG: Child return code was: 0 DEBUG: child environment: None DEBUG: Executing command: ['/bin/umount', '-n', '-l', '/var/lib/mock/fedora-23-x86_64-mock_2/root/sys'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} DEBUG: Child return code was: 0 DEBUG: child environment: None DEBUG: Executing command: ['/bin/umount', '-n', '-l', '/var/lib/mock/fedora-23-x86_64-mock_2/root/proc'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} DEBUG: Child return code was: 0 DEBUG: remove tree: /var/lib/mock/fedora-23-x86_64-mock_2 Finish: clean chroot ERROR: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/gcc-python-plugin.spec