Package: libwftk-0.7
Version: 0.7.1-5
Severity: important
Subject: libwftk-0.7: Crash on exit if VeraBd fonts are registated
Package: libwftk-0.7
Version: 0.7.1-5
Severity: important
The following program crashes on exit. I tried following the code but I was not
familiar with the resource and reference mechanism of libwftk. The bug looks
like
a double free (ok delete) hapenning in ~Font() and looks associated with private
Font::glyph_. Anyway here is the smallest program that reproduces the crash.
By the way if you use the wf_opal.ttf coming from the libwftk source
distribution
there is no crash.
---------------------------------
#include <wftk/application.h>
#include <wftk/rootwindow.h>
#include <wftk/font.h>
using namespace wftk;
class MyApp : public Application {
private:
RootWindow *back;
public:
MyApp(int argc, char** argv) : Application(argc, argv) {
back = new RootWindow(640, 480);
// These font resources are used by various gui elements,
// so you should always register text_font and button_font when
// using wftk
//Font::registry.load("text_font","wf_opal.ttf, 17, 0xF0F0F0FF,
0x707070FF");
//Font::registry.load("button_font","wf_opal.ttf, 16, 0xE0E0F0FF,
0x607f70EE");
Font::registry.load("text_font","/usr/share/fonts/truetype/ttf-bitstream-vera/VeraBd.ttf,
17, 0xF0F0F0FF, 0x707070FF");
Font::registry.load("button_font","/usr/share/fonts/truetype/ttf-bitstream-vera/VeraBd.ttf,
16, 0xE0E0F0FF, 0x607f70EE");
}
};
int main(int argc, char **argv)
{
return MyApp(argc, argv).exec();
}
----------------------------------
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.9
Locale: LANG=el_GR, LC_CTYPE=el_GR (charmap=ISO-8859-7)
Versions of packages libwftk-0.7 depends on:
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libfreetype6 2.1.7-2.3 FreeType 2 font engine, shared lib
ii libgcc1 1:3.4.3-6 GCC support library
ii libpng12-0 1.2.8rel-1 PNG library - runtime
ii libsdl-mixer1 1.2.6-1 mixer library for Simple DirectMed
ii libsdl1.2debi 1.2.7+1.2.8cvs20041007-4.1 Simple DirectMedia Layer
ii libsigc++-1.2 1.2.5-4 type-safe Signal Framework for C++
ii libsmpeg0 0.4.5+cvs20030824-1 SDL MPEG Player Library - shared l
ii libstdc++5 1:3.3.5-8 The GNU Standard C++ Library v3
ii xlibmesa-gl [ 4.3.0.dfsg.1-10 Mesa 3D graphics library [XFree86]
ii zlib1g 1:1.2.2-3 compression library - runtime
-- no debconf information
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.9
Locale: LANG=el_GR, LC_CTYPE=el_GR (charmap=ISO-8859-7)
Versions of packages libwftk-0.7 depends on:
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libfreetype6 2.1.7-2.3 FreeType 2 font engine, shared lib
ii libgcc1 1:3.4.3-6 GCC support library
ii libpng12-0 1.2.8rel-1 PNG library - runtime
ii libsdl-mixer1 1.2.6-1 mixer library for Simple DirectMed
ii libsdl1.2debi 1.2.7+1.2.8cvs20041007-4.1 Simple DirectMedia Layer
ii libsigc++-1.2 1.2.5-4 type-safe Signal Framework for C++
ii libsmpeg0 0.4.5+cvs20030824-1 SDL MPEG Player Library - shared l
ii libstdc++5 1:3.3.5-8 The GNU Standard C++ Library v3
ii xlibmesa-gl [ 4.3.0.dfsg.1-10 Mesa 3D graphics library [XFree86]
ii zlib1g 1:1.2.2-3 compression library - runtime
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]