ww3877989 / google-breakpad

Automatically exported from code.google.com/p/google-breakpad
0 stars 0 forks source link

misaligned access #597

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Build with clang and -fsanitize=undefined
2. Use it

What is the expected output? What do you see instead?

  The expected output is nothing.

  Much output of the form: src/client/linux/minidump_writer/linux_dumper.cc:223:19: runtime error: store to misaligned address 0x7f71f11dd6f4 for type 'uintptr_t' (aka 'unsigned long'), which requires 8 byte alignment

There is problem in PageAllocator in src/common/memory.h

There is also a problem in  src/client/linux/minidump_writer/directory_reader.h

What version of the product are you using? On what operating system?
Hmm, maybe r281 (I feel like it's about 6 months old, I will update and retest 
tomorrow), on x86_64 Ubuntu 14.04.  Compilation with clang 3.5.0 (trunk 211762)

Please provide any additional information below.

The patch is obviously less than ideal, but it makes the undefined behaviour go 
away, so it should be a useful starting point.

Original issue reported on code.google.com by benpop...@gmail.com on 26 Jun 2014 at 9:54

Attachments: