Bug 300881

Summary: segfault with sample program (and others)
Product: [Fedora] Fedora Reporter: Colin Walters <walters>
Component: gnome-python2-extrasAssignee: Matthew Barnes <mbarnes>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: gecko-bugs-nobody
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-10-03 02:41:27 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:
Attachments:
Description Flags
gdb session none

Description Colin Walters 2007-09-21 17:54:40 UTC
Description of problem:

Using the sample program from gnome-python2-gtkmozembed causes a segfault inside
Mozilla.

Version-Release number of selected component (if applicable):
gnome-python2-gtkmozembed-2.14.3-4.fc7

How reproducible:
Every time

Steps to Reproduce:
1. Copy example program from
file:///usr/share/gtk-doc/html/pygtkmozembed/class-gtkmozembed.html into a file
2. Execute file
  
Actual results:
segfault

Expected results:
browser

Additional info:

This is also reproducible on current Rawhide.

Comment 1 Colin Walters 2007-09-21 17:54:40 UTC
Created attachment 202651 [details]
gdb session

Comment 2 Matthew Barnes 2007-10-03 02:35:36 UTC
Confirmed; NULL pointer dereference.

EmbedPrivate::Realize (this=0x9e122f0, aAlreadyRealized=0xbfa93e68)
    at EmbedPrivate.cpp:257

(gdb) l
252
253       // Create our session history object and tell the navigation object
254       // to use it.  We need to do this before we create the web browser
255       // window.
256       mSessionHistory = do_CreateInstance(NS_SHISTORY_CONTRACTID);
257       mNavigation->SetSessionHistory(mSessionHistory);
258
259       // create the window
260       mWindow->CreateWindow();
261
(gdb) p mNavigation
$1 = {<nsCOMPtr_base> = {mRawPtr = 0x0}, <No data fields>}

Comment 3 Matthew Barnes 2007-10-03 02:41:27 UTC

*** This bug has been marked as a duplicate of 205499 ***