-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Tests crashing on Ubuntu 20.04 #1087
Comments
To get more info,
and then revise With this:
|
Reproducing with DockerOk, I know you have vagrant stuff setup, but I'm guessing it might be a little out of date? Maybe? Maybe not, what do I know? But I think docker might be a more CI-friendly way to go (this might be reusable work). So to reproduce locally, I whipped up the following FROM ubuntu:20.04
ARG CLOJURE_CLI_VERSION=1.11.1.1105
# Set timezone to avoid interactive prompts when installing packages:
RUN ln -snf /usr/share/zoneinfo/$CONTAINER_TIMEZONE /etc/localtime && echo $CONTAINER_TIMEZONE > /etc/timezone
RUN apt-get -y update
RUN apt-get install -y \
cmake xxd git curl libjavascriptcoregtk-4.0 libglib2.0-dev libzip-dev libcurl4-gnutls-dev libicu-dev unzip
RUN apt install -y build-essential apt-utils openjdk-8-jdk
RUN curl -OL "https://download.clojure.org/install/linux-install-${CLOJURE_CLI_VERSION}.sh" \
&& chmod +x linux-install-${CLOJURE_CLI_VERSION}.sh \
&& /linux-install-${CLOJURE_CLI_VERSION}.sh \
&& rm /linux-install-${CLOJURE_CLI_VERSION}.sh And then from the same dir, built the docker image via:
And ran the docker image via:
Planck master against Ubuntu 20.04.4 seg faultsAnd then ran tests for planck master:
And I see a seg fault:
Planck 2.25.0 against Ubuntu 20.04.4 seg faultsKill docker session and restart session:
And again we see a seg fault:
Next UpI'll continue to poke around. |
@lread Also, it is possible to attach |
Thanks @mfikes, I have foggy memories of More data points (this is probably known to you, but I wanted to witness it): Both |
On a whim, I decided to try running It wasn't a rousing success.
Oh. Same deal for Ubuntu 18.04. |
When calling `JSObjectCallAsFunction`, the `arguments` parameter should be `NULL` when the `argumentCount` parameter is 0. But... we were passing an empty array for the `arguments` parameter. This seemed to be harmless in the past for planck, but on Ubuntu 20 something has changed in the WebKitGTK JavaScriptCore library that results in a segmentation fault. Closes planck-repl#1087
Oh. Thought I was onto something here with these planck build warnings from Ubuntu 22:
And this note that
And things do pass after correcting this on Ubuntu 22, but still seg fault on Ubuntu 20. I'll continue to poke around. |
Hiya @mfikes! After some distractions, I was about to roll up my sleeves and take another go at this issue. But I see that planck tests are now passing off master (even without addressing the potential issue above) against the current Ubuntu 20.04 and My original testing was against So... I'm wondering what you recommend. |
Hmm... As far as I can tell it is not terribly easy to install arbitrary previous package versions. So, as I understand it (could be wrong, dunno), if we wanted to test against various versions of For example, if I do an Since master passes against current While digging around I did notice the following and could help to address as separate issues if any of them make sense to you too:
|
@mfikes, when you find some time and interest, lemme know if you'd like me to raise issues for all or some of #1087 (comment). |
@mfikes Ubuntu 22.04 is now GA on Github Actions. Past experiments showed binaries building and passing on 22.04. |
We were not having success with 20.04 (planck-repl#1087), based on past tests, I'm thinking we might be good on 22.04.
We were not having success with 20.04 (#1087), based on past tests, I'm thinking we might be good on 22.04.
@mfikes, I suppose this one could be closed with a status of "wontfix"? |
If you update to Ubuntu 20.04 and run the unit tests, you get a failure
This happens with both fast and regular builds.
These crashes don't occur on Ubuntu 18.04.
The text was updated successfully, but these errors were encountered: