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

MEMPROFILE is broken #12840

Closed
MaheshWaidande opened this issue Aug 28, 2015 · 2 comments · Fixed by #37246
Closed

MEMPROFILE is broken #12840

MaheshWaidande opened this issue Aug 28, 2015 · 2 comments · Fixed by #37246
Labels
GC Garbage collector

Comments

@MaheshWaidande
Copy link

MaheshWaidande commented Aug 28, 2015

Hi All,

I am working on building/porting Julia on ppc64le architecture. I am using Ubuntu 14.10 on top of ppc64le hardware, while compiling Julia code (master branch) I was getting segmentation fault, I am able to resolve this segmentation fault by turning on MEMDEBUG flag from src/options.h file.

I decided to work more this issue and try to find out root cause of segmentation fault, so I started studying/understanding memory management scheme of Julia.

To understanding GC and de-allocation mechanism I turn on profiling options MEMPROFILE, GC_TIME from options.h file (by default they are commented out I uncomment those) but when I try to compile code with these profiling flags on julia compilation (make debug) gets failed.

Below compilation errors I observed after enabling,

  1. GC_TIME flag

    gc.c:237:26: error: current_heap undeclared (first use in this function)
     #define HEAP(x) (*((void)current_heap,&(x)))
    
  2. MEMPROFILE flag

    gc.c:2414:21: error: pool_t has no member named pages
    

My Machine details are:
Linux 3.16.0-30-generic #40-Ubuntu SMP ppc64le ppc64le ppc64le GNU/Linux

-Mahesh

@pao pao added the system:powerpc PowerPC label Aug 28, 2015
@carnaval
Copy link
Contributor

MEMPROFILE has been broken for some time IIRC. Feel free to make it work again once you've figured out the allocator :-)
The output always was a bit unreadable anyway.

@carnaval carnaval changed the title Compilation errors observed after enabling profiling options MEMPROFILE is broken Aug 29, 2015
@carnaval carnaval added GC Garbage collector and removed system:powerpc PowerPC labels Aug 29, 2015
@pao
Copy link
Member

pao commented Aug 31, 2015

Corresponding post to mailing list: https://groups.google.com/d/msg/julia-users/fHS1G_ryDRU/vPUjBcTcBwAJ

vtjnash added a commit that referenced this issue Aug 27, 2020
As suggested recently on the issues list.

Fixes #12840
vtjnash added a commit that referenced this issue Aug 27, 2020
As suggested recently on the issues list.

Fixes #12840
vtjnash added a commit that referenced this issue Aug 28, 2020
As suggested recently on the issues list.

Fixes #12840
simeonschaub pushed a commit to simeonschaub/julia that referenced this issue Aug 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GC Garbage collector
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants