Closed Bug 1351497 Opened 7 years ago Closed 7 years ago

rust.MP4MetadataEmpty fails on opt builds with rust 1.18 nightly

Categories

(Core :: Audio/Video: Playback, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: rillian, Assigned: kinetik)

References

Details

Attachments

(1 file)

Testing rustc 1.17.0-nightly (ccce2c6eb 2017-03-27) I see gtest failures on opt builds:

14:33:08     INFO -  TEST-START | rust.MP4MetadataEmpty
14:33:08  WARNING -  TEST-UNEXPECTED-FAIL | rust.MP4MetadataEmpty |       Expected: context
14:33:08     INFO -        Which is: 00971C90
14:33:08     INFO -  To be equal to: nullptr
14:33:08     INFO -        Which is: 4-byte object <00-00 00-00> @ c:/builds/moz2_slave/try-w32-0000000000000000000000/build/src/media/libstagefright/gtest/TestMP4Rust.cpp:78

This is creating an mp4_parser context with a null `read` method. https://dxr.mozilla.org/mozilla-central/source/media/libstagefright/gtest/TestMP4Rust.cpp#76

NB the version says 1.17 but I believe this code will become 1.18 in release. 1.17.0-beta.2 is already available and doesn't show the issue.
Assignee: nobody → giles
Attached patch release.patchSplinter Review
Can also reproduce with the C++ self-test by building in release mode. Use this attached patch after `cargo +nightly build --release`.

I'm not sure we can demonstrate this with a `cargo test` because I ]think that doesn't test release code. Anyway, I'll try to prepare a reduction.
I've applied the patch and written a reduced testcast at https://github.com/rillian/mp4parse-rust/tree/nullcheck if anyone else wants to look at it. Reported upstream as rust-lang/rust#40913.
Fix here: https://github.com/mozilla/mp4parse-rust/pull/81

A bug in rusty-cheddar forced us to do the wrong thing.  That bug still exists, so this fix causes the generated mp4parse.h to have a bogusly typed mp4parse_io.read field.  Not sure what to do about that in the short term.
Fix landing via bug 1329126.
Assignee: giles → kinetik
Status: NEW → ASSIGNED
Depends on: 1329126
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: