Bug 458790
| Summary: | libsmbclient segfaults with more than one SMBCCTX | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Tim Waugh <twaugh> | ||||
| Component: | samba | Assignee: | Simo Sorce <ssorce> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 10 | CC: | bruno, gdeschner, jlaska | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2009-02-03 18:27:06 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
Tracked this down using git bisect to this commit:
commit 7cd553356e3fe10bf4caac23d525df235ad9efce
Author: Andreas Schneider <anschneider>
Date: Tue Jul 15 14:57:32 2008 +0200
Release still reachable memory if the smbclient context is freed.
Signed-off-by: Andreas Schneider <anschneider>
(cherry picked from commit 88c9cf2fdc8f3d704f7f27c25ef6dc6940d451d3)
Looks to me like that commit is just wrong. With that change in, when two contexts have been created and one is freed, resources still needed by the second will also be freed. *** Bug 462403 has been marked as a duplicate of this bug. *** This fix went into 3.2.2 -- is there any way we could get that into the Fedora 10 beta? I tried samba-3.2.4-0.22.fc10.x86_64 and I am able to connect to Windows printers again. This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle. Changing version to '10'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping |
Created attachment 314082 [details] testsmbclient.c Description of problem: The attached program segfaults. Version-Release number of selected component (if applicable): libsmbclient-3.2.1-0.19.fc10.x86_64 How reproducible: 100% Steps to Reproduce: make testsmbclient CFLAGS=-g LDFLAGS=-lsmbclient ./testsmbclient Actual results: Segfaults in smbc_init_context at libsmb/libsmb_context.c:587. Expected results: Exits with status code 0. Additional info: Works fine in Fedora 9 with libsmbclient-3.2.0-2.17.fc9.x86_64.