#16489: App_server crash when browsing URL with WebPositive
---------------------------------+-------------------------
Reporter: vidrep | Owner: PulkoMandy
Type: bug | Status: assigned
Priority: normal | Milestone: Unscheduled
Component: Servers/app_server | Version: R1/beta2
Resolution: | Keywords:
Blocked By: | Blocking:
Platform: All |
---------------------------------+-------------------------
Comment (by mmlr):
waddlesplash was referring to the userland guarded heap, as the kernel one
wouldn't be of any help. I have tried that yesterday for a long time but
am entirely unable to reproduce the issue on the mentioned site. I can
also not reproduce this on youtube, but video playback is broken there for
me as it claims the browser doesn't support the video format.
Making the app_server run under the guarded heap is not too complicated
btw. You can add the environment variables to the launch definition in
`/system/data/launch/system` by adding a block like this to the app_server
entry:
{{{
app_server... {
env {
LD_PRELOAD libroot_debug.so
MALLOC_DEBUG grs25
}
...
}
}}}
Building an updated image or updating the haiku.hpkg with that will make
app_server (and input_server, as that is started directly by app_server)
run under the guarded heap. Note that the `r` flag above also disables
memory reuse for maximum effect, but will also burn through RAM quickly.
So you may need to change this to just `gs25` above if it isn't quick
enough to reproduce. Once memory is used up in either case, the app_server
will likely just hang and a hard reboot will be needed. This has a chance
of filesystem corruption, so make sure that nothing important is left
unbackuped.
--
Ticket URL: <https://dev.haiku-os.org/ticket/16489#comment:7>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.