nano-devel
[Top][All Lists]
Advanced

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

[Nano-devel] Nano Window Resize Bug on Solaris 9


From: Leo Zhadanovsky
Subject: [Nano-devel] Nano Window Resize Bug on Solaris 9
Date: Thu, 22 Jun 2006 16:28:20 -0400 (EDT)

I have built nano 1.3.11 with Sun Studio Pro 11 using the following flags:
ATH="/opt/SUNWspro/bin:${PATH}" \
CC="cc" CXX="CC" CPPFLAGS="-g -xs -I/usr/local/include" \
LD="/usr/ccs/bin/ld" \
LDFLAGS="-L/usr/local/lib -R/usr/local/lib" \
export PATH CC CXX CPPFLAGS LD LDFLAGS

Upon getting a SIGWINCH, nano segfaults.

dbx with memory checking enabled shows:
Read from unallocated (rua):
Attempting to read 2 bytes at address 0x1664fa
    which is 6 bytes past end of heap block of size 92 bytes at 0x166498
This block was allocated from:
        [1] _makenew() at 0xed1110a0
        [2] newwin() at 0xed11311c
        [3] newscreen() at 0xed112ba0
        [4] initscr32() at 0xed110c8c
        [5] main() at line 2029 in "nano.c"

stopped in wnoutrefresh at 0xed11e08c
0xed11e08c: wnoutrefresh+0x0680:        ba,a     0xed0af6e0     !
0xed0af6e0
Current function is bottombars

  [1] wnoutrefresh(0x162fd0, 0x1664fa, 0x166488, 0x168404, 0x1a, 0x3), at
0xed11e08c
=>[2] bottombars(s = 0x16c7d0), line 2253 in "winio.c"
  [3] total_refresh(), line 2971 in "winio.c"
  [4] handle_sigwinch(signal = 20), line 1096 in "nano.c"
  [5] sigacthandler(0x14, 0x0, 0xffbff400, 0xf3541da0, 0x2b024, 0x1), at
0xebd9f5d8
  ---- called from signal handler with signal 20 (SIGWINCH) ------
  [6] _libc_read(0x4, 0xffbff77f, 0x1, 0xf3541da0, 0x2b024, 0x1), at
0xebd9f250
  [7] local_read(0x0, 0x0, 0x0, 0xffbff77f, 0x1, 0xebd9b0a8), at
0xf352bbbc
  [8] _pk(0x0, 0xed142a48, 0xf35d7298, 0xed13a000, 0x2b1f0, 0x2000), at
0xed1181e4
  [9] tgetch(0x1, 0x28000000, 0xed113460, 0xed142f88, 0x0, 0x0), at
0xed1177f4
  [10] wgetch(0x16a6b0, 0x0, 0x1664f4, 0xed142f88, 0x0, 0x0), at
0xed11c330
  [11] get_key_buffer(win = 0x16a6b0), line 141 in "winio.c"
  [12] get_input(win = 0x16a6b0, input_len = 1U), line 276 in "winio.c"
  [13] parse_kbinput(win = 0x16a6b0, meta_key = 0xffbffaee "", func_key =
0xffbffaed "", reset = '\0'), line 365 in "winio.c"
  [14] get_kbinput(win = 0x16a6b0, meta_key = 0xffbffaee "", func_key =
0xffbffaed ""), line 334 in "winio.c"
  [15] do_input(meta_key = 0xffbffaee "", func_key = 0xffbffaed "", s_or_t
= 0xffbffaec "", ran_func = 0xffbffaeb "", finished = 0xffbffaea "",
allow_funcs = '\001'), line 1276 in "nano.c"
  [16] main(argc = 1, argv = 0xffbffb64), line 2151 in "nano.c"



___
Leo Zhadanovsky
Student Systems Programmer
Open System Solutions
Rutgers University




reply via email to

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