Bug 144519 - Infinite increase of memory usage leading to a crash on some files
Summary: Infinite increase of memory usage leading to a crash on some files
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kdvi
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: 1.4
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Unassigned bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-22 13:44 UTC by Michael Lashkevich
Modified: 2013-09-28 13:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
An example of a file causing the crash (82.42 KB, application/octet-stream)
2007-04-22 13:52 UTC, Michael Lashkevich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Lashkevich 2007-04-22 13:44:02 UTC
Version:           1.4 (using KDE KDE 3.5.6)
Installed from:    SuSE RPMs
Compiler:          gcc 3.3.5 (SUSE Linux) 
OS:                Linux

On some files (presumable using virtual fonts like "kcmr10") "kdvi" enters an infinite loop while trying to display the first page. The system nearly freezes due to expansive usage of CPU and it continues till "kdvi" fill the whole swap space (I checked it by starting "top" before "kdvi") and finally is killed by the system. If I start "kdvi" from a K-application the application starting it is also killed. Been started from "xterm", "kdvi" produces no output after opening the dvi-file.
Comment 1 Michael Lashkevich 2007-04-22 13:52:15 UTC
Created attachment 20350 [details]
An example of a file causing the crash

I suspect that the cause of the crash is the cyrillic fonts like "kcmr10" using
the virtual fonts (.vf) technology. These fonts are part of the package
"CTAN:/fonts/cyrillic/cmcyr" by N.Glonty, A.Samarin, B.Malyshev. Note that
"xdvi" has no problems with these fonts.
Comment 2 OnOffPT 2007-10-12 13:11:22 UTC
I had the same problem but its not related with kdvi itself but I think it is related with the Ghostscript.

Check if your problem is the same in this thread:
https://bugs.launchpad.net/ubuntu/+source/ghostscript/+bug/114866

I solved my problem following this tips:
https://bugs.launchpad.net/ubuntu/+source/ghostscript/+bug/114866/comments/5

P.S. - It happens to me with documents with EPS figures.
Comment 3 Michael Lashkevich 2007-10-12 13:39:50 UTC
I do not think so. I have no problem with looking with "gv" the file generated from my dvi file by "dvips". I have no problem with "xdvi". I have just checked the file with "kdvi" from KDE 3.5.5 from the distribution OpenSuSE 10.2 I use now. It does not go into an infinite loop but crashes with "Segmentation fault".
Comment 4 Michael Lashkevich 2008-12-12 21:00:18 UTC
Just now I tried "kdvi" from the package "kdegraphics3-tex-3.5.10-2.28.rpm" (under SUSE 10.3). Now kdvi chashes (Segmentation violation) on the files with virtual fonts.
Comment 5 Jekyll Wu 2013-09-28 13:42:16 UTC
kdvi is no longer maintained since KDE SC 4, and its functionality is replace by okular.  If the issue in this report still exists in or apply to okular in KDE SC 4.10.5 or higher, please reassign the report to okular product or create a new report against okular.