gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
73.65k stars 7.39k forks source link

SIGSEGV unexpected signal during runtime execution #11413

Closed giomf closed 10 months ago

giomf commented 10 months ago

What version of Hugo are you using (hugo version)?

$ hugo version: hugo v0.117.0-b2f0696cad918fb61420a6aff173eb36662b406e+extended linux/amd64 BuildDate=2023-08-07T12:49:48Z VendorInfo=gohugoio

Does this issue reproduce with the latest release?

Yes and v0.113

Building my website results in a SIGSEGV. When repeating the build step without cleaning, its working again. Logs: hugo.log The website is a little bigger. Could this be an issue?

Pages 114
Paginator pages 49
Non-page files 212
Static files 107
Processed images 3339
Aliases 10
Sitemaps 1
Cleaned 238
jmooring commented 10 months ago

Can you try using the Dart Sass transpiler instead? https://gohugo.io/hugo-pipes/transpile-sass-to-css/#dart-sass

For example:

{{ $options := dict "transpiler" "dartsass" "targetPath" "css/style.css" }}
{{ with resources.Get "sass/main.scss" | toCSS $options | minify | fingerprint }}
  <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
{{ end }}
bep commented 10 months ago

As I see it, you seem to have hit a bug in the now deprecated libsass library, which is unlikely to be fixed. You may be able to fix this by adjusting/simplifying your SASS/SCSS, but I would recommend start using Dart Sass (see above).

giomf commented 10 months ago

The theme I use currently still relies on libsass. Changing it manually has resulted in errors. I am, due to lack of experience in webdesign, not able to fix the errors. I will inform the author of the theme. Thanks

github-actions[bot] commented 9 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.