Re: Use of chunksize before initialization

2015-03-23 Thread Ivan A. Kosarev
On 03/21/2015 11:31 PM, Konstantin Belousov wrote: On Sat, Mar 21, 2015 at 11:20:26AM +0200, Ivan A. Kosarev wrote: On 03/21/2015 03:02 AM, Konstantin Belousov wrote: On Fri, Mar 20, 2015 at 03:59:52PM +0200, Ivan A. Kosarev wrote: #12 0x0008011b428d in malloc_init_hard

Re: Use of chunksize before initialization

2015-03-21 Thread Ivan A. Kosarev
On 03/21/2015 03:02 AM, Konstantin Belousov wrote: On Fri, Mar 20, 2015 at 03:59:52PM +0200, Ivan A. Kosarev wrote: #12 0x0008011b428d in malloc_init_hard () at jemalloc_jemalloc.c:698 #13 malloc_init () at jemalloc_jemalloc.c:296 #14 0x000801243ea2 in ?? () from /lib/libc.so.7 #15

Use of chunksize before initialization

2015-03-20 Thread Ivan A. Kosarev
Hello everybody, The malloc_init_hard() function defined in jemalloc_jemalloc.c, FreeBSD 11 r277486 reads: static bool malloc_init_hard(void) { ... if (base_boot()) { malloc_mutex_unlock(init_lock); eturn (true); } if (chunk_boot()) {

Re: libthr and main thread stack size

2014-08-14 Thread Ivan A. Kosarev
On 08/13/2014 01:40 AM, Dimitry Andric wrote: On 08 Aug 2014, at 13:22, Konstantin Belousov kostik...@gmail.com wrote: On Fri, Aug 08, 2014 at 12:32:56PM +0400, Ivan A. Kosarev wrote: On 08/08/2014 09:28 AM, Konstantin Belousov wrote: On Thu, Aug 07, 2014 at 04:18:12PM +0400, Ivan A. Kosarev

Re: libthr and main thread stack size

2014-08-08 Thread Ivan A. Kosarev
On 08/08/2014 09:28 AM, Konstantin Belousov wrote: On Thu, Aug 07, 2014 at 04:18:12PM +0400, Ivan A. Kosarev wrote: Hello, According to libthr's thr_init.c (the 9.2 version) init_main_thread() allocates s.c. red zone below the main stack in order to protect other stacks. The size of the main

libthr and main thread stack size

2014-08-07 Thread Ivan A. Kosarev
Hello, According to libthr's thr_init.c (the 9.2 version) init_main_thread() allocates s.c. red zone below the main stack in order to protect other stacks. The size of the main stack is determined by the _thr_stack_initial variable that is declared extern though it doesn't seem it can be

Demangling issues with libcxxrt.so.1 on v9.2

2014-07-15 Thread Ivan A. Kosarev
Hello everybody, It seems there are problems with demandling some kinds of names with libcxxrt.so.1 on FreeBSD 9.2 (I didn't test other versions yet). This program: --- #include stdio.h #include stdlib.h extern C char* __cxa_demangle(const char* mangled_name, char* buf,

Intercepting calls in PIC mode

2014-07-04 Thread Ivan A. Kosarev
Hello, Consider the following: --- #include stdio.h #include string.h extern C void* memset(void *block, int c, size_t size) __attribute__((weak, alias(__int_memset), visibility(default))); extern C __attribute__((visibility(default))) void* __int_memset(void *block, int c, size_t size) {