Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bibtex crashes after upgrading tectonic to 0.14.0 #1054

Closed
giammirove opened this issue Jun 14, 2023 · 4 comments · Fixed by #1055
Closed

Bibtex crashes after upgrading tectonic to 0.14.0 #1054

giammirove opened this issue Jun 14, 2023 · 4 comments · Fixed by #1055

Comments

@giammirove
Copy link

tectonic fails to build with the 0.14.0 version and bibtex:

note: "version 2" Tectonic command-line interface activated
Running TeX ...
Running BibTeX on default.aux ...
thread 'main' panicked at 'index out of bounds: the len is 200021 but the index is 240012', crates/engine_bibtex/src/c_api/global.rs:83:32
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

To reproduce :

├── src
│   ├── sections
│   │   └── implementation.tex
│   ├── test.bib
│   ├── test.cls
│   └── test.tex
└── Tectonic.toml

Tectonic.toml

[doc]
name = 'test'
bundle = 'https://data1.fullyjustified.net/tlextras-2022.0r0.tar'

[[output]]
name = 'default'
type = 'pdf'
preamble = ''
index = 'test'
postamble = ''

test.tex

\documentclass{test}

\usepackage[%
  backend      = bibtex,
  ]{biblatex}
\addbibresource{test.bib}

\begin{document}
\include{sections/implementation}
\printbibliography
\end{document}

test.cls

\LoadClass[]{scrbook}

test.bib

@online{MPS3,
  title = {uMPS3 Principles of Operation},
  year = {2020},
  author = {Michael Goldweber, Renzo Davoli},
  url = {
         https://github.com/riscv/riscv-isa-manual/releases/download/Ratified-IMAFDQC/riscv-spec-20191213.pdf
         },
}

implementation.tex

test \cite{MPS3}
@giammirove giammirove changed the title Bibtex crash after upgrading tectonic to 0.14.0 Bibtex crashes after upgrading tectonic to 0.14.0 Jun 14, 2023
@pkgw
Copy link
Collaborator

pkgw commented Jun 14, 2023

Thank you for the report with the detailed reproduction instructions! CC @CraftSpider.

@CraftSpider
Copy link
Contributor

Thanks for the report! It made it quick to identify and fix the issue, should have a PR for it up soon.

@giammirove
Copy link
Author

It was a pleasure to help to fix the bug!

@KonradHoeffner
Copy link

KonradHoeffner commented Dec 19, 2023

The error still occurs for me with tectonic 0.14.1-5 with the following bibtex entry:

@proceedings{datacollection,
title={Standards for data collection from human skeletal remains: {P}roceedings of a Seminar at the Field Museum of Natural History},
author={D. Aftandilian and J. E. Buikstra and M. Finnegan and J. Haas and D. A. Kice and C. R. Nichol and D. W. Owsley and J. C. Rose and M. J. Schoeninger and G. R. Scott and C. G. Turner II and D. H. Ubelaker and P. L. Walker and and E. Wei},
editor={Buikstra, Jane E and Ubelaker, Douglas H},
venue={Fayetteville},
series={Arkansas Archaeological Survey},
volume={44},                                                  
year={1994}
}

It seems to be caused by the "and and" which is incorrect, however I think a error message would be better than a panic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants