https://bugs.kde.org/show_bug.cgi?id=514713
Bug ID: 514713
Summary: KCalc crashes (SIGABRT) when attempting to handle or
display calculations involving extremely large numbers
(high power/exponentiation). The crash occurs in the
GMP library (libgmp) during a string conversion or
large-scale multiplication process. +3
Classification: Applications
Product: kcalc
Version First 24.12.1
Reported In:
Platform: Debian stable
OS: Linux
Status: REPORTED
Severity: crash
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
Created attachment 188605
--> https://bugs.kde.org/attachment.cgi?id=188605&action=edit
KDE Crash Bug
SUMMARY : KCalc crashes (SIGABRT) when attempting to handle or display
calculations involving extremely large numbers (high power/exponentiation). The
crash occurs in the GMP library (libgmp) during a string conversion or
large-scale multiplication process.
+3
STEPS TO REPRODUCE
1. Open KCalc
2. Enter a very large number (e.g., 999999999999999999999).
3. Raise it to a huge power (e.g., press x^y and enter 99999999999999).
4. Press equals (=) or try to process the calculation.
OBSERVED RESULT
The application freezes momentarily and then crashes immediately. The crash
handler (DrKonqi) is triggered, showing a backtrace involving __gmpn_mul_fft
and __gmpz_get_str.
EXPECTED RESULT
The application should either display the result using scientific notation,
show an "Overflow" error, or cap the calculation to prevent a memory-related
crash.
SOFTWARE/OS VERSIONS
Operating System: Kali GNU/Linux 2025.1
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.11.0
Qt Version: 6.7.2
Kernel Version: 6.12.13-amd64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-8365U CPU @ 1.60GHz
Memory: 7.5 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Manufacturer: Dell Inc.
Product Name: Latitude 5400
ADDITIONAL INFORMATION
The crash log indicates that the failure happens in the GNU Multiple Precision
Arithmetic Library (libgmp.so.10) while the application is trying to convert a
very large integer to a string for display in the UI. This suggests an issue
with how KCalc handles memory allocation or buffer sizes for massive numeric
outputs.
--
You are receiving this mail because:
You are watching all bug changes.