Wow, that's a serious alignment requirement in frame 3. It's a big change from frame 4.
On Friday, July 24, 2015 5:26 PM, Nick Kew <n...@apache.org> wrote: The stream-editor plugin was developed and tested against TS 5.2.x. Against trunk, it builds just fine, but I've only just tried to run it, and I'm getting a crash from a completely unexpected place: a malloc under TSContCreate. The dump is: Program received signal SIGSEGV, Segmentation fault. malloc_consolidate (av=0x7ffff5836e40) at malloc.c:5184 5184 malloc.c: No such file or directory. (gdb) bt #0 malloc_consolidate (av=0x7ffff5836e40) at malloc.c:5184 #1 0x00007ffff5528344 in _int_malloc (av=0x7ffff5836e40, bytes=12288) at malloc.c:4402 #2 0x00007ffff552aa70 in *__GI___libc_malloc (bytes=12288) at malloc.c:3660 #3 0x00007ffff552b2b9 in __posix_memalign (memptr=0x7fffffffca20, alignment=140737312419392, size=12288) at malloc.c:6344 #4 0x00007ffff7bbf1a2 in ats_memalign (alignment=16, size=12288) at ink_memory.cc:100 #5 0x00007ffff7bbf76b in ink_freelist_new (f=0x10b72b0) at ink_queue.cc:172 #6 0x000000000054096d in ClassAllocator<INKContInternal>::alloc ( this=0xae00c0) at ../lib/ts/Allocator.h:120 #7 0x0000000000532f32 in TSContCreate ( funcp=0x7ffff1ae70f9 <streamedit_setup(TSCont, TSEvent, void*)>, mutexp=0x0) at InkAPI.cc:4197 #8 0x00007ffff1ae76a5 in TSPluginInit (argc=0, argv=0x7fffffffdc38) at stream_editor.cc:867 #9 0x000000000054df3e in plugin_load (argc=2, argv=0x7fffffffdc30, validateOnly=false) at Plugin.cc:128 #10 0x000000000054e522 in plugin_init (validateOnly=false) at Plugin.cc:285 #11 0x00000000005463a7 in main (argv=0x7fffffffe698) at Main.cc:1691 (gdb) I suspected this might be an artifact of the build process, but I get the same result building stream_editor.so by hand. Any ideas? -- Nick Kew