Skip to content
By using Twitter’s services you agree to our Cookies Use. We and our partners operate globally and use cookies, including for analytics, personalisation, and ads.
  • Home Home Home, current page.
  • About

Saved searches

  • Remove
  • In this conversation
    Verified accountProtected Tweets @
Suggested users
  • Verified accountProtected Tweets @
  • Verified accountProtected Tweets @
  • Language: English
    • Bahasa Indonesia
    • Bahasa Melayu
    • Català
    • Čeština
    • Dansk
    • Deutsch
    • English UK
    • Español
    • Filipino
    • Français
    • Hrvatski
    • Italiano
    • Magyar
    • Nederlands
    • Norsk
    • Polski
    • Português
    • Română
    • Slovenčina
    • Suomi
    • Svenska
    • Tiếng Việt
    • Türkçe
    • Ελληνικά
    • Български език
    • Русский
    • Српски
    • Українська мова
    • עִבְרִית
    • العربية
    • فارسی
    • मराठी
    • हिन्दी
    • বাংলা
    • ગુજરાતી
    • தமிழ்
    • ಕನ್ನಡ
    • ภาษาไทย
    • 한국어
    • 日本語
    • 简体中文
    • 繁體中文
  • Have an account? Log in
    Have an account?
    · Forgot password?

    New to Twitter?
    Sign up
marcan42's profile
Hector Martin
Hector Martin
Hector Martin
@marcan42

Tweets

Hector Martin

@marcan42

If it ain't broke, I'll fix it! I'm porting Linux to Apple Silicon Macs at @AsahiLinux. http://patreon.com/marcan  | http://github.com/sponsors/marcan 

Tokyo, Japan
marcan.st
Joined May 2009

Tweets

  • © 2021 Twitter
  • About
  • Help Center
  • Terms
  • Privacy policy
  • Imprint
  • Cookies
  • Ads info
Dismiss
Previous
Next

Go to a person's profile

Saved searches

  • Remove
  • In this conversation
    Verified accountProtected Tweets @
Suggested users
  • Verified accountProtected Tweets @
  • Verified accountProtected Tweets @

Promote this Tweet

Block

  • Tweet with a location

    You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more

    Your lists

    Create a new list


    Under 100 characters, optional

    Privacy

    Copy link to Tweet

    Embed this Tweet

    Embed this Video

    Add this Tweet to your website by copying the code below. Learn more

    Add this video to your website by copying the code below. Learn more

    Hmm, there was a problem reaching the server.

    By embedding Twitter content in your website or app, you are agreeing to the Twitter Developer Agreement and Developer Policy.

    Preview

    Why you're seeing this ad

    Log in to Twitter

    · Forgot password?
    Don't have an account? Sign up »

    Sign up for Twitter

    Not on Twitter? Sign up, tune into the things you care about, and get updates as they happen.

    Sign up
    Have an account? Log in »

    Two-way (sending and receiving) short codes:

    Country Code For customers of
    United States 40404 (any)
    Canada 21212 (any)
    United Kingdom 86444 Vodafone, Orange, 3, O2
    Brazil 40404 Nextel, TIM
    Haiti 40404 Digicel, Voila
    Ireland 51210 Vodafone, O2
    India 53000 Bharti Airtel, Videocon, Reliance
    Indonesia 89887 AXIS, 3, Telkomsel, Indosat, XL Axiata
    Italy 4880804 Wind
    3424486444 Vodafone
    » See SMS short codes for other countries

    Confirmation

     

    Welcome home!

    This timeline is where you’ll spend most of your time, getting instant updates about what matters to you.

    Tweets not working for you?

    Hover over the profile pic and click the Following button to unfollow any account.

    Say a lot with a little

    When you see a Tweet you love, tap the heart — it lets the person who wrote it know you shared the love.

    Spread the word

    The fastest way to share someone else’s Tweet with your followers is with a Retweet. Tap the icon to send it instantly.

    Join the conversation

    Add your thoughts about any Tweet with a Reply. Find a topic you’re passionate about, and jump right in.

    Learn the latest

    Get instant insight into what people are talking about now.

    Get more of what you love

    Follow more accounts to get instant updates about topics you care about.

    Find what's happening

    See the latest conversations about any topic instantly.

    Never miss a Moment

    Catch up instantly on the best stories happening as they unfold.

    1. Hector Martin‏ @marcan42 9 Nov 2017
      • Report Tweet
      • Report NetzDG Violation

      Hector Martin Retweeted Hector Martin

      for BIT in $(seq 0 31); do make clean && rm -f objs.txt && BIT=$BIT make -j9 && cp arch/x86/boot/bzImage kernel_${BIT}.bzimg && mv objs.txt objs_${BIT}.txt ; donehttps://twitter.com/marcan42/status/928571175210323968 …

      Hector Martin added,

      Hector Martin @marcan42
      I think I'm going to wrap gcc with a script that enables/disables that inlining mode depending on a given bit of the hash of the output object file name, then build a kernel for each bit, figure out if it crashes, and narrow down the culprit object file that way.
      Show this thread
      1 reply 6 retweets 18 likes
      Show this thread
    2. Hector Martin‏ @marcan42 9 Nov 2017
      • Report Tweet
      • Report NetzDG Violation

      Finished building 32 kernels in 29 minutes. Time to test.

      2 replies 2 retweets 8 likes
      Show this thread
    3. Hector Martin‏ @marcan42 9 Nov 2017
      • Report Tweet
      • Report NetzDG Violation

      I expect 16/32 crashes on average; I'm at 8 so far after running through all kernels twice at 20 seconds per test. That narrows it down to 4 object files. The time to crash is nondeterministic, so let's go for a third run...

      2 replies 1 retweet 4 likes
      Show this thread
    4. Hector Martin‏ @marcan42 9 Nov 2017
      • Report Tweet
      • Report NetzDG Violation

      🚨🚨🚨DING DING🚨🚨🚨 $ grep '^[0246][012389ab][0189][014589cd][028a][012389ab][014589cd]' objs_0.txt 6b9cab4f arch/x86/entry/vdso/vclock_gettime.o #yes, grep for bitops Who'd have thought a *userspace* crash would depend on a difference in vdso code... which is userspace code!

      4 replies 5 retweets 12 likes
      Show this thread
    5. Hector Martin‏ @marcan42 9 Nov 2017
      • Report Tweet
      • Report NetzDG Violation

      Surprise, it's Go's fault. Turns out 104 bytes of stack space is not enough when GCC decides to do a 4K stack probe. And stack probes are *exactly* what would cause nondeterministic corruption if another thread races that address!https://github.com/golang/go/issues/20427#issuecomment-343255844 …

      1 reply 8 retweets 29 likes
      Show this thread
      Hector Martin‏ @marcan42 9 Nov 2017
      • Report Tweet
      • Report NetzDG Violation

      So my second time stumbling upon and debugging a Go runtime bug *again* winds up being a problem with Go->C interop. Still not a fan of Go.

      11:05 AM - 9 Nov 2017
      • 3 Retweets
      • 14 Likes
      • Sad Dog 🧹🧹 mop 🧹🧹 Mako Bee Eater Gonçalo Ribeiro Mett Brötchen Patriq 🍀 #Unity4J #BDS #NeverBiden #NeverTrump Ben Morse
      2 replies 3 retweets 14 likes
        1. New conversation
        2. plutoo‏ @qlutoo 9 Nov 2017
          • Report Tweet
          • Report NetzDG Violation
          Replying to @marcan42

          Go doesn't do guard pages?

          2 replies 1 retweet 1 like
        3. Hector Martin‏ @marcan42 9 Nov 2017
          • Report Tweet
          • Report NetzDG Violation
          Replying to @qlutoo

          Nope. They do dynamic stack copying/reallocation. Except then they call into C, which doesn't.

          0 replies 1 retweet 2 likes
        4. End of conversation
        1. New conversation
        2. Srdjan Rosic‏ @srdjanrosic 10 Nov 2017
          • Report Tweet
          • Report NetzDG Violation
          Replying to @marcan42

          Among the people who use Go daily it's sort of well known that using cgo can be quirky due to all sorts of vague reasons; one learns to expect to pay a performance penalty at best. That runtime VDSO isn't really cgo and that's ok because it makes sense to optimize its performance

          1 reply 0 retweets 0 likes
        3. Hector Martin‏ @marcan42 10 Nov 2017
          • Report Tweet
          • Report NetzDG Violation
          Replying to @srdjanrosic

          It's not cgo and that's why it crashes: because it makes assumptions about the vDSO that are not guaranteed by the C ABI that it will play nicely with Go's stack layout. You can't have your cake (funny stacks) and eat it too (call C code on them).

          0 replies 0 retweets 0 likes
        4. End of conversation

      Loading seems to be taking a while.

      Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.

        Promoted Tweet

        false

        • © 2021 Twitter
        • About
        • Help Center
        • Terms
        • Privacy policy
        • Imprint
        • Cookies
        • Ads info