Ticket #6006 (closed bug: fixed)

Opened 13 months ago

Last modified 13 months ago

hs_init(NULL, NULL) segfaults on latest snapshot

Reported by: ezyang Owned by: simonmar
Priority: high Milestone: 7.4.2
Component: Runtime System Version: 7.5
Keywords: Cc:
Operating System: Linux Architecture: x86
Type of failure: Runtime crash Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

This weeny program crashes:

int main(int argc, char** argv) {
    hs_init(NULL,NULL);
}

Old versions of GHC accomodate null pointers fine, and there is an explicit check for this case inside the function. If this is intentional behavior change, it should be documented.

Change History

Changed 13 months ago by simonmar

  • owner set to simonmar
  • difficulty set to Unknown
  • priority changed from normal to high
  • component changed from Compiler to Runtime System
  • milestone set to 7.6.1

Changed 13 months ago by marlowsd@…

commit 4ca281829c70331571291ed3dcf813a6028cc904

Author: Simon Marlow <marlowsd@gmail.com>
Date:   Fri Apr 27 13:20:56 2012 +0100

    hs_init(): cope with argc and/or argv being NULL (#6006)

 rts/RtsStartup.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

Changed 13 months ago by simonmar

  • status changed from new to merge
  • milestone changed from 7.6.1 to 7.4.2

Changed 13 months ago by pcapriotti

  • status changed from merge to closed
  • resolution set to fixed

Merged as d7c6368938c77644da7c8410df4d4fa440aca7e8.

Note: See TracTickets for help on using tickets.