FVWM: Possible bug in LoadPicture()/CachePicture()

From: <nix-fvwm_at_esperi.demon.co.uk>
Date: Sun, 19 Oct 1997 23:55:23 +0100 (BST)

[I'm new to this list, just subscribed before I sent this, so if this bug is
 known/under discussion, I'm sorry]

fvwm2.0.46 is dumping core on me, running Linux 2.0.31pre10, X11R6.1
(XFree86 3.1).

Active defines in Fvwm.tmpl are

OPTION_DEFINES = -DSHAPE -DVECTOR_BUTTONS -DPIXMAP_BUTTONS -DGRADIENT_BUTTONS -DINACTIVE_BTNS -DMINI_ICONS -DEXTENDED_TITLESTYLE -DWINDOWSHADE

and I have libXpm. fvwm was compiled with gcc 2.7.2.3, both with `-O2 -m486
-mwide-multiply -fomit-frame-pointer -freg-struct-return' and with `-g -m486
-mwide-multiply -freg-struct-return'. The core dump occurs in both cases.

I find it easy to reproduce, but I've only got one system to test it on :(;
including a pixmap in a menu[1], with either % or *, causes a core dump.
Tracing indicates that the system dumps core when loading the pixmap on return
from LoadPicture() to CachePicture() in libs/Display.c. There is no obvious
sign of overwrite errors anywhere in LoadPicture(), other than the fact that
it dumps core on the return (so, presumably, the stack frames have been
mangled. I haven't gdb'ed it yet so can't be sure.)

I've replicated this with both jwindow.xpm and the basic, bare mini.xpm in the
sample pixmaps that come with the fvwm2 distribution.


Either I'm being terribly terribly stupid here, or there is a bug here
somewhere. If anyone wants more info, just ask (I should be subscribed to this
list as this message appears; it may take longer if subscription requires
authentication); the core dump is available if anyone really wants it, but
it's 350K long and I'm on a dialup host :(

[1] i.e. in the AddToMenu label

-- 
A truly secure computer system can be made by severing it from
all network links, encasing it in concrete and dropping it in mid-
Atlantic. This system's utility is, however, low.
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Sun Oct 19 1997 - 18:21:48 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:01 BST