Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!orc!bu.edu!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!mcsun!i2unix!ubdm!renzo From: renzo@dm.unibo.it Newsgroups: comp.windows.open-look Subject: Xview bug (function pw_line) Keywords: bug, pw_line, pixwin Message-ID: <1990Nov30.140005.11542@dm.unibo.it> Date: 30 Nov 90 14:00:05 GMT Sender: renzo@dm.unibo.it (Renzo Davoli) Reply-To: renzo@dm.unibo.it Organization: Department of Mathematics, University of Bologna, Italy Lines: 59 ======================Send reports to xviewbugs@sun.com===================== ===============================Begin bug report=============================== Category: xview Subcategory: library Bug/Rfe: bug Synopsis: random "Segmentation Fault" (pw_line frees memory it never allocated) Severity: 2 Priority: asap Description: Random "Segmentation fault" after line drawing. pw_line allocates memory for the structure dash_set only if the parameter tex (of type Pr_textur) is not NULL. After the drawing action there is no control before the freeing of dash_set. Work around: Never call Pr_textur with the tex parameter equal to NULL. Suggested fix: here is the simple patch: 62c62,66 < (void) free((char *) dash_set); --- > /* R.Davoli bug fixed on june 24, 1990 */ > if (tex) > /* end of fix */ > (void) free((char *) dash_set); Comments: This source chunk comes from the MIT X11-R4 contrib distribution. The bug seems to be contained in the libxview shipped with the Openwin 2.0 package. (I do not have source for it) The bug breaks sun3s more frequently than sun4s. Called in by: Customer: Company: University of Bologna Employee: Renzo Davoli Contact: renzo@dm.unibo.it Phone #: +39 51 354480 Release #: X Window System V11 R4, Openwin 2.0 Hardware: Sun3/50 Sun3/280 Sun4/60 O/S: SunOS O/S version: SunOS 4.0.3 Server: OpenWindows & MIT Server version:R4 WindowMmgr: OLWM TWM ============================End of bug report================================== ----- Renzo Davoli Department of Computer Science - University of Bologna Piazza di Porta S. Donato, 5 Tel. +39 51 354480 40127 Bologna ITALY Fax. +39 51 354490 -- Renzo Davoli Department of Computer Science - University of Bologna Piazza di Porta S. Donato, 5 Tel. +39 51 354480 40127 Bologna ITALY Fax. +39 51 354490