Tag

bug

0 views collected around this technical thread.

Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 3, 2025 · Databases

MySQL Trailing Space Issue: Unexpected Matching of Strings with Trailing Spaces

An investigation reveals that MySQL treats trailing spaces in VARCHAR values as insignificant during string comparison, causing queries like SELECT * WHERE name='Tom' to match rows with extra spaces, and demonstrates that using the BINARY keyword restores exact matching, highlighting a potential bug in MySQL 5.7.

MySQLbinarybug
0 likes · 4 min read
MySQL Trailing Space Issue: Unexpected Matching of Strings with Trailing Spaces
Java Tech Enthusiast
Java Tech Enthusiast
Apr 13, 2025 · Operations

Unexpected Creation of inetpub Folder in Windows 11 KB5055523 Update

The Windows 11 24H2 KB5055523 update unexpectedly creates an empty C:\inetpub folder on systems without Internet Information Services installed, likely due to a bug that triggers IIS‑related components, and although harmless and removable, Microsoft has not yet commented on the cause.

IISKB5055523bug
0 likes · 4 min read
Unexpected Creation of inetpub Folder in Windows 11 KB5055523 Update
Architect's Guide
Architect's Guide
Mar 26, 2025 · Fundamentals

Avoiding the Fixed‑Size List Pitfall of Arrays.asList in Java

This article explains why using Arrays.asList to convert an array into a List can produce an immutable, fixed‑size list that throws UnsupportedOperationException on add or remove operations, illustrates the issue with real‑world incident details, analyzes the internal implementation, and provides a safe replacement using java.util.ArrayList.

ArrayListArrays.asListBest Practices
0 likes · 9 min read
Avoiding the Fixed‑Size List Pitfall of Arrays.asList in Java
Aikesheng Open Source Community
Aikesheng Open Source Community
Mar 24, 2025 · Databases

Analysis of MySQL Bug #115352: InnoDB Assertion Failure When Killing a Partition‑Table ALTER

This article walks through the investigation of MySQL bug #115352, describing how an assertion failure in InnoDB’s dictionary cache caused a server crash during a killed ALTER TABLE on a partitioned table, the debugging steps taken, and the eventual fix applied in MySQL 8.0.40.

CorefileData DictionaryInnoDB
0 likes · 9 min read
Analysis of MySQL Bug #115352: InnoDB Assertion Failure When Killing a Partition‑Table ALTER
IT Services Circle
IT Services Circle
Jan 19, 2025 · Backend Development

Analysis of PHP Hexadecimal Addition Bug Caused by Lexer Change from Flex to re2c

An in‑depth examination of a long‑standing PHP bug where the expression 0x00+2 incorrectly evaluates to 4, tracing its origin to the switch from flex to re2c in the lexer of PHP 5.3, detailing affected versions, code behavior, and the eventual fix in PHP 5.3.11.

BackendLexerPHP
0 likes · 8 min read
Analysis of PHP Hexadecimal Addition Bug Caused by Lexer Change from Flex to re2c
Java Tech Enthusiast
Java Tech Enthusiast
Jan 19, 2025 · Databases

A Low‑Level Bug Caused by Decimal Precision Mistake: Lessons on Code Review, Testing, and Process

A simple typo that changed a daily interest rate from 0.00006944444 to 0.00069444444 inflated calculated interest tenfold, went unnoticed because the author self‑approved the SQL update and testing only checked syntax, and the incident underscores the need for rigorous code review, testing, and change‑management procedures for critical data.

BackendCode ReviewPrecision
0 likes · 12 min read
A Low‑Level Bug Caused by Decimal Precision Mistake: Lessons on Code Review, Testing, and Process
Java Tech Enthusiast
Java Tech Enthusiast
Jan 3, 2025 · Fundamentals

Understanding the Difference Between yyyy and YYYY in Java SimpleDateFormat

The article explains that in Java's SimpleDateFormat the lowercase y pattern (year‑of‑era) should be used for calendar dates, because the uppercase Y pattern represents a week‑based year which can incorrectly roll over to the next year near year‑end, causing bugs.

JavaProgrammingbug
0 likes · 4 min read
Understanding the Difference Between yyyy and YYYY in Java SimpleDateFormat
IT Services Circle
IT Services Circle
Dec 26, 2024 · Fundamentals

Understanding the JDK Bug in Arrays.asList().toArray() and Its Fix in JDK 9

This article explains a long‑standing JDK bug where Arrays.asList().toArray() returns an Object[] that causes ArrayStoreException when modified, analyzes the underlying implementation differences between java.util.ArrayList and Arrays$ArrayList, and describes how the issue was finally fixed in JDK 9.

ArrayStoreExceptionArrays.asListJDK
0 likes · 9 min read
Understanding the JDK Bug in Arrays.asList().toArray() and Its Fix in JDK 9
Architecture Digest
Architecture Digest
Dec 4, 2024 · Fundamentals

Avoid the Hidden Pitfall of Arrays.asList(): Fixed‑Length List and UnsupportedOperationException

This article explains why using Java's Arrays.asList to convert an array into a List can cause UnsupportedOperationException when modifying the list, illustrates the underlying implementation details, and provides a safe solution using java.util.ArrayList to prevent serious runtime failures.

ArrayListArrays.asListBest Practices
0 likes · 9 min read
Avoid the Hidden Pitfall of Arrays.asList(): Fixed‑Length List and UnsupportedOperationException
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 27, 2024 · Frontend Development

Understanding JavaScript split() Method and Common Pitfalls

This article recounts a production incident caused by misusing JavaScript's split() on an empty string, then explains the method's syntax, basic usage, and common pitfalls such as empty strings, extra separators, and Unicode handling, offering practical solutions for each case.

FrontendJavaScriptbug
0 likes · 7 min read
Understanding JavaScript split() Method and Common Pitfalls
IT Services Circle
IT Services Circle
Nov 17, 2024 · Backend Development

A Low‑Level Bug: Misplaced Decimal in Interest Rate Calculation and the Lessons Learned

The article recounts a developer’s mistake of entering an extra decimal place in a SQL update for daily interest rates, explains how the error escaped code review, testing and production validation, and shares practical lessons on precision handling, review processes, and operational safeguards.

BackendCode ReviewPrecision
0 likes · 14 min read
A Low‑Level Bug: Misplaced Decimal in Interest Rate Calculation and the Lessons Learned
Deepin Linux
Deepin Linux
Aug 16, 2024 · Fundamentals

Understanding Linux Kernel Oops, BUG, and Panic: Debugging Techniques and Tools

This article explains Linux kernel crash diagnostics, covering Oops messages, BUG and BUG_ON macros, the die() and panic() pathways, preparation steps for reproducing bugs, kernel configuration options for debugging, and useful memory‑debugging utilities such as MEMWATCH, YAMD, Electric Fence and strace.

Linux kernelOopsbug
0 likes · 26 min read
Understanding Linux Kernel Oops, BUG, and Panic: Debugging Techniques and Tools
Cognitive Technology Team
Cognitive Technology Team
Jun 10, 2024 · Backend Development

Recursive Update Bug in ConcurrentHashMap.computeIfAbsent Causing Infinite Loop and CPU Spike

The article explains a bug in Java's ConcurrentHashMap.computeIfAbsent that can cause recursive updates and infinite loops, leading to CPU spikes, and shows that newer Java versions throw an IllegalStateException while recommending avoiding nested computeIfAbsent/putIfAbsent calls, with a code example.

BackendConcurrentHashMapJava
0 likes · 3 min read
Recursive Update Bug in ConcurrentHashMap.computeIfAbsent Causing Infinite Loop and CPU Spike
Selected Java Interview Questions
Selected Java Interview Questions
Jun 5, 2024 · Backend Development

Analysis of MyBatis OGNL Concurrency Bug and Workarounds

This article investigates a concurrency bug in MyBatis caused by OGNL expression evaluation using reflection, explains the root cause through stack trace and source code analysis, and proposes solutions such as upgrading MyBatis or avoiding private inner‑class methods like Arrays.asList.

JavaMyBatisOGNL
0 likes · 13 min read
Analysis of MyBatis OGNL Concurrency Bug and Workarounds
Aikesheng Open Source Community
Aikesheng Open Source Community
Apr 29, 2024 · Databases

MySQL 5.7 Crash Analysis: BLOB INSERT … ON DUPLICATE Bug and Its Fix

This article analyzes a MySQL 5.7.20 crash that occurs during INSERT operations on BLOB columns with INSERT … ON DUPLICATE syntax, explains the underlying bug in the copy_blob_value function, shows how to reproduce and locate it with gdb, and provides the fix introduced in MySQL 5.7.22.

INSERT ON DUPLICATEMySQLblob
0 likes · 6 min read
MySQL 5.7 Crash Analysis: BLOB INSERT … ON DUPLICATE Bug and Its Fix
Sanyou's Java Diary
Sanyou's Java Diary
Mar 28, 2024 · Backend Development

Why Lombok’s @Builder Drops Default Values and How to Fix It

This article walks through a real‑world NPE caused by Lombok’s @Builder ignoring field initializers, explains the underlying double‑initialisation bug, shows how @Builder.Default restores the defaults, and outlines Lombok’s compile‑time annotation processing mechanism.

Builder PatternCompile-time AnnotationJava
0 likes · 15 min read
Why Lombok’s @Builder Drops Default Values and How to Fix It
DaTaobao Tech
DaTaobao Tech
Mar 15, 2024 · Backend Development

Common Java Development Pitfalls and Solutions

The article surveys frequent Java development mistakes—such as NullPointerExceptions, unsafe object equality, improper null handling, manual mapping errors, thread‑safety and thread‑pool misuse, swallowed exceptions, Spring bean initialization problems, memory leaks, performance traps, and transaction misconfigurations—while offering practical fixes like annotations, Optional, MapStruct, concurrent utilities, immutable wrappers, bounded executors, unified logging, and proper AOP usage.

Best PracticesException HandlingJava
0 likes · 18 min read
Common Java Development Pitfalls and Solutions
Java Architect Essentials
Java Architect Essentials
Sep 27, 2023 · Backend Development

Understanding the Difference Between yyyy and YYYY in Java Date Formatting

This article explains how using 'YYYY' instead of 'yyyy' in Java's SimpleDateFormat can cause year miscalculations, especially around year-end weeks, demonstrates the issue with sample code, shows correct usage, and warns developers to avoid this subtle bug.

Date FormattingJavaProgramming
0 likes · 4 min read
Understanding the Difference Between yyyy and YYYY in Java Date Formatting
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 7, 2023 · Frontend Development

Understanding and Fixing the Reset Behavior Issue in Element‑Plus Form Component

This article analyzes why the reset button in an Element‑Plus form clears all fields instead of restoring the initial values, explains the underlying cause related to the onMounted lifecycle timing, and presents several practical solutions—including lifecycle adjustment, patch‑package, component extension, and repository forking—to reliably preserve initial form data in Vue projects.

Element-PlusFrontendPatch
0 likes · 7 min read
Understanding and Fixing the Reset Behavior Issue in Element‑Plus Form Component
Aikesheng Open Source Community
Aikesheng Open Source Community
May 16, 2023 · Databases

Analyzing MySQL Slow Query Log Source Code and Debugging SELECT COUNT(*) Issues

This article examines why long‑running SELECT COUNT(*) statements are not recorded in MySQL's slow query log, analyzes the relevant source‑code functions, demonstrates debugging with gdb, identifies the min_examined_row_limit setting as the root cause, and provides practical solutions and bug‑report details.

InnoDBMySQLSlow Query Log
0 likes · 9 min read
Analyzing MySQL Slow Query Log Source Code and Debugging SELECT COUNT(*) Issues