[Mono-bugs] [Bug 338220] New: Sometimes ff might execute js before the plugin has been initialized

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 31 13:40:00 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=338220

           Summary: Sometimes ff might execute js before the plugin has been
                    initialized
           Product: Moonlight
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: plugin
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: rkvinge at novell.com
         QAContact: mono-bugs at ximian.com
          Found By: ---


Reproducable in 1/3 of the runs of /plugin/samples/clock.html

Console output when it crashes:

rolf at linux:/mono/head/moon/plugin/samples> ff-gdb clock.html
Command: clock.html
GNU gdb 6.6.50.20070726-cvs
Copyright (C) 2007 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-suse-linux"...
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1"
[Thread debugging using libthread_db enabled]
[New Thread 0xb6f7e8e0 (LWP 4493)]
[New Thread 0xb665fb90 (LWP 4500)]
[New Thread 0xb5e37b90 (LWP 4507)]
[New Thread 0xb5587b90 (LWP 4511)]
[New Thread 0xb4ca6b90 (LWP 4521)]
[New Thread 0xb44a5b90 (LWP 4522)]
[New Thread 0xb3c01b90 (LWP 4524)]
[New Thread 0xb3400b90 (LWP 4525)]
[New Thread 0xb2bffb90 (LWP 4526)]
[New Thread 0xb21ffb90 (LWP 4531)]
[New Thread 0xb19feb90 (LWP 4532)]
[Thread 0xb19feb90 (LWP 4532) exited]
[New Thread 0xb11fdb90 (LWP 4533)]
[Thread 0xb11fdb90 (LWP 4533) exited]
[New Thread 0xb11fdb90 (LWP 4538)]
Moonlight-Message: *** creating window2 (8,60,300,225)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6f7e8e0 (LWP 4493)]
NameScope::GetNameScope (obj=0x0) at namescope.cpp:79
79              Value *v = obj->GetValue (NameScope::NameScopeProperty);
Current language:  auto; currently c++
(gdb) bt
#0  NameScope::GetNameScope (obj=0x0) at namescope.cpp:79
#1  0xb00ccc3f in DependencyObject::FindName (this=0x0, name=0x9694218
"backImage") at dependencyobject.cpp:591
#2  0xb0738fbc in moonlight_content_invoke (npobj=0x9a76064, name=0x990fb2c,
args=0xbfd4b560, argCount=1, result=0xbfd4b5c0) at plugin-class.cpp:1553
#3  0x0824b50a in ?? ()
#4  0x09a76064 in ?? ()
#5  0x0990fb2c in ?? ()
#6  0xbfd4b560 in ?? ()
#7  0x00000001 in ?? ()
#8  0xbfd4b5c0 in ?? ()
#9  0x099fdc88 in ?? ()
#10 0x09a78030 in ?? ()
#11 0x09a78030 in ?? ()
#12 0x092c6a64 in ?? ()
#13 0x00000001 in ?? ()
#14 0xbfd4b560 in ?? ()
#15 0xb562c9ad in _callHook (jsdc=0x9155be8, cx=0x99fdc10, fp=0x1,
before=161972272, type=3218388592, hook=0x99fdc10, hookData=0x9a78030) at
jsd_step.c:114
#16 0xb7ee3ae2 in js_Invoke () from /usr/lib/firefox/libmozjs.so
#17 0xb7eeb11b in js_Interpret () from /usr/lib/firefox/libmozjs.so
#18 0xb7ee3b4a in js_Invoke () from /usr/lib/firefox/libmozjs.so
#19 0xb7ee2faa in js_InternalInvoke () from /usr/lib/firefox/libmozjs.so
#20 0xb7ebab17 in JS_CallFunctionValue () from /usr/lib/firefox/libmozjs.so
#21 0x084362b2 in ?? ()
#22 0x09155be8 in ?? ()
#23 0x098a4aa0 in ?? ()
#24 0x0990f808 in ?? ()
#25 0x00000001 in ?? ()
#26 0xbfd4bce4 in ?? ()
#27 0xbfd4bccc in ?? ()
#28 0x098fdd60 in ?? ()
#29 0x098fdd60 in ?? ()
#30 0x098fdd60 in ?? ()
#31 0x098fdd58 in ?? ()
#32 0xbfd4bba8 in ?? ()
#33 0x092cdf68 in ?? ()
#34 0x00000000 in ?? ()
(gdb) info threads
  13 Thread 0xb11fdb90 (LWP 4538)  0xffffe410 in __kernel_vsyscall ()
  10 Thread 0xb21ffb90 (LWP 4531)  0xffffe410 in __kernel_vsyscall ()
  9 Thread 0xb2bffb90 (LWP 4526)  0xffffe410 in __kernel_vsyscall ()
  8 Thread 0xb3400b90 (LWP 4525)  0xffffe410 in __kernel_vsyscall ()
  7 Thread 0xb3c01b90 (LWP 4524)  0xffffe410 in __kernel_vsyscall ()
  6 Thread 0xb44a5b90 (LWP 4522)  0xffffe410 in __kernel_vsyscall ()
  5 Thread 0xb4ca6b90 (LWP 4521)  0xffffe410 in __kernel_vsyscall ()
  4 Thread 0xb5587b90 (LWP 4511)  0xffffe410 in __kernel_vsyscall ()
  3 Thread 0xb5e37b90 (LWP 4507)  0xffffe410 in __kernel_vsyscall ()
  2 Thread 0xb665fb90 (LWP 4500)  0xffffe410 in __kernel_vsyscall ()
* 1 Thread 0xb6f7e8e0 (LWP 4493)  NameScope::GetNameScope (obj=0x0) at
namescope.cpp:79

As opposed to the log when it succeeds:
rolf at linux:/mono/head/moon/plugin/samples> ff-gdb clock.html
Command: clock.html
GNU gdb 6.6.50.20070726-cvs
Copyright (C) 2007 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-suse-linux"...
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0xb70088e0 (LWP 4380)]
[New Thread 0xb66e9b90 (LWP 4401)]
[New Thread 0xb5ec1b90 (LWP 4403)]
[New Thread 0xb5611b90 (LWP 4407)]
[New Thread 0xb4ce3b90 (LWP 4414)]
[New Thread 0xb42ffb90 (LWP 4415)]
[New Thread 0xb34ffb90 (LWP 4429)]
[New Thread 0xb2cfeb90 (LWP 4430)]
[New Thread 0xb24fdb90 (LWP 4435)]
[New Thread 0xb1affb90 (LWP 4436)]
[New Thread 0xb12feb90 (LWP 4437)]
[Thread 0xb12feb90 (LWP 4437) exited]
[New Thread 0xb0afdb90 (LWP 4438)]
[Thread 0xb0afdb90 (LWP 4438) exited]
[New Thread 0xb0afdb90 (LWP 4439)]
[New Thread 0xb12feb90 (LWP 4440)]
[Thread 0xb0afdb90 (LWP 4439) exited]
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
Moonlight-Message: *** creating window2 (8,60,300,225)
[New Thread 0xb0afdb90 (LWP 4448)]
PluginXamlLoader::TryLoad, filename: /mono/head/moon/plugin/samples/clock.xaml,
str: (null)
PluginXamlLoader::TryLoad () succeeded.
Moonlight-Message: In JsRunOnload, toplevel = 0xb01879e0
Moonlight-Message: NPN_Invoke failed
Moonlight-Message: URL clock.xaml downloaded successfully.
Moonlight-Message: URL moon1.jpg downloaded successfully.
Rendered 49 frames in 1.001s = 48.944 FPS
Rendered 41 frames in 1.000s = 40.996 FPS
Rendered 60 frames in 1.000s = 59.997 FPS
Rendered 61 frames in 1.000s = 60.989 FPS
Rendered 55 frames in 1.007s = 54.640 FPS
[Thread 0xb12feb90 (LWP 4440) exited]
Rendered 23 frames in 1.044s = 22.038 FPS
Rendered 37 frames in 1.002s = 36.931 FPS
Rendered 55 frames in 1.011s = 54.415 FPS
Rendered 57 frames in 1.005s = 56.692 FPS
Rendered 57 frames in 1.002s = 56.878 FPS
Rendered 58 frames in 1.016s = 57.066 FPS
Rendered 57 frames in 1.002s = 56.903 FPS
Rendered 56 frames in 1.004s = 55.772 FPS
Rendered 53 frames in 1.000s = 52.992 FPS
Rendered 59 frames in 1.016s = 58.079 FPS
Destroying the surface: 0x8f6b8c0, plugin: 0xb008f440
[Thread 0xb1affb90 (LWP 4436) exited]
[Thread 0xb34ffb90 (LWP 4429) exited]
[Thread 0xb2cfeb90 (LWP 4430) exited]
[Thread 0xb0afdb90 (LWP 4448) exited]
[Thread 0xb66e9b90 (LWP 4401) exited]
[Thread 0xb24fdb90 (LWP 4435) exited]
[Thread 0xb42ffb90 (LWP 4415) exited]
[Thread 0xb5611b90 (LWP 4407) exited]
[Thread 0xb4ce3b90 (LWP 4414) exited]
[Thread 0xb5ec1b90 (LWP 4403) exited]
Program exited normally.

Note that when it crashes, we haven't even tried to load the xaml file.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list