Tk Source Code

View Ticket
Login
Ticket UUID: 220596
Title: CDE window manager Close operation causes dump
Type: Bug Version: obsolete: 8.2
Submitter: welch Created on: 2000-10-31 23:45:54
Subsystem: 67. Unix Window Operations Assigned To: nobody
Priority: 2 Severity:
Status: Closed Last Modified: 2001-03-23 02:24:20
Resolution: Fixed Closed By: dgp
    Closed on: 2001-03-22 19:24:20
Description:
OriginalBugID: 2802 Bug
Version: 8.2
SubmitDate: '1999-09-16'
LastModified: '2000-01-17'
Severity: CRIT
Status: Released
Submitter: techsupp
ChangedBy: hobbs
RelatedBugIDs: 2483
OS: Solaris
OSVersion: 2.6
Machine: Other
FixedDate: '2000-01-17'
FixedInVersion: 8.2.1


Name:
Larry W. Virden

CVS:
August 23, 1999 15:42 EDT

Extensions:
Tcl / Tk 8.2, stooop 4.0.1, scwoop 2.6

CustomShell:
I have compiled the latest modules from the CVS.

ReproducibleScript:
I installed Tcl/Tk 8.2 with the latest patches cvs has returned.
    I installed stooop-4.0.1 and scwoop-2.6.
    I then ran scwoop-2.6/confdemo.tcl .  It brought up the demo fine.  To
    terminate the application, I used the Close option that CDE's window
    manager
    provides on the window title bar.

ObservedBehavior:
wish core dumped.
    
    Reading wish
    core file header read successfully
    Reading ld.so.1
    Reading libtk8.2.so
    Reading libtcl8.2.so
    Reading libsocket.so.1
    Reading libnsl.so.1
    Reading libX11.so.4
    Reading libdl.so.1
    Reading libm.so.1
    Reading libc.so.1
    Reading libmp.so.2
    Reading libXext.so.0
    Reading libc_psr.so.1
    program terminated by signal SEGV (no mapping at the fault address)
    (dbx 1) where                                                  
    =>[1] Tcl_DeleteHashEntry(0xef628228, 0x48, 0x132b10, 0x10d1a8,
    0x121490, 0xd8), at 0xef5d1d94
      [2] Tcl_DeleteCommandFromToken(0x8a798, 0x12e8c8, 0xe, 0xef322eb4,
    0x10d1a8, 0xd9), at 0xef5a7d50
      [3] DestroyEntry(0x12eaa8, 0xef73a7a0, 0xefffddc0, 0xefffddc0,
    0xef322eb4, 0xef2c672c), at 0xef6e20b0
      [4] Tk_HandleEvent(0x12e9c8, 0xef73a7a0, 0x8a798, 0x12e9c8, 0x20000,
    0x2f300), at 0xef6b04c0
      [5] Tk_DestroyWindow(0x12e9c8, 0x2d008, 0xef73a7a0, 0x0, 0x3d6a0,
    0x12e9c8), at 0xef6c8d40
      [6] Tk_DestroyWindow(0x12cf20, 0x12e9c8, 0xef73a7a0, 0x0, 0x3d6a0,
    0x12cf20), at 0xef6c8c7c
      [7] Tk_DestroyWindow(0x10ad78, 0x12cf20, 0xef73a7a0, 0x143688,
    0x3d6a0, 0x10ad78), at 0xef6c8c7c
      [8] Tk_DestroyWindow(0x97188, 0x10ad78, 0xef73a7a0, 0xde614, 0x3d6a0,
    0x97188), at 0xef6c8c7c
      [9] Tcl_DeleteCommandFromToken(0x8a798, 0xac6f0, 0x8a988, 0x13f900,
    0xef322eb4, 0xef5e3ed4), at 0xef5a7d9c
      [10] TclTeardownNamespace(0x8aa18, 0x0, 0x8a9e4, 0x13f900, 0x146450,
    0x8a798), at 0xef5e3f14
      [11] DeleteInterpProc(0x8a798, 0xef61946c, 0xef73a7a0, 0x91428,
    0x8a798, 0x896f0), at 0xef5a6b58
      [12] Tk_HandleEvent(0x896f0, 0xef73a7a0, 0x8a798, 0x896f0, 0x0,
    0x2f300), at 0xef6b0520
      [13] WindowEventProc(0x146148, 0xfffffffd, 0xef61946c, 0x1436a0,
    0xef322eb4, 0xef5e7434), at 0xef6b0a1c
      [14] Tcl_ServiceEvent(0xef6b09a0, 0x22c50, 0x146140, 0xfffffffd, 0x0,
    0x22e14), at 0xef5e734c
      [15] Tcl_DoOneEvent(0x0, 0xef61946c, 0x22c50, 0x0, 0x22c68, 0x1), at
    0xef5e766c
      [16] Tk_MainLoop(0x22fa0, 0xef61946c, 0x4, 0x0, 0xefffe438, 0x22fa0),
    at 0xef6b0ab8
      [17] Tk_MainEx(0x29ee8, 0xef74a6d4, 0xefffe438, 0x22fa0, 0xef73a7a0,
    0x10c60), at 0xef6bcf50
      [18] main(0x2, 0xefffe5c4, 0x20d78, 0x20c00, 0x0, 0x0), at 0x10c40
    (dbx 2)

DesiredBehavior:
no core dumps from wish



This looks to be related to 2483, where long window pathnames used
in megawidget like code could overflow a static buffer.  This was
fixed in 8.2.1 (I can't reproduce this bug in 8.3). 
-- 01/17/2000 hobbs