[Bug 2061077] Review Request: libsonata - A Python and C++ interface to the SONATA format

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

 



https://bugzilla.redhat.com/show_bug.cgi?id=2061077



--- Comment #4 from Jerry James <loganjerry@xxxxxxxxx> ---
I was running the test from the wrong directory.  When I used the correct
directory, the output in comment 3 disappeared.  Still odd to have a /usr/local
path embedded in that library, though.

An abort happens at src/report_reader.cpp, line 463.  Here are lines 462 and
463:

off_t data_offset = (timer_index - index_start) / stride;
auto data_ptr = &data_frame.data[data_offset * n_ids];

GDB says:
(gdb) print data_offset
$1 = <optimized out>
(gdb) print n_ids
$2 = 10
(gdb) print data_frame.data
$3 = std::vector of length 20, capacity 20 = {11, 11.1000004, 11.1999998,
11.3000002, 11.3999996, 0, 0, 0, 0, 0, 0, 0, 
  0, 0, 0, 0, 0, 0, 0, 0}
(gdb) print timer_index
$4 = 1
(gdb) print index_start
$5 = <optimized out>
(gdb) print stride
$6 = <optimized out>

Inspection of times_index_ and tstride shows that index_start should be 2 and
stride should be 1, which means that data_offset is -1.  That means an attempt
is made to access data_frame.data[-10], which triggers the C++ assert.


-- 
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2061077
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux