Commit Graph

59 Commits (5cf26dcdacd3153eebad1d41e2cdba2ff7638fbb)

Author SHA1 Message Date
Michiel van Baak 8edfe07e6d make asterisk compile under devmode with DEBUG_THREADS enabled on OpenBSD
17 years ago
Tilghman Lesher 63cc189747 AST-2009-005
17 years ago
Russell Bryant 6efa254bea Fix cases where the internal poll() was not being used when it needed to be.
18 years ago
Doug Bailey a591301b89 Merged revisions 177035 manually from
18 years ago
Doug Bailey bf0b8526b1 Need to take into account the \0 terminator of the old string to determine the amount available.
18 years ago
Kevin P. Fleming 4d808232cf correct a logic error in the last stringfields commit... don't mark additional space as allocated if the string was built using already-allocated space
18 years ago
Kevin P. Fleming 1b5b3efcae fix a flaw in the ast_string_field_build() family of API calls; these functions made no attempt to reuse the space already allocated to a field, so every time the field was written it would allocate new space, leading to what appeared to be a memory leak.
18 years ago
Russell Bryant 8b68bd17e5 Fix up timeout handling in ast_carefulwrite().
18 years ago
Russell Bryant 991494f2c0 Make ast_carefulwrite() be more careful.
18 years ago
Russell Bryant 63444acf6b Fix an issue where DEBUG_THREADS may erroneously report that a thread
18 years ago
Russell Bryant c2446000d9 Remove the test_for_thread_safety() function completely.
18 years ago
Kevin P. Fleming 18df35a2c1 somehow missed a bunch of gcc 4.3.x warnings in this branch on the first pass
18 years ago
Kevin P. Fleming 888d269e8f revert an optimization that broke ABI... thanks russell!
18 years ago
Kevin P. Fleming f6d7c63346 minor optimization for stringfields: when a field is being set to a larger value than it currently contains and it happens to be the most recent field allocated from the currentl pool, it is possible to 'grow' it without having to waste the space it is currently using (or potentially even allocate a new pool)
18 years ago
Tilghman Lesher db4ae54745 In this debugging function, copy to a buffer instead of using potentially unsafe pointers.
18 years ago
Jason Parker a9d6021211 Make sure to unlock the lock_info lock (huh?). Possible deadlock?
18 years ago
Brett Bryant f35ccc37be Merge revision 124064 from trunk. Add errors that report any locks held by threads when they are being closed.
18 years ago
Tilghman Lesher 65808210e9 Add some debugging code that ensures that when we do deadlock avoidance, we
18 years ago
Russell Bryant a3d59980ea Don't declare a function that takes variable arguments as inline, because it's
18 years ago
Mark Michelson f1696e2133 If a thread holds no locks, do not print any information on the thread when issuing
18 years ago
Tilghman Lesher dceb0835da '#' is another reserved character for URIs that also needs to be escaped.
18 years ago
Mark Michelson 1a9b7dc5c5 Fix 1.4 build when LOW_MEMORY is enabled.
18 years ago
Russell Bryant 1dae97f2aa Tweak spacing in a recent change because I'm very picky.
19 years ago
Mark Michelson 29a32cf040 Fix a logic flaw in the code that stores lock info which is displayed
19 years ago
Russell Bryant 12e5fb358a Fix a bug in the lock tracking code that was discovered by mmichelson. The issue
19 years ago
Russell Bryant ac15754e9a Improve the lock tracking code a bit so that a bunch of old locks that threads
19 years ago
Tilghman Lesher 3acbb032f8 Increase constants to where we're less likely to hit them while debugging.
19 years ago
Joshua Colp 0a584613d6 Do not try to access information about a lock when printing out a trylock attempt. It is possible for the lock that it references to no longer be valid. This would have caused segfaults or deadlocks.
19 years ago
Russell Bryant b5463cd8d3 Make the lock protecting each thread's list of locks it currently holds
19 years ago
Russell Bryant 82257a7e33 When DEBUG_THREADS is enabled, we only have the details about who is holding
19 years ago
Tilghman Lesher feed493993 Debugging is running into the 16-lock limit. Increase to avoid.
19 years ago
Russell Bryant b2382349dc Add some more details to the output of "core show locks". When a thread
19 years ago
Joshua Colp 7fc2c32a92 Fix issue with ast_unescape_semicolon going into an endless loop.
19 years ago
Russell Bryant 9fcc010cce Revert a change that I made for issue #10979 which, as has been pointed out to
19 years ago
Russell Bryant 02bb2bcbaa Be pedantic about handling memory allocation failure.
19 years ago
Russell Bryant 9c47228dff The loop in the handler for the "core show locks" could potentially block for
19 years ago
Russell Bryant 9b382ca76f Make sure that the base64 decoder returns a terminated string.
19 years ago
Mark Michelson 30b6db4bcf The thread ID should be unsigned.
19 years ago
Tilghman Lesher 96d11d3e02 This commit fixes the following issues:
19 years ago
Russell Bryant 5fdc354155 Fulfull a feature request from Qwell on the "core show locks" output. It will
19 years ago
Jason Parker f1cb3f70b7 Don't send a semicolon over the wire in sip notify messages.
19 years ago
Russell Bryant 2f41cceb1f Add some improvements to lock debugging. These changes take effect
19 years ago
Joshua Colp 8e5dfb3cf9 Whoops, I meant R_5 not R5.
19 years ago
Joshua Colp bc7150c380 Extend autoconf logic to determine which version of gethostbyname_r is on the system.
19 years ago
Luigi Rizzo f870ccffff Use !defined(HAVE_GETHOSTBYNAME_R) to check for absence
19 years ago
Tilghman Lesher 0baf4aa941 Merged revisions 51194 via svnmerge from
20 years ago
Kevin P. Fleming 46d91e71c5 add support for tracking thread-local-storage objects that exist via 'threadstorage' CLI commands
20 years ago
Steve Murphy 517978fd5f These mods are to solve the problem in bug 7506. It's a lot of rework to solve a fairly small problem... such is life.
20 years ago
Russell Bryant e998b2b609 Merged revisions 46560 via svnmerge from
20 years ago
Kevin P. Fleming ce4b0afb73 apparently developers are still not aware that they should be use ast_copy_string instead of strncpy... fix up many more users, and fix some bugs in the process
20 years ago