Skip to content

GitLab

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    • Menu
    Projects Groups Snippets
  • Get a free trial
  • Sign up
  • Login
  • Sign in / Register
  • QEMU QEMU
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 607
    • Issues 607
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • QEMU
  • QEMUQEMU
  • Issues
  • #704
Closed
Open
Created Nov 01, 2021 by Philippe Mathieu-Daudé@philmdReporter

linux-user: misaligned address for type 'struct linux_dirent64'

As of commit af531756, QEMU built using --cc=clang --extra-cflags='-fsanitize=undefined -fno-sanitize-recover=undefined':

$ make run-tcg-tests-sh4-linux-user
  RUN     TCG tests for sh4-linux-user
  TEST    test-mmap (default) on sh4
  TEST    testthread on sh4
  TEST    linux-test on sh4
  TEST    basic gdbstub support
  TEST    threadcount on sh4
linux-user/syscall.c:10373:34: runtime error: member access within misaligned address 0x00000048af3c for type 'struct linux_dirent64', which requires 8 byte alignment
0x00000048af3c: note: pointer points here
  00 00 00 00 d6 c9 03 00  00 00 00 00 01 00 00 00  00 00 00 00 18 00 04 2e  00 00 00 00 01 00 00 00
              ^ 
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior linux-user/syscall.c:10373:34 in 
make[2]: *** [../Makefile.target:158: run-linux-test] Error 1
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking