[cfe-users] Problem with address sanitizer stack traces

2015-11-24 Thread Rainer Gerhards via cfe-users
Hi all, first, thanks for the great tool, especially the address sanitizer. I have a multi-threaded program, where I get a segfault due to access to free'd memory in one thread. In the report, I see references to where this memory block was malloc'ed and free'ed. Unfortunately, these later two sta

[cfe-users] static inline functions in headers and -Wunused-function

2016-01-27 Thread Rainer Gerhards via cfe-users
Hi all, I try to use -Werror -Wall for my project, which includes -Wunused-function. Unfortunately, I receive a couple of warnings from library header files which include static inline ... func() { ... } These functions are indeed often unused, but as of my understanding this should be perfectl

Re: [cfe-users] static inline functions in headers and -Wunused-function

2016-01-27 Thread Rainer Gerhards via cfe-users
herwise I will not see your reply. > Thanks.] > > In article eq7hicg5bj0jbysoofmvqv3fy4b6p3xaaeq...@mail.gmail.com>, > David Blaikie via cfe-users writes: > > > On Wed, Jan 27, 2016 at 3:01 AM, Rainer Gerhards via cfe-users < > > cfe-users@lists.llvm.org> wr

Re: [cfe-users] Code locations from the Memory Sanitizer

2017-04-28 Thread Rainer Gerhards via cfe-users
2017-04-28 12:25 GMT+02:00 Erik de Castro Lopo via cfe-users : > Hi all, > > I've tried Clang versions 3.6, 3.9 and 5.0 (all installed from Debian > packages on a Debian x86_64 machine), but I still can't get Memory > Sanitizer to give me the error file and line number locations. > > The project is

[cfe-users] TSAN and pthread_setcancelstate()

2017-12-29 Thread Rainer Gerhards via cfe-users
Hi all, I hope this is the right list for my question. If not, please accept my apologies -- in that case I would also appreciate if you could tell me the right place to ask. I am using TSAN together with clang (3,4,5) on Linux (in this Case Ubuntu 16.04). It works great, but I always get race re

Re: [cfe-users] TSAN and pthread_setcancelstate()

2017-12-30 Thread Rainer Gerhards via cfe-users
Adding to my own question: I have tried to use __attribute__((no_sanitize("thread"))) and blacklisting to work around the issue, but without any success. Details in commit https://github.com/rgerhards/rsyslog/commit/8e7625a5b21924518739acf17712f028c4c25241 This has now actually become a blocker