[tex-live] dvipdfm(1) segfaults since latest update

Jukka Salmi j+tex-live at 2009.salmi.ch
Wed May 6 15:41:21 CEST 2009


Jukka Salmi --> tex-live (2009-05-06 01:11:12 +0200):
> Hello,
> 
> since I upgraded my TL installation and rebuilt the binaries from svn
> trunk some minutes ago, dvipdfm(1) (version 0.13.3TL) reproducibly dumps
> core on my This is on NetBSD/i386 5.99.11 system:
> 
> $ dvipdfm test.dvi
> Segmentation fault (core dumped)
> $ gdb dvipdfm dvipdfm.core
> GNU gdb 6.5
> [...]
> Core was generated by `dvipdfm'.
> Program terminated with signal 11, Segmentation fault.
> #0  0xbbb63ec0 in strlen () from /usr/lib/libc.so.12
> (gdb) bt
> #0  0xbbb63ec0 in strlen () from /usr/lib/libc.so.12
> #1  0x08075e20 in xstrdup (s=0x0) at ../../../texk/kpathsea/xstrdup.c:27
> #2  0x08075331 in uppercasify (s=0x0) at ../../../texk/kpathsea/uppercasify.c:27
> #3  0x0806e9a1 in kpathsea_init_format (kpse=0x8088740, format=kpse_program_text_format)
>     at ../../../texk/kpathsea/tex-file.c:678
> #4  0x0806f996 in kpathsea_find_file_generic (kpse=0x8088740, name=<value optimized out>, 
>     format=kpse_program_text_format, must_exist=1, all=0)
>     at ../../../texk/kpathsea/tex-file.c:929
> #5  0x0806f9ee in kpathsea_find_file (kpse=0x8088740, name=0x807e438 "config", 
>     format=kpse_program_text_format, must_exist=1) at ../../../texk/kpathsea/tex-file.c:889
> #6  0x0806fb2d in kpse_find_file (name=0x807e438 "config", format=kpse_program_text_format, 
>     must_exist=1) at ../../../texk/kpathsea/tex-file.c:900
> #7  0x0804d807 in main (argc=2, argv=0xbfbfe94c) at ../../../texk/dvipdfm/dvipdfm.c:517
> (gdb) quit
> $ 

Not sure if this help, but...

$ gdb /a/src/texlive.Work/texk/dvipdfm/dvipdfm
GNU gdb 6.5
[...]
(gdb) break kpathsea_init_format
Breakpoint 1 at 0x806d87c: file ../../../texk/kpathsea/tex-file.c, line 465.
(gdb) set args foo
(gdb) run
Starting program: /a/src/texlive.Work/texk/dvipdfm/dvipdfm foo

Breakpoint 1, kpathsea_init_format (kpse=0x8088740, 
    format=kpse_program_text_format) at ../../../texk/kpathsea/tex-file.c:465
465       if (FMT_INFO.path)
(gdb) n
468       switch (format)
(gdb) print format
$1 = kpse_program_text_format
(gdb) n
678           INIT_FORMAT ("other text files",
(gdb) print kpse
$2 = (kpathsea) 0x8088740
(gdb) print kpse->program_name
$3 = 0x0
(gdb) print *kpse
$4 = {record_input = 0, record_output = 0, cnf_hash = {buckets = 0x0, 
    size = 0}, doing_cnf_init = 0, db = {buckets = 0x0, size = 0}, 
  alias_db = {buckets = 0x0, size = 0}, db_dir_list = {length = 0, 
    list = 0x0}, debug = 0, link_table = {buckets = 0x0, size = 0}, 
  the_cache = 0x0, cache_length = 0, map = {buckets = 0x0, size = 0}, 
  map_path = 0x0, debug_hash_lookup_int = 0, elt = 0x0, elt_alloc = 0, 
  path = 0x0, followup_search = 0, log_file = 0x0, log_opened = 0, 
  invocation_name = 0x0, invocation_short_name = 0x0, program_name = 0x0, 
  ll_verbose = 0, fallback_font = 0x0, fallback_resolutions_string = 0x0, 
  fallback_resolutions = 0x0, format_info = {{type = 0x0, path = 0x0, 
      raw_path = 0x0, path_source = 0x0, override_path = 0x0, 
      client_path = 0x0, cnf_path = 0x0, default_path = 0x0, suffix = 0x0, 
      alt_suffix = 0x0, suffix_search_only = 0, program = 0x0, argc = 0, 
      argv = 0x0, program_enabled_p = 0, 
      program_enable_level = kpse_src_implicit, 
      binmode = 0} <repeats 52 times>}, make_tex_discard_errors = 0, 
  missfont = 0x0, expansions = 0x0, expansion_len = 0, saved_env = 0x0, 
  saved_count = 0}
(gdb) 

It seems that `kpse' is not correctly initialised...


Regards, Jukka

-- 
This email fills a much-needed gap in the archives.


More information about the tex-live mailing list