Giter VIP home page Giter VIP logo

Comments (5)

zeux avatar zeux commented on May 20, 2024 1

It's interesting that this problem can't really be caught by the undefined behavior sanitizer on x86/x64 despite the fact that it checks alignment violations:

x86 has sizeof(void*) = 4 alignof(double) = 4
x64 has sizeof(void*) = 8 alignof(double) = 8

And the problem only manifests when sizeof(void*) < alignof(double).

from pugixml.

zeux avatar zeux commented on May 20, 2024

A qemu image would help.

I suspect that this is specific to the way the tests are setup combined with the unaligned memory access not working. The tests override allocation functions but in doing so they violate the basic malloc contract because they return unaligned memory. This is done to catch single-byte buffer overflows on heap. This can create cases when pugixml accesses unaligned memory - I had these issues before with instrumentation that flags unaligned accesses like UB sanitizers.

from pugixml.

LowLevelMahn avatar LowLevelMahn commented on May 20, 2024

i'll prepare a small installation text and put the image somewhere on an free downloader website, but beware the sparc emulation is textmode only, very slow (costs serveral minutes to compile pugixml) but works

from pugixml.

LowLevelMahn avatar LowLevelMahn commented on May 20, 2024

uploaded the image+start description (pugi_sparc.txt) to depositfiles (seems to be the only free file hoster with ftp upload feature)
https://depositfiles.com/files/sj20aqwp0

press the "regular download" button, wait some seconds, solve the chapca, "download file in regular mode by browser"

from pugixml.

zeux avatar zeux commented on May 20, 2024

cmake 3.2.3 (build from source in 10h)

Wow. Thank you! I'm looking into this (btw pugixml does not require cmake - you can just do "make test" after git clone)

As I suspected, one of the issues is the test-only allocator; although even if I disable that I still get crashes somewhere further.

from pugixml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.