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 10:01:07 +0200
User-agent: Mutt/1.5.23 (2014-03-12)

On Sat, May 07, 2016 at 07:35:55AM +0000, Mike Gran wrote:
     >     
     > 
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
     > 
     
     I'm having a tough time reproducing a lot of things that you've seen.

That is the non-deterministic nature of the GC I suppose. 
     
     What are your CFLAGS?

$ ./config.status --config
'CFLAGS=-O0 -g -I /Scratch/john/ncurses/include' 
'--prefix=/Scratch/john/guile-ncurses' 'LDFLAGS=-L/Scratch/john/ncuses/lib'

(I'm linking against a version of curses6 with full tracing enabled)

     

But in this case, it seems clear to me that this assertion will happen.  
Because gucu_del_panel calls
gc_free_panel  which calls SCM_SET_SMOB_DATA (x, NULL).   Therefore, in the 
next call to gc_free_panel
(from the GC) the line gp = (struct gucu_panel *) SCM_SMOB_DATA (x); is going 
to set gp to NULL.

J'

-- 
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]