lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev Crash in popup menu


From: pg
Subject: lynx-dev Crash in popup menu
Date: Sun, 23 Jul 2000 16:25:15 -0600 (MDT)

Hello, Lyncei,

OK.  I got a little better with gdb.  It tells me now:

(gdb) bt
#0  0xef68800c in _libc_kill () from /usr/lib/libc.so.1
#1  0xef63a4e8 in abort () from /usr/lib/libc.so.1
#2  0x62a0c in FatalProblem (sig=11) at ../../lynx2-8-4/src/LYMain.c:3934
#3  <signal handler called>
#4  0x16d344 in delwin ()
#5  0x27efc in LYsubwindow (param=0x0) at ../../lynx2-8-4/src/LYStrings.c:720
#6  0xacec4 in popup_options (cur_selection=1, list=0x2307d0, ly=12, lx=38, 
width=16,
    i_length=1, disabled=0) at ../../lynx2-8-4/src/LYForms.c:1770
#7  0xa95bc in change_form_link_ex (form_link=0x1f6dac, newdoc=0x1e3788,
    refresh_screen=0xefffeb11 "", link_name=0x230818 "search_type",
    link_value=0x218008 "Case insensitive", use_last_tfpos=0 '\000',
    immediate_submit=0 '\000', redraw_only=0 '\000') at 
../../lynx2-8-4/src/LYForms.c:104
#8  0xa9f68 in change_form_link (form_link=0x1f6dac, newdoc=0x1e3788,
    refresh_screen=0xefffeb11 "", link_name=0x230818 "search_type",
    link_value=0x218008 "Case insensitive", use_last_tfpos=0 '\000', 
immediate_submit=0 '\000')
    at ../../lynx2-8-4/src/LYForms.c:329
#9  0x65ea4 in handle_LYK_ACTIVATE (c=0xefffef3c, cmd=39, 
try_internal=0xefffeb0f "",
    refresh_screen=0xefffeb11 "", force_load=0xefffeb10 "", real_cmd=39)
    at ../../lynx2-8-4/src/LYMainLoop.c:1149
#10 0x79764 in mainloop () at ../../lynx2-8-4/src/LYMainLoop.c:7037
#11 0x60608 in main (argc=1, argv=0xeffff25c) at 
../../lynx2-8-4/src/LYMain.c:1965
(gdb)

At ../../lynx2-8-4/src/LYStrings.c:720 is:

    #ifndef USE_SLANG
    PRIVATE WINDOW *my_subwindow;

    PUBLIC void LYsubwindow ARGS1(WINDOW *, param)
    {
        if ((my_subwindow = param) != 0) {
    #if defined(NCURSES) || defined(PDCURSES)
            keypad(param, TRUE);
    #if defined(HAVE_GETBKGD) /* not defined in ncurses 1.8.7 */
            wbkgd(my_subwindow, getbkgd(stdscr));
            wbkgdset(my_subwindow, getbkgd(stdscr));
    #endif
    #endif
            scrollok(my_subwindow, TRUE);
        } else {
            touchwin(stdscr);
            delwin(my_subwindow);
        }
    }
    #endif

At ../../lynx2-8-4/src/LYForms.c:1770 is:

    LYstopPopup();

At ../../lynx2-8-4/src/LYCurses.h" line 189 is:

    #ifdef USE_SLANG
    #define LYstopPopup() /* nothing */
    #else
    extern void LYsubwindow PARAMS((WINDOW * param));
    #define LYstopPopup() LYsubwindow(0)
    #endif /* NCURSES */

So it looks as if popup_options calls LYsubwindow with NULL at:

    LYstopPopup();

LYsubwindow sets my_subwindow to NULL at:
    if ((my_subwindow = param) != 0) {
then calls delwin(NULL) and delwin() doesn't like the NULL.

-- gil
-- 
StorageTek
INFORMATION made POWERFUL

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

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