Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 362685 - net-mail/dbmail utils crash with default LDFLAGS - *** glibc detected *** dbmail-util: free(): invalid pointer: 0xXXXXXXXX ***
Summary: net-mail/dbmail utils crash with default LDFLAGS - *** glibc detected *** dbm...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Thomas Raschbacher
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-09 09:10 UTC by Vadim Petryaev
Modified: 2012-09-07 12:40 UTC (History)
2 users (show)

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


Attachments
net-mail/dbmail-2.2.17 build log (failed-console.log,86.67 KB, text/plain)
2011-04-09 18:40 UTC, Vadim Petryaev
Details
emerge --info (failed-emerge.info,4.58 KB, text/plain)
2011-04-09 18:40 UTC, Vadim Petryaev
Details
net-mail/dbmail-2.2.17 build log, with LDFLAGS unset (success-console.log,86.46 KB, text/plain)
2011-04-09 18:41 UTC, Vadim Petryaev
Details
emerge --info (success-emerge.info,4.58 KB, text/plain)
2011-04-09 18:41 UTC, Vadim Petryaev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vadim Petryaev 2011-04-09 09:10:09 UTC
DBMail (I tried versions from 2.2.9 and 2.2.17) emerged with use flags: ldap postgres python sieve.
All DBmail executables hands on exit with message:
*** glibc detected *** dbmail-util: free(): invalid pointer: 0xXXXXXXXX ***
For example dbmail-util -cpdy
In case of create /etc/portage/bashrc (according to http://en.gentoo-wiki.com/wiki/Safe_LDFLAGS) and set:
net-mail/dbmail                 -Wl,-O1
in package.ldflags, DBMail runs fine without errors.

Reproducible: Always

Steps to Reproduce:
1. Set net-mail/dbmail use flags: ldap postgres python sieve
2. emerge dbmail
3. Configure dbmail with postgresql
4. dbmail-util -cpdy




Default LDFLAGS in /usr/portage/profiles/default/linux/make.defaults is LDFLAGS="-Wl,-O1 -Wl,--as-needed"
I don't know how to define separate LDFLAGS for ebuild without /etc/portage/bashrc and /etc/portage/package.ldflags
Comment 1 SpanKY gentoo-dev 2011-04-09 17:25:29 UTC
please post `emerge --info` in every bug report.  also, post the full build log as an attachment.
Comment 2 Vadim Petryaev 2011-04-09 18:40:15 UTC
Created attachment 269195 [details]
net-mail/dbmail-2.2.17 build log
Comment 3 Vadim Petryaev 2011-04-09 18:40:41 UTC
Created attachment 269199 [details]
emerge --info
Comment 4 Vadim Petryaev 2011-04-09 18:41:10 UTC
Created attachment 269201 [details]
net-mail/dbmail-2.2.17 build log, with LDFLAGS unset
Comment 5 Vadim Petryaev 2011-04-09 18:41:35 UTC
Created attachment 269203 [details]
emerge --info
Comment 6 Vadim Petryaev 2011-04-11 07:06:26 UTC
Not only dbmail-utils crashed on exit! I tried also other executables with the same result: dbmail-imapd, dbmail-pop3 and dbmail-smtp.
Comment 7 Thomas Raschbacher gentoo-dev 2011-08-02 12:16:52 UTC
odd I have the same useflags - and use it with postgresql - apart from ldap.

which postgresql (-base, -server, libpq) do you have?
Comment 8 Vadim Petryaev 2011-08-02 12:53:33 UTC
-server, but of course, -base also installed.

*  dev-db/postgresql-base
      Latest version installed: 9.0.4-r2
*  dev-db/postgresql-server
      Latest version installed: 9.0.4-r1

Don't forget. I also use CPU specific GCC flags:
CFLAGS="-O2 -march=k8-sse3 -pipe -fomit-frame-pointer -mmmx -msse2 -mfpmath=sse -msse3 -m3dnow"
Comment 9 Thomas Raschbacher gentoo-dev 2011-08-31 13:32:23 UTC
I've got

postgresql-server 8.3.12 .


CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"

In any case it seems to be a problem with some of your CFLAGS.
Could you do some experiments which ones cause the problem? because then
1) you can report to upstream about it
2) we can use flag-o-matic.eclass to replace/remove one/some flags
Comment 10 Thomas Raschbacher gentoo-dev 2012-09-06 06:47:42 UTC
Did you try version 3.0.2 (in my dev-overlay) yet?
-- If you don'T want to add my overlay, I will put it in the maintree today or the following days after checking out some libzdb issue
Comment 11 Thomas Raschbacher gentoo-dev 2012-09-07 12:40:24 UTC
3.0.2 is in the official tree please test this