search for: malloc_check_

Displaying 19 results from an estimated 19 matches for "malloc_check_".

2012 Apr 18
3
[PATCH 3/3] export MALLOC_PERTURB_ and MALLOC_CHECK_ in test suite
...8a..9b1fa0f 100755 --- a/test/test_bins.sh +++ b/test/test_bins.sh @@ -37,6 +37,8 @@ LD_LIBRARY_PATH=../src/share/replaygain_synthesis/.libs:$LD_LIBRARY_PATH LD_LIBRARY_PATH=../src/share/utf8/.libs:$LD_LIBRARY_PATH LD_LIBRARY_PATH=../obj/$BUILD/lib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH +export MALLOC_CHECK_=3 +export MALLOC_PERTURB_==$(($RANDOM % 255 + 1)) PATH=../src/flac:$PATH PATH=../obj/$BUILD/bin:$PATH BINS_PATH=../../test_files/bins diff --git a/test/test_flac.sh b/test/test_flac.sh index 0aa7e61..7e4a8fd 100755 --- a/test/test_flac.sh +++ b/test/test_flac.sh @@ -51,6 +51,8 @@ LD_LIBRARY_PATH...
2012 Apr 18
1
[PATCH 3/3] export MALLOC_PERTURB_ and MALLOC_CHECK_ in test suite
.../test/test_bins.sh >> @@ -37,6 +37,8 @@ LD_LIBRARY_PATH=../src/share/replaygain_synthesis/.libs:$LD_LIBRARY_PATH >> LD_LIBRARY_PATH=../src/share/utf8/.libs:$LD_LIBRARY_PATH >> LD_LIBRARY_PATH=../obj/$BUILD/lib:$LD_LIBRARY_PATH >> export LD_LIBRARY_PATH >> +export MALLOC_CHECK_=3 >> +export MALLOC_PERTURB_==$(($RANDOM % 255 + 1)) > > This has problems. > > This fails in bash, sh and dash. Eg bash: > > $ echo $(($RANDON % 256)) > bash: % 256: syntax error: operand expected (error token is "% 256") > > I do howver like th...
1998 May 26
0
Re: Beware of dangerous enviroment (Re: Overflows in minicom)
...THRESHOLD_"))) + if((s = __libc_secure_getenv("MALLOC_MMAP_THRESHOLD_"))) mALLOPt(M_MMAP_THRESHOLD, atoi(s)); - if((s = getenv("MALLOC_MMAP_MAX_"))) + if((s = __libc_secure_getenv("MALLOC_MMAP_MAX_"))) mALLOPt(M_MMAP_MAX, atoi(s)); - s = getenv("MALLOC_CHECK_"); + s = __libc_secure_getenv("MALLOC_CHECK_"); if(s) { if(s[0]) mALLOPt(M_CHECK_ACTION, (int)(s[0] - ''0'')); __malloc_check_init(); --- libc-5.4.44/libc/locale/findlocale.c.secenv Sat Oct 5 00:53:01 1996 +++ libc-5.4.44/libc/locale/findlocale.c Sat Ma...
2004 Feb 02
3
instability
Hi I'm getting some instability on my samba 3.0.1 installation. Here's the backtrace I found in my log: Feb 2 19:10:41 grisen smbd[26068]: [2004/02/02 19:10:41, 0] smbd/service.c:make_connection(857) Feb 2 19:10:41 grisen smbd[26068]: audata1 (192.168.1.121) couldn't find service utskrifter Feb 2 19:10:41 grisen smbd[26068]: [2004/02/02 19:10:41, 0]
2000 Feb 09
0
[Colin Watson <cjw44@cam.ac.uk>] Bug#49902: [PATCH] Bug#49902: ssh and pam conspire to deny logins
....uk's password: [fx: types in correct password] Last login: Sat Jan 29 09:14:17 2000 from quicksilver.trin.cam.ac.uk [...] Running sshd in debugging mode reveals that it segfaults after receiving my password, but only if it had previously attempted to authenticate me based on an identity file. MALLOC_CHECK_ was my friend! A patch (whose purpose should be obvious) follows: --- sshd.c.orig Sat Jan 29 11:00:50 2000 +++ sshd.c Sat Jan 29 11:01:29 2000 @@ -1414,8 +1414,10 @@ return; } - if (client_user != NULL) + if (client_user !=...
2004 Feb 02
2
PANIC: internal error..
Well got a problem i gues... i got even more error's in my log files.. some about schannel processing error, or no route to host or get peer name... still everything looks to be working fine.. (got no complaints from the users) but these internal error's i get a fewtimes aday.. dunno, do i need to make a bugreport for it ? or do you need some extra debug info.. l8r Collen
2020 Mar 12
0
[PATCH libnbd 2/3] build: Allow C programs using libnbd to be compiled against build dir.
...d most non-C bindings. +# +# You can also compile other programs against this uninstalled libnbd +# tree if those programs are using pkgconf/pkg-config: +# +# ../libnbd/run ./configure +# make #---------------------------------------------------------------------- @@ -78,6 +84,10 @@ export MALLOC_CHECK_=1 random_val="$(@AWK@ 'BEGIN{srand(); print 1+int(255*rand())}' < /dev/null)" export MALLOC_PERTURB_=$random_val +# Allow dependent packages to be compiled against local libnbd. +prepend PKG_CONFIG_PATH "$b/lib/local" +export PKG_CONFIG_PATH + # Do we have libtoo...
2019 Apr 10
0
ANNOUNCE: nbdkit 1.12 - an NBD server toolkit with stable plugin API and permissive license
...MBR logical partitions. Previously it only supported 4 MBR primary partitions and if you wanted more than that you had to use GPT. The ‘partition’ filter also supports MBR logical partitions. The ‘python’ plugin creates plugins which are compatible with Python >= 3.7. Tests are now run under MALLOC_CHECK_=1 and MALLOC_PERTURB_=<random>. This causes some tests to crash (silently) because of a shutdown race which needs to be fixed. Test shell scripts now have a generic ‘requires’ function to skip tests if features are not present. C99 type ‘bool’ is now used in most places where appropriate....
2004 Jan 27
1
Lots of errors
My log files are getting quite big because of all the errors I get in a day. Here is a snipet: Jan 27 10:03:06 localhost smbd[17694]: [2004/01/27 10:03:06, 0] lib/util_sock.c:get_socket_addr(919) Jan 27 10:03:06 localhost smbd[17694]: getpeername failed. Error was Transport endpoint is not connected Jan 27 10:03:06 localhost smbd[17694]: [2004/01/27 10:03:06, 0]
2007 Aug 22
4
DO NOT REPLY [Bug 4912] New: rsync crashes with a double free or corrupted memory detection in glibc
...2.6.9 on Fedora Core 6, 32-bit x86 architecture, I get frequent aborts due to a free() error detected by glibc. Error message is appended. The error is reproducible if I run with the exact same set of arguments, but if the file list to be transferred changes, it may work correctly. Running with $MALLOC_CHECK_=1 works around the problem. As far as I can tell, the errors come from the receiving rsync, not the sending one. Richard Brittain *** glibc detected *** rsync: double free or corruption (fasttop): 0x08b30d68 *** ======= Backtrace: ========= /lib/libc.so.6[0xa6fa96] /lib/libc.so.6(cfree+0x90)[0x...
2019 Mar 18
2
[PATCH nbdkit] wrapper: Set MALLOC_CHECK=1 and MALLOC_PERTURB_ (randomly).
...nd (); + /* This is a cheap way to find some use-after-free and uninitialized + * read problems when using glibc, and doesn't affect normal + * operation or other libc. We don't overwrite existing values so + * this can be disabled or overridden at runtime. + */ + setenv ("MALLOC_CHECK_", "1", 0); + time (&t); + tu = t; + tu %= 255; + tu++; + snprintf (ts, sizeof ts, "%u", tu); + setenv ("MALLOC_PERTURB_", ts, 0); + /* Run the final command. */ execvp (cmd[0], (char **) cmd); perror (cmd[0]); -- 2.20.1
2010 Dec 23
2
upsd crashes with a "broken pipe" error
In /var/log/syslog Dec 23 13:04:50 ************** upsmon[2010]: Poll UPS [rack1ups at localhost] failed - Write error: Broken pipe After this, there is no longer a upsd daemon running. Error messages follow: Dec 23 13:04:50 ************** upsmon[2010]: Communications with UPS rack1ups at localhost lost ... Dec 23 13:04:55 ************** upsmon[2010]: UPS [rack1ups at localhost]: connect
2010 Dec 16
13
[Bug 32453] New: SIGABRT caused by malloc around RegionCreate. Can only reproduce with nouveau not vesa.
...0x00000000004428f1 in Dispatch () at dispatch.c:432 #12 0x0000000000425b5e in main (argc=9, argv=<value optimized out>, envp=<value optimized out>) at main.c:291 If I use the vesa driver the system comes up fine. Reproducing by launching emacs inside of a gnome session. If I use MALLOC_CHECK_=3 /etc/init.d/xdm restart I can sometimes get Xorg w/ nouveau to work for a few days before crashing. But, that isn't a real solution. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the b...
2020 Mar 12
5
[PATCH libnbd 1/3] tests: Don't use <config.h> in simple compile tests.
For these simple compile tests where we want to ensure that a basic external program could be compiled using libnbd, we shouldn't include <config.h>. This is because we want to test here that <libnbd.h> can stand alone, without needing anything defined by the GNU autotools infrastructure. Of course we can use <config.h> in other test programs where we aren't evaluating
2020 Mar 17
0
[PATCH libnbd] Add outline framework for Go language bindings (golang).
...t CGO_CFLAGS +if [ -z "$CGO_LDFLAGS" ]; then + CGO_LDFLAGS="-L$b/lib/.libs" +else + CGO_LDFLAGS="$CGO_LDFLAGS -L$b/lib/.libs" +fi +export CGO_LDFLAGS + # This is a cheap way to find some use-after-free and uninitialized # read problems when using glibc. export MALLOC_CHECK_=1 -- 2.25.0
2020 Mar 17
0
[PATCH libnbd v2 2/3] Add outline framework for Go language bindings (golang).
...t CGO_CFLAGS +if [ -z "$CGO_LDFLAGS" ]; then + CGO_LDFLAGS="-L$b/lib/.libs" +else + CGO_LDFLAGS="$CGO_LDFLAGS -L$b/lib/.libs" +fi +export CGO_LDFLAGS + # This is a cheap way to find some use-after-free and uninitialized # read problems when using glibc. export MALLOC_CHECK_=1 -- 2.25.0
2020 Mar 17
5
[PATCH libnbd v2 0/3] Unfinished golang bindings.
These bindings get as far as running very simple connections. However there are many missing parts still: * No callbacks. * No functions which handle buffers (pread/pwrite!) This is posted just for general early interest, not even for review. Rich.
2020 Mar 24
1
[PATCH libnbd v3] Add Go language bindings (golang) (RHBZ#1814538).
This feature is roughly finished now, although it needs a few more tests and some examples. It's pretty much up to par with all the other bindings, but it lacks a completely safe AIO buffer. It won't stop you from freeing the buffer too early) because golang's GC inexplicably lacks a way to declare a root from C. I can probably do it with a global variable and ref counting on the
2020 Mar 25
3
[PATCH libnbd v4] Add Go language bindings (golang) (RHBZ#1814538).
Now runs a complete set of tests, notably including the AIO test. File descriptors are passed in and out as plain ints (instead of *os.File) for a couple of reasons: (1) We have to pass the plain int to syscall.Select. (2) Turning an fd into an os.File causes golang to set the blocking flag which is deeply unhelpful. Rich.