Opened 8 years ago

Last modified 8 years ago

#13111 closed bug

Possible execve bug in Haiku — at Initial Version

Reported by: miqlas Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: System/POSIX Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

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.)

Change History (2)

by miqlas, 8 years ago

Attachment: fish_debug_1.png added

Debugger-1

by miqlas, 8 years ago

Attachment: fish_debug_2.png added

Debugger-2

Note: See TracTickets for help on using tickets.