Bug 114046 - [GStreamer] Segfault when attempting to install missing plugins
Summary: [GStreamer] Segfault when attempting to install missing plugins
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-05 11:00 PDT by Brendan Long
Modified: 2013-04-05 12:43 PDT (History)
10 users (show)

See Also:


Attachments
Patch (1.99 KB, patch)
2013-04-05 11:07 PDT, Brendan Long
no flags Details | Formatted Diff | Diff
Backtrace (3.48 KB, text/x-log)
2013-04-05 11:36 PDT, Brendan Long
no flags Details
Patch (2.03 KB, patch)
2013-04-05 11:56 PDT, Brendan Long
no flags Details | Formatted Diff | Diff
Patch (2.03 KB, patch)
2013-04-05 12:02 PDT, Brendan Long
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brendan Long 2013-04-05 11:00:06 PDT
[GStreamer] Segfault when attempting to install missing plugins
Comment 1 Brendan Long 2013-04-05 11:07:01 PDT
Created attachment 196654 [details]
Patch
Comment 3 Early Warning System Bot 2013-04-05 11:11:27 PDT
Comment on attachment 196654 [details]
Patch

Attachment 196654 [details] did not pass qt-ews (qt):
Output: http://webkit-commit-queue.appspot.com/results/17438314
Comment 4 Early Warning System Bot 2013-04-05 11:13:10 PDT
Comment on attachment 196654 [details]
Patch

Attachment 196654 [details] did not pass qt-wk2-ews (qt):
Output: http://webkit-commit-queue.appspot.com/results/17442277
Comment 5 Brendan Long 2013-04-05 11:17:45 PDT
Nevermind, I read this wrong.
Comment 6 Brendan Long 2013-04-05 11:18:41 PDT
I do get a segfault here though, so I'm still trying to figure out why.
Comment 7 Brendan Long 2013-04-05 11:26:03 PDT
I guess this was added in bug #34085. I get segfaults on both Ubuntu and Fedora 18, using QtWebKit with GStreamer 1.0 if I open a page that requires plugins I don't have (specifically, a .ogv file with kate subtitles).

I'm waiting for a build to finish so I get more details.
Comment 8 Brendan Long 2013-04-05 11:36:27 PDT
Created attachment 196656 [details]
Backtrace
Comment 9 Philippe Normand 2013-04-05 11:47:17 PDT
Comment on attachment 196654 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=196654&action=review

> Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:783
> +#ifdef GST_API_VERSION_1

You mean ifndef I suppose?
Comment 10 Philippe Normand 2013-04-05 11:48:48 PDT
Well the details argument is a list of strings in 0.10 and 1.0... The backtrace is interesting though, which exact release of GStreamer is this?
Comment 11 Brendan Long 2013-04-05 11:50:22 PDT
That patch was actually completely wrong. I saw that gchar** turned into const gchar * const and didn't notice that there was one more *. I think the real problem is that we're not null terminating the array.

(In reply to comment #10)
> Well the details argument is a list of strings in 0.10 and 1.0... The backtrace is interesting though, which exact release of GStreamer is this?

The backtrace is from 1.0.6, but I think it occurs on 1.0.5 too (and probably 0.10 looking at the documentation).
Comment 12 Brendan Long 2013-04-05 11:56:34 PDT
Created attachment 196662 [details]
Patch
Comment 13 Brendan Long 2013-04-05 12:02:35 PDT
Created attachment 196663 [details]
Patch
Comment 14 Brendan Long 2013-04-05 12:04:01 PDT
(In reply to comment #13)
> Created an attachment (id=196663) [details]
> Patch

This patch is because there was a style issue (detail_array instead of detailAray) and I didn't fix it correctly in the first patch.

This patch fixes the problem for me.
Comment 15 Philippe Normand 2013-04-05 12:28:10 PDT
Comment on attachment 196663 [details]
Patch

Good catch Brendan! I wonder indeed how I didn't get this crash during the tests I did while writing the codec-installer patch.
Comment 16 WebKit Commit Bot 2013-04-05 12:43:30 PDT
Comment on attachment 196663 [details]
Patch

Clearing flags on attachment: 196663

Committed r147787: <http://trac.webkit.org/changeset/147787>
Comment 17 WebKit Commit Bot 2013-04-05 12:43:33 PDT
All reviewed patches have been landed.  Closing bug.