New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 793068 link

Starred by 1 user

Issue metadata

Status: Verified
Owner: ----
Closed: Dec 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

chromeos-base/smbprovider - new Undefined Behavior error

Project Member Reported by cmt...@chromium.org, Dec 7 2017

Issue description

Starting at roughly 2am (PST) on Dec. 6, a change seems to have been introduced to smbprovider that is causing the generic-asan test builder to fail in the UnitTest stage with an Undefined Behavior error.

The builder is here:
https://build.chromium.org/p/chromiumos/builders/amd64-generic-asan

An example of the failure log is here:
https://logs.chromium.org/v/?s=chromiumos%2Fbb%2Fchromiumos%2Famd64-generic-asan%2F22262%2F%2B%2Frecipes%2Fsteps%2FUnitTest%2F0%2Fstdout


The error messages are shown below.  Roughly, it looks like either something is of the wrong alignment or the wrong size or both.  As I said, the change that caused this problem seems to have gone in between 1:11am and 2:16am on Dec. 6 (very early yesterday morning).

smbprovider-0.0.1-r78:  * ASAN error detected:
smbprovider-0.0.1-r78:  * ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider_helper.cc:74:9: runtime error: member access within misaligned address 0x62d0000a0421 for type 'smbc_dirent', which requires 8 byte alignment
smbprovider-0.0.1-r78:  * 0x62d0000a0421: note: pointer points here
smbprovider-0.0.1-r78:  *  00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00
smbprovider-0.0.1-r78:  *               ^ 
smbprovider-0.0.1-r78:  * SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider_helper.cc:74:9 in 
smbprovider-0.0.1-r78:  * ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider_helper.cc:74:9: runtime error: store to misaligned address 0x62d0000a0421 for type 'unsigned int', which requires 8 byte alignment
smbprovider-0.0.1-r78:  * 0x62d0000a0421: note: pointer points here
smbprovider-0.0.1-r78:  *  00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00
smbprovider-0.0.1-r78:  *               ^ 
smbprovider-0.0.1-r78:  * SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider_helper.cc:74:9 in 
smbprovider-0.0.1-r78:  * ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider_helper.cc:75:9: runtime error: member access within misaligned address 0x62d0000a0421 for type 'smbc_dirent', which requires 8 byte alignment
smbprovider-0.0.1-r78:  * 0x62d0000a0421: note: pointer points here
smbprovider-0.0.1-r78:  *  00 00 00  00 07 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00
smbprovider-0.0.1-r78:  *               ^ 
smbprovider-0.0.1-r78:  * SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider_helper.cc:75:9 in 
smbprovider-0.0.1-r78:  * ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider_helper.cc:75:9: runtime error: store to misaligned address 0x62d0000a0425 for type 'unsigned int', which requires 4 byte alignment
smbprovider-0.0.1-r78:  * 0x62d0000a0425: note: pointer points here
smbprovider-0.0.1-r78:  *  07 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
smbprovider-0.0.1-r78:  *              ^ 
smbprovider-0.0.1-r78:  * SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider_helper.cc:75:9 in 
smbprovider-0.0.1-r78:  * ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider_helper.cc:76:16: runtime error: member access within misaligned address 0x62d0000a0421 for type 'smbc_dirent', which requires 8 byte alignment
smbprovider-0.0.1-r78:  * 0x62d0000a0421: note: pointer points here
smbprovider-0.0.1-r78:  *  00 00 00  00 07 00 00 00 22 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00
smbprovider-0.0.1-r78:  *               ^ 
smbprovider-0.0.1-r78:  * SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider_helper.cc:76:16 in 
smbprovider-0.0.1-r78:  * ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/fake_samba_interface.cc:90:26: runtime error: member access within misaligned address 0x62d0000a0421 for type 'smbc_dirent', which requires 8 byte alignment
smbprovider-0.0.1-r78:  * 0x62d0000a0421: note: pointer points here
smbprovider-0.0.1-r78:  *  00 00 00  00 07 00 00 00 22 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00
smbprovider-0.0.1-r78:  *               ^ 
smbprovider-0.0.1-r78:  * SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/fake_samba_interface.cc:90:26 in 
smbprovider-0.0.1-r78:  * ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/fake_samba_interface.cc:90:26: runtime error: load of misaligned address 0x62d0000a0425 for type 'unsigned int', which requires 4 byte alignment
smbprovider-0.0.1-r78:  * 0x62d0000a0425: note: pointer points here
smbprovider-0.0.1-r78:  *  07 00 00 00 22 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 2e 2e 00  00
smbprovider-0.0.1-r78:  *              ^ 
smbprovider-0.0.1-r78:  * SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/fake_samba_interface.cc:90:26 in 
smbprovider-0.0.1-r78:  * ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider_helper.cc:31:3: runtime error: member access within misaligned address 0x62d0000a0421 for type 'smbc_dirent', which requires 8 byte alignment
smbprovider-0.0.1-r78:  * 0x62d0000a0421: note: pointer points here
smbprovider-0.0.1-r78:  *  00 00 00  00 07 00 00 00 22 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00
smbprovider-0.0.1-r78:  *               ^ 
smbprovider-0.0.1-r78:  * SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider_helper.cc:31:3 in 
smbprovider-0.0.1-r78:  * ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider_helper.cc:31:3: runtime error: reference binding to misaligned address 0x62d0000a0425 for type 'const unsigned int', which requires 4 byte alignment
smbprovider-0.0.1-r78:  * 0x62d0000a0425: note: pointer points here
smbprovider-0.0.1-r78:  *  07 00 00 00 22 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 2e 2e 00  00
smbprovider-0.0.1-r78:  *              ^ 
smbprovider-0.0.1-r78:  * SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider_helper.cc:31:3 in 
smbprovider-0.0.1-r78:  * ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider_helper.cc:33:47: runtime error: member access within misaligned address 0x62d0000a0421 for type 'smbc_dirent', which requires 8 byte alignment
smbprovider-0.0.1-r78:  * 0x62d0000a0421: note: pointer points here
smbprovider-0.0.1-r78:  *  00 00 00  00 07 00 00 00 22 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00
smbprovider-0.0.1-r78:  *               ^ 
smbprovider-0.0.1-r78:  * SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider_helper.cc:33:47 in 
smbprovider-0.0.1-r78:  * ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider_helper.cc:33:47: runtime error: load of misaligned address 0x62d0000a0425 for type 'unsigned int', which requires 4 byte alignment
smbprovider-0.0.1-r78:  * 0x62d0000a0425: note: pointer points here
smbprovider-0.0.1-r78:  *  07 00 00 00 22 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 2e 2e 00  00
smbprovider-0.0.1-r78:  *              ^ 
smbprovider-0.0.1-r78:  * SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider_helper.cc:33:47 in 
smbprovider-0.0.1-r78:  * ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider.cc:217:23: runtime error: reference binding to misaligned address 0x62d0000a0421 for type 'const smbc_dirent', which requires 8 byte alignment
smbprovider-0.0.1-r78:  * 0x62d0000a0421: note: pointer points here
smbprovider-0.0.1-r78:  *  00 00 00  00 07 00 00 00 22 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00
smbprovider-0.0.1-r78:  *               ^ 
smbprovider-0.0.1-r78:  * SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider.cc:217:23 in 
smbprovider-0.0.1-r78:  * ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider.cc:218:7: runtime error: member access within misaligned address 0x62d0000a0421 for type 'smbc_dirent', which requires 8 byte alignment
smbprovider-0.0.1-r78:  * 0x62d0000a0421: note: pointer points here
smbprovider-0.0.1-r78:  *  00 00 00  00 07 00 00 00 22 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00
smbprovider-0.0.1-r78:  *               ^ 
smbprovider-0.0.1-r78:  * SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider.cc:218:7 in 
smbprovider-0.0.1-r78:  * ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider.cc:218:7: runtime error: reference binding to misaligned address 0x62d0000a0425 for type 'const unsigned int', which requires 4 byte alignment
smbprovider-0.0.1-r78:  * 0x62d0000a0425: note: pointer points here
smbprovider-0.0.1-r78:  *  07 00 00 00 22 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 2e 2e 00  00
smbprovider-0.0.1-r78:  *              ^ 
smbprovider-0.0.1-r78:  * SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider.cc:218:7 in 
smbprovider-0.0.1-r78:  * ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider.cc:219:7: runtime error: member access within misaligned address 0x62d0000a0421 for type 'smbc_dirent', which requires 8 byte alignment
smbprovider-0.0.1-r78:  * 0x62d0000a0421: note: pointer points here
smbprovider-0.0.1-r78:  *  00 00 00  00 07 00 00 00 22 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00
smbprovider-0.0.1-r78:  *               ^ 
smbprovider-0.0.1-r78:  * SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider.cc:219:7 in 
smbprovider-0.0.1-r78:  * ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider.cc:219:7: runtime error: reference binding to misaligned address 0x62d0000a0425 for type 'const unsigned int', which requires 4 byte alignment
smbprovider-0.0.1-r78:  * 0x62d0000a0425: note: pointer points here
smbprovider-0.0.1-r78:  *  07 00 00 00 22 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 2e 2e 00  00
smbprovider-0.0.1-r78:  *              ^ 
smbprovider-0.0.1-r78:  * SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider.cc:219:7 in 
smbprovider-0.0.1-r78:  * ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider.cc:220:29: runtime error: member access within misaligned address 0x62d0000a0421 for type 'smbc_dirent', which requires 8 byte alignment
smbprovider-0.0.1-r78:  * 0x62d0000a0421: note: pointer points here
smbprovider-0.0.1-r78:  *  00 00 00  00 07 00 00 00 22 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00
smbprovider-0.0.1-r78:  *               ^ 
smbprovider-0.0.1-r78:  * SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider.cc:220:29 in 
smbprovider-0.0.1-r78:  * ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider.cc:220:29: runtime error: load of misaligned address 0x62d0000a0425 for type 'unsigned int', which requires 4 byte alignment
smbprovider-0.0.1-r78:  * 0x62d0000a0425: note: pointer points here
smbprovider-0.0.1-r78:  *  07 00 00 00 22 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 2e 2e 00  00
smbprovider-0.0.1-r78:  *              ^ 
smbprovider-0.0.1-r78:  * SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider.cc:220:29 in 
smbprovider-0.0.1-r78:  * ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider_helper.cc:18:65: runtime error: load of misaligned address 0x62d0000a0443 for type 'const unsigned int', which requires 8 byte alignment
smbprovider-0.0.1-r78:  * 0x62d0000a0443: note: pointer points here
smbprovider-0.0.1-r78:  *  00  00 00 00 08 00 00 00 28  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00
smbprovider-0.0.1-r78:  *               ^ 
smbprovider-0.0.1-r78:  * SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider_helper.cc:18:65 in 
smbprovider-0.0.1-r78:  * ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider_helper.cc:22:30: runtime error: load of misaligned address 0x62d0000a0443 for type 'const unsigned int', which requires 8 byte alignment
smbprovider-0.0.1-r78:  * 0x62d0000a0443: note: pointer points here
smbprovider-0.0.1-r78:  *  00  00 00 00 08 00 00 00 28  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00
smbprovider-0.0.1-r78:  *               ^ 
smbprovider-0.0.1-r78:  * SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../../../../../../mnt/host/source/src/platform2/smbprovider/smbprovider_helper.cc:22:30 in


This needs to be fixed ASAP, as we want this waterfall builder to be green again.
 
Hi, I have been talking to caveh@ about this, and I have a CL that addresses this issue here:

https://chromium-review.googlesource.com/814578

It is currently in pre-CQ now.
Ok thanks!

Hi, my fix got uploaded and it seems the latest build is successful, can this bug be resolved?

https://build.chromium.org/p/chromiumos/builders/amd64-generic-asan/builds/22294
Status: Verified (was: Untriaged)

Sign in to add a comment