Bug 753372

Summary: sipsak seg faults
Product: [Fedora] Fedora Reporter: Russell Bryant <rbryant>
Component: sipsakAssignee: Peter Lemenkov <lemenkov>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: lemenkov
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sipsak-0.9.6-11.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-27 21:55:24 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:

Description Russell Bryant 2011-11-12 02:18:45 UTC
Description of problem:

When running a simple invokation of sipsak, it crashes.


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

sipsak-0.9.6-9.fc15.x86_64


How reproducible:

Every time.


Steps to Reproduce:
1. Run this command:

$ sipsak -v -s sip:russell
Segmentation fault

  
Additional info:

On an Ubuntu 10.04 system with sipsak 0.9.6 installed, the same command works as expected.

Comment 1 Russell Bryant 2011-11-12 02:30:54 UTC
(gdb) bt
#0  cares_callback (arg=0x0, status=0, abuf=0x0, alen=-14192) at helper.c:253
#1  0x0000003adc00b2bd in qcallback (arg=0x6263a0, status=<optimized out>, timeouts=<optimized out>, 
    abuf=<optimized out>, alen=<optimized out>) at ares_query.c:180
#2  0x0000003adc009ce7 in end_query (channel=0x614010, query=0x626290, status=0, 
    abuf=0x7fffffffc890 "ij\201\200", alen=86) at ares_process.c:1268
#3  0x0000003adc00a9ab in process_answer (channel=0x614010, abuf=0x7fffffffc890 "ij\201\200", alen=86, 
    whichserver=0, tcp=0, now=0x7fffffffcb40) at ares_process.c:612
#4  0x0000003adc00ac08 in process_answer (now=0x7fffffffcb40, tcp=0, whichserver=0, 
    alen=<optimized out>, abuf=0x7fffffffc890 "ij\201\200", channel=0x614010) at ares_process.c:548
#5  read_udp_packets (channel=0x614010, read_fds=0x7fffffffcc20, read_fd=-1, now=0x7fffffffcb40)
    at ares_process.c:498
#6  0x0000003adc00aee7 in processfds (channel=0x614010, read_fds=0x7fffffffcc20, read_fd=-1, 
    write_fds=0x7fffffffcba0, write_fd=-1) at ares_process.c:152
#7  0x0000000000406c32 in srv_ares (srv=0x40d123 "_sip._udp", port=<synthetic pointer>, 
    host=0x7fffffffe24a "russellbryant.net") at helper.c:342
#8  getsrvaddress (srv=0x40d123 "_sip._udp", port=<synthetic pointer>, 
    host=0x7fffffffe24a "russellbryant.net") at helper.c:426
#9  getsrvadr (host=0x7fffffffe24a "russellbryant.net", port=0x613a24, transport=0x7fffffffcda8)
    at helper.c:477
#10 0x000000000040326c in main (argc=4, argv=0x7fffffffded8) at sipsak.c:598

Comment 2 Peter Lemenkov 2011-11-12 05:08:39 UTC
Confirmed. I must admit that I didn't look after sipsak for a long time. I'm mostly using sipp now.

PS Welcome aboard, Russel!

Comment 3 Fedora Update System 2011-11-14 21:04:59 UTC
sipsak-0.9.6-10.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/sipsak-0.9.6-10.fc16

Comment 4 Fedora Update System 2011-11-14 21:05:07 UTC
sipsak-0.9.6-10.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/sipsak-0.9.6-10.fc15

Comment 5 Fedora Update System 2011-11-16 00:28:38 UTC
Package sipsak-0.9.6-10.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing sipsak-0.9.6-10.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-15945
then log in and leave karma (feedback).

Comment 6 Russell Bryant 2011-11-16 02:08:03 UTC
I tested the update.  It prevents the crash, but DNS SRV support is broken.

    $ sipsak -v -s sip:russell

    send failure: Connection refused

If I change russellbryant.net to pbx.russellbryant.net, I get the response I would expect.  It should get the proper server using DNS SRV.

Comment 7 Fedora Update System 2011-11-16 20:09:51 UTC
sipsak-0.9.6-11.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/sipsak-0.9.6-11.fc16

Comment 8 Fedora Update System 2011-11-16 20:09:59 UTC
sipsak-0.9.6-11.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/sipsak-0.9.6-11.fc15

Comment 9 Fedora Update System 2011-11-17 23:43:07 UTC
Package sipsak-0.9.6-11.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing sipsak-0.9.6-11.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-16058/sipsak-0.9.6-11.fc16
then log in and leave karma (feedback).

Comment 10 Russell Bryant 2011-11-18 22:38:54 UTC
works for me, thanks.  will go provide karma now

Comment 11 Fedora Update System 2011-11-27 21:55:24 UTC
sipsak-0.9.6-11.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2011-11-27 21:55:46 UTC
sipsak-0.9.6-11.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.