Created
December 20, 2009 00:34
-
-
Save eric/260290 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > ruby spec/memprof_spec.rb | |
| Memprof | |
| - should print stats to a file [FAILED] | |
| - should allow calling ::stats multiple times [FAILED] | |
| - should clear stats after ::stats! [FAILED] | |
| - should collect stats via ::track | |
| - should dump objects as json | |
| - should raise error when calling ::stats or ::dump without ::start | |
| spec/memprof_spec.rb:76: [BUG] Segmentation fault | |
| ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-linux], MBARI 0x8770, Ruby Enterprise Edition 2009.10 | |
| - should dump out the entire heapAbort |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/ext/elf.c b/ext/elf.c | |
| index 014a486..5a85c5e 100644 | |
| --- a/ext/elf.c | |
| +++ b/ext/elf.c | |
| @@ -26,7 +26,11 @@ void * | |
| bin_allocate_page() | |
| { | |
| void * ret = NULL; | |
| +#ifdef MAP_32BIT | |
| ret = mmap(NULL, pagesize, PROT_WRITE|PROT_READ|PROT_EXEC, MAP_ANON|MAP_PRIVATE|MAP_32BIT, -1, 0); | |
| +#else | |
| + ret = mmap(NULL, pagesize, PROT_WRITE|PROT_READ|PROT_EXEC, MAP_ANON|MAP_PRIVATE, -1, 0); | |
| +#endif | |
| if (ret != MAP_FAILED) { | |
| memset(ret, 0x90, pagesize); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > ruby spec/memprof_spec.rb | |
| Memprof | |
| - should print stats to a file [FAILED] | |
| - should allow calling ::stats multiple times [FAILED] | |
| - should clear stats after ::stats! [FAILED] | |
| - should collect stats via ::track | |
| - should dump objects as json | |
| - should raise error when calling ::stats or ::dump without ::start | |
| Bacon::Error: "1 spec/memprof_spec.rb:27:__none__\n 1 spec/memprof_spec.rb:26:String\n 1 spec/memprof_spec.rb:13:__none__".==("1 spec/memprof_spec.rb:26:String") failed | |
| spec/memprof_spec.rb:29: Memprof - should print stats to a file | |
| spec/memprof_spec.rb:24 | |
| spec/memprof_spec.rb:9 | |
| Bacon::Error: 5.==(2) failed | |
| spec/memprof_spec.rb:39: Memprof - should allow calling ::stats multiple times | |
| spec/memprof_spec.rb:32 | |
| spec/memprof_spec.rb:9 | |
| Bacon::Error: "1 spec/memprof_spec.rb:46:__none__\n 1 spec/memprof_spec.rb:13:__none__".empty?() failed | |
| spec/memprof_spec.rb:48: Memprof - should clear stats after ::stats! | |
| spec/memprof_spec.rb:42 | |
| spec/memprof_spec.rb:9 | |
| 6 specifications (11 requirements), 3 failures, 0 errors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment