Subject: Core dump on titlestyle command

From: [email-masked]
Date: Thu, 11 Feb 1999 08:36:02 -0600 (CST)

Full_Name: Dan Espen
Version: 2.1.11
CVS_Date: 2.1.11
OS: Solaris 2.5.1
X_Server: XSun
Submission from: (NULL) (128.96.133.4)
Submitted by: dane

I get a core dump from the following TitleStyle command:

+ TitleStyle Centered \
             ActiveUp (Solid pink -- Raised) \
             Inactive ( -- Flat) \
             ActiveDown (Solid yellow -- Sunk)

The space before the 2 dashes seemed to be the culprit,
when I removed the space, the command was processed OK.
Here is the stack trace:

(gdb) where
#0  0xef5fc084 in _free_unlocked ()
#1  0xef5fc044 in free ()
#2  0x2a610 in ReadTitleButton (
    s=0xda0d8 " -- Flat)", ' ' <repeats 14 times>, "ActiveDown (Solid
yellow -- Sunk)\n", tb=0xdce04, append=0 '\000', button=-1)
    at ../../version-2_1_11/fvwm/builtins.c:3367
#3  0x27b34 in SetTitleStyle (eventp=0x78338, w=41, tmp_win=0x0,
context=8,
    action=0xda0d7 "( -- Flat)", ' ' <repeats 14 times>, "ActiveDown (Solid
yellow -- Sunk)\n", Module=0xefffe5e4) at
../../version-2_1_11/fvwm/builtins.c:2549
#4  0x37aa4 in ExecuteFunction (
    Action=0xd9fe2 "TitleStyle Centered", ' ' <repeats 14 times>, "ActiveUp
(Solid pink -- Raised)", ' ' <repeats 14 times>, "Inactive ( -- Flat)", ' '
<repeats 14 times>, "ActiveDown (Solid yellow -- Sunk)\n", tmp_win=0x0,
    eventp=0x78338, context=8, Module=-1)
    at ../../version-2_1_11/fvwm/functions.c:265
#5  0x2b378 in AddToDecor (fl=0xdaf38,
    s=0xd9fe2 "TitleStyle Centered", ' ' <repeats 14 times>, "ActiveUp
(Solid pink -- Raised)", ' ' <repeats 14 times>, "Inactive ( -- Flat)", ' '
<repeats 14 times>, "ActiveDown (Solid yellow -- Sunk)\n")
    at ../../version-2_1_11/fvwm/builtins.c:3634
#6  0x21e30 in add_another_item (eventp=0x78338, w=41, tmp_win=0x0,
context=8,
    action=0xd9fe2 "TitleStyle Centered", ' ' <repeats 14 times>, "ActiveUp
(Solid pink -- Raised)", ' ' <repeats 14 times>, "Inactive ( -- Flat)", ' '
<repeats 14 times>, "ActiveDown (Solid yellow -- Sunk)\n",
Module=0xefffe794)
    at ../../version-2_1_11/fvwm/builtins.c:542
#7  0x37aa4 in ExecuteFunction (
    Action=0xefffe7b8 "+ TitleStyle Centered", ' ' <repeats 14 times>,
"ActiveUp (Solid pink -- Raised)", ' ' <repeats 14 times>, "Inactive ( --
Flat)", ' ' <repeats 14 times>, "ActiveDown (Solid yellow -- Sunk)\n",
tmp_win=0x0,
    eventp=0x78338, context=8, Module=-1)
    at ../../version-2_1_11/fvwm/functions.c:265
#8  0x54534 in ReadSubFunc (eventp=0x78338, junk=41, tmp_win=0x0,
context=8,
    action=0xcb70d "/usr/dje/fvwmrc/.fvwmrc.decors\n", Module=0xefffed74,
    piperead=0) at ../../version-2_1_11/fvwm/read.c:180
#9  0x54620 in ReadFile (eventp=0x78338, junk=41, tmp_win=0x0, context=8,
    action=0xcb70d "/usr/dje/fvwmrc/.fvwmrc.decors\n", Module=0xefffed74)
    at ../../version-2_1_11/fvwm/read.c:201
#10 0x37aa4 in ExecuteFunction (
    Action=0xefffed98 "read /usr/dje/fvwmrc/.fvwmrc.decors\n",
tmp_win=0x0,
    eventp=0x78338, context=8, Module=-1)
    at ../../version-2_1_11/fvwm/functions.c:265
#11 0x54534 in ReadSubFunc (eventp=0x78338, junk=41, tmp_win=0x0,
context=8,
    action=0x86b8d ".fvwm2rc", Module=0xeffff354, piperead=0)
    at ../../version-2_1_11/fvwm/read.c:180
#12 0x54620 in ReadFile (eventp=0x78338, junk=41, tmp_win=0x0, context=8,
    action=0x86b8d ".fvwm2rc", Module=0xeffff354)
    at ../../version-2_1_11/fvwm/read.c:201
#13 0x37aa4 in ExecuteFunction (Action=0x64e78 "Read .fvwm2rc",
tmp_win=0x0,
    eventp=0x78338, context=8, Module=-1)
    at ../../version-2_1_11/fvwm/functions.c:265
#14 0x38a90 in main (argc=1, argv=0xeffff794)
    at ../../version-2_1_11/fvwm/fvwm.c:439

--
Visit the official FVWM web page at <URL:http://fvwm.math.uh.edu/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [email-masked].
To report problems, send mail to [email-masked].