[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PSPP-BUG: [bug #21101] crashes when plotting histogram with normal curve

From: Ben Pfaff
Subject: PSPP-BUG: [bug #21101] crashes when plotting histogram with normal curve
Date: Tue, 18 Sep 2007 04:42:10 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20061205 Iceweasel/ (Debian-

Update of bug #21101 (project pspp):

                Category:                    None => Output Driver          
                  Status:                    None => Ready for Test/Review  


Follow-up Comment #1:

>This syntax causes an assertion failure. 

The assertion failure on this line:
     assert(range == x_max - not_used);
where range, x_max, and not_used are all "double"s.  Thus, this assertion is
simply invalid, because it assumes that "double"s are infinitely precise.  You
can see from my GDB session below that in fact the value of range is quite
close to x_max - not_used:

 (gdb) p range
 $1 = 3.4545454545454533
 (gdb) p x_max
 $2 = 3
 (gdb) p not_used
 $3 = -0.45454545454545453

Thus, I'm attaching a patch that simply removes the assertion.

(file #13977)

Additional Item Attachment:

File name: histogram_plot-assertion-fix.patch Size:0 KB


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]