Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flisp segfaults on 32 bits when MEMDEBUG2 is defined #10942

Closed
garrison opened this issue Apr 22, 2015 · 1 comment
Closed

flisp segfaults on 32 bits when MEMDEBUG2 is defined #10942

garrison opened this issue Apr 22, 2015 · 1 comment
Labels
system:32-bit Affects only 32-bit systems

Comments

@garrison
Copy link
Sponsor Member

When MEMDEBUG2 is defined, flisp segfaults for me when compiled for 32 bits.

My Make.user:

ARCH = i686
CFLAGS = -DMEMDEBUG -DMEMDEBUG2

I am running 64-bit (multiarch) Debian jessie. The 32-bit build works fine unless I provide MEMDEBUG2 as a #define.

Here is a log of the build and valgrind's output.

@JeffBezanson
Copy link
Sponsor Member

My guess is that this is because flisp requires 8-aligned addresses. This is no problem either (1) with flisp's normal allocator, or (2) on a 64-bit system. With MEMDEBUG2 I use malloc for everything, and it's probably not always 8-aligned on 32-bit. There should be more assertions for this.

mbauman pushed a commit to mbauman/julia that referenced this issue Jun 6, 2015
@tkelman tkelman added the system:32-bit Affects only 32-bit systems label Oct 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
system:32-bit Affects only 32-bit systems
Projects
None yet
Development

No branches or pull requests

3 participants