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

Bug#916626: Acknowledgement (qbs: FTBFS on hppa: Segmentation fault (core dumped))



On 2018-12-16 1:04 p.m., John David Anglin wrote:
> Thread 4 "QThread" hit Breakpoint 1, QTJSC::Heap::markConservatively (
>     this=0xf8b53c78, markStack=..., start=0xed5826c8, end=0xedd81000)
>     at ../3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.cpp:791
> 791     ../3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.cpp:
> No such file or directory.
> 
> The address 0xedd81000 is the end of the stack.

void Heap::markConservatively(MarkStack& markStack, void* start, void* end)
{
    if (start > end) {
        void* tmp = start;
        start = end;
        end = tmp;
    }

    ASSERT((static_cast<char*>(end) - static_cast<char*>(start)) <
0x1000000);
    ASSERT(isPointerAligned(start));
    ASSERT(isPointerAligned(end));

    char** p = static_cast<char**>(start);
    char** e = static_cast<char**>(end);

    CollectorBlock** blocks = m_heap.blocks;
    while (p != e) {

It looks to me as if the test "p != e" should be "p < e".

Dave
-- 
John David Anglin  dave.anglin@bell.net


Reply to: