flat assembler
Message board for the users of flat assembler.
Index
> Linux > [SOLVED] strange gtk2 (treeview) problem |
Author |
|
ProphetOfDoom 09 Jun 2012, 22:45
Hmm, when 64-bit Linux has crashed for me in the past, it's generally due to a misaligned stack. It's possible that somewhere deep within the treeview functions, some floating point instructions are used which expect the stack pointer to be a multiple of 16 bytes. If your functions are just labels, then they will start with a misaligned stack (due to the 8-byte return address). This would also explain why the gtk+ functions work in "main" but not elsewhere. You probably aligned the stack correctly at the beginning of "main" by pushing RBP. It's just a possibility though, obviously I may be completely wrong.
|
|||
09 Jun 2012, 22:45 |
|
eilenbeb 09 Jun 2012, 23:40
Good call, I hadn't thought of that.
Stack alignment was definitely the problem, thanks for the heads-up. |
|||
09 Jun 2012, 23:40 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.