| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit 73677875b46251f59b66c9713f1decc89bd2ea3e)
The last 7 patches address bug #8384 (Windows XP clients seem to crash smbd
process every once in a while).
|
|
|
|
|
|
|
|
| |
this tests the fix from Simo
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri Jul 29 11:30:13 CEST 2011 on sn-devel-104
(cherry picked from commit d004fd0b53fb6f3ae64f0e24cf51f4471d434574)
|
|
|
|
|
|
| |
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Apr 24 03:27:54 CEST 2011 on sn-devel-104
(cherry picked from commit fb05e82c99f0779bd44371a2bdafdd7147448dd5)
|
|
|
|
|
|
|
| |
Express better that this should be a pointer of a pointer.
Reviewed-by: Tridge
(cherry picked from commit 6723e90d524c8e73f19c06b3ff28867a1a89b14b)
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Fix some typos
- Document better the differences in the behaviour between talloc 1.X and 2.X.
Previously this seemed a bit spongy to me.
Reviewed-by: Jelmer + Tridge
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Mon Apr 4 11:05:42 CEST 2011 on sn-devel-104
(cherry picked from commit 513574afd759bcb3832374d3ae170f1ed0b0062b)
|
|
|
|
|
|
|
|
| |
Otherwise tc->name will end up pointing to garbage when it is not
set to a const but rather to a string allocate as child of the context itself.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
(cherry picked from commit 52182a528117c4dd9624f64b34a873c0903ad70a)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This ensures that the sibling list of a pointer doesn't become invalid
during a free operation. It is an alternative fix to the fix in
6f51a1f45bf4de062cce7a562477e8140630a53d, and avoids the problem of
trying to calculate the parent pointer early
This should fix the subtle spoolss talloc bug that Simo found
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Aug 9 01:53:17 CEST 2011 on sn-devel-104
(cherry picked from commit cf986f200804ce873b43c1ecf2d5e1bd08eb8a25)
|
|
|
|
|
|
| |
header comments."
This reverts commit 6df3ff20620b3262ff232a478312c61a207ed4ff.
|
|
|
|
|
|
| |
comments.
Add missing GPL headers and (C) statements.
|
|
|
|
|
|
|
|
|
|
|
| |
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue May 17 10:49:13 CEST 2011 on sn-devel-104
(cherry picked from commit df2cb2f672569e5d113fe2e77fdc1ee16c8b646d)
The last 9 patches address bug #8140 (talloc: valgrind false positives and other
backports).
|
|
|
|
|
|
|
| |
This is similar to commit 6f51a1f45bf4de062cce7a562477e8140630a53d.
metze
(cherry picked from commit 38633c9f0b7f86673f08903999583ad5b62c3548)
|
|
|
|
|
| |
metze
(cherry picked from commit f3b855d2ff9576715afe50d75678829c6bc0842d)
|
|
|
|
|
|
|
|
| |
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue May 17 09:43:01 CEST 2011 on sn-devel-104
(cherry picked from commit 37b2130ed9612a7334888ecd2fee26b0b45ac271)
|
|
|
|
|
|
|
| |
This way we the pool based valgrind code.
metze
(cherry picked from commit 16cc52cf70a9918843f9761baf483338c80bf1d0)
|
|
|
|
|
| |
metze
(cherry picked from commit c281f2fc1a359d0d3b91b94438f11bb7c88170b5)
|
|
|
|
|
|
|
|
| |
*talloc_pool_objectcount(pool_tc) == 2 doesn't mean the one of the objects
is the pool itself! So we better check for == 1 and calculate the chunk count.
metze
(cherry picked from commit 7102105c8954627dc30a851327cf2642ac0783d5)
|
|
|
|
|
|
|
| |
This should follow the same logic...
metze
(cherry picked from commit 14b662ee4f278764b9dfd620851e908d29f29fc4)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The optimization of the object_count == 1 case should only happen
for when we're not destroying the pool itself. And it should only
happen if the pool itself is still valid.
If the pool isn't valid (it has TALLOC_FLAG_FREE),
object_count == 1 does not mean that the pool is the last object,
which can happen if you use talloc_steal/move() on memory
from the pool and then free the pool itself.
Thanks to Volker for noticing this!
metze
(cherry picked from commit 2d514be1ed3b8245157a0a51186ec7f9db828202)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
TC_INVALIDATE_SHRINK_CHUNK() for realloc path
If we optimize on top of raw realloc() we need
TC_INVALIDATE_SHRINK_CHUNK together with TC_UNDEFINE_GROW_CHUNK
(with was missing and caused false positive valgrind warnings).
But that is really slow, as we do a lot of talloc_realloc calls in samba.
That's why we only to TC_UNDEFINE_SHRINK_CHUNK() for now.
metze
(cherry picked from commit f0f5ac18e55062dcde28003cebc09fa3eb6ae6a5)
|
|
|
|
|
|
|
|
| |
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Apr 13 14:33:23 CEST 2011 on sn-devel-104
(cherry picked from commit 94a97bf64cadf39b488158cc379aa0eeb10dbd88)
|
|
|
|
|
|
|
|
|
|
| |
metze
Signed-off-By: Andrew Tridgell <tridge@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Apr 8 10:15:41 CEST 2011 on sn-devel-104
(cherry picked from commit eb0e276f3a3b57405cd8cd36c74021350aba9a98)
|
|
|
|
|
|
|
| |
metze
Signed-off-By: Andrew Tridgell <tridge@samba.org>
(cherry picked from commit f9fdef870e4c49d9e6c23ba085ba6dbd34ec5469)
|
|
|
|
|
|
|
| |
metze
Signed-off-By: Andrew Tridgell <tridge@samba.org>
(cherry picked from commit 2146ffd764499d67e3f0576a2e78a1575cd52d9c)
|
|
|
|
|
|
|
| |
metze
Signed-off-By: Andrew Tridgell <tridge@samba.org>
(cherry picked from commit 73cc85ac903387f2c7f8ef2d948b40b57887cf17)
|
|
|
|
|
|
|
| |
metze
Signed-off-By: Andrew Tridgell <tridge@samba.org>
(cherry picked from commit 9c9f208598d34d700bfc2ed7302b206e863a4c9b)
|
|
|
|
|
|
|
|
|
| |
This invalidates the unused bytes if we shrink memory.
metze
Signed-off-By: Andrew Tridgell <tridge@samba.org>
(cherry picked from commit 6126c3506d493cd4836a7539586b74faea8ca0b3)
|
|
|
|
|
|
|
|
|
|
| |
This makes it easier to mark a talloc pointer as
invalid.
metze
Signed-off-By: Andrew Tridgell <tridge@samba.org>
(cherry picked from commit 4895f55f0604a1851d45c24a8a584a10170d5917)
|
|
|
|
|
|
|
| |
metze
Signed-off-By: Andrew Tridgell <tridge@samba.org>
(cherry picked from commit efbb35824e3845c3cdefea328dd1bf67d0f9087d)
|
|
|
|
|
|
|
| |
metze
Signed-off-By: Andrew Tridgell <tridge@samba.org>
(cherry picked from commit 1e70439f770181ca16a0749c2164d0237d3bfd0a)
|
|
|
|
|
|
|
| |
metze
Signed-off-By: Andrew Tridgell <tridge@samba.org>
(cherry picked from commit 73330f8436707b5ab46c0720ea735908948f5d27)
|
|
|
|
|
|
|
| |
metze
Signed-off-By: Andrew Tridgell <tridge@samba.org>
(cherry picked from commit 13fab67995a0b836b92847536768703dac391b57)
|
|
|
|
|
|
|
| |
metze
Signed-off-By: Andrew Tridgell <tridge@samba.org>
(cherry picked from commit 4084cb723c4e14898a411fbd1cf8fa878ff290ff)
|
|
|
|
|
|
|
|
|
| |
As this includes the padding to 16 bytes.
metze
Signed-off-By: Andrew Tridgell <tridge@samba.org>
(cherry picked from commit d39940113a24078bd563b0cfce4225648c632544)
|
|
|
|
|
| |
for talloc/tevent/tdb, only install headers if we are doing a
standalone build
|
|
|
|
| |
this allows them to be included in the test_headers.h generated header
|
|
|
|
|
|
|
| |
for the builds that use waf only, these are no longer needed and just
cause confusion
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
|
|
|
|
|
|
|
| |
this uses a temporary waf lock file to force the build directory
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Sat Jan 8 02:35:22 CET 2011 on sn-devel-104
|
|
|
|
| |
metze
|
|
|
|
|
|
|
|
|
|
|
| |
this is the minimal fix for the problem Rusty found. I previously
thought that the best fix would be to change tc->parent to be valid
for all pointers, but that is expensive for realloc with large numbers
of child pointers, which is much more commmon than I expected it to
be.
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Jan 5 07:22:27 CET 2011 on sn-devel-104
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This should not change any behaviour - the intent is just to reduce
the "nuisance" warnings.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Jan 3 11:12:39 CET 2011 on sn-devel-104
|
| |
|
| |
|
|
|
|
|
| |
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Jan 1 03:39:58 CET 2011 on sn-devel-104
|
| |
|
| |
|
| |
|
| |
|