[haiku-bugs] [Haiku] #13111: Possible execve bug in Haiku

  • From: "miqlas" <trac@xxxxxxxxxxxx>
  • Date: Wed, 14 Dec 2016 05:55:02 -0000

#13111: Possible execve bug in Haiku
-----------------------+------------------------------
 Reporter:  miqlas     |        Owner:  nobody
     Type:  bug        |       Status:  new
 Priority:  normal     |    Milestone:  Unscheduled
Component:  - General  |      Version:  R1/Development
 Keywords:             |   Blocked By:
 Blocking:             |  Has a Patch:  0
 Platform:  All        |
-----------------------+------------------------------
 Noticed it in fish shell, below the bugreport:

 https://github.com/fish-shell/fish-shell/issues/3645

 Komment from ridiculousfish:


 {{{
 krader is right that execve is allocating memory, and I would tentatively
 argue that this is a bug in Haiku. In particular POSIX requires that
 execve is async-signal safe, which means it may be called from a signal
 handler, and thus must not call malloc internally.
 }}}

 Original bugreport, for the history:

 Reproduction steps

 write characters into your Terminal
 press Ctrl-C
 Repeat
 ....
 Profit! Fish hangs after Ctrl-C and aren't accept any input anymore, so
 you need to kill it. I never had any problems like this with the 2.3.x
 releases. (if i remember correctly.)

--
Ticket URL: <https://dev.haiku-os.org/ticket/13111>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: