[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
- [Bug-guile-ncurses] Crash in simple program., John Darrington, 2016/05/06
- Re: [Bug-guile-ncurses] Crash in simple program.,
Mike Gran <=
- Re: [Bug-guile-ncurses] Crash in simple program., John Darrington, 2016/05/07
- [Bug-guile-ncurses] [PATCH] Do not destroy the panel when del_panel is called., John Darrington, 2016/05/07
- Re: [Bug-guile-ncurses] [PATCH] Do not destroy the panel when del_panel is called., Mike Gran, 2016/05/07
- Re: [Bug-guile-ncurses] [PATCH] Do not destroy the panel when del_panel is called., John Darrington, 2016/05/07
- Re: [Bug-guile-ncurses] [PATCH] Do not destroy the panel when del_panel is called., Mike Gran, 2016/05/07
- Re: [Bug-guile-ncurses] [PATCH] Do not destroy the panel when del_panel is called., John Darrington, 2016/05/08