Bug 695424 - SIGBUS resolving srv records
Summary: SIGBUS resolving srv records
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: c-ares
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 695426
TreeView+ depends on / blocked
 
Reported: 2011-04-11 17:22 UTC by Dennis Gilmore
Modified: 2011-11-14 20:51 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 695426 (view as bug list)
Environment:
Last Closed: 2011-11-14 20:51:55 UTC
Type: ---


Attachments (Terms of Use)
full backtrace of the crash (5.68 KB, application/octet-stream)
2011-04-11 17:22 UTC, Dennis Gilmore
no flags Details
Patch from upstream to address alignment issues (2.15 KB, patch)
2011-04-11 17:42 UTC, Stephen Gallagher
no flags Details | Diff

Description Dennis Gilmore 2011-04-11 17:22:57 UTC
Created attachment 491286 [details]
full backtrace of the crash

Description of problem:

using sssd with srv record lookup enabled im getting a sigbus in c-ares on sparc

Version-Release number of selected component (if applicable):


How reproducible: always


Steps to Reproduce:
1. start sssd
2. try to log in
3.
  
Actual results:
Program received signal SIGBUS, Bus error.
ares_parse_srv_reply (abuf=0xff855720 ")r\205\200", alen=238, srv_out=0xff85551c) at ares_parse_srv_reply.c:142
142	          srv_curr->priority = ntohs (*((unsigned short *)vptr));

Expected results:
things to work

Additional info:

SIGBUS on sparc means that there is a memory alignment issue.  this will likely effect arm and s390 also

Comment 1 Stephen Gallagher 2011-04-11 17:42:15 UTC
Created attachment 491292 [details]
Patch from upstream to address alignment issues

Upstream has a fix available for this already. Attaching to the bug.

Comment 2 Dennis Gilmore 2011-04-11 17:50:27 UTC
I can confirm that the scratch build sgallagh did for me resolves the issue. sssd works as expected with srv records

Comment 3 Jakub Hrozek 2011-04-11 19:37:02 UTC
Rawhide build - http://koji.fedoraproject.org/koji/taskinfo?taskID=2994254

F15 and F14 builds should hit updates-testing soon.


Note You need to log in before you can comment on or make changes to this bug.