GithubHelp home page GithubHelp logo

MacOS CI is broken about libevent HOT 7 OPEN

azat avatar azat commented on June 23, 2024
MacOS CI is broken

from libevent.

Comments (7)

Coeur avatar Coeur commented on June 23, 2024

You do:

run: brew install mbedtls@2

Then you wrongly assume the path:

EVENT_CMAKE_OPTIONS="$EVENT_CMAKE_OPTIONS -DMBEDTLS_ROOT_DIR=/usr/local/opt/mbedtls@2"

The actual path is dependent on whether the machine is Intel or Apple Silicon. On macos-latest, GitHub will now use Apple Silicon, so path should be /opt/homebrew/opt/mbedtls@2 instead. And for OpenSSL, it should be /opt/homebrew/opt/openssl

from libevent.

azat avatar azat commented on June 23, 2024

Hm, didn't knew that github actions provides apple silicon support now (previously it was only for paid users), great!

from libevent.

azat avatar azat commented on June 23, 2024

The issue is not fixed completely, only first steps

from libevent.

Coeur avatar Coeur commented on June 23, 2024

I ran the tests locally on my Mac:

      Start 50: regress__KQUEUE
50/65 Test #50: regress__KQUEUE .....................   Passed   96.63 sec
      Start 51: regress__KQUEUE_debug
51/65 Test #51: regress__KQUEUE_debug ...............   Passed   96.81 sec

So I'm proposing an improvement in the failure message for further debugging: #1662

from libevent.

Coeur avatar Coeur commented on June 23, 2024

The results of the log improvements from #1662 show that we're passing 0 to the length argument of mmap, which is not allowed: https://man7.org/linux/man-pages/man2/mmap.2.html
So backtracking, it means seg->length and seg->file_offset were both 0.

from libevent.

Coeur avatar Coeur commented on June 23, 2024

@nmathewson would you know why in GitHub Actions, evbuffer_file_segment_materialize is called with length and file_offset of 0 in regress__KQUEUE, while locally on my Mac that never happens?

from libevent.

azat avatar azat commented on June 23, 2024

The results of the log improvements from #1662 show that we're passing 0 to the length argument of mmap, which is not allowed: man7.org/linux/man-pages/man2/mmap.2.html

Yes, but I was needed this for the test - #1559

from libevent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.