Skip to content

SIGBUS while rendering social cards #5521

@bobek

Description

@bobek

Context

No response

Bug description

We have been facing random SIGBUS crashes after update to 9.1.12-insiders-4.34.0.

INFO     -  Cleaning site directory
INFO     -  Building documentation to directory: /tmp/pom
[1]    28073 bus error (core dumped)  mkdocs build -d /tmp/pom --strict --config-file mkdocs_insiders.yml

Way to replicate is to delete .cache directory to force recreation of all social cards. It will then crash with about 75% chance.

#5515 inspired me to try setting concurrency: 2, I cannot say it fixed the issues, but I have not seen it crash so far. I have not studied the code yet, but maybe the cpus-1 doesn't work (yet) and your fix from #5515 will basically fix this one as well?

I have Python 3.11.2, but also tested on 3.10 with the same behavior.

gdb backtrace from core file:

#0  0x00007fa828822d4e in ?? ()
   from /home/bobek/Sources/ipf/docs/docs/venv/lib/python3.11/site-packages/PIL/../Pillow.libs/libharfbuzz-3543f599.so.0.60710.0
#1  0x00007fa82881ca6c in ?? ()
   from /home/bobek/Sources/ipf/docs/docs/venv/lib/python3.11/site-packages/PIL/../Pillow.libs/libharfbuzz-3543f599.so.0.60710.0
#2  0x00007fa828866de5 in ?? ()
   from /home/bobek/Sources/ipf/docs/docs/venv/lib/python3.11/site-packages/PIL/../Pillow.libs/libharfbuzz-3543f599.so.0.60710.0
#3  0x00007fa82886c083 in ?? ()
   from /home/bobek/Sources/ipf/docs/docs/venv/lib/python3.11/site-packages/PIL/../Pillow.libs/libharfbuzz-3543f599.so.0.60710.0
#4  0x00007fa828864608 in hb_face_create ()
   from /home/bobek/Sources/ipf/docs/docs/venv/lib/python3.11/site-packages/PIL/../Pillow.libs/libharfbuzz-3543f599.so.0.60710.0
#5  0x00007fa8289ab1ec in hb_ft_face_create ()
   from /home/bobek/Sources/ipf/docs/docs/venv/lib/python3.11/site-packages/PIL/../Pillow.libs/libharfbuzz-3543f599.so.0.60710.0
#6  0x00007fa8289ab355 in hb_ft_font_create ()
   from /home/bobek/Sources/ipf/docs/docs/venv/lib/python3.11/site-packages/PIL/../Pillow.libs/libharfbuzz-3543f599.so.0.60710.0
#7  0x00007fa8289ab684 in hb_ft_font_create_referenced ()
   from /home/bobek/Sources/ipf/docs/docs/venv/lib/python3.11/site-packages/PIL/../Pillow.libs/libharfbuzz-3543f599.so.0.60710.0
#8  0x00007fa829812344 in raqm_layout ()
   from /home/bobek/Sources/ipf/docs/docs/venv/lib/python3.11/site-packages/PIL/_imagingft.cpython-311-x86_64-linux-gnu.so
#9  0x00007fa82980dafb in ?? ()
   from /home/bobek/Sources/ipf/docs/docs/venv/lib/python3.11/site-packages/PIL/_imagingft.cpython-311-x86_64-linux-gnu.so
#10 0x00007fa82980dead in ?? ()
   from /home/bobek/Sources/ipf/docs/docs/venv/lib/python3.11/site-packages/PIL/_imagingft.cpython-311-x86_64-linux-gnu.so
#11 0x00000000005230d0 in ?? ()
#12 0x000000000053ac2c in PyObject_Vectorcall ()
#13 0x000000000052b940 in _PyEval_EvalFrameDefault ()
#14 0x00000000005855a4 in ?? ()
#15 0x0000000000585174 in ?? ()
#16 0x000000000056a381 in PyObject_Call ()
#17 0x000000000052f8a2 in _PyEval_EvalFrameDefault ()
#18 0x00000000005855a4 in ?? ()
#19 0x000000000058510e in ?? ()
#20 0x000000000052f8a2 in _PyEval_EvalFrameDefault ()
#21 0x000000000055c931 in _PyFunction_Vectorcall ()
#22 0x000000000052f8a2 in _PyEval_EvalFrameDefault ()
#23 0x00000000005855a4 in ?? ()
#24 0x0000000000585148 in ?? ()
#25 0x000000000067917c in ?? ()
#26 0x0000000000653cb4 in ?? ()
#27 0x00007fa82bafefd4 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#28 0x00007fa82bb7f5bc in ?? () from /lib/x86_64-linux-gnu/libc.so.6

Related links

Reproduction

I don't have reproduction archive at the moment. Our code-base is fortunately open ( https://github.com/ipfabric/docs )

Steps to reproduce

  1. remove .cache
  2. run mkdocs build to get all social cards generated
  - social:
      cards_layout: default/variant
      concurrency: 2
      cards_layout_options:
        background_color: "#264183"
        color: "#FFFFFF"

Browser

No response

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions