Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

debian wheezy 64-bit pam_tacplus segfault #3

Closed
walterdejong opened this issue Mar 21, 2013 · 1 comment
Closed

debian wheezy 64-bit pam_tacplus segfault #3

walterdejong opened this issue Mar 21, 2013 · 1 comment

Comments

@walterdejong
Copy link
Contributor

pam_tacplus segfaults on debian wheezy 64-bits:

Mar 21 14:34:04 n1 kernel: [84334.929579] sudo[9336]: segfault at 0 ip 00007f80b57c35cb sp 00007fff7f12dfc0 error 4 in pam_tacplus.so[7f80b57bd000+a000]

This is pam_tacplus 1.3.6
I also built 1.3.8 on this system, and it segfaults as well:

Mar 21 15:20:38 n1 kernel: [87123.676143] sudo[10129]: segfault at 0 ip 00007fbf7f54868b sp 00007fff125c2a80 error 4 in pam_tacplus.so[7fbf7f542000+a000]
@walterdejong
Copy link
Contributor Author

I have made a fix + pull request; see issue #4

jeroennijhof added a commit that referenced this issue Mar 22, 2013
kravietz added a commit that referenced this issue Oct 13, 2021
Found by asan:
```
==7329==ERROR: AddressSanitizer: odr-violation (0x0000010e65c0):
  [1] size=4 'tac_encryption' tacc.c:77:5
  [2] size=4 'tac_encryption' libtac/lib/header.c:38:5
These globals were registered at these points:
  [1]:
    #0 0x106ea0d in __asan_register_globals /usr/src/contrib/llvm-project/compiler-rt/lib/asan/asan_globals.cpp:360:3
    #1 0x10dfdab in asan.module_ctor (/usr/local/bin/tacc+0xbedab)
    #2 0x8010ecc5a  (/libexec/ld-elf.so.1+0x8c5a)
    #3 0x8010ea488  (/libexec/ld-elf.so.1+0x6488)

  [2]:
    #0 0x106ea0d in __asan_register_globals /usr/src/contrib/llvm-project/compiler-rt/lib/asan/asan_globals.cpp:360:3
    #1 0x80114119b in asan.module_ctor (/usr/local/lib/libtac.so.3+0x1b19b)
    #2 0x8010ecc5a  (/libexec/ld-elf.so.1+0x8c5a)
    #3 0x8010ea488  (/libexec/ld-elf.so.1+0x6488)

==7329==HINT: if you don't care about these errors you may set ASAN_OPTIONS=detect_odr_violation=0
SUMMARY: AddressSanitizer: odr-violation: global 'tac_encryption' at tacc.c:77:5
==7329==ABORTING
```
kravietz added a commit that referenced this issue Oct 20, 2021
Found by asan:
```
==7329==ERROR: AddressSanitizer: odr-violation (0x0000010e65c0):
  [1] size=4 'tac_encryption' tacc.c:77:5
  [2] size=4 'tac_encryption' libtac/lib/header.c:38:5
These globals were registered at these points:
  [1]:
    #0 0x106ea0d in __asan_register_globals /usr/src/contrib/llvm-project/compiler-rt/lib/asan/asan_globals.cpp:360:3
    #1 0x10dfdab in asan.module_ctor (/usr/local/bin/tacc+0xbedab)
    #2 0x8010ecc5a  (/libexec/ld-elf.so.1+0x8c5a)
    #3 0x8010ea488  (/libexec/ld-elf.so.1+0x6488)

  [2]:
    #0 0x106ea0d in __asan_register_globals /usr/src/contrib/llvm-project/compiler-rt/lib/asan/asan_globals.cpp:360:3
    #1 0x80114119b in asan.module_ctor (/usr/local/lib/libtac.so.3+0x1b19b)
    #2 0x8010ecc5a  (/libexec/ld-elf.so.1+0x8c5a)
    #3 0x8010ea488  (/libexec/ld-elf.so.1+0x6488)

==7329==HINT: if you don't care about these errors you may set ASAN_OPTIONS=detect_odr_violation=0
SUMMARY: AddressSanitizer: odr-violation: global 'tac_encryption' at tacc.c:77:5
==7329==ABORTING
```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant