search for: valgrind_make_readable

Displaying 4 results from an estimated 4 matches for "valgrind_make_readable".

2010 Jan 13
0
BUG for speex-1.2rc1
...g directory `/tmp/speex-1.2rc1/libspeex' /bin/sh ../libtool --mode=link gcc -g -O2 -fvisibility=hidden -O3 -msse -o testenc testenc.o libspeex.la -lm gcc -g -O2 -fvisibility=hidden -O3 -msse -o .libs/testenc testenc.o ./.libs/libspeex.so -lm ./.libs/libspeex.so: undefined reference to `VALGRIND_MAKE_READABLE' collect2: ld returned 1 exit status make[2]: *** [testenc] Error 1 make[2]: Leaving directory `/tmp/speex-1.2rc1/libspeex' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/speex-1.2rc1' make: *** [all] Error 2 ======================================================...
2006 Nov 20
0
valgrind and libusb calls
...valid (the bytes themselves, not the address). I see at least two solutions to this: 1) Clear all buffers to zero before calling libusb functions that write to a buffer (usb_get_interrupt, usb_get_string*, usb_control_msg, etc.) 2) Mark the valid portions of the buffer after the libusb call with VALGRIND_MAKE_READABLE. The big advantage of the first method is that it keeps the code looking clean, and means we don't have to do any conditional inclusion of valgrind's memcheck.h or anything. The main drawback is that it doesn't catch cases where we get a short read, and code reads past the end of the v...
2017 Feb 20
0
compiling with --enable-valgrind
...: gcc -fPIC -I/opt/valgrind/include -fvisibility=hidden -O3 -msse -Wall -o .libs/testenc_wb testenc_wb.o -L/opt/valgrind/lib -L/opt/valgrind/lib/valgrind ./.libs/libspeex.so -lm -Wl,-rpath -Wl,/opt/speex/lib ./../libs./libslibspeex.so/:libspeex.so :undefined undefinedreference referenceto to` `VALGRIND_MAKE_READABLEVALGRIND_MAKE_READABLE'' ./.libs/libspeex.so: undefined reference to `VALGRIND_MAKE_READABLE' collect2: error: ld returned 1 exit status Makefile:498: recipe for target 'testenc' failed make[2]: *** [testenc] Error 1 make[2]: *** Waiting for unfinished jobs.... collect2: error:...
2005 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
...gt;vbr); st->vbr_quality = 8; st->vbr_enabled = 0; st->vad_enabled = 0; st->dtx_enabled = 0; st->abr_enabled = 0; st->abr_drift = 0; st->plc_tuning = 2; st->complexity=2; st->sampling_rate=8000; st->dtx_count=0; #ifdef ENABLE_VALGRIND VALGRIND_MAKE_READABLE(st, (st->stack-(char*)st)); #endif return st; } void nb_encoder_destroy(void *state) { EncState *st=(EncState *)state; /* Free all allocated memory */ vbr_destroy(st->vbr); /*Free state memory... should be last*/ speex_free(st); } int nb_encode(void *state, void *vin, Sp...