Closed Bug 803885 Opened 12 years ago Closed 12 years ago

WebRTC unit-test crash [@TransportTestPeer::SendPacket]

Categories

(Core :: WebRTC: Networking, defect)

x86_64
macOS
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla19

People

(Reporter: posidron, Assigned: ekr)

References

Details

(Keywords: crash, testcase, Whiteboard: [WebRTC], [blocking-webrtc+] [qa-])

Attachments

(2 files)

Attached file callstack
Run: <obj_dir>/media/mtransport/test/sctp_unittest

This happens to be a bug in the unit test itself, we need to fix this to run the tests accordingly.

alloc:
::TransportTest::ConnectSocket mozalloc.h:200

free:
::TransportTest::~TransportTest sctp_unittest.cpp:291

re-use:
::TransportTestPeer::SendPacket sctp_unittest.cpp:188

This only happens if you run the sctp_unittest as a whole but not when you run each test separately.
Christoph, can you provide the whole call stack for the alloc/free/reuse.
It's already attached.
Whiteboard: [WebRTC], [blocking-webrtc+]
Attachment #681032 - Flags: review?(rjesup)
Comment on attachment 681032 [details] [diff] [review]
Fix SCTP unit tests

Review of attachment 681032 [details] [diff] [review]:
-----------------------------------------------------------------

r+ with setting r...

::: media/mtransport/test/sctp_unittest.cpp
@@ +85,5 @@
> +    l.l_onoff = 1;
> +    l.l_linger = 0;
> +    usrsctp_setsockopt(sctp_, SOL_SOCKET, SO_LINGER, &l,
> +                       (socklen_t)sizeof(l));
> +    EXPECT_GE(r, 0);

you didn't set r.... though it won't fail!
Attachment #681032 - Flags: review?(rjesup) → review+
Not a candidate for a crashtest, but the unit test will cover the case for automating the crash piece.
Flags: in-testsuite?
https://hg.mozilla.org/mozilla-central/rev/5a76abc509c7
Assignee: nobody → ekr
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
Flags: in-testsuite? → in-testsuite+
Whiteboard: [WebRTC], [blocking-webrtc+] → [WebRTC], [blocking-webrtc+] [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: