Displaying 20 results from an estimated 111 matches for "interceptor".
2016 Sep 02
2
call_once and TSan
...gt;> On 2 Sep 2016, at 11:18, Dmitry Vyukov via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>>>
>>> On Thu, Sep 1, 2016 at 2:30 PM, Kuba Brecka <kuba.brecka at gmail.com> wrote:
>>>> Hi,
>>>>
>>>> I'm trying to write a TSan interceptor for the C++11 call_once function. There are currently false positive reports, because the inner __call_once function is located in the (non-instrumented) libcxx library, and on macOS we can't expect the users to build their own instrumented libcxx.
>>>>
>>>> TSan alrea...
2016 Sep 02
2
call_once and TSan
> On 2 Sep 2016, at 11:18, Dmitry Vyukov via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> On Thu, Sep 1, 2016 at 2:30 PM, Kuba Brecka <kuba.brecka at gmail.com> wrote:
>> Hi,
>>
>> I'm trying to write a TSan interceptor for the C++11 call_once function. There are currently false positive reports, because the inner __call_once function is located in the (non-instrumented) libcxx library, and on macOS we can't expect the users to build their own instrumented libcxx.
>>
>> TSan already supports pthr...
2016 Sep 01
2
call_once and TSan
Hi,
I'm trying to write a TSan interceptor for the C++11 call_once function. There are currently false positive reports, because the inner __call_once function is located in the (non-instrumented) libcxx library, and on macOS we can't expect the users to build their own instrumented libcxx.
TSan already supports pthread_once and dispa...
2004 Aug 27
3
Digit detect during a Background() inside a Macro wrongly jumps b ack to the calling context to match digits?
...eing dialed into
[macro-process-routing] over an iax2 channel from another (same build)
Asterisk server:
[macro-process-routing]
; This is the entrypoint of the debug call but is also refered to by
Macro(process-routing) elsewhere in the dialplan
; XXX-NNN-6800
exten => _6800,1,Macro(6800-interceptor)
; This is matched when 8 is dialed during macro-6800-interceptor,s,4
exten => _8,1,Playback(welcome)
exten => _8,2,Hangup
[macro-6800-interceptor]
exten => s,1,DigitTimeout,2
exten => s,2,ResponseTimeout,7
exten => s,3,Answer
exten => s,4,Background(autoattendant-ivr/...
2011 Feb 28
6
How do I stop email from being delivered in the interceptor?
Hi,
I am developing a rails 3 application.
I want to use a interceptor before delivering emails.
If a conditions meets, I want to stop the email.
How do I do that?
Thanks.
Sam
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send em...
2019 Apr 26
2
[ASan][Windows] Interceptor function type not compatible with intercepted function
Hi,
I triggered a build failure on a Windows-sanitizer by making the sanity checking in `ASAN_INTERCEPT_FUNC` a bit stricter.
My best guess is that the type of the defined interceptor is not compatible (in C++ typing terms) with the “real” function.
This seems to be the case for the following 2 functions:
CreateThread “no conversion”:
From: 'DWORD (__cdecl *)(void * , __sanitizer::uptr, DWORD (__cdecl *)(void *), void *, DWORD, void * )'
To : 'HANDL...
2018 Aug 23
2
Sanitizers and static linking
I am guessing that sanitizers are not supported with static linking.
The AddressSanitizer document says so explicitly but the others do not.
Yet the interceptors use dlsym to set up certain system calls, so by
definition they can't support static linking.
Given that sanitizers won't work with static linking, why are static
libraries created for them?
Should there be an error check in the interceptor code for dlsym
returning nullptr? I just spent...
2016 Sep 02
2
call_once and TSan
...g) will not be synchronized to thread B.
Anyway, I just realized that we can wrap "func" into our own callback, which will perform the (extra) __tsan_release... Do you think that would work? E.g.:
void call_once_callback_wrapper(...) {
orig_func(orig_arg);
__tsan_release(flag);
}
INTERCEPTOR(call_once, o, func, arg) {
REAL(call_once)(flag, ..., call_once_callback_wrapper);
}
Kuba
> On 2 Sep 2016, at 13:42, Dmitry Vyukov <dvyukov at google.com> wrote:
>
> INTERCEPTOR(call_once, o) {
> __tsan_release_merge(o);
> REAL(call_once)(o);
> __tsan_acquire(o);...
2015 Apr 09
2
[LLVMdev] Intercepting dlinfo in memory sanitizer
Hi everyone,
I ran into a false positive with memory sanitizer due to it not
intercepting dlinfo. I tried to get started on writing such an interceptor,
but dlinfo seems like an extraordinarily difficult function to intercept.
The three considerations that I would like somebody to look at are:
1) How do we get the enum values to decide what kind of pointer dlinfo is
getting. Ideally we'd include dlfcn.h, but the interceptor file doesn't
g...
2016 Jan 12
4
RFC: Extend UBSan with qsort checks
...using a debug version
> of system library):
> I think I actually encountered all these cases.
>
> That said, the benefit of checking the sorting routines is clear: I'm not
> surprised you were able to catch numerous bugs with your tool.
>
> UBSan currently doesn't have interceptors, and all of its checks [1] are
> designed to work without runtime library support, so that it can be used as
> a mitigation
> tool (with -fsanitize-trap=undefined). It's challenging to add UBSan
> interceptors at this point: this would limit the tool portability (at least
> port...
2016 Aug 03
2
trunk check-all failing on Linux using compiler-rt and libcxx
...ABLE_ASSERTIONS=true \
-DLLVM_ENABLE_LIBCXX=yes \
-DLLVM_ENABLE_LIBCXXABI=yes
The check-all target is failing to compile the interception tests:
/home/sdowney/bld/llvm-master/llvm/projects/compiler-rt/lib/interception/tests/interception_linux_test.cc:26:18:
error: redefinition of 'isdigit'
INTERCEPTOR(int, isdigit, int d) {
^
/usr/include/ctype.h:185:1: note: previous definition is here
__isctype_f (digit)
^
/usr/include/ctype.h:93:3: note: expanded from macro '__isctype_f'
is##type (int __c) __THROW
\
^
<scratch space>:835:1: note: expanded from here
isdigi...
2006 Mar 30
4
with_scope and filters for Rails 1.1 (scoped_access plugin)
...not see a way of adding a scope using a
filter.
Anyone using with_scope and filters that can shed any light?
Cheers,
Jon
[1] http://habtm.com/articles/2006/02/22/nested-with_scope
[2] "around" was originally defined in CLOS (Common Lisp) 30 years ago.
It''s when some form of interceptor is called and is given full control
of calling the next interceptor in the chain. "around" is simple yet
incredibly powerful and can not only be used to implement "before" and
"after" but all sorts of crazy interception types. I''m slightly
disappointed Rai...
2016 Jan 13
2
RFC: Extend UBSan with qsort checks
...>>> I think I actually encountered all these cases.
>>>
>>> That said, the benefit of checking the sorting routines is clear: I'm not
>>> surprised you were able to catch numerous bugs with your tool.
>>>
>>> UBSan currently doesn't have interceptors, and all of its checks [1] are
>>> designed to work without runtime library support, so that it can be used as
>>> a mitigation
>>> tool (with -fsanitize-trap=undefined). It's challenging to add UBSan
>>> interceptors at this point: this would limit the tool...
2015 Apr 10
2
[LLVMdev] Intercepting dlinfo in memory sanitizer
...>
wrote:
> On Thu, Apr 9, 2015 at 9:24 PM, Keno Fischer
> <kfischer at college.harvard.edu> wrote:
> > Hi everyone,
> >
> > I ran into a false positive with memory sanitizer due to it not
> intercepting
> > dlinfo. I tried to get started on writing such an interceptor, but dlinfo
> > seems like an extraordinarily difficult function to intercept. The three
> > considerations that I would like somebody to look at are:
> >
> > 1) How do we get the enum values to decide what kind of pointer dlinfo is
> > getting. Ideally we'd includ...
2016 Jan 13
2
RFC: Extend UBSan with qsort checks
...>>>>>
>>>>> That said, the benefit of checking the sorting routines is clear: I'm
>>>>> not
>>>>> surprised you were able to catch numerous bugs with your tool.
>>>>>
>>>>> UBSan currently doesn't have interceptors, and all of its checks [1] are
>>>>> designed to work without runtime library support, so that it can be
>>>>> used as
>>>>> a mitigation
>>>>> tool (with -fsanitize-trap=undefined). It's challenging to add UBSan
>>>>>...
2019 Sep 12
3
Requesting clarification of some HWASAN behaviours.
...ation in GCC, and have just
started discussing my current work-in-progress on the gcc-patches
mailing list.
(https://gcc.gnu.org/ml/gcc-patches/2019-09/msg00387.html -- the email
that Kostya saw and added people to).
I've gotten about as basic a user-space implementation as possible
(using the interceptor ABI) up and running, and would appreciate it if I
could get some clarification on some other parts of hwasan and it's use
so I can look into those.
As you may guess by my current task I'm most interested in features that
require some compiler instrumentation.
Most of the questions I have...
2020 Nov 16
1
[patch] enhancement for tika server protected by user/password basic auth
...5696]: at org.apache.cxf.jaxrs.provider.BinaryDataProvider.writeTo(BinaryDataProvider.java:177)
Nov 15 15:59:41 test.loc tika[35696]: at org.apache.cxf.jaxrs.utils.JAXRSUtils.writeMessageBody(JAXRSUtils.java:1472)
Nov 15 15:59:41 test.loc tika[35696]: at org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.serializeMessage(JAXRSOutInterceptor.java:249)
Nov 15 15:59:41 test.loc tika[35696]: at org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.processResponse(JAXRSOutInterceptor.java:122)
Nov 15 15:59:41 test.loc tika[35696]: at org.apache.cxf.jaxrs.interceptor.JA...
2012 Jun 25
5
[LLVMdev] PATCH: AddressSanitizer: Fix errors about mis-matched exception specifiers for intercepted libc functions on Linux
...specifier to lots of libc functions as an optimization. It
only does this if the compiler is modern and GCC-like, and we are compiling
in C++ mode.
This, however, causes GCC to complain about signature mismatches between
the glibc functions declared in malloc.h and those defined as an alias in
the interceptors library:
..../asan_malloc_linux.cc:57:1: error: declaration of 'void free(void*)'
has a different exception specifier
/usr/include/malloc.h:66:13: error: from previous declaration 'void
free(void*) throw ()'
I've attached a complete hack of a patch to address this... but sur...
2007 Aug 10
2
jinfo, jboss and ExtendedDTraceProbes
...invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)...
2011 Nov 01
1
condition has length > 1 for LL denominator
...d intercept is the period in which that person was counted. I'm trying to
construct the denominator for a likelihood function using the following
function. For the first row in "results", for example, I want the
denominator to be the sum of all possible arrive/depart combinations an
interceptor in period 1 could observe: exp(P_1_1) + exp(P_1_2) + exp(P_1_3)
(i.e. P_arrive_depart).
get_denominator = function(intercept, periods_per_day)
{
denominator = array("(", nrow(results))
for (arrival in 1:periods_per_day)
{
for (departure in arrival:periods_per_day)
{
while (arr...