chromeos-base/smbprovider - new Undefined Behavior error |
||
Issue descriptionStarting 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.
,
Dec 7 2017
Ok thanks!
,
Dec 8 2017
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
,
Dec 8 2017
|
||
►
Sign in to add a comment |
||
Comment 1 by allenvic@google.com
, Dec 7 2017