[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(mgp-users 00404) bugreport (segmentation fault)



Dear, 

I believe I found following problem in Magic Point 1.06a.
(1.07a was not very stable, so used 1.06a) 
Installed from an RPM package from freshmeat.

When the construct 

%cont, vgap 30, font "thick"

is used, it crashes with core dump.

When the line is replaced with 

%cont, size 5, vgap 30, font "thick"

it runs fine.

Below are the two complete files that generate
expected and unexpected behavior. After that is 
the output from gdb on the core dump.

Sincerely,

Peter Vandenabeele
peter@mind.be

_____________________________________________________________________
File with unexpected behavior 
(segmentation fault, core dump)

file t21:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% THE MIDGARD MAGICPOINT TEMPLATE
%%
%% Copyright(c) 1999 Henri Bergius <Henri.Bergius@iki.fi>
%%
%% A template for making MagicPoint presentations for
%% Midgard. Originally written for MagicPoint 1.06a
%% and the Midgard Workshop in October 1999.
%%
%% See the Midgard CVS repository for usage examples.
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%deffont "standard" tfont "arial.ttf"
%deffont "thick" tfont "arialbd.ttf"
%deffont "typewriter" tfont "courbd.ttf"
%%
%% Default settings per each line numbers.
%% ORIGINAL
%% The page settings:
%default 1 leftfill, size 2, fore "white", back "black", font "thick", bimage "midgard-black-bg.jpg" 1024x768
%%
%% Format the header:
%default 2 size 7, vgap 70, prefix "   "
%%
%% Have a bar:
%default 3 size 2, bar "brown" 5, vgap 50
%%
%% The standard text settings:
%default 4 size 5, fore "white", vgap 50, prefix "   ", font "standard"
%%
%% Default settings that are applied to TAB-indented lines.
%%
%tab 1 size 4, vgap 35, prefix "       ", icon box "brown" 30
%tab 2 size 4, vgap 20, prefix "               ", icon arc "yellow" 30
%tab 3 size 3, vgap 20, prefix "                          ", icon delta3 "white" 40
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%page

%center, size 7
This is the header
%size 7
should be line 3 ???
tata4
tata5
Green Linux TEST
%%cont, size 3
%%(tm)
%%cont, size 7
 and Ham

%right
%size 4
by Penguin Torvalds
Finn Labs

%cont, left
%image "linux-logo.gif"

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%page

%size 5, font "standard"
   brrr
%cont, vgap 30, font "thick"
Introduction
test
test
Green Linux and Ham:
test
test
test
        Would you like it Here or There?
test
                Would you try it in a Train?
test
                Would you like it in a Car? in a Tree?
test
        In the Dark? In the Rain?

Try it, try it, and you'll like it!

It's so good, so GOOD, you see ...


_____________________________________________________________________
File with correct behavior

file t22:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% THE MIDGARD MAGICPOINT TEMPLATE
%%
%% Copyright(c) 1999 Henri Bergius <Henri.Bergius@iki.fi>
%%
%% A template for making MagicPoint presentations for
%% Midgard. Originally written for MagicPoint 1.06a
%% and the Midgard Workshop in October 1999.
%%
%% See the Midgard CVS repository for usage examples.
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%deffont "standard" tfont "arial.ttf"
%deffont "thick" tfont "arialbd.ttf"
%deffont "typewriter" tfont "courbd.ttf"
%%
%% Default settings per each line numbers.
%% ORIGINAL
%% The page settings:
%default 1 leftfill, size 2, fore "white", back "black", font "thick", bimage "midgard-black-bg.jpg" 1024x768
%%
%% Format the header:
%default 2 size 7, vgap 70, prefix "   "
%%
%% Have a bar:
%default 3 size 2, bar "brown" 5, vgap 50
%%
%% The standard text settings:
%default 4 size 5, fore "white", vgap 50, prefix "   ", font "standard"
%%
%% Default settings that are applied to TAB-indented lines.
%%
%tab 1 size 4, vgap 35, prefix "       ", icon box "brown" 30
%tab 2 size 4, vgap 20, prefix "               ", icon arc "yellow" 30
%tab 3 size 3, vgap 20, prefix "                          ", icon delta3 "white" 40
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%page

%center, size 7
This is the header
%size 7
should be line 3 ???
tata4
tata5
Green Linux TEST
%%cont, size 3
%%(tm)
%%cont, size 7
 and Ham

%right
%size 4
by Penguin Torvalds
Finn Labs

%cont, left
%image "linux-logo.gif"

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%page

%size 5, font "standard"
   brrr
%cont, size 5, vgap 30, font "thick"
Introduction
test
test
Green Linux and Ham:
test
test
test
        Would you like it Here or There?
test
                Would you try it in a Train?
test
                Would you like it in a Car? in a Tree?
test
        In the Dark? In the Rain?

Try it, try it, and you'll like it!

It's so good, so GOOD, you see ...



__________________________________________
Core dump on file t21


[peter@whatever mgp-midgard-2.0]$ gdb --core core `which mgp` 
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...(no debugging symbols found)...
Core was generated by `mgp t21'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libttf.so.2...(no debugging symbols found)...done.
Reading symbols from /lib/libm.so.6...done.
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /lib/libnss_files.so.2...done.
#0  0x804fe00 in XMapRaised ()
(gdb) bt
#0  0x804fe00 in XMapRaised ()
#1  0x8082220 in _Xdebug ()
#2  0x804e676 in XMapRaised ()
#3  0x804e426 in XMapRaised ()
#4  0x804dc37 in XMapRaised ()
#5  0x804c837 in XMapRaised ()
#6  0x804c02b in XMapRaised ()
#7  0x401299cb in __libc_start_main () at ../sysdeps/generic/libc-start.c:122
(gdb)