Bug 165846 - Applying Chi Squared random number with 0 nu Value asserts in random.h
Summary: Applying Chi Squared random number with 0 nu Value asserts in random.h
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
25.8.0.0 alpha0+
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: haveBacktrace
Depends on:
Blocks: Crash-Assert
  Show dependency treegraph
 
Reported: 2025-03-21 10:02 UTC by Buovjaga
Modified: 2025-03-21 10:02 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Backtrace from debug build (9.94 KB, text/plain)
2025-03-21 10:02 UTC, Buovjaga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Buovjaga 2025-03-21 10:02:21 UTC
Created attachment 199935 [details]
Backtrace from debug build

Use a debug build.

1. In Calc, Sheet - Fills Cells - Fill Random Number
2. Select Distribution: Chi Squared and let the nu Value be 0 and apply

/usr/include/c++/14.2.1/bits/random.h:2591: std::gamma_distribution<_RealType>::param_type::param_type(_RealType, _RealType) [with _RealType = double]: Assertion '_M_alpha > _RealType(0)' failed.

The dialog code is in https://git.libreoffice.org/core/+/refs/heads/master/sc/source/ui/StatisticsDialogs/RandomNumberGeneratorDialog.cxx