Bug Hunting Session
Bug 43703 - EDITING: Graphing boost::numeric::bounds<double>::highest() causes a crash!
Summary: EDITING: Graphing boost::numeric::bounds<double>::highest() causes a crash!
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.4.4 release
Hardware: Other All
: low minor
Assignee: Not Assigned
URL:
Whiteboard: BSA target:3.5
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-10 12:38 UTC by Misha
Modified: 2011-12-12 15:23 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Load this and it will crash (15.45 KB, text/plain)
2011-12-10 12:40 UTC, Misha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Misha 2011-12-10 12:38:56 UTC
Problem description: 

Steps to reproduce:
1. Paste range with document with the boost::numeric::bounds<double>::lowest(); and boost::numeric::bounds<double>::highest();

For ease of debugging: here is the csv I used:
0 -179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.0000000000000 
1 0.0000000000000 
2 0.0000000000000 
3 0.0000000000000 
4 0.0000000000000 
5 0.0000000000000 
6 0.0000000000000 
7 0.0000000000000 
8 0.0000000000000 
9 0.0000000000000 
10 0.0000000000000 
11 0.0000000000000 
12 0.0000000000000 
13 0.0000000000000 
14 0.0000000000000 
15 0.0000000000000 
16 0.0000000000000 
17 0.0000000000000 
18 0.0000000000000 
19 0.0000000000000 
20 0.0000000000000 
21 0.0000000000000 
22 0.0000000000000 
23 0.0000000000000 
24 0.0000000000000 
25 0.0000000000000 
26 0.0000000000000 
27 0.0000000000000 
28 0.0000000000000 
29 0.0000000000000 
30 0.0000000000000 
31 0.0000000000000 
32 0.0000000000000 
33 0.0000000000000 
34 0.0000000000000 
35 0.0000000000000 
36 0.0000000000000 
37 0.0000000000000 
38 0.0000000000000 
39 0.0000000000000 
40 6035331.6326602436602 
41 6035331.6326602436602 
42 0.0000000000000 
43 0.0000000000000 
44 0.0000000000000 
45 0.0000000000000 
46 0.0000000000000 
47 0.0000000000000 
48 2640877.1853222241625 
49 2640877.1853222241625 
50 0.0000000000000 
51 0.0000000000000 
52 0.0000000000000 
53 0.0000000000000 
54 0.0000000000000 
55 0.0000000000000 
56 0.0000000000000 
57 0.0000000000000 
58 0.0000000000000 
59 0.0000000000000 
60 0.0000000000000 
61 0.0000000000000 
62 0.0000000000000 
63 0.0000000000000 
64 0.0000000000000 
65 0.0000000000000 
66 0.0000000000000 
67 0.0000000000000 
68 0.0000000000000 
69 0.0000000000000 
70 0.0000000000000 
71 0.0000000000000 
72 0.0000000000000 
73 0.0000000000000 
74 0.0000000000000 
75 0.0000000000000 
76 0.0000000000000 
77 0.0000000000000 
78 6166489.7122050132602 
79 6166489.7122050132602 
80 0.0000000000000 
81 0.0000000000000 
82 0.0000000000000 
83 0.0000000000000 
84 0.0000000000000 
85 0.0000000000000 
86 0.0000000000000 
87 0.0000000000000 
88 0.0000000000000 
89 0.0000000000000 
90 0.0000000000000 
91 0.0000000000000 
92 0.0000000000000 
93 0.0000000000000 
94 0.0000000000000 
95 0.0000000000000 
96 0.0000000000000 
97 0.0000000000000 
98 0.0000000000000 
99 0.0000000000000 
100 0.0000000000000 
101 0.0000000000000 
102 0.0000000000000 
103 0.0000000000000 
104 0.0000000000000 
105 0.0000000000000 
106 0.0000000000000 
107 0.0000000000000 
108 0.0000000000000 
109 0.0000000000000 
110 0.0000000000000 
111 0.0000000000000 
112 0.0000000000000 
113 0.0000000000000 
114 4775836.4885553633794 
115 4775836.4885553633794 
116 0.0000000000000 
117 0.0000000000000 
118 0.0000000000000 
119 1581721.2089172124397 
120 1581721.2089172124397 
121 0.0000000000000 
122 0.0000000000000 
123 0.0000000000000 
124 0.0000000000000 
125 0.0000000000000 
126 3011429.7150874072686 
127 3011429.7150874072686 
128 0.0000000000000 
129 0.0000000000000 
130 0.0000000000000 
131 3975370.7837205422111 
132 3975370.7837205422111 
133 0.0000000000000 
134 0.0000000000000 
135 5709737.4193177400157 
136 5709737.4193177400157 
137 0.0000000000000 
138 0.0000000000000 
139 0.0000000000000 
140 0.0000000000000 
141 0.0000000000000 
142 0.0000000000000 
143 0.0000000000000 
144 0.0000000000000 
145 0.0000000000000 
146 0.0000000000000 
147 0.0000000000000 
148 0.0000000000000 
149 0.0000000000000 
150 0.0000000000000 
151 0.0000000000000 
152 0.0000000000000 
153 0.0000000000000 
154 0.0000000000000 
155 0.0000000000000 
156 0.0000000000000 
157 0.0000000000000 
158 0.0000000000000 
159 0.0000000000000 
160 0.0000000000000 
161 5852615.3022071262822 
162 5852615.3022071262822 
163 0.0000000000000 
164 0.0000000000000 
165 0.0000000000000 
166 0.0000000000000 
167 0.0000000000000 
168 0.0000000000000 
169 0.0000000000000 
170 0.0000000000000 
171 0.0000000000000 
172 0.0000000000000 
173 0.0000000000000 
174 0.0000000000000 
175 0.0000000000000 
176 0.0000000000000 
177 0.0000000000000 
178 0.0000000000000 
179 7460111.9955185158178 
180 7460111.9955185158178 
181 0.0000000000000 
182 0.0000000000000 
183 2937510.9358742781915 
184 2937510.9358742781915 
185 6293687.1191939953715 
186 6293687.1191939953715 
187 0.0000000000000 
188 0.0000000000000 
189 0.0000000000000 
190 0.0000000000000 
191 0.0000000000000 
192 0.0000000000000 
193 0.0000000000000 
194 6452176.6887721093372 
195 6452176.6887721093372 
196 0.0000000000000 
197 0.0000000000000 
198 0.0000000000000 
199 0.0000000000000 
200 7145938.9657452795655 
201 7145938.9657452795655 
202 2131010.1689414056018 
203 2131010.1689414056018 
204 0.0000000000000 
205 0.0000000000000 
206 2227906.3569541261531 
207 2227906.3569541261531 
208 0.0000000000000 
209 0.0000000000000 
210 0.0000000000000 
211 0.0000000000000 
212 0.0000000000000 
213 0.0000000000000 
214 0.0000000000000 
215 0.0000000000000 
216 0.0000000000000 
217 0.0000000000000 
218 0.0000000000000 
219 0.0000000000000 
220 0.0000000000000 
221 0.0000000000000 
222 3648108.3094012364745 
223 3648108.3094012364745 
224 0.0000000000000 
225 0.0000000000000 
226 0.0000000000000 
227 0.0000000000000 
228 5486566.7320095570758 
229 5486566.7320095570758 
230 0.0000000000000 
231 0.0000000000000 
232 0.0000000000000 
233 0.0000000000000 
234 0.0000000000000 
235 0.0000000000000 
236 0.0000000000000 
237 0.0000000000000 
238 0.0000000000000 
239 0.0000000000000 
240 0.0000000000000 
241 0.0000000000000 
242 0.0000000000000 
243 0.0000000000000 
244 0.0000000000000 
245 0.0000000000000 
246 0.0000000000000 
247 0.0000000000000 
248 0.0000000000000 
249 0.0000000000000 
250 0.0000000000000 
251 0.0000000000000 
252 0.0000000000000 
253 0.0000000000000 
254 0.0000000000000 
255 0.0000000000000 
256 0.0000000000000 
257 0.0000000000000 
258 0.0000000000000 
259 0.0000000000000 
260 0.0000000000000 
261 0.0000000000000 
262 0.0000000000000 
263 0.0000000000000 
264 0.0000000000000 
265 0.0000000000000 
266 0.0000000000000 
267 0.0000000000000 
268 0.0000000000000 
269 0.0000000000000 
270 0.0000000000000 
271 0.0000000000000 
272 5453506.6716303015128 
273 5453506.6716303015128 
274 0.0000000000000 
275 0.0000000000000 
276 0.0000000000000 
277 0.0000000000000 
278 0.0000000000000 
279 0.0000000000000 
280 0.0000000000000 
281 0.0000000000000 
282 0.0000000000000 
283 0.0000000000000 
284 0.0000000000000 
285 0.0000000000000 
286 0.0000000000000 
287 0.0000000000000 
288 0.0000000000000 
289 0.0000000000000 
290 0.0000000000000 
291 0.0000000000000 
292 0.0000000000000 
293 0.0000000000000 
294 0.0000000000000 
295 0.0000000000000 
296 0.0000000000000 
297 0.0000000000000 
298 0.0000000000000 
299 0.0000000000000 
300 0.0000000000000 
301 0.0000000000000 
302 0.0000000000000 
303 0.0000000000000 
304 0.0000000000000 
305 0.0000000000000 
306 0.0000000000000 
307 0.0000000000000 
308 0.0000000000000 
309 0.0000000000000 
310 0.0000000000000 
311 0.0000000000000 
312 0.0000000000000 
313 0.0000000000000 
314 0.0000000000000 
315 0.0000000000000 
316 0.0000000000000 
317 0.0000000000000 
318 0.0000000000000 
319 0.0000000000000 
320 0.0000000000000 
321 0.0000000000000 
322 0.0000000000000 
323 0.0000000000000 
324 0.0000000000000 
325 0.0000000000000 
326 0.0000000000000 
327 0.0000000000000 
328 0.0000000000000 
329 0.0000000000000 
330 0.0000000000000 
331 6398927.1237069796771 
332 6398927.1237069796771 
333 0.0000000000000 
334 0.0000000000000 
335 0.0000000000000 
336 0.0000000000000 
337 0.0000000000000 
338 0.0000000000000 
339 0.0000000000000 
340 0.0000000000000 
341 0.0000000000000 
342 0.0000000000000 
343 0.0000000000000 
344 0.0000000000000 
345 0.0000000000000 
346 0.0000000000000 
347 0.0000000000000 
348 0.0000000000000 
349 0.0000000000000 
350 0.0000000000000 
351 0.0000000000000 
352 0.0000000000000 
353 0.0000000000000 
354 0.0000000000000 
355 0.0000000000000 
356 0.0000000000000 
357 0.0000000000000 
358 0.0000000000000 
359 0.0000000000000 
360 0.0000000000000 
361 0.0000000000000 
362 0.0000000000000 
363 0.0000000000000 
364 0.0000000000000 
365 0.0000000000000 
366 0.0000000000000 
367 0.0000000000000 
368 0.0000000000000 
369 0.0000000000000 
370 0.0000000000000 
371 0.0000000000000 
372 0.0000000000000 
373 0.0000000000000 
374 1003326.9949387145462 
375 1003326.9949387145462 
376 0.0000000000000 
377 0.0000000000000 
378 0.0000000000000 
379 0.0000000000000 
380 635503.8237223168835 
381 635503.8237223168835 
382 0.0000000000000 
383 0.0000000000000 
384 0.0000000000000 
385 0.0000000000000 
386 0.0000000000000 
387 0.0000000000000 
388 0.0000000000000 
389 0.0000000000000 
390 6547826.6626064516604 
391 6547826.6626064516604 
392 0.0000000000000 
393 0.0000000000000 
394 0.0000000000000 
395 0.0000000000000 
396 0.0000000000000 
397 0.0000000000000 
398 542743.8603801990394 
399 542743.8603801990394 
400 0.0000000000000 
401 0.0000000000000 
402 311522.1135746630025 
403 311522.1135746630025 
404 4298451.3059701351449 
405 4298451.3059701351449 
406 1576154.0282701812685 
407 1576154.0282701812685 
408 905.2021889478747 
409 905.2021889478747 
410 40.5200284407547 
411 48.1434941621885 
412 21.2443375470551 
413 26.3873436090903 
414 25.6228875761233 
415 25.7050941284901 
416 25.6978842074948 
417 25.6983869739694 
418 25.6983622046207 
419 25.6983622046207 
420 25.6983622165865 
421 25.6983622165865 
422 25.6983622046207 
423 25.6983622046207 
424 25.6983622046207 
425 25.6983622165865 
426 25.6983622165865 
427 25.6983622046207 
428 25.6983622046207 
429 25.6983622165865 
430 25.6983622165865 
431 25.6983622046207 
432 25.6983622046207 
433 25.6983622046207 
434 25.6983622165865 
435 25.6983622165865 
436 25.6983622046207 
437 25.6983622046207 
438 25.6983622046207 
439 25.6983622165865 
440 25.6983622165865 
441 25.6983622046207 
442 25.6983622046207 
443 25.6983622165865 
444 25.6983622165865 
445 25.6983622046207 
446 25.6983622046207 
447 25.6983622046207 
448 25.6983622165865 
449 25.6983622165865 
450 25.6983622046207 
451 25.6983622046207 
452 25.6983622165865 
453 25.6983622165865 
454 25.6983622046207 
455 25.6983622046207 
456 25.6983622046207 
457 25.6983622165865 
458 25.6983622165865 
459 25.6983622046207 
460 25.6983622046207 
461 25.6983622165865 
462 25.6983622165865 
463 25.6983622046207 
464 25.6983622046207 
465 25.6983622046207 
466 25.6983622165865 
467 25.6983622165865 
468 25.6983622046207 
469 25.6983622046207 
470 25.6983622165865 
471 25.6983622165865 
472 25.6983622046207 
473 25.6983622046207 
474 25.6983622046207 
475 25.6983622165865 
476 25.6983622165865 
477 25.6983622046207 
478 25.6983622046207 
479 25.6983622165865 
480 25.6983622165865 
481 25.6983622046207 
482 25.6983622046207 
483 25.6983622046207 
484 25.6983622165865 
485 25.6983622165865 
486 25.6983622046207 
487 25.6983622046207 
488 25.6983622165865 
489 25.6983622165865 
490 25.6983622046207 
491 25.6983622046207 
492 25.6983622046207 
493 25.6983622165865 
494 25.6983622165865 
495 25.6983622046207 
496 25.6983622046207 
497 25.6983622165865 
498 25.6983622165865 
499 25.6983622046207 
500 25.6983622046207 
501 25.6983622046207 
502 25.6983622165865 
503 25.6983622165865 
504 25.6983622046207 
505 25.6983622046207 
506 25.6983622165865 
507 25.6983622165865 
508 25.6983622046207 
509 25.6983622046207 
510 25.6983622046207 
511 25.6983622165865 
512 25.6983622165865 
513 25.6983622046207 
514 25.6983622046207 
515 25.6983622165865 
516 25.6983622165865 
517 25.6983622046207 
518 25.6983622046207 
519 25.6983622046207 
520 25.6983622165865 
521 25.6983622165865 
522 25.6983622046207 
523 25.6983622046207 
524 25.6983622165865 
525 25.6983622165865 
526 25.6983622046207 
527 25.6983622046207 
528 25.6983622046207 
529 25.6983622165865 
530 25.6983622165865 
531 25.6983622046207 
532 25.6983622046207 
533 25.6983622165865 
534 25.6983622165865 
535 25.6983622046207 
536 25.6983622046207 
537 25.6983622046207 
538 25.6983622165865 
539 25.6983622165865 
540 25.6983622046207 
541 25.6983622046207 
542 25.6983622046207 
543 25.6983622165865 
544 25.6983622165865 
545 25.6983622046207 
546 25.6983622046207 
547 25.6983622165865 
548 25.6983622165865 
549 25.6983622046207 
550 25.6983622046207 
551 25.6983622046207 
552 25.6983622165865 
553 25.6983622165865 
554 25.6983622046207 
555 25.6983622046207 
556 25.6983622165865 
557 25.6983622165865 
558 25.6983622046207 
559 25.6983622046207 
560 25.6983622046207 
561 25.6983622165865 
562 25.6983622165865 
563 25.6983622046207 
564 25.6983622046207 
565 25.6983622165865 
566 25.6983622165865 
567 25.6983622046207 
568 25.6983622046207 
569 25.6983622046207 
570 25.6983622165865 
571 25.6983622165865 
572 25.6983622046207 
573 25.6983622046207 
574 25.6983622165865 
575 25.6983622165865 
576 25.6983622046207 
577 25.6983622046207 
578 25.6983622046207 
579 25.6983622165865 
580 25.6983622165865 
581 25.6983622046207 
582 25.6983622046207 
583 25.6983622165865 
584 25.6983622165865 
585 25.6983622046207 
586 25.6983622046207 
587 25.6983622046207 
588 25.6983622165865 
589 25.6983622165865 
590 25.6983622046207 
591 25.6983622046207 
592 25.6983622165865 
593 25.6983622165865 
594 25.6983622046207 
595 25.6983622046207 
596 25.6983622046207 
597 25.6983622165865 
598 25.6983622165865 
599 25.6983622046207 
600 25.6983622046207 
601 25.6983622165865 
602 25.6983622165865 
603 25.6983622046207 
604 25.6983622046207 
605 25.6983622046207 
606 25.6983622165865 
607 25.6983622165865 
608 25.6983622046207 
609 25.6983622046207 
610 25.6983622165865 
611 25.6983622165865 
612 25.6983622046207 
613 25.6983622046207 
614 25.6983622046207 
615 25.6983622165865 
616 25.6983622165865 
617 25.6983622046207 
618 25.6983622046207 
619 25.6983622165865 
620 25.6983622165865 
621 25.6983622046207 
622 25.6983622046207 
623 25.6983622046207 
624 25.6983622165865 
625 25.6983622165865 
626 25.6983622046207 
627 25.6983622046207 
628 25.6983622165865 
629 25.6983622165865 
630 25.6983622046207 
631 25.6983622046207 
632 25.6983622046207 
633 25.6983622165865 
634 25.6983622165865 
635 25.6983622046207 
636 25.6983622046207 
637 25.6983622165865 
638 25.6983622165865 
639 25.6983622046207 
640 25.6983622046207 
641 25.6983622046207 
642 25.6983622165865 
643 25.6983622165865 
644 25.6983622046207 
645 25.6983622046207 
646 25.6983622046207 
647 25.6983622165865 
648 25.6983622165865 
649 25.6983622046207 
650 25.6983622046207 
651 25.6983622165865 
652 25.6983622165865 
653 25.6983622046207 
654 25.6983622046207 
655 25.6983622046207 
656 25.6983622165865 
657 25.6983622165865 
658 25.6983622046207 
659 25.6983622046207 
660 25.6983622165865 
661 25.6983622165865 
662 25.6983622046207 
663 25.6983622046207 
664 25.6983622046207 
665 25.6983622165865 
666 25.6983622165865 
667 25.6983622046207 
668 25.6983622046207 
669 25.6983622165865 
670 25.6983622165865 
671 25.6983622046207 
672 25.6983622046207 
673 25.6983622046207 
674 25.6983622165865 
675 25.6983622165865 
676 25.6983622046207 
677 25.6983622046207 
678 25.6983622165865 
679 25.6983622165865 
680 25.6983622046207 
681 25.6983622046207 
682 25.6983622046207 
683 25.6983622165865 
684 25.6983622165865 
685 25.6983622046207 
686 25.6983622046207 
687 25.6983622165865 
688 25.6983622165865 
689 25.6983622046207 
690 25.6983622046207 
691 25.6983622046207 
692 25.6983622165865 
693 25.6983622165865 
694 25.6983622046207 
695 25.6983622046207 
696 25.6983622165865 
697 25.6983622165865 
698 25.6983622046207 
699 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.0000000000000 

2. Select the two columns and press graph.

3. Enjoy!

Current behavior:
Program exits(Crash)
Expected behavior:
Not plotting the data point, or an explicit error. Perhaps even plotting the data point.

Platform (if different from the browser): 
              
Browser: Mozilla/5.0 (Ubuntu; X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0
Comment 1 Misha 2011-12-10 12:40:46 UTC
Created attachment 54307 [details]
Load this and it will crash
Comment 2 Misha 2011-12-10 22:56:59 UTC
Any solution would be a great time to use __builtin_expect((x),0)
Comment 3 Markus Mohrhard 2011-12-12 15:23:54 UTC
Nice bug report.

It shows two bugs. First our math library can't deal with this value and second is that we need to have some handling for that case in chart2.

I already have a bug fix for the chart2 case but the part for our math library might get more interesting. I have a fix for this too but I sent it for review to ML.

http://opengrok.libreoffice.org/xref/core/sal/rtl/source/math.cxx#58

Will be fixed in 3-5 beta2