[GUI+JIT] Unable to build doc, using 100% CPU

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[GUI+JIT] Unable to build doc, using 100% CPU

Michael Goffioul
Hi,

I'm trying to build the GUI branch with JIT enabled on my 32bits Linux box, but I'm unable to build documentation, the process hangs at "plotimages('extended', 'eps')" using 100% CPU. When I interrupt the process in gdb, I get the following backtrace:

#0  0xb709047f in jit_block::idom_intersect (i=0x8882f00, j=j@entry=0x88aab40) at ../../src/interp-core/jit-ir.cc:447
#1  0xb7090530 in jit_block::update_idom (this=0x88845b8, avisit_count=avisit_count@entry=1) at ../../src/interp-core/jit-ir.cc:376
#2  0xb70904ec in jit_block::update_idom (this=0x88f3f80, avisit_count=1) at ../../src/interp-core/jit-ir.cc:364
#3  0xb709fe9c in compute_idom (entry_block=<optimized out>, this=<optimized out>) at ../../src/interp-core/jit-ir.h:587
#4  jit_convert::construct_ssa (this=0xbfff6d6c) at ../../src/interp-core/pt-jit.cc:983
#5  0xb70a0a4e in jit_convert::jit_convert (this=0xbfff6d6c, module=0x8882f00, tee=..., for_bounds=0x8802b30) at ../../src/interp-core/pt-jit.cc:94
#6  0xb70a14ae in jit_info::jit_info (this=0x87ff9a8, tjit=..., tee=...) at ../../src/interp-core/pt-jit.cc:1658
#7  0xb70a1604 in tree_jit::execute (this=0xb7ff5110, cmd=...) at ../../src/interp-core/pt-jit.cc:1581
#8  0xb6f43cd6 in tree_evaluator::visit_while_command (this=0xb7ff510c, cmd=...) at ../../src/parse-tree/pt-eval.cc:1038
#9  0xb6f4e29a in tree_while_command::accept (this=0x89ae350, tw=...) at ../../src/parse-tree/pt-loop.cc:72
#10 0xb6f43fb3 in tree_evaluator::visit_statement (this=0xb7ff510c, stmt=...) at ../../src/parse-tree/pt-eval.cc:717
#11 0xb6f5f70a in tree_statement::accept (this=0x89ae310, tw=...) at ../../src/parse-tree/pt-stmt.cc:151
#12 0xb6f43809 in visit_statement_list (lst=..., this=0xb7ff510c) at ../../src/parse-tree/pt-eval.cc:783
#13 tree_evaluator::visit_statement_list (this=0xb7ff510c, lst=...) at ../../src/parse-tree/pt-eval.cc:764
[...]

Michael.

Reply | Threaded
Open this post in threaded view
|

Re: [GUI+JIT] Unable to build doc, using 100% CPU

Max Brister
On Sun, Aug 12, 2012 at 5:20 AM, Michael Goffioul
<[hidden email]> wrote:

> Hi,
>
> I'm trying to build the GUI branch with JIT enabled on my 32bits Linux box,
> but I'm unable to build documentation, the process hangs at
> "plotimages('extended', 'eps')" using 100% CPU. When I interrupt the process
> in gdb, I get the following backtrace:
>
> #0  0xb709047f in jit_block::idom_intersect (i=0x8882f00,
> j=j@entry=0x88aab40) at ../../src/interp-core/jit-ir.cc:447
> #1  0xb7090530 in jit_block::update_idom (this=0x88845b8,
> avisit_count=avisit_count@entry=1) at ../../src/interp-core/jit-ir.cc:376
> #2  0xb70904ec in jit_block::update_idom (this=0x88f3f80, avisit_count=1) at
> ../../src/interp-core/jit-ir.cc:364
> #3  0xb709fe9c in compute_idom (entry_block=<optimized out>, this=<optimized
> out>) at ../../src/interp-core/jit-ir.h:587
> #4  jit_convert::construct_ssa (this=0xbfff6d6c) at
> ../../src/interp-core/pt-jit.cc:983
> #5  0xb70a0a4e in jit_convert::jit_convert (this=0xbfff6d6c,
> module=0x8882f00, tee=..., for_bounds=0x8802b30) at
> ../../src/interp-core/pt-jit.cc:94
> #6  0xb70a14ae in jit_info::jit_info (this=0x87ff9a8, tjit=..., tee=...) at
> ../../src/interp-core/pt-jit.cc:1658
> #7  0xb70a1604 in tree_jit::execute (this=0xb7ff5110, cmd=...) at
> ../../src/interp-core/pt-jit.cc:1581
> #8  0xb6f43cd6 in tree_evaluator::visit_while_command (this=0xb7ff510c,
> cmd=...) at ../../src/parse-tree/pt-eval.cc:1038
> #9  0xb6f4e29a in tree_while_command::accept (this=0x89ae350, tw=...) at
> ../../src/parse-tree/pt-loop.cc:72
> #10 0xb6f43fb3 in tree_evaluator::visit_statement (this=0xb7ff510c,
> stmt=...) at ../../src/parse-tree/pt-eval.cc:717
> #11 0xb6f5f70a in tree_statement::accept (this=0x89ae310, tw=...) at
> ../../src/parse-tree/pt-stmt.cc:151
> #12 0xb6f43809 in visit_statement_list (lst=..., this=0xb7ff510c) at
> ../../src/parse-tree/pt-eval.cc:783
> #13 tree_evaluator::visit_statement_list (this=0xb7ff510c, lst=...) at
> ../../src/parse-tree/pt-eval.cc:764
> [...]
>
> Michael.
>
This should be reproducible on 64bit linux as well, but I'm currently
getting a cross reference error while building the documentation. I
have attached a patch that prints out the code which is being analysed
by compute_idom. Can you send me the output?

Thanks,
Max Brister

debug.patch (914 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [GUI+JIT] Unable to build doc, using 100% CPU

Mike Miller
On Mon, Aug 13, 2012 at 4:26 PM, Max Brister wrote:

> On Sun, Aug 12, 2012 at 5:20 AM, Michael Goffioul
> <[hidden email]> wrote:
>> Hi,
>>
>> I'm trying to build the GUI branch with JIT enabled on my 32bits Linux box,
>> but I'm unable to build documentation, the process hangs at
>> "plotimages('extended', 'eps')" using 100% CPU. When I interrupt the process
>> in gdb, I get the following backtrace:
>>
>> #0  0xb709047f in jit_block::idom_intersect (i=0x8882f00,
>> j=j@entry=0x88aab40) at ../../src/interp-core/jit-ir.cc:447
>> #1  0xb7090530 in jit_block::update_idom (this=0x88845b8,
>> avisit_count=avisit_count@entry=1) at ../../src/interp-core/jit-ir.cc:376
>> #2  0xb70904ec in jit_block::update_idom (this=0x88f3f80, avisit_count=1) at
>> ../../src/interp-core/jit-ir.cc:364
>> #3  0xb709fe9c in compute_idom (entry_block=<optimized out>, this=<optimized
>> out>) at ../../src/interp-core/jit-ir.h:587
>> #4  jit_convert::construct_ssa (this=0xbfff6d6c) at
>> ../../src/interp-core/pt-jit.cc:983
>> #5  0xb70a0a4e in jit_convert::jit_convert (this=0xbfff6d6c,
>> module=0x8882f00, tee=..., for_bounds=0x8802b30) at
>> ../../src/interp-core/pt-jit.cc:94
>> #6  0xb70a14ae in jit_info::jit_info (this=0x87ff9a8, tjit=..., tee=...) at
>> ../../src/interp-core/pt-jit.cc:1658
>> #7  0xb70a1604 in tree_jit::execute (this=0xb7ff5110, cmd=...) at
>> ../../src/interp-core/pt-jit.cc:1581
>> #8  0xb6f43cd6 in tree_evaluator::visit_while_command (this=0xb7ff510c,
>> cmd=...) at ../../src/parse-tree/pt-eval.cc:1038
>> #9  0xb6f4e29a in tree_while_command::accept (this=0x89ae350, tw=...) at
>> ../../src/parse-tree/pt-loop.cc:72
>> #10 0xb6f43fb3 in tree_evaluator::visit_statement (this=0xb7ff510c,
>> stmt=...) at ../../src/parse-tree/pt-eval.cc:717
>> #11 0xb6f5f70a in tree_statement::accept (this=0x89ae310, tw=...) at
>> ../../src/parse-tree/pt-stmt.cc:151
>> #12 0xb6f43809 in visit_statement_list (lst=..., this=0xb7ff510c) at
>> ../../src/parse-tree/pt-eval.cc:783
>> #13 tree_evaluator::visit_statement_list (this=0xb7ff510c, lst=...) at
>> ../../src/parse-tree/pt-eval.cc:764
>> [...]
>>
>> Michael.
>>
>
> This should be reproducible on 64bit linux as well, but I'm currently
> getting a cross reference error while building the documentation. I
> have attached a patch that prints out the code which is being analysed
> by compute_idom. Can you send me the output?
I hit this tonight when I tried to build the newly merged tree in a
clean build directory. Only hangs when building with LLVM, doesn't
matter whether GUI is enabled or not. Make in the doc directory hangs
on the same figure, extended.eps, extended.png, or extended.pdf. All
other images are built fine. I've attached the output from your
debug.patch for my build.

--
mike

jit-doc-debug.log (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [GUI+JIT] Unable to build doc, using 100% CPU

Mike Miller
On Mon, Aug 13, 2012 at 9:51 PM, Mike Miller wrote:

> On Mon, Aug 13, 2012 at 4:26 PM, Max Brister wrote:
>> On Sun, Aug 12, 2012 at 5:20 AM, Michael Goffioul
>> <[hidden email]> wrote:
>>> Hi,
>>>
>>> I'm trying to build the GUI branch with JIT enabled on my 32bits Linux box,
>>> but I'm unable to build documentation, the process hangs at
>>> "plotimages('extended', 'eps')" using 100% CPU. When I interrupt the process
>>> in gdb, I get the following backtrace:
>>>
>>> #0  0xb709047f in jit_block::idom_intersect (i=0x8882f00,
>>> j=j@entry=0x88aab40) at ../../src/interp-core/jit-ir.cc:447
>>> #1  0xb7090530 in jit_block::update_idom (this=0x88845b8,
>>> avisit_count=avisit_count@entry=1) at ../../src/interp-core/jit-ir.cc:376
>>> #2  0xb70904ec in jit_block::update_idom (this=0x88f3f80, avisit_count=1) at
>>> ../../src/interp-core/jit-ir.cc:364
>>> #3  0xb709fe9c in compute_idom (entry_block=<optimized out>, this=<optimized
>>> out>) at ../../src/interp-core/jit-ir.h:587
>>> #4  jit_convert::construct_ssa (this=0xbfff6d6c) at
>>> ../../src/interp-core/pt-jit.cc:983
>>> #5  0xb70a0a4e in jit_convert::jit_convert (this=0xbfff6d6c,
>>> module=0x8882f00, tee=..., for_bounds=0x8802b30) at
>>> ../../src/interp-core/pt-jit.cc:94
>>> #6  0xb70a14ae in jit_info::jit_info (this=0x87ff9a8, tjit=..., tee=...) at
>>> ../../src/interp-core/pt-jit.cc:1658
>>> #7  0xb70a1604 in tree_jit::execute (this=0xb7ff5110, cmd=...) at
>>> ../../src/interp-core/pt-jit.cc:1581
>>> #8  0xb6f43cd6 in tree_evaluator::visit_while_command (this=0xb7ff510c,
>>> cmd=...) at ../../src/parse-tree/pt-eval.cc:1038
>>> #9  0xb6f4e29a in tree_while_command::accept (this=0x89ae350, tw=...) at
>>> ../../src/parse-tree/pt-loop.cc:72
>>> #10 0xb6f43fb3 in tree_evaluator::visit_statement (this=0xb7ff510c,
>>> stmt=...) at ../../src/parse-tree/pt-eval.cc:717
>>> #11 0xb6f5f70a in tree_statement::accept (this=0x89ae310, tw=...) at
>>> ../../src/parse-tree/pt-stmt.cc:151
>>> #12 0xb6f43809 in visit_statement_list (lst=..., this=0xb7ff510c) at
>>> ../../src/parse-tree/pt-eval.cc:783
>>> #13 tree_evaluator::visit_statement_list (this=0xb7ff510c, lst=...) at
>>> ../../src/parse-tree/pt-eval.cc:764
>>> [...]
>>>
>>> Michael.
>>>
>>
>> This should be reproducible on 64bit linux as well, but I'm currently
>> getting a cross reference error while building the documentation. I
>> have attached a patch that prints out the code which is being analysed
>> by compute_idom. Can you send me the output?
>
> I hit this tonight when I tried to build the newly merged tree in a
> clean build directory. Only hangs when building with LLVM, doesn't
> matter whether GUI is enabled or not. Make in the doc directory hangs
> on the same figure, extended.eps, extended.png, or extended.pdf. All
> other images are built fine. I've attached the output from your
> debug.patch for my build.

Updated my tree, now looks like it's fixed at 7a19e8275d41.

--
mike