Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      10 Ways Node.js Development Boosts AI & Real-Time Data (2025-2026 Edition)

      August 18, 2025

      Looking to Outsource React.js Development? Here’s What Top Agencies Are Doing Right

      August 18, 2025

      Beyond The Hype: What AI Can Really Do For Product Design

      August 18, 2025

      BrowserStack launches Chrome extension that bundles 10+ manual web testing tools

      August 18, 2025

      From plateau predictions to buggy rollouts — Bill Gates’ GPT-5 skepticism looks strangely accurate

      August 18, 2025

      We gave OpenAI’s open-source AI a kid’s test — here’s what happened

      August 18, 2025

      With GTA 6, next-gen exclusives, and a console comeback on the horizon, Xbox risks sitting on the sidelines — here’s why

      August 18, 2025

      OpenAI CEO Sam Altman revealed the heartbreaking truth behind its users’ attachment to previous ChatGPT models — “This was great for my mental health”

      August 18, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      Optimizely Mission Control – Part II

      August 18, 2025
      Recent

      Optimizely Mission Control – Part II

      August 18, 2025

      AI: Security Threat to Personal Data?

      August 18, 2025

      Live Agent Transfer in Copilot Studio Using D365 Omnichannel – Step-by-Step Implementation

      August 18, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      From plateau predictions to buggy rollouts — Bill Gates’ GPT-5 skepticism looks strangely accurate

      August 18, 2025
      Recent

      From plateau predictions to buggy rollouts — Bill Gates’ GPT-5 skepticism looks strangely accurate

      August 18, 2025

      We gave OpenAI’s open-source AI a kid’s test — here’s what happened

      August 18, 2025

      With GTA 6, next-gen exclusives, and a console comeback on the horizon, Xbox risks sitting on the sidelines — here’s why

      August 18, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»News & Updates»CodeSOD: Going Crazy

    CodeSOD: Going Crazy

    August 18, 2025

    For months, everything at Yusuf‘s company was fine. Then, suddenly, he comes in to the office to learn that overnight the log exploded with thousands of panic messages. No software changes had been pushed, no major configurations had happened- just a reboot. What had gone wrong?

    This particular function was invoked as part of the application startup:

    func (a *App) setupDocDBClient(ctx context.Context) error {
    	docdbClient, err := docdb.NewClient(
    		ctx,
    		a.config.MongoConfig.URI,
    		a.config.MongoConfig.Database,
    		a.config.MongoConfig.EnableTLS,
    	)
    	if err != nil {
    		return nil
    	}
    
    	a.DocDBClient = docdbClient
    	return nil
    }
    

    This is Go, which passes errors as part of the return. You can see an example where docdb.NewClient returns a client and an err object. At one point in the history of this function, it did the same thing- if connecting to the database failed, it returned an error.

    But a few months earlier, an engineer changed it to swallow the error- if an error occurred, it would return nil.

    As an organization, they did code reviews. Multiple people looked at this and signed off- or, more likely, multiple people clicked a button to say they’d looked at it, but hadn’t.

    Most of the time, there weren’t any connection issues. But sometimes there were. One reboot had a flaky moment with connecting, and the error was ignored. Later on in execution, downstream modules started failing, which eventually lead to a log full of panic level messages.

    The change was part of a commit tagged merely: “Refactoring”. Something got factored, good and hard, all right.

    [Advertisement] Picking up NuGet is easy. Getting good at it takes time. Download our guide to learn the best practice of NuGet for the Enterprise.

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleYour smart home device just got a performance and security boost for free
    Next Article ACBR – comic book reader and converter

    Related Posts

    News & Updates

    From plateau predictions to buggy rollouts — Bill Gates’ GPT-5 skepticism looks strangely accurate

    August 18, 2025
    News & Updates

    We gave OpenAI’s open-source AI a kid’s test — here’s what happened

    August 18, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    CVE-2025-25014 (CVSS 9.1): Prototype Pollution in Kibana Opens Door to Code Execution

    Security

    US offers $10 million reward for tips about state-linked RedLine hackers

    Development

    Ferrari Just Launched an AI App That Lets Fans Experience F1 Like Never Before

    Artificial Intelligence

    Managed Payroll Services for Hospitality

    Web Development

    Highlights

    CVE-2025-4174 – PHPGurukul COVID19 Testing Management System SQL Injection Vulnerability

    May 1, 2025

    CVE ID : CVE-2025-4174

    Published : May 1, 2025, 7:15 p.m. | 4 hours, 11 minutes ago

    Description : A vulnerability, which was classified as critical, has been found in PHPGurukul COVID19 Testing Management System 1.0. Affected by this issue is some unknown functionality of the file /login.php. The manipulation of the argument Username leads to sql injection. The attack may be launched remotely. The exploit has been disclosed to the public and may be used.

    Severity: 7.3 | HIGH

    Visit the link for more details, such as CVSS details, affected products, timeline, and more…

    CVE-2025-1754 – GitLab Unauthenticated File Upload Vulnerability

    June 26, 2025

    CVE-2025-7735 – UNIMAX Hospital Information System SQL Injection

    July 17, 2025

    Distribution Release: Ubuntu 25.04

    April 17, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.