Bug 882188

Summary: samba4-libs: yyin symbol collision
Product: Red Hat Enterprise Linux 6 Reporter: Florian Weimer <fweimer>
Component: samba4Assignee: Andreas Schneider <asn>
Status: CLOSED ERRATA QA Contact: Namita Soman <nsoman>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 6.3CC: sbose
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: samba4-4.0.0-24.el6.rc1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-21 08:46:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 882173    

Description Florian Weimer 2012-11-30 11:04:37 UTC
Two DSOs define "yyin" and other flex-related symbols:

 /usr/lib64/libdcerpc_samr.so.0.0.1     | samba4-libs-4.0.0-23.alpha11.el6.x86_64
 /usr/lib64/libdcerpc.so.0.0.1          | samba4-libs-4.0.0-23.alpha11.el6.x86_64

This can lead to symbol collisions and hard-to-track-down bugs.  These symbols should be mangled or hidden.

This might already have been fixed upstream because I don't see it in F18 anymore.

Comment 2 Andreas Schneider 2012-11-30 12:10:27 UTC
yyin and yyout are defined in the in-source heimdal kerberos. In RHEL 6.4 we build with MIT Kerberos. So there are no such symbols.

Comment 3 Andreas Schneider 2012-11-30 12:17:14 UTC
Also all heimdal 'in-source' libraries have version scripts to export only public symbols. This is fixed with the rebase!

Comment 5 Namita Soman 2013-01-29 02:47:56 UTC
please provide steps to verify

Comment 6 Florian Weimer 2013-01-29 09:17:48 UTC
(In reply to comment #5)
> please provide steps to verify

You can check the DSOs with:

$ readelf -s libdcerpc.so.0.0.1 | grep yy

If this command shows no output, the symbols are indeed gone.

Comment 7 Namita Soman 2013-01-29 11:21:19 UTC
Thanks for the steps!

Verified using them:
readelf -s /usr/lib64/libdcerpc.so.0.0.1 | grep yy
<Nothing listed>

Comment 8 errata-xmlrpc 2013-02-21 08:46:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2013-0506.html