bug-gnu-pspp
[Top][All Lists]
Advanced

[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:1.8.1.1) Gecko/20061205 Iceweasel/2.0.0.1 (Debian-2.0.0.1+dfsg-1)

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:

  <http://savannah.gnu.org/bugs/?21101>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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