Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash after usrsctp_finish() is called #20

Open
GoogleCodeExporter opened this issue Jul 18, 2015 · 5 comments
Open

Crash after usrsctp_finish() is called #20

GoogleCodeExporter opened this issue Jul 18, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Establish an association
2. Call usrsctp_finish() on main thread

What is the expected output? What do you see instead?
Crash happens on internal thread:
#5  0x00007fff831cd78d in szone_free_definite_size ()
#6  0x00000001000a3047 in sctp_free_assoc at 
/Users/mrubenchik/Work/3rdparty/sctp-refimpl-read-only/KERN/usrsctp/usrsctplib/n
etinet/sctp_pcb.c:5873
#7  0x00000001000baa63 in sctp_timeout_handler at 
/Users/mrubenchik/Work/3rdparty/sctp-refimpl-read-only/KERN/usrsctp/usrsctplib/n
etinet/sctputil.c:1927
#8  0x000000010006ec81 in sctp_handle_tick [inlined] at 
/Users/mrubenchik/Work/3rdparty/sctp-refimpl-read-only/KERN/usrsctp/usrsctplib/n
etinet/sctp_callout.c:155
#9  0x000000010006ec33 in user_sctp_timer_iterate at 
/Users/mrubenchik/Work/3rdparty/sctp-refimpl-read-only/KERN/usrsctp/usrsctplib/n
etinet/sctp_callout.c:194
#10 0x00007fff83d87268 in _pthread_body ()
#11 0x00007fff83d871e5 in _pthread_start ()
#12 0x00007fff83d8541d in thread_start ()


What version of the product are you using? On what operating system?
OSX 10.10.3
sctp latest repo on June 25th 2015


Please provide any additional information below.
    if (asoc->mapping_array) {
        SCTP_FREE(asoc->mapping_array, SCTP_M_MAP);
        asoc->mapping_array = NULL;
    }

Original issue reported on code.google.com by [email protected] on 25 Jun 2015 at 3:13

@GoogleCodeExporter
Copy link
Author

What does "establish an association" mean? Are you using a SOCK_STREAM socket 
or an SOCK_SEQPACKET socket? Are you the passive side or the active one?

Best regards
Michael

Original comment by [email protected] on 3 Jul 2015 at 11:42

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

I use SOCK_STREAM and establish connection to myself as part of testing. So I 
have both active and passive sides.

Original comment by [email protected] on 3 Jul 2015 at 2:28

@GoogleCodeExporter
Copy link
Author

OK. Can you share your test program? That way I don't have to write one since I 
wasn't able to
reproduce the issue with my test programs.
You can sent it privately: [email protected]

Original comment by [email protected] on 3 Jul 2015 at 2:37

@GoogleCodeExporter
Copy link
Author

Unfortunately my test has a lot of dependencies which are not easy to strip so 
it might take a while for me to get to this.

Original comment by [email protected] on 10 Jul 2015 at 3:19

@GoogleCodeExporter
Copy link
Author

OK. I see. I'll try to reproduce this, but I doubt I'll be successful. So let 
me know when you have something small to reproduce the issue.

Original comment by [email protected] on 10 Jul 2015 at 3:29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant