Bug#559045: maildrop filter tolower() and toupper() functionality get optimized out by gcc

2009-12-01 Thread Paul Saunders
Package: maildrop
Version: 2.2.0-3
Severity: important

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512


The tolower() and toupper() function calls in the mailfilter always
return empty results.
Recompiling recipenode.C with -O1 option for gcc instead of -O2 returns
these function to normal behavior.

This functionality is important as these calls are necessary to be able
to properly use gdbm functionality.

NOTE: This bug is a duplicate of #536253, but applies equally to
maildrop.


- -- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31.6 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages maildrop depends on:
ii  courier-authlib   0.62.4-1   Courier authentication library
ii  libc6 2.10.2-2   GNU C Library: Shared libraries
ii  libgcc1   1:4.4.2-3  GCC support library
ii  libgdbm3  1.8.3-9GNU dbm database routines (runtime
ii  libpcre3  7.8-3  Perl 5 Compatible Regular Expressi
ii  libstdc++64.4.2-3The GNU Standard C++ Library v3

Versions of packages maildrop recommends:
ii  postfix [mail-transport-agent 2.6.5-3High-performance mail transport ag

maildrop suggests no packages.

- -- no debconf information

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBCgAGBQJLFR8UAAoJEKB7YbRsd8TG+gsP/15LVlU/FaKy00DQhg+oT2ex
g6hVlu/yfJ273GuQZWJ2eP2SgfASc/NAlhREu2P0sc+ePOmb88Voh0Ye8eWKXVs4
+3+MXUCR+1vTyLt07RQ1wT4Zupy4XhoWMBtzOmMxzg9kpvoM6smCQ37I9zjVtdgr
3HU+1u4Exh738w1e4BJ7cQ8CjPk9pBvga2rzRYjiRAS6R3vugNYo7FQQZbEc1nE4
OBkG0lhf6B157ggHLwES7eDQy27YKUulCC7m8CuxOSG7w4H7pYiVXfO2sMFEaC1+
ZGpMeFFzhd9iwevW8Jljz5TBD4Lzh5GURSI8ho6AuMXE2z8nzupqmvTpdkx+3Zd2
jY8gkL3F7KGAM6zfiYXxrH3KqdoUjOFjaKdnEekJ7W9ldKIIOBG7xFv6XYc537Tn
yixJGey8WuK6cD78lu1KWuEhIray8t/XRi/u5lh9Vp6tTW9pmkKfWvTeyZVXpxvR
5TwS3eXg6O37UmvFaVWfM7/s7U8osIVLvcXR8BTLVkCEDymz43c2VMNcqYhno/Et
1+3ftuj/74X9LEejtYFW9uNUjnWAkfkLMPD0H/YFLLzZlFb9/i57R5JdQXQQWHOi
5ypD1KaO3XPmk+7lH27b+M8kKsAbxxZLB9UyhyhAE8gGLOsKUkoMC7iYZtetZWC3
6Mg9TDC0whalYYnq0LEB
=jlJ+
-END PGP SIGNATURE-



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#559045: maildrop filter tolower() and toupper() functionality get optimized out by gcc

2009-12-01 Thread Josip Rodin
On Tue, Dec 01, 2009 at 01:50:21PM +, Paul Saunders wrote:
 Package: maildrop
 Version: 2.2.0-3
 Severity: important
 
 The tolower() and toupper() function calls in the mailfilter always
 return empty results.
 Recompiling recipenode.C with -O1 option for gcc instead of -O2 returns
 these function to normal behavior.
 
 This functionality is important as these calls are necessary to be able
 to properly use gdbm functionality.

Let's try checking with the gcc maintainers to find out why they would be
doing this to us :) I'm Cc:ing the debian-gcc mailing list.

Is there a bug in maildrop-2.2.0/maildrop/recipenode.C that causes it to
get compiled differently with -O1, or is the problem with the compiler?

-- 
 2. That which causes joy or happiness.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#559045: maildrop filter tolower() and toupper() functionality get optimized out by gcc

2009-12-01 Thread Bastian Blank
On Tue, Dec 01, 2009 at 03:26:29PM +0100, Josip Rodin wrote:
 Is there a bug in maildrop-2.2.0/maildrop/recipenode.C that causes it to
 get compiled differently with -O1, or is the problem with the compiler?

Are you able to produce a minimal testcase?

Bastian

-- 
Our way is peace.
-- Septimus, the Son Worshiper, Bread and Circuses,
   stardate 4040.7.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#559045: maildrop filter tolower() and toupper() functionality get optimized out by gcc

2009-12-01 Thread Darac Marjal

On Tue, 1 Dec 2009 15:38:34 +0100, Bastian Blank wa...@debian.org wrote:
 On Tue, Dec 01, 2009 at 03:26:29PM +0100, Josip Rodin wrote:
 Is there a bug in maildrop-2.2.0/maildrop/recipenode.C that causes it
to
 get compiled differently with -O1, or is the problem with the compiler?
 
 Are you able to produce a minimal testcase?

Certainly. If we have a filter test.mailfilter as follows:



FOO=TestTestTest
LOWERFOO = tolower($FOO)
UPPERFOO = toupper($FOO)

echo FOO is $FOO
echo LOWERFOO should be testtesttest, is $LOWERFOO
echo UPPERFOO should be TESTTESTTEST, is $UPPERFOO



With the standard build, I do echo | maildrop test.mailfilter and get



FOO is TestTestTest
LOWERFOO should be testtesttest, is
UPPERFOO should be TESTTESTTEST, is



But with the -O1 build, I get



FOO is TestTestTest
LOWERFOO should be testtesttest, is testtesttest
UPPERFOO should be TESTTESTTEST, is TESTTESTTEST





 
 Bastian
 
 -- 
 Our way is peace.
   -- Septimus, the Son Worshiper, Bread and Circuses,
  stardate 4040.7.

-- 
Darac Marjal



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org