Eventual SEGFAULT, EXC_BAD_ACCESS

9 views
Skip to first unread message

Sean

unread,
Oct 17, 2013, 11:46:09 AM10/17/13
to asmji...@googlegroups.com
Forgive me if this is a duplicate post, I tried earlier I think it may not have worked.  I have written some code that needs to repeatedly generate rather complex assembly structures over a long period of time.  I've written test code and each piece works for a single iteration, but as the program runs, I will eventually get a segfault in the AsmJit beta4 lib:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x000000000000000d
0x0000000107b365d9 in AsmJit::ECall::translate (this=0x7f9c99064d68, cc=@0x7fff58576e38) at /Users/sean/libs/asmjit/AsmJit/CompilerX86X64.cpp:3604
3604            if (rdst->inDone >= rdst->inCount && (rdst->flags & VarCallRecord::FLAG_CALL_OPERAND_REG) == 0)
(gdb) bt
#0  0x0000000107b365d9 in AsmJit::ECall::translate (this=0x7f9c99064d68, cc=@0x7fff58576e38) at /Users/sean/libs/asmjit/AsmJit/CompilerX86X64.cpp:3604
#1  0x0000000107b40c15 in AsmJit::CompilerCore::serialize (this=0x7fff58577238, a=@0x7fff585770d0) at /Users/sean/libs/asmjit/AsmJit/CompilerX86X64.cpp:7729
#2  0x0000000107b40826 in AsmJit::CompilerCore::make (this=0x7fff58577238) at /Users/sean/libs/asmjit/AsmJit/CompilerX86X64.cpp:7615

I've tried everything I can think of, and I'm pretty sure this isn't a logical flaw in my code.  Is there some kind of allocation failure occurring within AsmJit and is there anything that can be done about it?

Sean

unread,
Oct 17, 2013, 11:48:20 AM10/17/13
to asmji...@googlegroups.com
Ok this is duplicate, ignore please!  The other post did finally show up.
Reply all
Reply to author
Forward
0 new messages