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
Segfault while measuring memory use #1916
Comments
From @ajsThis morning, I was attempting to measure how much memory is used by a hash, I replicated the segfault with a trivial one-liner: $ ./perl6 -e 'for 1..* -> $i { 1; }' But you can run my original if you prefer: #!./perl6 my %storage; sub heapsize() { Here's the output: $ ./testsize.p6 A small excerpt of the stack trace should immediately highlight the issue: #18010 0x00007ffff7a5e708 in Parrot_gc_mark_PMC_alive_fun Notice that I began at stack frame #18010... this is not exactly typical ;-) When I replaced the for 1..* -> $i with a bare loop and a manually All of this is on 64 bit Intel with uname reporting: 2.6.31-22-generic #60-Ubuntu SMP Thu May 27 02:41:03 UTC 2010 x86_64 -- |
@coke - Status changed from 'new' to 'open' |
From @cokeOn Wed Jul 07 18:04:46 2010, ajs wrote:
This doesn't segfault for me, but memory usage is still crazy: The following code: ./perl6 -e 'for 1..* -> $i { if ! ($i %1000) { say $i} }' outputs ~100K when memory is at ~750M
-- |
From @cokeOn Fri Oct 07 10:34:34 2011, coke wrote:
Segfault is gone; closing ticket. -- |
1 similar comment
From @cokeOn Fri Oct 07 10:34:34 2011, coke wrote:
Segfault is gone; closing ticket. -- |
From @cokeWhoops, forgot to actually close ticket. -- |
@coke - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#76416 (status was 'resolved')
Searchable as RT76416$
The text was updated successfully, but these errors were encountered: