https://bugs.documentfoundation.org/show_bug.cgi?id=165846

            Bug ID: 165846
           Summary: Applying Chi Squared random number with 0 nu Value
                    asserts in random.h
           Product: LibreOffice
           Version: 25.8.0.0 alpha0+
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Keywords: haveBacktrace
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: [email protected]
          Reporter: [email protected]
            Blocks: 105537

Created attachment 199935
  --> https://bugs.documentfoundation.org/attachment.cgi?id=199935&action=edit
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


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=105537
[Bug 105537] [META] Assertion failed crashes
-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to