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

Error when compiling with clang #2

Closed
fberlakovich opened this issue Jun 23, 2014 · 1 comment
Closed

Error when compiling with clang #2

fberlakovich opened this issue Jun 23, 2014 · 1 comment

Comments

@fberlakovich
Copy link
Contributor

Compiling with clang yields

src/libtools/src/backend.cpp:31:25: error: addition of default argument on redeclaration makes this constructor a default constructor:

Backend::Backend(string name_ = "", string mp_ = "") :
                        ^       ~~
@fberlakovich
Copy link
Contributor Author

  1. I am not able to label the issue I have created
  2. I have a patch available for this issue (simply move the default values from the definition to the declaration

fberlakovich added a commit to fberlakovich/libelektra that referenced this issue Jun 23, 2014
fberlakovich added a commit to fberlakovich/libelektra that referenced this issue Jun 28, 2014
fberlakovich pushed a commit to fberlakovich/libelektra that referenced this issue Jul 9, 2014
markus2330 pushed a commit that referenced this issue Jul 11, 2014
- Added a completion script for very basic bash completion
- Fixed a clang compiler error #2

Merge branch 'fberlakovich-general-improvements'
markus2330 pushed a commit that referenced this issue Mar 31, 2017
@tom-wa

==24370==ERROR: AddressSanitizer: heap-use-after-free on address 0x60200000ee30 at pc 0x7fc48fe25bed bp 0x7ffc9dea1ba0 sp 0x7ffc9dea1b78
READ of size 2 at 0x60200000ee30 thread T0
    #0 0x7fc48fe25bec in setlocale (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x33bec)
    #1 0x402de1 in main src/plugins/range/testmod_range.c:181
    #2 0x7fc48e37eb44 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b44)
    #3 0x402f03 (bin/testmod_range+0x402f03)

0x60200000ee30 is located 0 bytes inside of 12-byte region [0x60200000ee30,0x60200000ee3c)
freed by thread T0 here:
    #0 0x7fc48fe46527 in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x54527)
    #1 0x7fc48e38906e in setlocale (/lib/x86_64-linux-gnu/libc.so.6+0x2c06e)

previously allocated by thread T0 here:
    #0 0x7fc48fe4673f in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x5473f)
    #1 0x7fc48e388ae3 (/lib/x86_64-linux-gnu/libc.so.6+0x2bae3)

SUMMARY: AddressSanitizer: heap-use-after-free ??:0 setlocale
Shadow bytes around the buggy address:
  0x0c047fff9d70: fa fa fd fa fa fa fd fa fa fa fd fa fa fa fd fa
  0x0c047fff9d80: fa fa fd fa fa fa fd fa fa fa fd fa fa fa fd fa
  0x0c047fff9d90: fa fa fd fa fa fa fd fa fa fa fd fd fa fa fd fd
  0x0c047fff9da0: fa fa fd fa fa fa fd fd fa fa fd fd fa fa fd fd
  0x0c047fff9db0: fa fa fd fa fa fa fd fd fa fa fd fa fa fa fd fd
=>0x0c047fff9dc0: fa fa 00 00 fa fa[fd]fd fa fa fd fd fa fa fd fd
  0x0c047fff9dd0: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
  0x0c047fff9de0: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
  0x0c047fff9df0: fa fa fd fd fa fa fd fd fa fa 00 04 fa fa fd fa
  0x0c047fff9e00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c047fff9e10: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07
  Heap left redzone:       fa
  Heap right redzone:      fb
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack partial redzone:   f4
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Contiguous container OOB:fc
  ASan internal:           fe
==24370==ABORTING
e1528532 added a commit to e1528532/libelektra that referenced this issue Jun 5, 2018
e1528532 added a commit to e1528532/libelektra that referenced this issue Jun 5, 2018
@e1528532 e1528532 mentioned this issue Jun 5, 2018
7 tasks
omnidan pushed a commit to omnidan/libelektra that referenced this issue Jun 18, 2018
@markus2330 markus2330 mentioned this issue Jun 19, 2018
14 tasks
markus2330 added a commit that referenced this issue Nov 19, 2019
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