Package: valgrind
Version: 1:3.15.0-1
Severity: normal

When testing GNU MPFR with valgrind:

FAIL: tabort_defalloc1
======================

[tabort_defalloc1] Check for good handling of abort in memory function.
==3948670== Argument 'size' of function malloc has a fishy (possibly negative) 
value: -1
==3948670==    at 0x483677F: malloc (vg_replace_malloc.c:309)
==3948670==    by 0x10C453: mpfr_default_allocate (memory.c:69)
==3948670==    by 0x10C453: tests_allocate (memory.c:162)
==3948670==    by 0x488A18F: mpfr_allocate_func (mpfr-gmp.c:315)
==3948670==    by 0x10A485: main (tabort_defalloc1.c:43)
==3948670== 
[MPFR] mpfr_default_allocate(): can't allocate memory 
(size=18446744073709551615)
FAIL tabort_defalloc1 (exit status: 1)

FAIL: tabort_defalloc2
======================

[tabort_defalloc2] Check for good handling of abort in memory function.
==3948672== Argument 'size' of function realloc has a fishy (possibly negative) 
value: -1
==3948672==    at 0x4838D7B: realloc (vg_replace_malloc.c:836)
==3948672==    by 0x10C552: mpfr_default_reallocate (memory.c:84)
==3948672==    by 0x10C552: tests_reallocate (memory.c:213)
==3948672==    by 0x10C552: tests_reallocate (memory.c:174)
==3948672==    by 0x488A1F0: mpfr_reallocate_func (mpfr-gmp.c:326)
==3948672==    by 0x10A4A7: main (tabort_defalloc2.c:46)
==3948672== 
[MPFR] mpfr_default_reallocate(): can't reallocate memory (old_size=128 
new_size=18446744073709551615)
FAIL tabort_defalloc2 (exit status: 1)

The malloc / realloc argument is of type size_t, which is unsigned
according to the C standard, thus cannot be negative!

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.6.0-2-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=POSIX, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=POSIX 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages valgrind depends on:
ii  libc6      2.30-8
ii  libc6-dbg  2.30-8

Versions of packages valgrind recommends:
ii  gdb           9.2-1
ii  valgrind-dbg  1:3.15.0-1

Versions of packages valgrind suggests:
pn  alleyoop      <none>
pn  kcachegrind   <none>
pn  valgrind-mpi  <none>
pn  valkyrie      <none>

-- no debconf information

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to