bug-ncurses
[Top][All Lists]
Advanced

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

derwin problems


From: Scott Beck
Subject: derwin problems
Date: Sat, 4 May 2002 16:20:10 -0700

Hey,

I'm having trouble with resizing derived windows (and subwindows for that
matter). I get a segmentation fault, usually in free() or malloc(). Here
is a bt from one of the segfaults:

#0  0x400e90f9 in chunk_realloc (ar_ptr=0x40181cc0, oldp=0x8052778, 
    oldsize=360, nb=384) at malloc.c:3349
#1  0x400e9014 in __libc_realloc (oldmem=0x8052780, bytes=376) at malloc.c:3289
#2  0x40048229 in _nc_doalloc () from /lib/libncurses.so.5
#3  0x40042993 in wresize () from /lib/libncurses.so.5
#4  0x8048efa in resize_window (win=0x8052730, lines=30, cols=94)
    at curses.c:162
#5  0x8048ea8 in resize_windows () at curses.c:153
#6  0x8049097 in handler_winch (sig=28) at curses.c:199
#7  0x4006beb4 in pthread_sighandler (signo=28, ctx={gs = 0, __gsh = 0, 
      fs = 0, __fsh = 0, es = 43, __esh = 0, ds = 43, __dsh = 0, 
      edi = 3221223688, esi = 0, ebp = 3221223836, esp = 3221223620, ebx = 1, 
      edx = 0, ecx = 3221223696, eax = 4294967292, trapno = 1, err = 0, 
      eip = 1075043726, cs = 35, __csh = 0, eflags = 647, 
      esp_at_signal = 3221223620, ss = 43, __ssh = 0, fpstate = 0xbffff648, 
      oldmask = 2147549184, cr2 = 0}) at signals.c:97
#8  <signal handler called>
#9  0x4013dd8e in __select () from /lib/libc.so.6
#10 0x40183a58 in __DTOR_END__ () from /lib/libc.so.6
#11 0x400952eb in __libc_start_main (main=0x8048b50 <main>, argc=1, 
    ubp_av=0xbffffa04, init=0x804886c <_init>, fini=0x80490cc <_fini>, 
    rtld_fini=0x4000c130 <_dl_fini>, stack_end=0xbffff9fc)
    at ../sysdeps/generic/libc-start.c:129

I've created a fairly simple program that does this. If you would like I can
attach it (I wasn't sure if you can have attachments in this list).

If anyone has seen this or knows a work around I would appreciate the feedback.

/home/sbeck# ldconfig -v  |grep ncurses
        libncurses.so.5 -> libncurses.so.5.2


Cheers,

Scott

-------------------- Gossamer Threads Inc. ----------------------
Scott Beck                      Email: address@hidden
Lead Software Developer         Phone: (604) 687-5804
http://www.gossamer-threads.com Fax:   (604) 687-5806




reply via email to

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