bug-guile-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-guile-ncurses] Crash in simple program.


From: Mike Gran
Subject: Re: [Bug-guile-ncurses] Crash in simple program.
Date: Fri, 6 May 2016 14:04:01 +0000 (UTC)

>The following code reliably seg faults, this may be the same as the problem 
>reported previously.  But in the previous example I saw only unexpected
>behaviour.  This example actually crashes.
>
>
>(use-modules 
>             (srfi srfi-1)
>             (ncurses curses)
>             (ncurses panel))
>
>(define mainwin (initscr))
>
>(define (my-proc)
>  (let* ((win  (newwin 30 50 10 10))
>     (p (new-panel win)))
>    p))
>
>(let ((mp (my-proc)))
>  (update-panels)
>  (doupdate)
>  (del-panel mp)
>  (gc))
>
>(endwin)

Indeed.

I fixed the most obvious problem in the commit below.

http://git.savannah.gnu.org/cgit/guile-ncurses.git/commit/?id=c2732a854dc8823099787bd40bebf8339ded0df6

But this whole GC strategy needs to be revisited, apparently.

-Mike


reply via email to

[Prev in Thread] Current Thread [Next in Thread]