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: John Darrington
Subject: Re: [Bug-guile-ncurses] Crash in simple program.
Date: Sat, 7 May 2016 09:29:41 +0200
User-agent: Mutt/1.5.23 (2014-03-12)

On Fri, May 06, 2016 at 02:04:01PM +0000, Mike Gran wrote:
     >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 now, the assertion in gc_free_panel fires.  panel_type.c:152

:(

-- 
Avoid eavesdropping.  Send strong encryted email.
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.

Attachment: signature.asc
Description: Digital signature


reply via email to

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