Subject: core dump and possible bug

From: Joe Pruett <[email-masked]>
Date: Tue, 8 Sep 1998 17:28:09 -0700 (PDT)

pine 4.03, solaris 2.5.1, gcc 2.8.1.

typing ^L to the folder prompt of the G command causes a core dump.  from
poking around with gdb, i can see the km_state.km is NULL, but i haven't
figured the flow out yet to know more than that.  stack trace below.

also, the expunge-without-confirm isn't working for INBOX like it says it
should.  a quick glance at the logic in mailcmd.c (lines 5021-5025) i
wonder why context_isambig is being called.  should it be
!context_isambig?

here's the stack trace for the core dump:
#0  0xef5f4974 in kill ()
#1  0xef5ba6ec in abort ()
#2  0x185878 in coredump () at os.c:875
#3  0x13fc10 in panic (message=0x282f50 "Received abort signal") at pine.c:2937
#4  0x167870 in auger_in_signal () at signals.c:220
#5  <signal handler called>
#6  0x14a390 in format_keymenu (km=0x0, bm=0x2f1384 "", width=80)
    at screen.c:504
#7  0x14b314 in draw_keymenu (km=0x0, bitmap=0x2f1384 "", width=80, row=0, 
    column=0, what=SameMenu) at screen.c:757
#8  0x14b674 in redraw_keymenu () at screen.c:800
#9  0x18ce0c in optionally_enter (string=0x2f06d0 "", y_base=-1, x_base=0, 
    field_len=1023, prompt=0xefffdbe8 "GOTO folder in <Mail> : ", 
    escape_list=0xefffdb58, help=0x0, flags=0xefffdb4c) at os.c:3897
#10 0xe454c in broach_folder (qline=-1, allow_list=1, context=0xefffe93c)
    at mailcmd.c:4235
#11 0xd69fc in process_cmd (state=0x2f9db8, stream=0x3028b8, msgmap=0x2fa6a0, 
    command=707, in_index=1, force_mailchk=0xefffebe8) at mailcmd.c:405
#12 0xf2360 in index_lister (state=0x2f9db8, cntxt=0x3021b0, 
    folder=0x2f9e3d "INBOX", stream=0x3028b8, msgmap=0x2fa6a0)
    at mailindx.c:981
#13 0xf0af8 in mail_index_screen (state=0x2f9db8) at mailindx.c:466
#14 0x13970c in main (argc=1, argv=0xeffff1ec) at pine.c:881

-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Michael Thomas Cope <[email-masked]>
Date: Tue, 8 Sep 1998 17:41:33 -0700 (PDT)

> figured the flow out yet to know more than that.  stack trace below.
I couldn't replicate this in pine 4.03, solaris 2.6 (lastest patches), gcc
2.8.1 
Can you be more specific.  Does it happen in all menus where G can
be pressed?
-Mike
-- 
Michael Cope: Harvey Mudd College '00; Armand Hammer UWC '96
E-mail: [email-masked]

---

From: Joe Pruett <[email-masked]>
Date: Tue, 8 Sep 1998 17:48:42 -0700 (PDT)

i didn't try a vanilla config.  it only happens when disable-keymenu is
turned on.

---

From: Michael Thomas Cope <[email-masked]>
Date: Tue, 8 Sep 1998 17:58:09 -0700 (PDT)

> i didn't try a vanilla config.  it only happens when disable-keymenu is
Ah...yes it exhibits the behavior you were describing 
G ^L abort
on Pine 4.03, Solaris 2.6, gcc 2.8.1
-Mike
<excerpt from .pine-debug1 (debug level 9)>

    ---- MAIN_MENU_SCREEN ----
Want_to read: < (60)
Want_to read: RETURN (13)

    ---- MAIN_MENU_SCREEN ----
*** Debug level set to 9 ***
q_status_message(Debug level set to 9)
new mail called (0 2 3)
output_message(Debug level set to 9)
STATUS cmd:57, max:1, min0
cancel_busy_alarm(-1)
Read char returning: 13 RETURN
Read command returning: 13 RETURN
New_mail_count zeroed
=== folder_screen called ====
new mail called (0 2 3)
set_titlebar - style: 1  current message cnt:1  current_pl: 0  total_pl: 0
comatose(427) returns:"427"
STATUS: diff:-1, displayed: 905302514, now: 905302515
d_q_status_message(Debug level set to 9)
Clearing status line
STATUS cmd:120, max:-1, min-1
cancel_busy_alarm(-1)
Read char returning: 103 g
Read command returning: 103 g
New_mail_count zeroed
=== optionally_enter called ===
string:""  y:0  x:-1  length: 1024 append: 1
passwd:0   prompt:"GOTO folder in <Mail> : "   label:""
suspend_busy_alarm
Read char returning: 12 ^L
comatose(427) returns:"427"
end_signals(1)
auger_in_signal()
end_screen called
about to end_tty_driver
end_signals(1)
Pine Panic: Received abort signal