Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939857 - net-mail/dovecot-2.3.21.1 fails test - [ncurses-6.5] [meson-9999] [gcc-15] data-stack buffer interruption : FAILED
Summary: net-mail/dovecot-2.3.21.1 fails test - [ncurses-6.5] [meson-9999] [gcc-15] da...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Eray Aslan
URL:
Whiteboard:
Keywords: PATCH, TESTFAILURE
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2024-09-19 16:46 UTC by Toralf Förster
Modified: 2024-12-28 13:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,19.45 KB, text/plain)
2024-09-19 16:46 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,79.53 KB, application/x-xz)
2024-09-19 16:46 UTC, Toralf Förster
Details
environment (environment,128.69 KB, text/plain)
2024-09-19 16:46 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.20 KB, application/x-xz)
2024-09-19 16:46 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,31.75 KB, application/x-xz)
2024-09-19 16:46 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,23.64 KB, application/x-xz)
2024-09-19 16:46 UTC, Toralf Förster
Details
net-mail:dovecot-2.3.21.1:20240919-123634.log.xz (net-mail:dovecot-2.3.21.1:20240919-123634.log.xz,77.66 KB, application/x-xz)
2024-09-19 16:46 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,82.74 KB, application/x-xz)
2024-09-19 16:47 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,32.90 KB, application/x-xz)
2024-09-19 16:47 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-09-19 16:46:50 UTC
data-stack grow event ................................................ : ok
data-stack data_stack_get_used_size() ................................ : ok
data-stack t_get_bytes_available() ................................... : ok
data-stack grow in event ............................................. : ok
data-stack buffer growth ............................................. : ok
test-data-stack.c:191: Assert failed: a == b
data-stack buffer interruption ....................................... : FAILED
data-stack buffer with reallocs ...................................... : ok
data-stack realloc ................................................... : ok

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_test-20240910-192132

  UNMASKED:
    Please re-assign to toolchain@ if you get a test failure in C, C++, or Fortran code which makes no sense.
  /etc/portage/package.unmask/60gcc:<sys-devel/gcc-15.0.9999:15
    Please re-assign to ztrawhcse@ if you cannot reproduced it with regular meson.
  /etc/portage/package.unmask/50unstable:<dev-build/meson-9999
    Requested by sam
  /etc/portage/package.unmask/50unstable:>=sys-libs/ncurses-6.5

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-15 *
clang/llvm (if any):
clang version 19.1.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/19/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/19
19.1.0
Python 3.12.6
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.81.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 21.0.4_p7 [openjdk-bin-21]
2)	Eclipse Temurin JDK 8.422_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.23.1 linux/amd64

  HEAD of ::gentoo
commit 5040abdb11993e3b98fc307d011e01068c75b3de
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Sep 19 11:49:10 2024 +0000

    2024-09-19 11:49:10 UTC

emerge -qpvO =net-mail/dovecot-2.3.21.1
[ebuild  N    ] net-mail/dovecot-2.3.21.1  USE="pam -argon2 -caps -doc -kerberos -ldap -lua -lucene -lz4 -managesieve -mysql -postgres -rpc (-selinux) -sieve -solr -sqlite -static-libs -stemmer -suid -systemd -tcpd -textcat -unwind -zstd" LUA_SINGLE_TARGET="lua5-1 -lua5-3"
Comment 1 Toralf Förster gentoo-dev 2024-09-19 16:46:52 UTC
Created attachment 903356 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-09-19 16:46:53 UTC
Created attachment 903357 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2024-09-19 16:46:54 UTC
Created attachment 903358 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-09-19 16:46:55 UTC
Created attachment 903359 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-09-19 16:46:56 UTC
Created attachment 903360 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-09-19 16:46:57 UTC
Created attachment 903361 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-09-19 16:46:59 UTC
Created attachment 903362 [details]
net-mail:dovecot-2.3.21.1:20240919-123634.log.xz
Comment 8 Toralf Förster gentoo-dev 2024-09-19 16:47:00 UTC
Created attachment 903363 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-09-19 16:47:01 UTC
Created attachment 903364 [details]
temp.tar.xz
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-28 13:10:34 UTC
https://github.com/dovecot/core/commit/992a1726a41b42fa47204565ff17f7c635fcb421#diff-2ab6702cfaece1b12667261b923fd6aa9825371473736cfdd27c8db41c38d658R36

The test is bogus, I think. t_malloc is marked with __attribute__((malloc)) so its result is assumed not to alias anything, so a == b has to be false.

It started with r15-580-gf3e5f4c58591f5 in GCC 15.
Comment 11 Larry the Git Cow gentoo-dev 2024-12-28 13:47:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f6ee19d3cd09c9013d194536215efcbae04c057

commit 3f6ee19d3cd09c9013d194536215efcbae04c057
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-12-28 13:44:04 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-28 13:47:06 +0000

    net-mail/dovecot: test fixes, hardening tweak
    
    * Fix tests with GCC 15 (upstream PR#229, bug #939857). The test had
      a bogus assertion which was exposed by GCC 15.
    
    * Fix tests with LTO (upstream PR#230). I was convinced that I'd backported
      these fixes already but apparently not. This one fixes a real problem
      where dovecot would be miscompiled because of strict aliasing violations
      in the md4+md5 code. Thanks to parona for the help with (re-)testing it
      and confirming the fixes.
    
    * Pass --disable-hardening because it just copies the defaults even on
      vanilla profiles these days. For hardened, it actually makes things
      less safe because it does -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 which
      overrides the default of -D_FORTIFY_SOURCE=3 there.
    
    Closes: https://bugs.gentoo.org/939857
    Signed-off-by: Sam James <sam@gentoo.org>

 net-mail/dovecot/dovecot-2.3.21.1-r1.ebuild        | 309 +++++++++++++++++++++
 .../files/dovecot-2.3.21.1-gcc15-test.patch        |  30 ++
 .../dovecot/files/dovecot-2.3.21.1-lto-tests.patch |  86 ++++++
 3 files changed, 425 insertions(+)