Hide Forgot
+++ This bug was initially created as a clone of Bug #695424 +++ 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
Created attachment 491425 [details] A reproducer A simple program that is able to resolve a SRV query. To compile, run: gcc ares_srv.c -o ares_srv -lcares To resolve a query, pass a nameserver and a SRV query to the program: ./ares_srv 1.2.3.4 _ldap._tcp.example.com
This was fixed upstream by using the DNS__<XY>BIT macros instead of ntohs.
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/RHBA-2012-0922.html