Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 95283
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Christophe Saout <christophe@saout.de>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
com_err-1.37.ebuild.patch ebuild patch, adds epatch command for the next patch patch Christophe Saout 2005-06-06 17:36 0000 512 bytes Details | Diff
com_err-1.37-et_c_awk.patch goes into the ${FILESDIR} patch Christophe Saout 2005-06-06 17:37 0000 1.26 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 95283 depends on: Show dependency tree
Bug 95283 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-06-06 17:35 0000
mit-krb-1.4 is using the system libcom_err.so.2 (and the provided compile_et).

The compile_et has a broken awk script that makes applications fiddle directly
with _et_list so that calls to unregister their error table later makes the
program abort with an invalid free (glibc detected invalid pointer in free, blabla).

Since libcom_err is already providing a clean handler to add an error table, why
does its awk script for client code generation not use it?

The attached patches to the com_err ebuild and to /usr/share/et/et_c.awk fix the
problem.

The problem showed up, for example with
- app-crypt/mit_krb5-1.4
- app-crypt/pam_krb5-20030601-r1

with the following system-auth
#%PAM-1.0

auth       required     /lib64/security/pam_env.so
auth       sufficient   /lib64/security/pam_unix.so likeauth nullok broken_shadow
auth       sufficient   /lib64/security/pam_krb5.so use_first_pass
auth       required     /lib64/security/pam_deny.so

account    sufficient   /lib64/security/pam_krb5.so
account    required     /lib64/security/pam_unix.so broken_shadow
account    required     /lib64/security/pam_tally.so deny=5 reset

password   required     /lib64/security/pam_cracklib.so retry=3
password   sufficient   /lib64/security/pam_krb5.so use_authtok
password   sufficient   /lib64/security/pam_unix.so nullok md5 shadow use_authtok
password   required     /lib64/security/pam_deny.so

session    required     /lib64/security/pam_limits.so
session    optional     /lib64/security/pam_krb5.so
session    required     /lib64/security/pam_unix.so broken_shadow

--

After that "su" stops working with the metioned glibc failed assertion abort.


Reproducible: Always
Steps to Reproduce:

------- Comment #1 From Christophe Saout 2005-06-06 17:36:33 0000 -------
Created an attachment (id=60750) [details]
ebuild patch, adds epatch command for the next patch

------- Comment #2 From Christophe Saout 2005-06-06 17:37:03 0000 -------
Created an attachment (id=60751) [details]
goes into the ${FILESDIR}

------- Comment #3 From Christophe Saout 2005-06-06 17:46:06 0000 -------
The filename for the second patch for /usr/portage/sys-libs/com_err/files/
should be: com_err-1.37-et_c_awk.patch

------- Comment #4 From Christophe Saout 2005-06-10 06:08:43 0000 -------
Analogous bug report in e2fsprogs bug tracker:

http://sourceforge.net/tracker/index.php?func=detail&aid=1150146&group_id=2406&atid=102406

------- Comment #5 From Seemant Kulleen (RETIRED) 2005-06-24 06:47:07 0000 -------
Christophe, what's the latest on this then?

------- Comment #6 From Christophe Saout 2005-06-24 11:29:57 0000 -------
Upstream has acknowledged the problem.
My fix is okay in theory, but practically it might introduce other problems
(they are worried about binary compatibility with other libcom_err
implementations that don't have the dynamic table allocation functions at all).
I don't know what's going on exactly at the moment, I'll ask again.

------- Comment #7 From Martin Klaffenboeck 2005-07-03 10:01:40 0000 -------
why do we have a stable e2fsprogs port which doesn't compile (without our
patch).  Can you make a stable e2fsprogs ebuild for that?

Thanks,
Martin

PS.  I hope to see a stable one the next days...

------- Comment #8 From Christophe Saout 2005-07-10 04:58:34 0000 -------
Upstream has resolved the problems in e2fsprogs-1.38.

A workaround for programs compiled with the old compile_et as well as an
improved compile_et.

------- Comment #9 From SpanKY 2005-07-10 08:52:07 0000 -------
great, thanks

i added 1.38 yesterday so ... :)

------- Comment #10 From Seemant Kulleen (RETIRED) 2005-07-18 07:53:43 0000 -------
*** Bug 98303 has been marked as a duplicate of this bug. ***

------- Comment #11 From Wolf Giesen (RETIRED) 2005-07-19 04:34:01 0000 -------
Any chance to change from "~alpha" to "alpha"?

I just built it and there are no obvious problems.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug