valgrind complaint with the new text stuff
Hi,
valgrind observes some problems, examples of which are:
==27369== Invalid read of size 2 ==27369== at 0x40AA72EF: pango_font_description_equal (in /usr/lib/libpango-1.0.so.0.200.1) ==27369== by 0x818C9F8: font_factory::Face(_PangoFontDescription*, bool) (libnrtype/FontFactory.h:37) ==27369== by 0x818CCB3: font_factory::Face(char const*, NRTypePosDef) (libnrtype/FontFactory.cpp:388) ==27369== by 0x80BD1ED: sp_string_calculate_dimensions(SPString*) (sp-text.cpp:831) ==27369== Address 0x45CE4F14 is not stack'd, malloc'd or free'd ==27369== ==27369== Invalid read of size 2 ==27369== at 0x40AA72EF: pango_font_description_equal (in /usr/lib/libpango-1.0.so.0.200.1) ==27369== by 0x818D443: __gnu_cxx::hashtable<std::pair<_PangoFontDescription* const, font_instance*>, _PangoFontDescription*, font_descr$==27369== by 0x818CAF8: font_factory::Face(_PangoFontDescription*, bool) (/usr/include/c++/3.2.2/bits/stl_pair.h:84) ==27369== by 0x818CCB3: font_factory::Face(char const*, NRTypePosDef) (libnrtype/FontFactory.cpp:388) ==27369== Address 0x45CE4F14 is not stack'd, malloc'd or free'd ==27369== ==27369== Invalid read of size 2 ==27369== at 0x40AA72EF: pango_font_description_equal (in /usr/lib/libpango-1.0.so.0.200.1) ==27369== by 0x818C9F8: font_factory::Face(_PangoFontDescription*, bool) (libnrtype/FontFactory.h:37) ==27369== by 0x818CCB3: font_factory::Face(char const*, NRTypePosDef) (libnrtype/FontFactory.cpp:388) ==27369== by 0x80BDA9A: sp_string_set_shape(SPString*, SPLayoutData*, NR::Point&, int*) (sp-text.cpp:968) ==27369== Address 0x45CE4F14 is not stack'd, malloc'd or free'd
In case that's any use to anybody ...
Cheers
Carl
On Tue, 15 Jun 2004, Carl Hetherington wrote:
Hi,
valgrind observes some problems, examples of which are:
==27369== Invalid read of size 2 ==27369== at 0x40AA72EF: pango_font_description_equal (in /usr/lib/libpango-1.0.so.0.200.1) ==27369== by 0x818C9F8: font_factory::Face(_PangoFontDescription*, bool) (libnrtype/FontFactory.h:37) ==27369== by 0x818CCB3: font_factory::Face(char const*, NRTypePosDef) (libnrtype/FontFactory.cpp:388)
[snip]
Perhaps this is because pango_font_description_set_size () is not being called on the PangoFontDescription which is created at line 340?
Carl
participants (1)
-
Carl Hetherington