[Okular-devel] [Bug 250728] crash when opening xps files

Peng Zhang pczhang at gmail.com
Sat Sep 11 03:26:44 CEST 2010


https://bugs.kde.org/show_bug.cgi?id=250728





--- Comment #5 from Peng Zhang <pczhang gmail com>  2010-09-11 03:26:42 ---
(In reply to comment #3)
> Works for me, can you please run
> valgrind okular /path/to/my/file.xps
> and paste the output?

pczhang at W500:~$ valgrind okular /media/PZHANG/mzdhl.xps
==3019== Memcheck, a memory error detector
==3019== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==3019== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for
copyright info
==3019== Command: okular /media/PZHANG/mzdhl.xps
==3019== 
okular(3019)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(3019)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(3019)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
==3019== Thread 3:
==3019== Invalid read of size 4
==3019==    at 0x15721330: XpsFile::getFontByName(QString const&, float)
(qatomic_x86_64.h:121)
==3019==    by 0x15722690: XpsPage::textPage() (generator_xps.cpp:1643)
==3019==    by 0x15723295: XpsGenerator::textPage(Okular::Page*)
(generator_xps.cpp:2128)
==3019==    by 0x11B99A21: Okular::TextPageGenerationThread::run()
(generator_p.cpp:103)
==3019==    by 0x6321774: QThreadPrivate::start(void*) (qthread_unix.cpp:248)
==3019==    by 0x92A39C9: start_thread (pthread_create.c:300)
==3019==    by 0x77BC72C: clone (clone.S:112)
==3019==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3019== 
KCrash: Application 'okular' crashing...
sock_file=/home/pczhang/.kde/socket-W500/kdeinit4__0

[1]+  Stopped                 valgrind okular /media/PZHANG/mzdhl.xps
pczhang at W500:~$ ==3019== 
==3019== HEAP SUMMARY:
==3019==     in use at exit: 6,763,222 bytes in 48,061 blocks
==3019==   total heap usage: 578,044 allocs, 529,983 frees, 120,870,688 bytes
allocated
==3019== 
==3019== LEAK SUMMARY:
==3019==    definitely lost: 7,496 bytes in 46 blocks
==3019==    indirectly lost: 21,000 bytes in 659 blocks
==3019==      possibly lost: 1,876,144 bytes in 25,989 blocks
==3019==    still reachable: 4,858,582 bytes in 21,367 blocks
==3019==         suppressed: 0 bytes in 0 blocks
==3019== Rerun with --leak-check=full to see details of leaked memory
==3019== 
==3019== For counts of detected and suppressed errors, rerun with: -v
==3019== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 15 from 5)

[1]+  Exit 253                valgrind okular /media/PZHANG/mzdhl.xps

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Okular-devel mailing list