Mailing List Archive

[Bug 2405] ${eval:} expansion on 32b platform behaves weird
https://bugs.exim.org/show_bug.cgi?id=2405

Jeremy Harris <jgh146exb@wizmail.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Summary|${eval:} expansion on x86 |${eval:} expansion on 32b
|behaves weird |platform behaves weird
Assignee|nigel@exim.org |jgh146exb@wizmail.org
Status|NEW |ASSIGNED

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2405] ${eval:} expansion on 32b platform behaves weird [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2405

Git Commit <git@exim.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |git@exim.org

--- Comment #1 from Git Commit <git@exim.org> ---
Git commit:
https://git.exim.org/exim.git/commitdiff/26dd3aa007b3b77969610c031f59388e0953bd00

commit 26dd3aa007b3b77969610c031f59388e0953bd00
Author: Jeremy Harris <jgh146exb@wizmail.org>
AuthorDate: Fri Jun 7 11:54:10 2019 +0100
Commit: Jeremy Harris <jgh146exb@wizmail.org>
CommitDate: Fri Jun 7 11:54:10 2019 +0100

fix detection of 32b platform at build time. bug 2405
----
src/src/buildconfig.c | 12 +++++---
test/scripts/0000-Basic/0002 | 72 +++++++++++++++++++++++---------------------
test/stdout/0002 | 72 +++++++++++++++++++++++---------------------
3 files changed, 83 insertions(+), 73 deletions(-)

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2405] ${eval:} expansion on 32b platform behaves weird [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2405

--- Comment #2 from Andreas Metzler <eximusers@bebt.de> ---
(In reply to nrittner from comment #0)
> according to v4.92 changelog, "{eval } now uses 64-bit values on supporting
> platforms.".
> however, on x86 ${eval } seems to be somehow broken now:
[...]
> $ exim -be '${eval:0}'
> -4633992498014846976

> system is gentoo with kernel 4.14.65, glibc 2.29.

Hello,

Does this only show up with 32bit kernel? With 32bit userland/64bit kernel I do
not see the error:
(i386sid)root@argenau:/# uname -a
Linux argenau 4.19.0-5-amd64 #1 SMP Debian 4.19.37-3 (2019-05-15) x86_64
GNU/Linux
(i386sid)root@argenau:/# dpkg-architecture | head -n1
DEB_BUILD_ARCH=i386
(i386sid)root@argenau:/# dpkg -s exim4-daemon-light | grep -E '^Vers|^Arch'
Architecture: i386
Version: 4.92-7
(i386sid)root@argenau:/# exim -be '${eval:0}'
0

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2405] ${eval:} expansion on 32b platform behaves weird [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2405

--- Comment #3 from Jeremy Harris <jgh146exb@wizmail.org> ---
I replicated it on
Linux lemming 3.2.0-6-686-pae #1 SMP Debian 3.2.102-1 i686 GNU/Linux

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2405] ${eval:} expansion on 32b platform behaves weird [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2405

--- Comment #4 from nrittner@layer23.de ---
> Does this only show up with 32bit kernel? With 32bit userland/64bit kernel I
> do not see the error:

behavior on 32bit and 64bit kernel. exim built within 32bit chroot with 64bit
kernel 4.19.37. tested binary on 32bit kernel 4.14.65 too. same behavior.

some more details: https://bugs.gentoo.org/687554

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2405] ${eval:} expansion on 32b platform behaves weird [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2405

--- Comment #5 from nrittner@layer23.de ---
(In reply to Git Commit from comment #1)
> Git commit:
> https://git.exim.org/exim.git/commitdiff/
> 26dd3aa007b3b77969610c031f59388e0953bd00


the issue disappeared in both 32bit and 64bit kernel after applying this patch.

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##