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

segfault with resource pipelines on 0.49+ #59

Open
philwinder opened this issue Nov 21, 2018 · 2 comments
Open

segfault with resource pipelines on 0.49+ #59

philwinder opened this issue Nov 21, 2018 · 2 comments

Comments

@philwinder
Copy link

philwinder commented Nov 21, 2018

Hi there,
I've just migrated to using hugo's resource pipelines and I saw the PR that added this in 49/50 ish.

However, I get a segfault when I try and build. See below to recreate.

Run either 0.49, 0.50 or latest: docker run -it jojomi/hugo:latest sh

Then run the following code:

hugo new site my-site && cd my-site
git clone https://github.com/lucperkins/hugo-fresh themes/hugo-fresh
rm config.*
wget https://raw.githubusercontent.com/lucperkins/hugo-fresh/master/exampleSite/config.yaml
hugo --verbose

The result is:

/tmp/my-site # hugo --verbose
WARN 2018/11/21 10:57:45 No translation bundle found for default language "en"
WARN 2018/11/21 10:57:45 Translation func for language en not found, use default.
WARN 2018/11/21 10:57:45 i18n not initialized, check that you have language file (in i18n) that matches the site language or the default language.
INFO 2018/11/21 10:57:45 Using config file: /tmp/my-site/config.yaml
Building sites … INFO 2018/11/21 10:57:45 syncing static files to /tmp/my-site/public/
WARN 2018/11/21 10:57:45 [en] Unable to locate layout for "taxonomyTerm": [categories/terms.en.html.html categories/list.en.html.html categories/terms.html.html categories/list.html.html categories/terms.en.html categories/list.en.html categories/terms.html categories/list.html taxonomy/terms.en.html.html taxonomy/list.en.html.html taxonomy/terms.html.html taxonomy/list.html.html taxonomy/terms.en.html taxonomy/list.en.html taxonomy/terms.html taxonomy/list.html _default/terms.en.html.html _default/list.en.html.html _default/terms.html.html _default/list.html.html _default/terms.en.html _default/list.en.html _default/terms.html _default/list.html]
Segmentation fault

I'm fairly sure it's due to the either #57 or #58 because it does not segfault with 0.48, it only fails because it doesn't have the pipelines extension. Furthermore, if you test on a simple theme, (e.g. https://gitlab.com/meibenny/elephants) then it does not segfault.

@jojomi
Copy link
Owner

jojomi commented Dec 8, 2018

I can confirm your observation, testing this with 0.48 works, 0.52 (just pushed) segfaults. Though I am unsure where it originates from. I believe it must be from C code, so perhaps in the SASS compiling part? Any idea what might be wrong here?

@philwinder
Copy link
Author

No idea. But my guess it will be something to do with an Alpine port of a package (like stdlib) that is out of date, in combination with SASS compiling.

The first thing to try would be to try and isolate the problem. E.g. see if it crashes running the SASS pipeline by itself. If so, then you can probably find some alpine/SASS specific help...

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

No branches or pull requests

2 participants