Ticket #3026 (closed bug: duplicate)

Opened 4 years ago

Last modified 4 years ago

GHCi segfault

Reported by: porges Owned by:
Priority: normal Milestone: 6.12.1
Component: GHCi Version: 6.10.1
Keywords: Cc:
Operating System: Linux Architecture: x86
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description (last modified by igloo) (diff)

This may be libedit's fault, but I can't tell :)

How to replicate: Load up GHCi, hold the up-arrow. Segfault!

Here's a backtrace:

    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 0xb7e546b0 (LWP 9959)]
    0xb808133c in ?? () from /usr/lib/libedit.so.2
    (gdb) bt
    #0  0xb808133c in ?? () from /usr/lib/libedit.so.2
    #1  0xb8085e1a in ?? () from /usr/lib/libedit.so.2
    #2  0xb8088164 in el_gets () from /usr/lib/libedit.so.2
    #3  0xb8095d24 in readline () from /usr/lib/libedit.so.2
    #4  0x08aaea00 in ?? ()
    Backtrace stopped: previous frame inner to this frame (corrupt stack?)
    (gdb) 

Change History

Changed 4 years ago by porges

Sorry about formatting:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7e546b0 (LWP 9959)]
0xb808133c in ?? () from /usr/lib/libedit.so.2
(gdb) bt
#0  0xb808133c in ?? () from /usr/lib/libedit.so.2
#1  0xb8085e1a in ?? () from /usr/lib/libedit.so.2
#2  0xb8088164 in el_gets () from /usr/lib/libedit.so.2
#3  0xb8095d24 in readline () from /usr/lib/libedit.so.2
#4  0x08aaea00 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) 

Changed 4 years ago by igloo

  • difficulty set to Unknown
  • description modified (diff)

Changed 4 years ago by igloo

  • milestone set to 6.12.1

I can't reproduce this, but I think we should assume it's editline for now, and test again once the head has stopped using it.

Changed 4 years ago by cmcq

  • status changed from new to closed
  • resolution set to duplicate

See #2812. I don't get a segfault in 6.10.3.

Changed 4 years ago by simonmar

See also #3157

Note: See TracTickets for help on using tickets.