Skip to main content
Redhat Developers  Logo
  • Products

    Featured

    • Red Hat Enterprise Linux
      Red Hat Enterprise Linux Icon
    • Red Hat OpenShift AI
      Red Hat OpenShift AI
    • Red Hat Enterprise Linux AI
      Linux icon inside of a brain
    • Image mode for Red Hat Enterprise Linux
      RHEL image mode
    • Red Hat OpenShift
      Openshift icon
    • Red Hat Ansible Automation Platform
      Ansible icon
    • Red Hat Developer Hub
      Developer Hub
    • View All Red Hat Products
    • Linux

      • Red Hat Enterprise Linux
      • Image mode for Red Hat Enterprise Linux
      • Red Hat Universal Base Images (UBI)
    • Java runtimes & frameworks

      • JBoss Enterprise Application Platform
      • Red Hat build of OpenJDK
    • Kubernetes

      • Red Hat OpenShift
      • Microsoft Azure Red Hat OpenShift
      • Red Hat OpenShift Virtualization
      • Red Hat OpenShift Lightspeed
    • Integration & App Connectivity

      • Red Hat Build of Apache Camel
      • Red Hat Service Interconnect
      • Red Hat Connectivity Link
    • AI/ML

      • Red Hat OpenShift AI
      • Red Hat Enterprise Linux AI
    • Automation

      • Red Hat Ansible Automation Platform
      • Red Hat Ansible Lightspeed
    • Developer tools

      • Red Hat Trusted Software Supply Chain
      • Podman Desktop
      • Red Hat OpenShift Dev Spaces
    • Developer Sandbox

      Developer Sandbox
      Try Red Hat products and technologies without setup or configuration fees for 30 days with this shared Openshift and Kubernetes cluster.
    • Try at no cost
  • Technologies

    Featured

    • AI/ML
      AI/ML Icon
    • Linux
      Linux Icon
    • Kubernetes
      Cloud icon
    • Automation
      Automation Icon showing arrows moving in a circle around a gear
    • View All Technologies
    • Programming Languages & Frameworks

      • Java
      • Python
      • JavaScript
    • System Design & Architecture

      • Red Hat architecture and design patterns
      • Microservices
      • Event-Driven Architecture
      • Databases
    • Developer Productivity

      • Developer productivity
      • Developer Tools
      • GitOps
    • Secure Development & Architectures

      • Security
      • Secure coding
    • Platform Engineering

      • DevOps
      • DevSecOps
      • Ansible automation for applications and services
    • Automated Data Processing

      • AI/ML
      • Data Science
      • Apache Kafka on Kubernetes
      • View All Technologies
    • Start exploring in the Developer Sandbox for free

      sandbox graphic
      Try Red Hat's products and technologies without setup or configuration.
    • Try at no cost
  • Learn

    Featured

    • Kubernetes & Cloud Native
      Openshift icon
    • Linux
      Rhel icon
    • Automation
      Ansible cloud icon
    • Java
      Java icon
    • AI/ML
      AI/ML Icon
    • View All Learning Resources

    E-Books

    • GitOps Cookbook
    • Podman in Action
    • Kubernetes Operators
    • The Path to GitOps
    • View All E-books

    Cheat Sheets

    • Linux Commands
    • Bash Commands
    • Git
    • systemd Commands
    • View All Cheat Sheets

    Documentation

    • API Catalog
    • Product Documentation
    • Legacy Documentation
    • Red Hat Learning

      Learning image
      Boost your technical skills to expert-level with the help of interactive lessons offered by various Red Hat Learning programs.
    • Explore Red Hat Learning
  • Developer Sandbox

    Developer Sandbox

    • Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore Developer Sandbox

    Featured Developer Sandbox activities

    • Get started with your Developer Sandbox
    • OpenShift virtualization and application modernization using the Developer Sandbox
    • Explore all Developer Sandbox activities

    Ready to start developing apps?

    • Try at no cost
  • Blog
  • Events
  • Videos

glibc: Calling new contributors

September 30, 2024
Arjun Shankar
Related topics:
C, C#, C++LinuxOpen sourceRuntimes
Related products:
Red Hat Enterprise Linux

Share:

    This article is mostly a story about my attempt at getting new contributors involved in the glibc project, a summary of what I learned along the way, and an encouragement to contribute if you're on the fence.

    My entire stint at Red Hat has been focused around glibc and its Fedora and RHEL packages, and my upstream contributions reflect that.  I started off years ago with changes to the upstream testsuite.  I slowly built from there, having fixed various bugs, overhauled a couple of features, discovered and fixed security flaws, and reviewed patches by now -- with hopefully more work to come as opportunities arise.

    Obviously, while it's nice to "fix a deadlock in a POSIX interface implementation" as part of my day job, I feel that even seemingly small or minor contributions are valuable.  FOSS means that everyone stands to benefit from every useful change.  For example, every new memory allocator test can help ensure the continued quality/correctness of that subsystem and strengthen the guarantee that trillions of 'malloc' calls executed every hour on Linux systems around the world will continue to work as expected.  Every user, whether or not a Red Hat customer stands to benefit.  This is why it's important to make sure that projects like this continue to thrive and regularly attract new contributors to replace the (very natural and understandable) attrition.

    The glibc community is fairly active, but an in-depth look at the commit log for the last decade (2013-2022; I skipped 2023 and 2024 because measuring attrition gets a bit inaccurate when you don't allow enough time for contributors to make another commit) shows me that we average an attrition of around 48 contributors each year, with around 46 new contributors replacing them.  The number of commits made each year also appears to be in a very slight downtrend.  While I wasn't really looking at these numbers in the past, the data seems to indicate a trend that the community should try to reverse.

    Last summer, I got the idea of attempting to do some outreach for glibc in my head.  I wanted to see if I can give a talk about contributing to glibc, and perhaps winning a new contributor for the community.  Talk about a force multiplier!  I submitted and gave a talk at DevConf CZ, the local annual FOSS conference in Brno, Czech Republic where I live.  I titled it "Seven Easy Steps to Your First glibc Patch", hoping that the clickbait title will get me a reasonably sized audience.  The talk initially felt like a success.  I got multiple questions mid-talk and had discussions outside the hall with some interested attendees.  But after a couple of emails and LinkedIn connections, I realized that there would be no new patches coming out of it.  I spoke about this with seniors on my team and they reassured me that it's okay and that despite no new contributions, there's value in having done that talk.  So I made a mental note to try again a year later and went back to regular stuff.

    Eventually, Spring rolled around again and DevConf CZ was inviting new talk submissions for this year's edition and of course I applied.  This time, I wanted to do a workshop aimed at getting your first patch into glibc.  I wanted to show up with multiple small improvement ideas with limited and clear scope.  Something that will actually convert to patches.  At one of the weekly glibc patch review meetings (yeah!  We have those), I asked some of the other developers for ideas, and one of the suggestions I got was to look for interfaces that go untested during "make check".  I rolled with it, and with the help of a couple of objdump/sed incantations, I was able to come up with some specific ideas for patches of various difficulty levels, all around testing.  This time, the workshop was actually a success.  I handed out roughly twenty tasks and I got four actual patch submissions out of the workshop, each of them from a new first-time contributor. I know of at least one more patch that's in progress.  Obviously, there's no telling if any of the new contributors will end up joining to community, but the easier it gets for new contributors to get their first patch in, the higher the chances of one that might end up staying and becoming a part of the community for good.  Either way, I hope I did my part in trying to reverse contributor attrition for 2024.  If DevConf allows it or if I get a chance to do the same workshop again somewhere else next year, I intend to do so again.

    In the meanwhile, if any of this excites you, consider contributing!  The easiest start would be to write to libc-help@sourceware.org indicating your interest in contributing, and one of the regular contributors could help you find an idea to work on.  If you don't want to start off on a public mailing list, you're also welcome to write to me separately.  You'll find my email address in glibc's commit logs.  I'm curious to know if this blog post will convert to a patch or two.

    Last updated: October 1, 2024
    Disclaimer: Please note the content in this blog post has not been thoroughly reviewed by the Red Hat Developer editorial team. Any opinions expressed in this post are the author's own and do not necessarily reflect the policies or positions of Red Hat.

    Recent Posts

    • More Essential AI tutorials for Node.js Developers

    • How to run a fraud detection AI model on RHEL CVMs

    • How we use software provenance at Red Hat

    • Alternatives to creating bootc images from scratch

    • How to update OpenStack Services on OpenShift

    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Products

    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform

    Build

    • Developer Sandbox
    • Developer Tools
    • Interactive Tutorials
    • API Catalog

    Quicklinks

    • Learning Resources
    • E-books
    • Cheat Sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site Status Dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Report a website issue