Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. Reported threadpool segfault in pacman with curl 8.20 turns out to be a pacman issue.

Reported threadpool segfault in pacman with curl 8.20 turns out to be a pacman issue.

Scheduled Pinned Locked Moved Uncategorized
6 Posts 3 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • icing@chaos.socialI This user is from outside of this forum
    icing@chaos.socialI This user is from outside of this forum
    icing@chaos.social
    wrote last edited by
    #1

    Reported threadpool segfault in pacman with curl 8.20 turns out to be a pacman issue.

    Applications cannot expect curl handles to work the same in a forked child. While his may have "just worked" with earlier curl versions, it now becomes noticeable with the new threadpool resolver.

    Link Preview Image
    segmentation fault with threaded resolver · Issue #21466 · curl/curl

    I did this I built a package for curl 7.20.0 earlier today and pushed it to Arch's testing repositories. With that package installed pacman started to misbehave, crashing with segmentation faults. Easiest way is to run pacstrap, which is...

    favicon

    GitHub (github.com)

    icing@chaos.socialI jpmens@mastodon.socialJ bitbraindev@mastodon.gamedev.placeB 3 Replies Last reply
    1
    0
    • icing@chaos.socialI icing@chaos.social

      Reported threadpool segfault in pacman with curl 8.20 turns out to be a pacman issue.

      Applications cannot expect curl handles to work the same in a forked child. While his may have "just worked" with earlier curl versions, it now becomes noticeable with the new threadpool resolver.

      Link Preview Image
      segmentation fault with threaded resolver · Issue #21466 · curl/curl

      I did this I built a package for curl 7.20.0 earlier today and pushed it to Arch's testing repositories. With that package installed pacman started to misbehave, crashing with segmentation faults. Easiest way is to run pacstrap, which is...

      favicon

      GitHub (github.com)

      icing@chaos.socialI This user is from outside of this forum
      icing@chaos.socialI This user is from outside of this forum
      icing@chaos.social
      wrote last edited by
      #2

      Started a discussion if curl should detect such situations and fail it in a controlled way.

      Link Preview Image
      forked child detection? · curl/curl · Discussion #21471

      forked child detection?

      favicon

      GitHub (github.com)

      1 Reply Last reply
      0
      • icing@chaos.socialI icing@chaos.social

        Reported threadpool segfault in pacman with curl 8.20 turns out to be a pacman issue.

        Applications cannot expect curl handles to work the same in a forked child. While his may have "just worked" with earlier curl versions, it now becomes noticeable with the new threadpool resolver.

        Link Preview Image
        segmentation fault with threaded resolver · Issue #21466 · curl/curl

        I did this I built a package for curl 7.20.0 earlier today and pushed it to Arch's testing repositories. With that package installed pacman started to misbehave, crashing with segmentation faults. Easiest way is to run pacstrap, which is...

        favicon

        GitHub (github.com)

        jpmens@mastodon.socialJ This user is from outside of this forum
        jpmens@mastodon.socialJ This user is from outside of this forum
        jpmens@mastodon.social
        wrote last edited by
        #3

        @icing TIL Pac-Man contained curl. Oh, wait

        icing@chaos.socialI 1 Reply Last reply
        0
        • jpmens@mastodon.socialJ jpmens@mastodon.social

          @icing TIL Pac-Man contained curl. Oh, wait

          icing@chaos.socialI This user is from outside of this forum
          icing@chaos.socialI This user is from outside of this forum
          icing@chaos.social
          wrote last edited by
          #4

          @jpmens it's one of the ghosts!

          1 Reply Last reply
          0
          • icing@chaos.socialI icing@chaos.social

            Reported threadpool segfault in pacman with curl 8.20 turns out to be a pacman issue.

            Applications cannot expect curl handles to work the same in a forked child. While his may have "just worked" with earlier curl versions, it now becomes noticeable with the new threadpool resolver.

            Link Preview Image
            segmentation fault with threaded resolver · Issue #21466 · curl/curl

            I did this I built a package for curl 7.20.0 earlier today and pushed it to Arch's testing repositories. With that package installed pacman started to misbehave, crashing with segmentation faults. Easiest way is to run pacstrap, which is...

            favicon

            GitHub (github.com)

            bitbraindev@mastodon.gamedev.placeB This user is from outside of this forum
            bitbraindev@mastodon.gamedev.placeB This user is from outside of this forum
            bitbraindev@mastodon.gamedev.place
            wrote last edited by
            #5

            @icing so basically it was always broken but because curl is "more correct" now this bug revealed itself? Fascinating.

            icing@chaos.socialI 1 Reply Last reply
            0
            • bitbraindev@mastodon.gamedev.placeB bitbraindev@mastodon.gamedev.place

              @icing so basically it was always broken but because curl is "more correct" now this bug revealed itself? Fascinating.

              icing@chaos.socialI This user is from outside of this forum
              icing@chaos.socialI This user is from outside of this forum
              icing@chaos.social
              wrote last edited by
              #6

              @bitbraindev The trigger was that we now have a thread pool that gets shutdown on `curl_multi_cleanup()` and that crashes in a forked child as threads are not forked.

              Before that, such threads were joined on `curl_easy_cleanup()`, which seems to happen in pacman before the fork.

              1 Reply Last reply
              0
              • R relay@relay.publicsquare.global shared this topic
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups