Biber 因“输入错误”而崩溃

Biber 因“输入错误”而崩溃

我正在引用一部引用情结的作品。请看以下示例:

\documentclass[10pt,a4paper]{article} % KOMA-Script article scrartcl
\usepackage[utf8]{inputenc}
\usepackage[american]{babel}

\usepackage[backend=biber,
            bibencoding=utf8,   % instead of bibtex
            language=auto,%
            style=uni-wtal-ger, % verbose-trad1,%numeric-comp,%
            sorting=nyt,        % name, year, title
            maxbibnames=10,     % default: 3, et al.
            natbib=true,        % natbib compatibility mode (\citep and \citet still work)
            idembib=false]{biblatex}

\usepackage[T1]{fontenc}
\begin{filecontents*}{example.bib}
    @incollection{al-farabiEnumerationSciences1963,
        title = {The {{Enumeration}} of the {{Sciences}}},
        booktitle = {Medieval {{Political Philosophy}} -- a {{Sourcebook}}},
        author = {al- Farabi},
        editor = {Lerner, Ralph and Mahdī, Muḥsin},
        date = {1963},
        pages = {22--30},
        publisher = {{Collier-Macmillan}},
        location = {{Toronto}},
        editora = {Fortin, Ernest L.},
        editoratype = {collaborator},
        editorb = {Bloom, Allan},
        editorbtype = {redactor},
        options = {useprefix=true},
        series = {Medieval {{Political Philosophy}}},
        translator = {Najjar, Fauzi M.}
    }
@preamble{ "\ifdefined\DeclarePrefChars\DeclarePrefChars{'’-}\else\fi " }
\end{filecontents*}
\addbibresource{example.bib}

\DeclareUnicodeCharacter{02BC}{'}
\DeclareUnicodeCharacter{02BF}{\Ayn}
\DeclareUnicodeCharacter{02D2}{\Alif}
\DeclareUnicodeCharacter{1E0F}{\b{d}}
\DeclareUnicodeCharacter{1E0D}{\d{d}}
\DeclareUnicodeCharacter{02D3}{\Ayn}
\DeclareUnicodeCharacter{1E63}{\d{s}}
\DeclareUnicodeCharacter{1E24}{\d{H}}
\DeclareUnicodeCharacter{1E25}{\d{h}}
\DeclareUnicodeCharacter{0101}{\={a}}

\begin{document}
    \cite{al-farabiEnumerationSciences1963}
    \printbibliography[]
\end{document}

不幸的是,编译此文件时 biber 崩溃了。它给出了以下报告:

INFO - This is Biber 2.9
INFO - Logfile is 'example.blg'
INFO - Reading 'example.bcf'
INFO - Found 1 citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex format file 'example.bib' for section 0
INFO - LaTeX decoding ...
INFO - Found BibTeX data source 'example.bib'
FATAL - Caught signal: SEGV
Likely your .bib has a very bad entry which causes libbtparse to crash: Inappropriate ioctl for device

删除示例条目并用其他条目替换时,完全相同的文件可以完美运行。我忽略了什么,如何才能让它再次运行?为什么该条目“非常糟糕”?

\Ayn附言:我确实意识到序言中缺少 for和 for包\Alif,但原始文档中并非如此,并且不会导致此问题。

答案1

如前所述,该示例可以使用当前版本的biblatexBiber 很好地编译(我在我的机器上测试了 Biber v2.16,并使用 Overleaf 的 TeX Live 2019 和 2020 进行了测试,它们分别运行 Biber v2.13 和 v2.14。)

al- Farabi问题与该字段有关author。即使使用旧版本的 Biber,以下示例也应该可以编译成功

@incollection{al-farabiEnumerationSciences1963,
  title       = {The Enumeration of the Sciences},
  booktitle   = {Medieval Political Philosophy -- a Sourcebook},
  author      = {al-Farabi},
  editor      = {Lerner, Ralph and Mahdī, Muḥsin},
  date        = {1963},
  pages       = {22--30},
  publisher   = {{Collier-Macmillan}},
  location    = {{Toronto}},
  editora     = {Fortin, Ernest L.},
  editoratype = {collaborator},
  editorb     = {Bloom, Allan},
  editorbtype = {redactor},
  options     = {useprefix=true},
  series      = {Medieval Political Philosophy},
  translator  = {Najjar, Fauzi M.}
}

基本问题在https://github.com/plk/biber/issues/87并在 Biber 2.13 中得到(完全)修复。

答案2

我无法重现该问题。您的示例符合要求并生成以下图片:

在此处输入图片描述

Biber 的消息似乎也不错:

INFO - This is Biber 2.16
INFO - Logfile is 'a.blg'
INFO - Reading 'a.bcf'
INFO - Found 1 citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex format file 'example.bib' for section 0
INFO - LaTeX decoding ...
INFO - Found BibTeX data source 'example.bib'
INFO - Overriding locale 'en-US' defaults 'normalization = NFD' with 'normalization = prenormalized'
INFO - Overriding locale 'en-US' defaults 'variable = shifted' with 'variable = non-ignorable'
INFO - Sorting list 'nyt/global//global/global' of type 'entry' with template 'nyt' and locale 'en-US'
INFO - No sort tailoring available for locale 'en-US'
INFO - Writing 'a.bbl' with encoding 'UTF-8'
INFO - Output to a.bbl

您可能想要将您的 TeX 发行版升级到较新的版本。

相关内容