MantisBT - NetSurf
View Issue Details
0000382NetSurfJavascriptpublic2013-06-05 21:112015-03-10 23:38
ReporterDave Higton 
Assigned ToVincent Sanders 
PrioritynormalSeveritycrashReproducibilityalways
StatusclosedResolutionfixed 
PlatformIyonixOSRISC OSOS Version5.18
Product Version 
Target Version3.3Fixed in Version3.3 
Fixed in CI build #2623
Reported in CI build #
URL of problem page
Summary0000382: Crash on closing a window while page is loading
DescriptionRepeat of bug 3608526, which has been closed although the problem still occurs and never stopped occurring.

If you set NS loading a page, and close the window while the page is loading, NS crashes. The attached crash log is from doing that with a page from the BBC's new web site with NS CI 0001249 json and enabled but it's done it with hundreds of versions for a while now (the original report was with CI 0000985 and that was far from the first).

Fully repeatable, not site specific, AFAICS.

Iyonix, RO 5.18, 512 MiB.
Additional InformationImported from sourceforge bug http://sourceforge.net/support/tracker.php?aid=3614357 on Tue Dec 10 17:34:12 2013
TagsNo tags attached.
duplicate of 0002279closed Vincent Sanders Spontaneous crash. 
Attached Files

Notes
(0000013)
Vincent Sanders   
2013-12-11 16:27   
This appears to be specific to RISC OS

From the log stacktrace:
  ( 652c28) pc: 77b4c lr: 9385c sp: 652c2c js_exec()
  ( 652c5c) pc: 93654 lr: 3aa74 sp: 652c60 ^convert_script_sync_cb()
  ( 652d30) pc: 3a754 lr: 3ad74 sp: 652d34 ^hlcache_migrate_ctx()
  ( 652dd8) pc: 3ab50 lr: 3bd8c sp: 652ddc ^hlcache_llcache_callback()
  ( 652e0c) pc: 3bc10 lr: 3c65c sp: 652e10 ^llcache_object_notify_users()
  ( 652e24) pc: 3c634 lr: 3ae20 sp: 652e28 llcache_poll()
  ( 652e34) pc: 3ae14 lr: 5ded4 sp: 652e38 hlcache_poll()
  ( 652e4c) pc: 5deac lr: b8f64 sp: 652e50 netsurf_main_loop()
  ( 652fe8) pc: b89f4 lr: 4bdd40 sp: 652fec main()

which seems to indicate that closing the window fails to abort the fetch correctly and when the script callback executes the script it goes bang for obvious reasons.

should convert_script_sync_cb() in handling CONTENT_MSG_DONE skip the execution if the parent content has been aborted? certainly I am unable to reproduce this on gtk or framebuffer frontends.
(0000148)
Michael Drake   
2014-01-03 17:30   
With nsgtk you need to be quick.

Open click BBC News link, and immediately Shift+Ctrl+W (close window).

Segfault.
(0000633)
Vincent Sanders   
2015-03-07 18:52   
I think I have finally fixed this issue alongside two others with the same root cause. can I ask you to please confirm with CI build 2623 ?
(0000635)
Michael Drake   
2015-03-07 22:34   
I can't reproduce the segfault with the latest version.

It does seem to load a lot of lwc strings on exit though.
(0000636)
Dave Higton   
2015-03-08 14:35   
I have given build 2625 a good thrash and have been unable to break it, so it looks like it's fixed. Thank you!
(0000735)
Vincent Sanders   
2015-03-10 23:38   
Confirmed fixed in 3.3 release

Issue History
2013-12-10 17:41Vincent SandersNew Issue
2013-12-10 17:41Vincent SandersStatusnew => assigned
2013-12-10 17:41Vincent SandersAssigned To => Sourceforge Import placeholder
2013-12-10 17:41Vincent SandersDescription Updatedbug_revision_view_page.php?rev_id=2#r2
2013-12-11 16:27Vincent SandersNote Added: 0000013
2013-12-11 16:27Vincent SandersAssigned ToSourceforge Import placeholder =>
2013-12-11 16:27Vincent SandersSeverityminor => major
2013-12-11 16:27Vincent SandersReproducibilityhave not tried => sometimes
2013-12-11 16:27Vincent SandersStatusassigned => confirmed
2013-12-11 16:27Vincent SandersResolutionno change required => reopened
2013-12-11 16:27Vincent SandersCategoryGeneral => RISC OS-specific
2013-12-11 16:27Vincent SandersOS => RISC OS
2013-12-11 16:27Vincent SandersOS Version => 5.18
2013-12-11 16:27Vincent SandersPlatform => Iyonix
2013-12-11 16:27Vincent SandersDescription Updatedbug_revision_view_page.php?rev_id=170#r170
2013-12-11 16:27Vincent SandersAdditional Information Updatedbug_revision_view_page.php?rev_id=172#r172
2014-01-03 00:53Vincent SandersAssigned To => Steve Fryatt
2014-01-03 00:53Vincent SandersStatusconfirmed => assigned
2014-01-03 00:54Vincent SandersStatusassigned => acknowledged
2014-01-03 17:27Michael DrakeAssigned ToSteve Fryatt => Michael Drake
2014-01-03 17:27Michael DrakeStatusacknowledged => assigned
2014-01-03 17:30Michael DrakeNote Added: 0000148
2014-01-03 17:30Michael DrakeAssigned ToMichael Drake => Vincent Sanders
2014-01-03 17:30Michael DrakeReproducibilitysometimes => always
2014-01-03 17:30Michael DrakeStatusassigned => confirmed
2014-01-03 17:30Michael DrakeCategoryRISC OS-specific => Javascript
2014-02-07 16:12Michael DrakeSeveritymajor => crash
2014-02-07 16:12Michael DrakeDescription Updatedbug_revision_view_page.php?rev_id=1132#r1132
2014-02-07 16:12Michael DrakeAdditional Information Updatedbug_revision_view_page.php?rev_id=1133#r1133
2015-03-07 18:43Vincent SandersRelationship addedduplicate of 0002279
2015-03-07 18:52Vincent SandersFixed in CI build # => 2623
2015-03-07 18:52Vincent SandersNote Added: 0000633
2015-03-07 18:52Vincent SandersStatusconfirmed => feedback
2015-03-07 18:52Vincent SandersResolutionreopened => fixed
2015-03-07 18:52Vincent SandersTarget Version => 3.3
2015-03-07 18:52Vincent SandersDescription Updatedbug_revision_view_page.php?rev_id=1425#r1425
2015-03-07 18:52Vincent SandersAdditional Information Updatedbug_revision_view_page.php?rev_id=1426#r1426
2015-03-07 22:34Michael DrakeNote Added: 0000635
2015-03-08 14:35Dave HigtonNote Added: 0000636
2015-03-08 14:35Dave HigtonStatusfeedback => assigned
2015-03-08 14:50Vincent SandersStatusassigned => resolved
2015-03-08 14:50Vincent SandersFixed in Version => 3.3
2015-03-10 23:38Vincent SandersNote Added: 0000735
2015-03-10 23:38Vincent SandersStatusresolved => closed