Menu

#396 Crash when searching dvi file

incorrect behaviour
closed-works-for-me
None
5
2015-08-21
2015-08-17
Gavin Smith
No

$xdvi --version
xdvik version 22.84.9 (@(#)GNU/LessTif Version 2.1 Release 0.95.2, runtime version 2.1)
Libraries: kpathsea version 3.5.4, T1lib version 5.1.2

With the attached file, typing C-f caption RET RET causes an abort:


XDvi 22.84.9 (Motif toolkit): Failed assertion:
dvi-draw.c:5928: "G != NULL": T1_SetChar() returned NULL
Aborting now. Please report this as a bug to:
http://sourceforge.net/tracker/?group_id=23164&atid=377580
If a core dump has been produced, please invoke:
gdb xdvi-motif.bin core
Then type "bt", and include the resulting output in your bug report.


Char "y": DoClosePath: No previous point!Aborted (core dumped)

$gdb xdvi-motif.bin core
Reading symbols from /usr/share/texmf/bin/xdvi-motif.bin...done.
[New LWP 15813]

warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
Failed to read a valid object file image from memory.
Core was generated by `xdvi-motif.bin -name xdvi texinfo.dvi'.
Program terminated with signal 6, Aborted.

0 0xb7105cdc in raise () from /lib/libc.so.6

(gdb) bt

0 0xb7105cdc in raise () from /lib/libc.so.6

1 0xb71074f3 in abort () from /lib/libc.so.6

2 0x08084760 in do_abort ()

3 0x08052121 in get_t1_glyph ()

4 0x08056f52 in text_do_char ()

5 0x08056043 in geom_scan_part ()

6 0x08056d22 in geom_scan ()

7 0x080786f6 in scan_page ()

8 0x08079277 in T.188 ()

9 0x0807aead in search_dvi ()

10 0x0809b45b in cb_search_get_term_button ()

11 0xb746724f in XtCallCallbackList () from /usr/lib/libXt.so.6

12 0xb762ee75 in ?? () from /usr/lib/libXm.so.2

13 0xb7492f61 in XtCallActionProc () from /usr/lib/libXt.so.6

14 0x0809bbf5 in cb_search_get_term ()

15 0x0809bec3 in xm_search_go ()

16 0xb749b379 in ?? () from /usr/lib/libXt.so.6

17 0xb749b7c9 in ?? () from /usr/lib/libXt.so.6

18 0xb749c5ff in _XtTranslateEvent () from /usr/lib/libXt.so.6

19 0xb747532b in XtDispatchEventToWidget () from /usr/lib/libXt.so.6

20 0xb7475987 in ?? () from /usr/lib/libXt.so.6

21 0xb7475b2f in XtDispatchEvent () from /usr/lib/libXt.so.6

22 0x08067c91 in read_events ()

23 0x08068602 in do_pages ()

24 0x080899ad in run_dvi_file ()

25 0x0808b77d in main ()

The file I've attached may be malformed in some way but this still shouldn't cause a crash like this.

1 Attachments

Discussion

  • Gavin Smith

    Gavin Smith - 2015-08-17

    Here's a shorter test file that crashes immediately.

    I can view a pdf file created from the same input with no problem.

     
  • Gavin Smith

    Gavin Smith - 2015-08-17

    And here's minimal TeX source to produce this error:

    \font\secsl=cmbxsl10

    {\secsl keyboard-characters}

    \bye

     
  • Paul Vojta

    Paul Vojta - 2015-08-20

    I was unable to reproduce the bug with the current version of xdvik. The bug report refers to version 22.84.9, which dates back to 2004 or early 2005. The handling of Type 1 fonts has been rewritten since then, so I doubt very much that the bug still remains (in any form).

     
  • Paul Vojta

    Paul Vojta - 2015-08-20
    • status: open --> closed-works-for-me
    • assigned_to: Paul Vojta
     
  • Gavin Smith

    Gavin Smith - 2015-08-21

    Okay, thanks for investigating.

     

Log in to post a comment.

MongoDB Logo MongoDB