[haiku-bugs] Re: [Haiku] #9914: [runtime_loader] crashes on double click

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Thu, 31 Dec 2020 06:04:33 -0000

#9914: [runtime_loader] crashes on double click
------------------------------------+----------------------------
  Reporter:  diver                  |      Owner:  bonefish
      Type:  bug                    |     Status:  closed
  Priority:  normal                 |  Milestone:  R1
 Component:  System/runtime_loader  |    Version:  R1/Development
Resolution:  no change required     |   Keywords:
Blocked By:                         |   Blocking:
  Platform:  All                    |
------------------------------------+----------------------------
Comment (by diver):

 Replying to [comment:2 bonefish]:

The cause of the crash is that the runtime loader looks just like a
 regular executable -- and thus it can be loaded without problems -- but
 its entry function expects different parameters than a regular executable.
 The only solution I can think of is to add an explicit check whether the
 executable is the runtime loader.

 Serenity does exactly this
 https://github.com/SerenityOS/serenity/commit/146fac2
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/9914#comment:7>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: