felipelouza / egsa

Generalized enhanced suffix array construction in external memory [CPM'13, AMB 2017]
https://doi.org/10.1186/s13015-017-0117-9
GNU General Public License v3.0
15 stars 2 forks source link

memory error #4

Closed bukosabino closed 5 years ago

bukosabino commented 6 years ago

Hi @felipelouza ,

I would like to play with this package. So, I try:

git clone https://github.com/felipelouza/egsa.git
cd egsa
make
./egsa dataset/input-100.txt 2

And, I get this error:

SIGMA = 255
DIR = dataset/
INPUT = input-100.txt
K = 2
MEMLIMIT = 2048.00 MB
CHECK = 0
COMPUTE_BWT = 0
WORKSPACE = 13.n bytes
malloc_count ### free(0x7fcd04fffff0) has no sentinel !!! memory corruption?
egsa(5619,0x7fffa48d5380) malloc: *** error for object 0x7fcd04fffff0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

What I am doing wrong?

I am using Mac OS X version 10.13.6

Best,

felipelouza commented 6 years ago

Hi @bukosabino, could you recompile it in debug-mode: make clean; make DEBUG=1, then run valgrind: valgrind --tool=memcheck --trace-malloc=yes ./egsa dataset/input-100.txt 2. Thank you!

bukosabino commented 6 years ago

Hi @felipelouza ,

I get this output:

Lecrins-MacBook-Air:egsa lecrintech$ valgrind --tool=memcheck --trace-malloc=yes ./egsa dataset/input-100.txt 2
==39234== Memcheck, a memory error detector
==39234== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==39234== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info
==39234== Command: ./egsa dataset/input-100.txt 2
==39234== 
--39234-- calloc(24,1) = 0x100EEF040
--39234-- calloc(24,1) = 0x100EEF0A0
--39234-- calloc(24,1) = 0x100EEF100
--39234-- calloc(24,1) = 0x100EEF160
--39234-- calloc(24,1) = 0x100EEF1C0
--39234-- malloc_zone_malloc(0x1001C1130, 24) = 0x100EEF220
--39234-- malloc_zone_malloc(0x1001C1130, 32) = 0x100EEF280
--39234-- malloc_zone_malloc(0x1001C1130, 32) = 0x100EEF2E0
--39234-- zone_calloc(0x1001C1130, 1,16) = 0x100EEF340
--39234-- malloc(32) = 0x100EEF390
--39234-- zone_calloc(0x1001C1130, 3,8) = 0x100EEF3F0
--39234-- malloc_zone_malloc(0x1001C1130, 32) = 0x100EEF450
--39234-- zone_calloc(0x1001C1130, 3,16) = 0x100EEF4B0
--39234-- zone_calloc(0x1001C1130, 3,8) = 0x100EEF520
--39234-- free(0x100EEF3F0)
--39234-- free(0x100EEF340)
--39234-- free(0x100EEF450)
--39234-- zone_calloc(0x1001C1130, 1,16) = 0x100EEF580
--39234-- malloc(32) = 0x100EEF5D0
--39234-- malloc_zone_malloc(0x1001C1130, 48) = 0x100EEF630
--39234-- malloc_zone_malloc(0x1001C1130, 80) = 0x100EEF6A0
--39234-- free(0x100EEF630)
--39234-- malloc_zone_malloc(0x1001C1130, 144) = 0x100EEF730
--39234-- free(0x100EEF6A0)
--39234-- malloc_zone_malloc(0x1001C1130, 272) = 0x100EEF800
--39234-- free(0x100EEF730)
--39234-- malloc_zone_malloc(0x1001C1130, 528) = 0x100EEF950
--39234-- free(0x100EEF800)
--39234-- malloc_zone_malloc(0x1001C1130, 24) = 0x100EEFBA0
--39234-- malloc_zone_malloc(0x1001C1130, 2064) = 0x100EEFC00
--39234-- malloc_zone_malloc(0x1001C1130, 1040) = 0x100EF0450
--39234-- free(0x100EEF950)
--39234-- malloc_zone_malloc(0x1001C1130, 2064) = 0x100EF08A0
--39234-- free(0x100EF0450)
--39234-- malloc_zone_malloc(0x1001C1130, 4112) = 0x100EF10F0
--39234-- free(0x100EF08A0)
--39234-- malloc_zone_malloc(0x1001C1130, 24) = 0x100EF2140
--39234-- malloc_zone_malloc(0x1001C1130, 528) = 0x100EF21A0
--39234-- malloc_zone_malloc(0x1001C1130, 1040) = 0x100EF23F0
--39234-- free(0x100EF21A0)
--39234-- malloc_zone_malloc(0x1001C1130, 2064) = 0x100EF2840
--39234-- free(0x100EF23F0)
--39234-- calloc(64,1) = 0x100EF3090
--39234-- calloc(64,1) = 0x100EF3110
--39234-- calloc(64,1) = 0x100EF3190
--39234-- calloc(64,1) = 0x100EF3210
--39234-- calloc(64,1) = 0x100EF3290
--39234-- malloc_zone_malloc(0x1001C1130, 24) = 0x100EF3310
--39234-- malloc(32) = 0x100EF3370
--39234-- zone_calloc(0x1001C1130, 3,8) = 0x100EF33D0
--39234-- malloc_zone_malloc(0x1001C1130, 32) = 0x100EF3430
--39234-- zone_calloc(0x1001C1130, 3,16) = 0x100EF3490
--39234-- zone_calloc(0x1001C1130, 3,8) = 0x100EF3500
--39234-- free(0x100EF33D0)
--39234-- free(0x100EEF580)
--39234-- free(0x100EF3430)
--39234-- malloc_zone_malloc(0x1001C1130, 528) = 0x100EF3560
--39234-- calloc(64,1) = 0x100EF37B0
--39234-- calloc(64,1) = 0x100EF3830
--39234-- calloc(64,1) = 0x100EF38B0
--39234-- calloc(64,1) = 0x100EF3930
--39234-- calloc(64,1) = 0x100EF39B0
--39234-- calloc(64,1) = 0x100EF3A30
--39234-- calloc(64,1) = 0x100EF3AB0
--39234-- calloc(64,1) = 0x100EF3B30
--39234-- calloc(64,1) = 0x100EF3BB0
--39234-- calloc(64,1) = 0x100EF3C30
--39234-- calloc(64,1) = 0x100EF3CB0
--39234-- calloc(64,1) = 0x100EF3D30
--39234-- calloc(64,1) = 0x100EF3DB0
--39234-- calloc(64,1) = 0x100EF3E30
--39234-- calloc(64,1) = 0x100EF3EB0
--39234-- calloc(64,1) = 0x100EF3F30
--39234-- calloc(64,1) = 0x100EF3FB0
--39234-- calloc(64,1) = 0x100EF4030
--39234-- calloc(64,1) = 0x100EF40B0
--39234-- calloc(64,1) = 0x100EF4130
--39234-- calloc(64,1) = 0x100EF41B0
--39234-- calloc(64,1) = 0x100EF4230
--39234-- calloc(64,1) = 0x100EF42B0
--39234-- calloc(64,1) = 0x100EF4330
--39234-- calloc(64,1) = 0x100EF43B0
--39234-- calloc(64,1) = 0x100EF4430
--39234-- calloc(64,1) = 0x100EF44B0
--39234-- calloc(64,1) = 0x100EF4530
--39234-- calloc(64,1) = 0x100EF45B0
--39234-- calloc(64,1) = 0x100EF4630
--39234-- calloc(64,1) = 0x100EF46B0
--39234-- calloc(64,1) = 0x100EF4730
--39234-- calloc(64,1) = 0x100EF47B0
--39234-- calloc(64,1) = 0x100EF4830
--39234-- calloc(64,1) = 0x100EF48B0
--39234-- calloc(64,1) = 0x100EF4930
--39234-- calloc(64,1) = 0x100EF49B0
--39234-- calloc(64,1) = 0x100EF4A30
--39234-- calloc(64,1) = 0x100EF4AB0
--39234-- calloc(64,1) = 0x100EF4B30
--39234-- calloc(64,1) = 0x100EF4BB0
--39234-- calloc(64,1) = 0x100EF4C30
--39234-- calloc(64,1) = 0x100EF4CB0
--39234-- calloc(64,1) = 0x100EF4D30
--39234-- calloc(64,1) = 0x100EF4DB0
--39234-- calloc(64,1) = 0x100EF4E30
--39234-- calloc(64,1) = 0x100EF4EB0
--39234-- calloc(64,1) = 0x100EF4F30
--39234-- calloc(64,1) = 0x100EF4FB0
--39234-- calloc(64,1) = 0x100EF5030
--39234-- calloc(64,1) = 0x100EF50B0
--39234-- calloc(64,1) = 0x100EF5130
--39234-- calloc(64,1) = 0x100EF51B0
--39234-- calloc(64,1) = 0x100EF5230
--39234-- calloc(64,1) = 0x100EF52B0
--39234-- calloc(64,1) = 0x100EF5330
--39234-- calloc(64,1) = 0x100EF53B0
--39234-- calloc(64,1) = 0x100EF5430
--39234-- calloc(64,1) = 0x100EF54B0
--39234-- calloc(64,1) = 0x100EF5530
--39234-- calloc(64,1) = 0x100EF55B0
--39234-- calloc(64,1) = 0x100EF5630
--39234-- calloc(64,1) = 0x100EF56B0
--39234-- calloc(64,1) = 0x100EF5730
--39234-- calloc(64,1) = 0x100EF57B0
--39234-- calloc(64,1) = 0x100EF5830
--39234-- calloc(64,1) = 0x100EF58B0
--39234-- calloc(64,1) = 0x100EF5930
--39234-- calloc(64,1) = 0x100EF59B0
--39234-- calloc(64,1) = 0x100EF5A30
--39234-- calloc(64,1) = 0x100EF5AB0
--39234-- calloc(64,1) = 0x100EF5B30
--39234-- calloc(64,1) = 0x100EF5BB0
--39234-- calloc(64,1) = 0x100EF5C30
--39234-- calloc(64,1) = 0x100EF5CB0
--39234-- calloc(64,1) = 0x100EF5D30
--39234-- calloc(64,1) = 0x100EF5DB0
--39234-- calloc(64,1) = 0x100EF5E30
--39234-- calloc(64,1) = 0x100EF5EB0
--39234-- calloc(64,1) = 0x100EF5F30
--39234-- calloc(64,1) = 0x100EF5FB0
--39234-- calloc(64,1) = 0x100EF6030
--39234-- calloc(64,1) = 0x100EF60B0
--39234-- calloc(64,1) = 0x100EF6130
--39234-- calloc(64,1) = 0x100EF61B0
--39234-- calloc(64,1) = 0x100EF6230
--39234-- calloc(64,1) = 0x100EF62B0
--39234-- calloc(64,1) = 0x100EF6330
--39234-- calloc(64,1) = 0x100EF63B0
--39234-- calloc(64,1) = 0x100EF6430
--39234-- calloc(64,1) = 0x100EF64B0
--39234-- calloc(64,1) = 0x100EF6530
--39234-- calloc(64,1) = 0x100EF65B0
--39234-- calloc(64,1) = 0x100EF6630
--39234-- calloc(64,1) = 0x100EF66B0
--39234-- calloc(64,1) = 0x100EF6730
--39234-- calloc(64,1) = 0x100EF67B0
--39234-- calloc(64,1) = 0x100EF6830
--39234-- calloc(64,1) = 0x100EF68B0
--39234-- calloc(64,1) = 0x100EF6930
--39234-- calloc(64,1) = 0x100EF69B0
--39234-- calloc(64,1) = 0x100EF6A30
--39234-- calloc(64,1) = 0x100EF6AB0
--39234-- calloc(64,1) = 0x100EF6B30
--39234-- calloc(64,1) = 0x100EF6BB0
--39234-- calloc(64,1) = 0x100EF6C30
--39234-- calloc(64,1) = 0x100EF6CB0
--39234-- realloc(0x0,256)malloc(256) = 0x100EF6D30
--39234-- realloc(0x100EF6D30,768) = 0x100EF6E70
--39234-- free(0x100EF6E70)
--39234-- realloc(0x0,256)malloc(256) = 0x100EF71B0
--39234-- free(0x100EF71B0)
--39234-- realloc(0x0,256)malloc(256) = 0x100EF72F0
--39234-- realloc(0x100EF72F0,768) = 0x100EF7430
--39234-- free(0x100EF7430)
--39234-- calloc(1,40) = 0x100EF7770
--39234-- calloc(64,1) = 0x100EF77E0
--39234-- calloc(1,56) = 0x100EF7860
--39234-- calloc(1,192) = 0x100EF78E0
--39234-- malloc(18) = 0x100EF79E0
--39234-- calloc(1,40) = 0x100EF7A40
--39234-- malloc(45) = 0x100EF7AB0
--39234-- malloc(157) = 0x100EF7B20
--39234-- calloc(1,40) = 0x100EF7C00
--39234-- malloc(45) = 0x100EF7C70
--39234-- malloc(50) = 0x100EF7CE0
--39234-- calloc(1,40) = 0x100EF7D60
--39234-- malloc(47) = 0x100EF7DD0
--39234-- malloc(49) = 0x100EF7E40
--39234-- calloc(1,40) = 0x100EF7EC0
--39234-- malloc(67) = 0x100EF7F30
--39234-- malloc(52) = 0x100EF7FC0
--39234-- calloc(1,40) = 0x100EF8040
--39234-- malloc(54) = 0x100EF80B0
--39234-- malloc(12) = 0x100EF8130
--39234-- calloc(1,40) = 0x100EF8180
--39234-- malloc(45) = 0x100EF81F0
--39234-- calloc(1,32) = 0x100EF8260
--39234-- calloc(1,192) = 0x100EF82C0
--39234-- malloc(118) = 0x100EF83C0
--39234-- malloc(122) = 0x100EF8480
--39234-- free(0x0)
--39234-- malloc(16) = 0x100EF8540
--39234-- malloc(64) = 0x100EF8590
--39234-- malloc(14) = 0x100EF8610
--39234-- calloc(1,120) = 0x100EF8660
--39234-- realloc(0x0,256)malloc(256) = 0x100EF8720
--39234-- free(0x100EF8720)
--39234-- malloc(48) = 0x100EF8860
--39234-- malloc(20) = 0x100EF88D0
--39234-- malloc(9) = 0x100EF8930
--39234-- malloc(4096) = 0x100EF8980
SIGMA = 255
--39234-- free(0x0)
DIR = dataset/
--39234-- free(0x0)
INPUT = input-100.txt
--39234-- free(0x0)
K = 2
--39234-- free(0x0)
--39234-- malloc(80) = 0x100EF99C0
--39234-- malloc(36) = 0x100EF9A50
--39234-- malloc(32) = 0x100EF9AC0
MEMLIMIT = 2048.00 MB
--39234-- free(0x0)
CHECK = 0
--39234-- free(0x0)
COMPUTE_BWT = 0
--39234-- free(0x0)
WORKSPACE = 13.n bytes
--39234-- free(0x0)
--39234-- malloc(1024) = 0x100EF9B20
==39234== Invalid read of size 8
==39234==    at 0x1000014DD: free (in ./egsa)
==39234==    by 0x1000078DF: file_chdir (in ./egsa)
==39234==    by 0x10000C719: egsa (in ./egsa)
==39234==    by 0x10000CC0E: main (in ./egsa)
==39234==  Address 0x100ef9b18 is 8 bytes before a block of size 1,024 alloc'd
==39234==    at 0x1001BA086: malloc (in /usr/local/Cellar/valgrind/3.14.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==39234==    by 0x1003DE37B: __private_getcwd (in /usr/lib/system/libsystem_c.dylib)
==39234==    by 0x1000078C2: file_chdir (in ./egsa)
==39234==    by 0x10000C719: egsa (in ./egsa)
==39234==    by 0x10000CC0E: main (in ./egsa)
==39234== 
--39234-- free(0x0)
malloc_count ### free(0x100ef9b10) has no sentinel !!! memory corruption?
==39234== Invalid read of size 8
==39234==    at 0x100001505: free (in ./egsa)
==39234==    by 0x1000078DF: file_chdir (in ./egsa)
==39234==    by 0x10000C719: egsa (in ./egsa)
==39234==    by 0x10000CC0E: main (in ./egsa)
==39234==  Address 0x100ef9b10 is 16 bytes before a block of size 1,024 alloc'd
==39234==    at 0x1001BA086: malloc (in /usr/local/Cellar/valgrind/3.14.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==39234==    by 0x1003DE37B: __private_getcwd (in /usr/lib/system/libsystem_c.dylib)
==39234==    by 0x1000078C2: file_chdir (in ./egsa)
==39234==    by 0x10000C719: egsa (in ./egsa)
==39234==    by 0x10000CC0E: main (in ./egsa)
==39234== 
--39234-- free(0x100EF9B10)
==39234== Invalid free() / delete / delete[] / realloc()
==39234==    at 0x1001BA463: free (in /usr/local/Cellar/valgrind/3.14.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==39234==    by 0x1000078DF: file_chdir (in ./egsa)
==39234==    by 0x10000C719: egsa (in ./egsa)
==39234==    by 0x10000CC0E: main (in ./egsa)
==39234==  Address 0x100ef9b10 is 16 bytes before a block of size 1,024 alloc'd
==39234==    at 0x1001BA086: malloc (in /usr/local/Cellar/valgrind/3.14.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==39234==    by 0x1003DE37B: __private_getcwd (in /usr/lib/system/libsystem_c.dylib)
==39234==    by 0x1000078C2: file_chdir (in ./egsa)
==39234==    by 0x10000C719: egsa (in ./egsa)
==39234==    by 0x10000CC0E: main (in ./egsa)
==39234== 

### PREPROCESSING ###
--39234-- malloc(128) = 0x100EF9F60
--39234-- free(0x100EF9F60)
--39234-- malloc(65536) = 0x100EFA020
--39234-- free(0x0)
--39234-- realloc(0x0,8)malloc(8) = 0x100F0A060
--39234-- malloc(65536) = 0x100F0A0B0
==39234== Invalid read of size 8
==39234==    at 0x1000014DD: free (in ./egsa)
==39234==    by 0x100007BCB: load_multiple_txt (in ./egsa)
==39234==    by 0x1000085F4: preprocessing (in ./egsa)
==39234==    by 0x10000C758: egsa (in ./egsa)
==39234==    by 0x10000CC0E: main (in ./egsa)
==39234==  Address 0x100f0a058 is 8 bytes before a block of size 8 alloc'd
==39234==    at 0x1001BA086: malloc (in /usr/local/Cellar/valgrind/3.14.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==39234==    by 0x1003F42BC: sappend (in /usr/lib/system/libsystem_c.dylib)
==39234==    by 0x1003F419C: getdelim (in /usr/lib/system/libsystem_c.dylib)
==39234==    by 0x100007A7B: load_multiple_txt (in ./egsa)
==39234==    by 0x1000085F4: preprocessing (in ./egsa)
==39234==    by 0x10000C758: egsa (in ./egsa)
==39234==    by 0x10000CC0E: main (in ./egsa)
==39234== 
--39234-- free(0x0)
malloc_count ### free(0x100f0a050) has no sentinel !!! memory corruption?
==39234== Invalid read of size 8
==39234==    at 0x100001505: free (in ./egsa)
==39234==    by 0x100007BCB: load_multiple_txt (in ./egsa)
==39234==    by 0x1000085F4: preprocessing (in ./egsa)
==39234==    by 0x10000C758: egsa (in ./egsa)
==39234==    by 0x10000CC0E: main (in ./egsa)
==39234==  Address 0x100f0a050 is 16 bytes before a block of size 8 alloc'd
==39234==    at 0x1001BA086: malloc (in /usr/local/Cellar/valgrind/3.14.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==39234==    by 0x1003F42BC: sappend (in /usr/lib/system/libsystem_c.dylib)
==39234==    by 0x1003F419C: getdelim (in /usr/lib/system/libsystem_c.dylib)
==39234==    by 0x100007A7B: load_multiple_txt (in ./egsa)
==39234==    by 0x1000085F4: preprocessing (in ./egsa)
==39234==    by 0x10000C758: egsa (in ./egsa)
==39234==    by 0x10000CC0E: main (in ./egsa)
==39234== 
--39234-- free(0x100F0A050)
==39234== Invalid free() / delete / delete[] / realloc()
==39234==    at 0x1001BA463: free (in /usr/local/Cellar/valgrind/3.14.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==39234==    by 0x100007BCB: load_multiple_txt (in ./egsa)
==39234==    by 0x1000085F4: preprocessing (in ./egsa)
==39234==    by 0x10000C758: egsa (in ./egsa)
==39234==    by 0x10000CC0E: main (in ./egsa)
==39234==  Address 0x100f0a050 is 16 bytes before a block of size 8 alloc'd
==39234==    at 0x1001BA086: malloc (in /usr/local/Cellar/valgrind/3.14.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==39234==    by 0x1003F42BC: sappend (in /usr/lib/system/libsystem_c.dylib)
==39234==    by 0x1003F419C: getdelim (in /usr/lib/system/libsystem_c.dylib)
==39234==    by 0x100007A7B: load_multiple_txt (in ./egsa)
==39234==    by 0x1000085F4: preprocessing (in ./egsa)
==39234==    by 0x10000C758: egsa (in ./egsa)
==39234==    by 0x10000CC0E: main (in ./egsa)
==39234== 
--39234-- realloc(0x0,32)malloc(32) = 0x100F1A0F0
--39234-- free(0x0)
malloc_count ### free(0x100f1a0e0) has no sentinel !!! memory corruption?
--39234-- free(0x100F1A0E0)
--39234-- free(0x100F0A0B0)
K = 2
--39234-- free(0x0)
--39234-- free(0x100EFA020)
--39234-- malloc(132) = 0x100F1A150
--39234-- malloc(528) = 0x100F1A220
--39234-- free(0x0)
--39234-- malloc(65536) = 0x100F1A470
--39234-- free(0x100F1A470)
partition/input-100.txt.0.bin   24  2   0
--39234-- free(0x0)

PARTITIONS = 1
--39234-- free(0x0)
--39234-- malloc(36) = 0x100F2A4B0
--39234-- malloc(36) = 0x100F2A520
--39234-- malloc(36) = 0x100F2A590
TOTAL = 24 bytes    0.00 MB
--39234-- free(0x0)
CLOCK = 0.063117 TIME = 0.000000
--39234-- free(0x0)
--39234-- free(0x0)
0.063117    0.000000

### PHASE 1 ###
--39234-- malloc(65536) = 0x100F2A600
--39234-- malloc(50) = 0x100F3A640
--39234-- free(0x100F2A600)
T_0 23
--39234-- free(0x0)
--39234-- malloc(120) = 0x100F3A6C0
--39234-- malloc(120) = 0x100F3A780
--39234-- malloc(1036) = 0x100F3A840
--39234-- free(0x100F3A840)
--39234-- malloc(112) = 0x100F3AC90
--39234-- free(0x100F3AC90)
--39234-- malloc(40) = 0x100F3AD40
--39234-- free(0x100F3AD40)
isSorted!!
LCP array OK!
media(LCP) = 0
--39234-- free(0x0)
i   |SA LCP
-   --- ---
--39234-- free(0x0)
--39234-- free(0x0)
0   |23 (0) 255|
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
1   |3  (0) 0|121|74|105|113|110|97|121|108|122|
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
2   |22 (0) 0|255|
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
3   |16 (0) 66|80|69|82|116|79|0|255|
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
4   |15 (0) 68|66|80|69|82|116|79|0|255|
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
5   |18 (0) 69|82|116|79|0|255|
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
6   |5  (0) 74|105|113|110|97|121|108|122|110|104|
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
7   |21 (0) 79|0|255|
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
8   |17 (0) 80|69|82|116|79|0|255|
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
9   |19 (0) 82|116|79|0|255|
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
10  |0  (0) 88|120|111|0|121|74|105|113|110|97|
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
11  |9  (0) 97|121|108|122|110|104|68|66|80|69|
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
12  |14 (0) 104|68|66|80|69|82|116|79|0|255|
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
13  |6  (0) 105|113|110|97|121|108|122|110|104|68|
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
14  |11 (0) 108|122|110|104|68|66|80|69|82|116|
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
15  |8  (0) 110|97|121|108|122|110|104|68|66|80|
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
16  |13 (1) 110|104|68|66|80|69|82|116|79|0|
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
17  |2  (0) 111|0|121|74|105|113|110|97|121|108|
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
18  |7  (0) 113|110|97|121|108|122|110|104|68|66|
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
--39234-- free(0x0)
19  |20 (0) 116|79|0|255|
--39234-- free(0x0)
--39234-- malloc(112) = 0x100F3ADB0
--39234-- malloc(65536) = 0x100F3AE60
--39234-- free(0x100F3AE60)
--39234-- free(0x100F3ADB0)
--39234-- free(0x100F3A6C0)
--39234-- free(0x100F3A780)
--39234-- free(0x100F3A640)
CLOCK = 0.057599 TIME = 0.000000
--39234-- free(0x0)
--39234-- free(0x0)
0.057599    0.000000

### PHASE 2 ###
--39234-- malloc(141904) = 0x100F4AEA0
--39234-- malloc(24) = 0x100F6D930
--39234-- malloc(28) = 0x100F6D990
--39234-- malloc(28) = 0x100F6D9F0
--39234-- malloc(67108888) = 0x1049AF040
--39234-- malloc(24) = 0x100F6DA50
--39234-- malloc(24) = 0x100F6DAB0
--39234-- malloc(24) = 0x100F6DB10
--39234-- malloc(24) = 0x100F6DB70
--39234-- malloc(24) = 0x100F6DBD0
--39234-- malloc(24) = 0x100F6DC30
--39234-- malloc(24) = 0x100F6DC90
--39234-- malloc(24) = 0x100F6DCF0
--39234-- malloc(24) = 0x100F6DD50
--39234-- malloc(24) = 0x100F6DDB0
--39234-- malloc(24) = 0x100F6DE10
--39234-- malloc(24) = 0x100F6DE70
--39234-- malloc(24) = 0x100F6DED0
--39234-- malloc(24) = 0x100F6DF30
--39234-- malloc(24) = 0x100F6DF90
--39234-- malloc(24) = 0x100F6DFF0
--39234-- malloc(24) = 0x100F6E050
--39234-- malloc(24) = 0x100F6E0B0
--39234-- malloc(24) = 0x100F6E110
--39234-- malloc(24) = 0x100F6E170
--39234-- malloc(24) = 0x100F6E1D0
--39234-- malloc(24) = 0x100F6E230
--39234-- malloc(24) = 0x100F6E290
--39234-- malloc(24) = 0x100F6E2F0
--39234-- malloc(24) = 0x100F6E350
--39234-- malloc(24) = 0x100F6E3B0
--39234-- malloc(24) = 0x100F6E410
--39234-- malloc(24) = 0x100F6E470
--39234-- malloc(24) = 0x100F6E4D0
--39234-- malloc(24) = 0x100F6E530
--39234-- malloc(24) = 0x100F6E590
--39234-- malloc(24) = 0x100F6E5F0
--39234-- malloc(24) = 0x100F6E650
--39234-- malloc(24) = 0x100F6E6B0
--39234-- malloc(24) = 0x100F6E710
--39234-- malloc(24) = 0x100F6E770
--39234-- malloc(24) = 0x100F6E7D0
--39234-- malloc(24) = 0x100F6E830
--39234-- malloc(24) = 0x100F6E890
--39234-- malloc(24) = 0x100F6E8F0
--39234-- malloc(24) = 0x100F6E950
--39234-- malloc(24) = 0x100F6E9B0
--39234-- malloc(24) = 0x100F6EA10
--39234-- malloc(24) = 0x100F6EA70
--39234-- malloc(24) = 0x100F6EAD0
--39234-- malloc(24) = 0x100F6EB30
--39234-- malloc(24) = 0x100F6EB90
--39234-- malloc(24) = 0x100F6EBF0
--39234-- malloc(24) = 0x100F6EC50
--39234-- malloc(24) = 0x100F6ECB0
--39234-- malloc(24) = 0x100F6ED10
--39234-- malloc(24) = 0x100F6ED70
--39234-- malloc(24) = 0x100F6EDD0
--39234-- malloc(24) = 0x100F6EE30
--39234-- malloc(24) = 0x100F6EE90
--39234-- malloc(24) = 0x100F6EEF0
--39234-- malloc(24) = 0x100F6EF50
--39234-- malloc(24) = 0x100F6EFB0
--39234-- malloc(24) = 0x100F6F010
--39234-- malloc(24) = 0x100F6F070
--39234-- malloc(24) = 0x100F6F0D0
--39234-- malloc(24) = 0x100F6F130
--39234-- malloc(24) = 0x100F6F190
--39234-- malloc(24) = 0x100F6F1F0
--39234-- malloc(24) = 0x100F6F250
--39234-- malloc(699072) = 0x100F6F2B0
--39234-- malloc(24) = 0x101019DB0
--39234-- malloc(699072) = 0x101019E10
--39234-- malloc(699072) = 0x1010C4910
--39234-- malloc(24) = 0x10116F410
--39234-- malloc(24) = 0x10116F470
--39234-- malloc(24) = 0x10116F4D0
--39234-- malloc(24) = 0x10116F530
--39234-- malloc(699072) = 0x10116F590
--39234-- malloc(24) = 0x10121A090
--39234-- malloc(24) = 0x10121A0F0
--39234-- malloc(24) = 0x10121A150
--39234-- malloc(24) = 0x10121A1B0
--39234-- malloc(699072) = 0x10121A210
--39234-- malloc(699072) = 0x1012EF040
--39234-- malloc(24) = 0x1012C4D10
--39234-- malloc(699072) = 0x101399B40
--39234-- malloc(24) = 0x1012C4D70
--39234-- malloc(24) = 0x101444640
--39234-- malloc(24) = 0x1012C4DD0
--39234-- malloc(24) = 0x1014446A0
--39234-- malloc(24) = 0x1012C4E30
--39234-- malloc(699072) = 0x101444700
--39234-- malloc(24) = 0x1012C4E90
--39234-- malloc(24) = 0x1014EF200
--39234-- malloc(24) = 0x1012C4EF0
--39234-- malloc(24) = 0x1014EF260
--39234-- malloc(24) = 0x1012C4F50
--39234-- malloc(24) = 0x1014EF2C0
--39234-- malloc(24) = 0x1012C4FB0
--39234-- malloc(24) = 0x1014EF320
--39234-- malloc(699072) = 0x1014EF380
--39234-- malloc(24) = 0x1012C5010
--39234-- malloc(24) = 0x101599E80
--39234-- malloc(24) = 0x1012C5070
--39234-- malloc(24) = 0x101599EE0
--39234-- malloc(24) = 0x1012C50D0
--39234-- malloc(24) = 0x101599F40
--39234-- malloc(699072) = 0x101599FA0
--39234-- malloc(699072) = 0x1016EF040
--39234-- malloc(24) = 0x1012C5130
--39234-- malloc(24) = 0x101644AA0
--39234-- malloc(699072) = 0x101799B40
--39234-- malloc(24) = 0x1012C5190
--39234-- malloc(1398120) = 0x101844640
--39234-- malloc(699072) = 0x101999BF0
--39234-- malloc(24) = 0x1012C51F0
--39234-- malloc(699072) = 0x101AEF040
--39234-- malloc(24) = 0x1012C5250
--39234-- malloc(24) = 0x101644B00
--39234-- malloc(699072) = 0x101B99B40
--39234-- malloc(24) = 0x1012C52B0
--39234-- malloc(24) = 0x101644B60
--39234-- malloc(24) = 0x1012C5310
--39234-- malloc(699072) = 0x101C44640
--39234-- malloc(1398120) = 0x101CEF140
--39234-- malloc(699072) = 0x101EEF040
--39234-- malloc(24) = 0x1012C5370
--39234-- malloc(24) = 0x101644BC0
--39234-- malloc(24) = 0x1012C53D0
--39234-- malloc(24) = 0x101644C20
--39234-- malloc(24) = 0x1012C5430
--39234-- malloc(24) = 0x101644C80
--39234-- malloc(24) = 0x1012C5490
--39234-- malloc(24) = 0x101644CE0
--39234-- malloc(24) = 0x1012C54F0
--39234-- malloc(24) = 0x101644D40
--39234-- malloc(24) = 0x1012C5550
--39234-- malloc(24) = 0x101644DA0
--39234-- malloc(24) = 0x1012C55B0
--39234-- malloc(24) = 0x101644E00
--39234-- malloc(24) = 0x1012C5610
--39234-- malloc(24) = 0x101644E60
--39234-- malloc(24) = 0x1012C5670
--39234-- malloc(24) = 0x101644EC0
--39234-- malloc(24) = 0x1012C56D0
--39234-- malloc(24) = 0x101644F20
--39234-- malloc(24) = 0x1012C5730
--39234-- malloc(24) = 0x101644F80
--39234-- malloc(24) = 0x1012C5790
--39234-- malloc(24) = 0x101644FE0
--39234-- malloc(24) = 0x1012C57F0
--39234-- malloc(24) = 0x101645040
--39234-- malloc(24) = 0x1012C5850
--39234-- malloc(24) = 0x1016450A0
--39234-- malloc(24) = 0x1012C58B0
--39234-- malloc(24) = 0x101645100
--39234-- malloc(24) = 0x1012C5910
--39234-- malloc(24) = 0x101645160
--39234-- malloc(24) = 0x1012C5970
--39234-- malloc(24) = 0x1016451C0
--39234-- malloc(24) = 0x1012C59D0
--39234-- malloc(24) = 0x101645220
--39234-- malloc(24) = 0x1012C5A30
--39234-- malloc(24) = 0x101645280
--39234-- malloc(24) = 0x1012C5A90
--39234-- malloc(24) = 0x1016452E0
--39234-- malloc(24) = 0x1012C5AF0
--39234-- malloc(24) = 0x101645340
--39234-- malloc(24) = 0x1012C5B50
--39234-- malloc(24) = 0x1016453A0
--39234-- malloc(24) = 0x1012C5BB0
--39234-- malloc(24) = 0x101645400
--39234-- malloc(24) = 0x1012C5C10
--39234-- malloc(24) = 0x101645460
--39234-- malloc(24) = 0x1012C5C70
--39234-- malloc(24) = 0x1016454C0
--39234-- malloc(24) = 0x1012C5CD0
--39234-- malloc(24) = 0x101645520
--39234-- malloc(24) = 0x1012C5D30
--39234-- malloc(24) = 0x101645580
--39234-- malloc(24) = 0x1012C5D90
--39234-- malloc(24) = 0x1016455E0
--39234-- malloc(24) = 0x1012C5DF0
--39234-- malloc(24) = 0x101645640
--39234-- malloc(24) = 0x1012C5E50
--39234-- malloc(24) = 0x1016456A0
--39234-- malloc(24) = 0x1012C5EB0
--39234-- malloc(24) = 0x101645700
--39234-- malloc(24) = 0x1012C5F10
--39234-- malloc(24) = 0x101645760
--39234-- malloc(24) = 0x1012C5F70
--39234-- malloc(24) = 0x1016457C0
--39234-- malloc(24) = 0x1012C5FD0
--39234-- malloc(24) = 0x101645820
--39234-- malloc(24) = 0x1012C6030
--39234-- malloc(24) = 0x101645880
--39234-- malloc(24) = 0x1012C6090
--39234-- malloc(24) = 0x1016458E0
--39234-- malloc(24) = 0x1012C60F0
--39234-- malloc(24) = 0x101645940
--39234-- malloc(24) = 0x1012C6150
--39234-- malloc(24) = 0x1016459A0
--39234-- malloc(24) = 0x1012C61B0
--39234-- malloc(24) = 0x101645A00
--39234-- malloc(24) = 0x1012C6210
--39234-- malloc(24) = 0x101645A60
--39234-- malloc(24) = 0x1012C6270
--39234-- malloc(24) = 0x101645AC0
--39234-- malloc(24) = 0x1012C62D0
--39234-- malloc(24) = 0x101645B20
--39234-- malloc(24) = 0x1012C6330
--39234-- malloc(24) = 0x101645B80
--39234-- malloc(24) = 0x1012C6390
--39234-- malloc(24) = 0x101645BE0
--39234-- malloc(24) = 0x1012C63F0
--39234-- malloc(24) = 0x101645C40
--39234-- malloc(24) = 0x1012C6450
--39234-- malloc(24) = 0x101645CA0
--39234-- malloc(24) = 0x1012C64B0
--39234-- malloc(24) = 0x101645D00
--39234-- malloc(24) = 0x1012C6510
--39234-- malloc(24) = 0x101645D60
--39234-- malloc(24) = 0x1012C6570
--39234-- malloc(24) = 0x101645DC0
--39234-- malloc(24) = 0x1012C65D0
--39234-- malloc(24) = 0x101645E20
--39234-- malloc(24) = 0x1012C6630
--39234-- malloc(24) = 0x101645E80
--39234-- malloc(24) = 0x1012C6690
--39234-- malloc(24) = 0x101645EE0
--39234-- malloc(24) = 0x1012C66F0
--39234-- malloc(24) = 0x101645F40
--39234-- malloc(24) = 0x1012C6750
--39234-- malloc(24) = 0x101645FA0
--39234-- malloc(24) = 0x1012C67B0
--39234-- malloc(24) = 0x101646000
--39234-- malloc(24) = 0x1012C6810
--39234-- malloc(24) = 0x101646060
--39234-- malloc(24) = 0x1012C6870
--39234-- malloc(24) = 0x1016460C0
--39234-- malloc(24) = 0x1012C68D0
--39234-- malloc(24) = 0x101646120
--39234-- malloc(24) = 0x1012C6930
--39234-- malloc(24) = 0x101646180
--39234-- malloc(24) = 0x1012C6990
--39234-- malloc(24) = 0x1016461E0
--39234-- malloc(24) = 0x1012C69F0
--39234-- malloc(24) = 0x101646240
--39234-- malloc(24) = 0x1012C6A50
--39234-- malloc(24) = 0x1016462A0
--39234-- malloc(24) = 0x1012C6AB0
--39234-- malloc(24) = 0x101646300
--39234-- malloc(24) = 0x1012C6B10
--39234-- malloc(24) = 0x101646360
--39234-- malloc(24) = 0x1012C6B70
--39234-- malloc(24) = 0x1016463C0
--39234-- malloc(24) = 0x1012C6BD0
--39234-- malloc(24) = 0x101646420
--39234-- malloc(128) = 0x1012C6C30
--39234-- free(0x1012C6C30)
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101646480
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1012C6CF0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1012D6D30
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1016564C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101A446F0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101666500
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101A54730
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101676540
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101A64770
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101686580
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101A747B0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1016965C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101A847F0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1016A6600
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101A94830
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1016B6640
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101AA4870
--39234-- free(0x0)
--39234-- malloc(3632) = 0x1012E6D70
--39234-- malloc(65536) = 0x1016C6680
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1016D66C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101AB48B0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101E446F0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101AC48F0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101AD4930
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101E54730
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101F99B40
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101E64770
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101FA9B80
--39234-- free(0x0)
--39234-- malloc(3632) = 0x1012E7BE0
--39234-- malloc(65536) = 0x101E747B0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101FB9BC0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101E847F0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101FC9C00
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101E94830
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101FD9C40
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101EA4870
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101FE9C80
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101EB48B0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101FF9CC0
--39234-- free(0x0)
--39234-- malloc(3632) = 0x1012E8A50
--39234-- malloc(65536) = 0x101EC48F0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x101ED4930
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102009D00
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102019D40
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102029D80
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102039DC0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102049E00
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102059E40
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102069E80
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102079EC0
--39234-- free(0x0)
--39234-- malloc(3632) = 0x1012E98C0
--39234-- malloc(65536) = 0x102089F00
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102099F40
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1020A9F80
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1020B9FC0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1020CA000
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1020DA040
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1020EA080
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1020FA0C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10210A100
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10211A140
--39234-- free(0x0)
--39234-- malloc(3632) = 0x1012EA730
--39234-- malloc(65536) = 0x10212A180
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10213A1C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10214A200
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10215A240
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10216A280
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10217A2C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10218A300
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10219A340
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1021AA380
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1021BA3C0
--39234-- free(0x0)
--39234-- malloc(3632) = 0x1012EB5A0
--39234-- malloc(65536) = 0x1021CA400
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1021DA440
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1021EA480
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1021FA4C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10220A500
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10221A540
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10222A580
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10223A5C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10224A600
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10225A640
--39234-- free(0x0)
--39234-- malloc(3632) = 0x1012EC410
--39234-- malloc(65536) = 0x10226A680
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10227A6C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10228A700
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10229A740
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1022AA780
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1022BA7C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1022CA800
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1022DA840
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1022EF040
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1022FF080
--39234-- free(0x0)
--39234-- malloc(3632) = 0x1012ED280
--39234-- malloc(65536) = 0x10230F0C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10231F100
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10232F140
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10233F180
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10234F1C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10235F200
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10236F240
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10237F280
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10238F2C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10239F300
--39234-- free(0x0)
--39234-- malloc(3632) = 0x1012EE0F0
--39234-- malloc(65536) = 0x1023AF340
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1023BF380
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1023CF3C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1023DF400
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1023EF440
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1023FF480
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10240F4C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10241F500
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10242F540
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10243F580
--39234-- free(0x0)
--39234-- malloc(3632) = 0x1022EA880
--39234-- malloc(65536) = 0x10244F5C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10245F600
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10246F640
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10247F680
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10248F6C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10249F700
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1024AF740
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1024BF780
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1024CF7C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1024DF800
--39234-- free(0x0)
--39234-- malloc(3632) = 0x1022EB6F0
--39234-- malloc(65536) = 0x1024EF840
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1024FF880
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10250F8C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10251F900
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10252F940
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10253F980
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10254F9C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10255FA00
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10256FA40
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10257FA80
--39234-- free(0x0)
--39234-- malloc(3632) = 0x1022EC560
--39234-- malloc(65536) = 0x10258FAC0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10259FB00
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1025AFB40
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1025BFB80
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1025CFBC0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1025DFC00
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1025EFC40
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1025FFC80
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10260FCC0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10261FD00
--39234-- free(0x0)
--39234-- malloc(3632) = 0x1022ED3D0
--39234-- malloc(65536) = 0x10262FD40
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10263FD80
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10264FDC0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10265FE00
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10266FE40
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10267FE80
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10268FEC0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10269FF00
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1026AFF40
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1026BFF80
--39234-- free(0x0)
--39234-- malloc(3632) = 0x1016E6700
--39234-- malloc(65536) = 0x1026CFFC0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1026EF040
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1026FF080
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10270F0C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10271F100
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10272F140
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10273F180
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10274F1C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10275F200
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10276F240
--39234-- free(0x0)
--39234-- malloc(3632) = 0x1016E7570
--39234-- malloc(65536) = 0x10277F280
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10278F2C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10279F300
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1027AF340
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1027BF380
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1027CF3C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1027DF400
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1027EF440
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1027FF480
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10280F4C0
--39234-- free(0x0)
--39234-- malloc(3632) = 0x1016E83E0
--39234-- malloc(65536) = 0x10281F500
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10282F540
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10283F580
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10284F5C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10285F600
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10286F640
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10287F680
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10288F6C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10289F700
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1028AF740
--39234-- free(0x0)
--39234-- malloc(3632) = 0x1016E9250
--39234-- malloc(65536) = 0x1028BF780
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1028CF7C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1028DF800
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1028EF840
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1028FF880
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10290F8C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10291F900
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10292F940
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10293F980
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10294F9C0
--39234-- free(0x0)
--39234-- malloc(3632) = 0x1016EA0C0
--39234-- malloc(65536) = 0x10295FA00
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10296FA40
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10297FA80
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10298FAC0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x10299FB00
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1029AFB40
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1029BFB80
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1029CFBC0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1029DFC00
--39234-- free(0x0)
--39234-- malloc(65536) = 0x1029EFC40
--39234-- free(0x0)
--39234-- malloc(3632) = 0x1016EAF30
--39234-- malloc(65536) = 0x1029FFC80
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102A0FCC0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102A1FD00
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102A2FD40
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102A3FD80
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102A4FDC0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102A5FE00
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102A6FE40
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102A7FE80
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102A8FEC0
--39234-- free(0x0)
--39234-- malloc(3632) = 0x1016EBDA0
--39234-- malloc(65536) = 0x102A9FF00
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102AAFF40
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102ABFF80
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102ACFFC0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102AEF040
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102AFF080
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102B0F0C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102B1F100
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102B2F140
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102B3F180
--39234-- free(0x0)
--39234-- malloc(3632) = 0x1016ECC10
--39234-- malloc(65536) = 0x102B4F1C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102B5F200
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102B6F240
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102B7F280
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102B8F2C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102B9F300
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102BAF340
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102BBF380
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102BCF3C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102BDF400
--39234-- free(0x0)
--39234-- malloc(3632) = 0x1016EDA80
--39234-- malloc(65536) = 0x102BEF440
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102BFF480
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102C0F4C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102C1F500
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102C2F540
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102C3F580
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102C4F5C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102C5F600
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102C6F640
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102C7F680
--39234-- free(0x0)
--39234-- malloc(3632) = 0x101AE4970
--39234-- malloc(65536) = 0x102C8F6C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102C9F700
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102CAF740
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102CBF780
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102CCF7C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102CDF800
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102CEF840
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102CFF880
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102D0F8C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102D1F900
--39234-- free(0x0)
--39234-- malloc(3632) = 0x101EE4970
--39234-- malloc(65536) = 0x102D2F940
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102D3F980
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102D4F9C0
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102D5FA00
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102D6FA40
--39234-- free(0x0)
--39234-- malloc(65536) = 0x102D7FA80
--39234-- free(0x0)
heap_alloc_induced(h->fSIGMA): Too many open files
==39234== Invalid read of size 8
==39234==    at 0x1003F0CED: flockfile (in /usr/lib/system/libsystem_c.dylib)
==39234==    by 0x1003F30B5: fseek (in /usr/lib/system/libsystem_c.dylib)
==39234==    by 0x100008E67: heap_alloc_induced (in ./egsa)
==39234==    by 0x10000B899: esa_merge (in ./egsa)
==39234==    by 0x10000C854: egsa (in ./egsa)
==39234==    by 0x10000CC0E: main (in ./egsa)
==39234==  Address 0x68 is not stack'd, malloc'd or (recently) free'd
==39234== 
==39234== 
==39234== Process terminating with default action of signal 11 (SIGSEGV)
==39234==  Access not within mapped region at address 0x68
==39234==    at 0x1003F0CED: flockfile (in /usr/lib/system/libsystem_c.dylib)
==39234==    by 0x1003F30B5: fseek (in /usr/lib/system/libsystem_c.dylib)
==39234==    by 0x100008E67: heap_alloc_induced (in ./egsa)
==39234==    by 0x10000B899: esa_merge (in ./egsa)
==39234==    by 0x10000C854: egsa (in ./egsa)
==39234==    by 0x10000CC0E: main (in ./egsa)
==39234==  If you believe this happened as a result of a stack
==39234==  overflow in your program's main thread (unlikely but
==39234==  possible), you can try to increase the size of the
==39234==  main thread stack using the --main-stacksize= flag.
==39234==  The main thread stack size used in this run was 8388608.
==39234== 
==39234== HEAP SUMMARY:
==39234==     in use at exit: 98,629,272 bytes in 715 blocks
==39234==   total heap usage: 750 allocs, 38 frees, 98,967,246 bytes allocated
==39234== 
==39234== LEAK SUMMARY:
==39234==    definitely lost: 1,064 bytes in 3 blocks
==39234==    indirectly lost: 0 bytes in 0 blocks
==39234==      possibly lost: 81,937,708 bytes in 264 blocks
==39234==    still reachable: 16,668,309 bytes in 292 blocks
==39234==         suppressed: 22,191 bytes in 156 blocks
==39234== Rerun with --leak-check=full to see details of leaked memory
==39234== 
==39234== For counts of detected and suppressed errors, rerun with: -v
==39234== ERROR SUMMARY: 10 errors from 7 contexts (suppressed: 4 from 4)
Segmentation fault: 11
felipelouza commented 6 years ago

Hi @bukosabino, it seems the problem is in function getcwd(), see:

I did update the code [see here], could you check if it is working now?! Thank you!

bukosabino commented 6 years ago

Hi Felipe,

You are using an undeclared variable 'max_path_len'

Lecrins-MacBook-Air:egsa lecrintech$ make
gcc -O3 -m64 -D_FILE_OFFSET_BITS=64 -Wall -Wno-implicit-function-declaration -Wno-unused-result -lm -ldl  -DDEBUG=0 -DBWT=0 -DMEMLIMIT=2048    -c -o external/gsaca-k.o external/gsaca-k.c
clang: warning: -lm: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -ldl: 'linker' input unused [-Wunused-command-line-argument]
gcc -O3 -m64 -D_FILE_OFFSET_BITS=64 -Wall -Wno-implicit-function-declaration -Wno-unused-result -lm -ldl  -DDEBUG=0 -DBWT=0 -DMEMLIMIT=2048    -c -o lib/utils.o lib/utils.c
clang: warning: -lm: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -ldl: 'linker' input unused [-Wunused-command-line-argument]
gcc -O3 -m64 -D_FILE_OFFSET_BITS=64 -Wall -Wno-implicit-function-declaration -Wno-unused-result -lm -ldl  -DDEBUG=0 -DBWT=0 -DMEMLIMIT=2048    -c -o lib/file.o lib/file.c
clang: warning: -lm: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -ldl: 'linker' input unused [-Wunused-command-line-argument]
lib/file.c:24:34: error: use of undeclared identifier 'max_path_len'
        char *tmp = malloc(sizeof(char)*max_path_len);
                                        ^
lib/file.c:25:27: error: use of undeclared identifier 'max_path_len'
        char* oldwd = getcwd(tmp,max_path_len);
                                 ^
2 errors generated.
make: *** [lib/file.o] Error 1
felipelouza commented 6 years ago

Sorry, please try again.

bukosabino commented 6 years ago

Hi @felipelouza ,

I have the same error:

Lecrins-MacBook-Air:egsa lecrintech$ ./egsa dataset/input-100.txt 2
SIGMA = 255
DIR = dataset/
INPUT = input-100.txt
K = 2
MEMLIMIT = 2048.00 MB
CHECK = 0
COMPUTE_BWT = 0
WORKSPACE = 13.n bytes

### PREPROCESSING ###
malloc_count ### free(0x7fe89e5ffff0) has no sentinel !!! memory corruption?
egsa(42770,0x7fff93cee380) malloc: *** error for object 0x7fe89e5ffff0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
felipelouza commented 6 years ago

That is bad, I will need the valgrind output for this part.

bukosabino commented 6 years ago
Lecrins-Air:egsa lecrintech$ valgrind --tool=memcheck --trace-malloc=yes ./egsa dataset/input-100.txt 2
==46722== Memcheck, a memory error detector
==46722== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==46722== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info
==46722== Command: ./egsa dataset/input-100.txt 2
==46722== 
--46722-- run: /usr/bin/dsymutil "./egsa"
warning: no debug symbols in executable (-arch x86_64)
--46722-- calloc(24,1) = 0x100EEF040
--46722-- calloc(24,1) = 0x100EEF0A0
--46722-- calloc(24,1) = 0x100EEF100
--46722-- calloc(24,1) = 0x100EEF160
--46722-- calloc(24,1) = 0x100EEF1C0
--46722-- malloc_zone_malloc(0x1001C1130, 24) = 0x100EEF220
--46722-- malloc_zone_malloc(0x1001C1130, 32) = 0x100EEF280
--46722-- malloc_zone_malloc(0x1001C1130, 32) = 0x100EEF2E0
--46722-- zone_calloc(0x1001C1130, 1,16) = 0x100EEF340
--46722-- malloc(32) = 0x100EEF390
--46722-- zone_calloc(0x1001C1130, 3,8) = 0x100EEF3F0
--46722-- malloc_zone_malloc(0x1001C1130, 32) = 0x100EEF450
--46722-- zone_calloc(0x1001C1130, 3,16) = 0x100EEF4B0
--46722-- zone_calloc(0x1001C1130, 3,8) = 0x100EEF520
--46722-- free(0x100EEF3F0)
--46722-- free(0x100EEF340)
--46722-- free(0x100EEF450)
--46722-- zone_calloc(0x1001C1130, 1,16) = 0x100EEF580
--46722-- malloc(32) = 0x100EEF5D0
--46722-- malloc_zone_malloc(0x1001C1130, 48) = 0x100EEF630
--46722-- malloc_zone_malloc(0x1001C1130, 80) = 0x100EEF6A0
--46722-- free(0x100EEF630)
--46722-- malloc_zone_malloc(0x1001C1130, 144) = 0x100EEF730
--46722-- free(0x100EEF6A0)
--46722-- malloc_zone_malloc(0x1001C1130, 272) = 0x100EEF800
--46722-- free(0x100EEF730)
--46722-- malloc_zone_malloc(0x1001C1130, 528) = 0x100EEF950
--46722-- free(0x100EEF800)
--46722-- malloc_zone_malloc(0x1001C1130, 24) = 0x100EEFBA0
--46722-- malloc_zone_malloc(0x1001C1130, 2064) = 0x100EEFC00
--46722-- malloc_zone_malloc(0x1001C1130, 1040) = 0x100EF0450
--46722-- free(0x100EEF950)
--46722-- malloc_zone_malloc(0x1001C1130, 2064) = 0x100EF08A0
--46722-- free(0x100EF0450)
--46722-- malloc_zone_malloc(0x1001C1130, 4112) = 0x100EF10F0
--46722-- free(0x100EF08A0)
--46722-- malloc_zone_malloc(0x1001C1130, 24) = 0x100EF2140
--46722-- malloc_zone_malloc(0x1001C1130, 528) = 0x100EF21A0
--46722-- malloc_zone_malloc(0x1001C1130, 1040) = 0x100EF23F0
--46722-- free(0x100EF21A0)
--46722-- malloc_zone_malloc(0x1001C1130, 2064) = 0x100EF2840
--46722-- free(0x100EF23F0)
--46722-- calloc(64,1) = 0x100EF3090
--46722-- calloc(64,1) = 0x100EF3110
--46722-- calloc(64,1) = 0x100EF3190
--46722-- calloc(64,1) = 0x100EF3210
--46722-- calloc(64,1) = 0x100EF3290
--46722-- malloc_zone_malloc(0x1001C1130, 24) = 0x100EF3310
--46722-- malloc(32) = 0x100EF3370
--46722-- zone_calloc(0x1001C1130, 3,8) = 0x100EF33D0
--46722-- malloc_zone_malloc(0x1001C1130, 32) = 0x100EF3430
--46722-- zone_calloc(0x1001C1130, 3,16) = 0x100EF3490
--46722-- zone_calloc(0x1001C1130, 3,8) = 0x100EF3500
--46722-- free(0x100EF33D0)
--46722-- free(0x100EEF580)
--46722-- free(0x100EF3430)
--46722-- malloc_zone_malloc(0x1001C1130, 528) = 0x100EF3560
--46722-- calloc(64,1) = 0x100EF37B0
--46722-- calloc(64,1) = 0x100EF3830
--46722-- calloc(64,1) = 0x100EF38B0
--46722-- calloc(64,1) = 0x100EF3930
--46722-- calloc(64,1) = 0x100EF39B0
--46722-- calloc(64,1) = 0x100EF3A30
--46722-- calloc(64,1) = 0x100EF3AB0
--46722-- calloc(64,1) = 0x100EF3B30
--46722-- calloc(64,1) = 0x100EF3BB0
--46722-- calloc(64,1) = 0x100EF3C30
--46722-- calloc(64,1) = 0x100EF3CB0
--46722-- calloc(64,1) = 0x100EF3D30
--46722-- calloc(64,1) = 0x100EF3DB0
--46722-- calloc(64,1) = 0x100EF3E30
--46722-- calloc(64,1) = 0x100EF3EB0
--46722-- calloc(64,1) = 0x100EF3F30
--46722-- calloc(64,1) = 0x100EF3FB0
--46722-- calloc(64,1) = 0x100EF4030
--46722-- calloc(64,1) = 0x100EF40B0
--46722-- calloc(64,1) = 0x100EF4130
--46722-- calloc(64,1) = 0x100EF41B0
--46722-- calloc(64,1) = 0x100EF4230
--46722-- calloc(64,1) = 0x100EF42B0
--46722-- calloc(64,1) = 0x100EF4330
--46722-- calloc(64,1) = 0x100EF43B0
--46722-- calloc(64,1) = 0x100EF4430
--46722-- calloc(64,1) = 0x100EF44B0
--46722-- calloc(64,1) = 0x100EF4530
--46722-- calloc(64,1) = 0x100EF45B0
--46722-- calloc(64,1) = 0x100EF4630
--46722-- calloc(64,1) = 0x100EF46B0
--46722-- calloc(64,1) = 0x100EF4730
--46722-- calloc(64,1) = 0x100EF47B0
--46722-- calloc(64,1) = 0x100EF4830
--46722-- calloc(64,1) = 0x100EF48B0
--46722-- calloc(64,1) = 0x100EF4930
--46722-- calloc(64,1) = 0x100EF49B0
--46722-- calloc(64,1) = 0x100EF4A30
--46722-- calloc(64,1) = 0x100EF4AB0
--46722-- calloc(64,1) = 0x100EF4B30
--46722-- calloc(64,1) = 0x100EF4BB0
--46722-- calloc(64,1) = 0x100EF4C30
--46722-- calloc(64,1) = 0x100EF4CB0
--46722-- calloc(64,1) = 0x100EF4D30
--46722-- calloc(64,1) = 0x100EF4DB0
--46722-- calloc(64,1) = 0x100EF4E30
--46722-- calloc(64,1) = 0x100EF4EB0
--46722-- calloc(64,1) = 0x100EF4F30
--46722-- calloc(64,1) = 0x100EF4FB0
--46722-- calloc(64,1) = 0x100EF5030
--46722-- calloc(64,1) = 0x100EF50B0
--46722-- calloc(64,1) = 0x100EF5130
--46722-- calloc(64,1) = 0x100EF51B0
--46722-- calloc(64,1) = 0x100EF5230
--46722-- calloc(64,1) = 0x100EF52B0
--46722-- calloc(64,1) = 0x100EF5330
--46722-- calloc(64,1) = 0x100EF53B0
--46722-- calloc(64,1) = 0x100EF5430
--46722-- calloc(64,1) = 0x100EF54B0
--46722-- calloc(64,1) = 0x100EF5530
--46722-- calloc(64,1) = 0x100EF55B0
--46722-- calloc(64,1) = 0x100EF5630
--46722-- calloc(64,1) = 0x100EF56B0
--46722-- calloc(64,1) = 0x100EF5730
--46722-- calloc(64,1) = 0x100EF57B0
--46722-- calloc(64,1) = 0x100EF5830
--46722-- calloc(64,1) = 0x100EF58B0
--46722-- calloc(64,1) = 0x100EF5930
--46722-- calloc(64,1) = 0x100EF59B0
--46722-- calloc(64,1) = 0x100EF5A30
--46722-- calloc(64,1) = 0x100EF5AB0
--46722-- calloc(64,1) = 0x100EF5B30
--46722-- calloc(64,1) = 0x100EF5BB0
--46722-- calloc(64,1) = 0x100EF5C30
--46722-- calloc(64,1) = 0x100EF5CB0
--46722-- calloc(64,1) = 0x100EF5D30
--46722-- calloc(64,1) = 0x100EF5DB0
--46722-- calloc(64,1) = 0x100EF5E30
--46722-- calloc(64,1) = 0x100EF5EB0
--46722-- calloc(64,1) = 0x100EF5F30
--46722-- calloc(64,1) = 0x100EF5FB0
--46722-- calloc(64,1) = 0x100EF6030
--46722-- calloc(64,1) = 0x100EF60B0
--46722-- calloc(64,1) = 0x100EF6130
--46722-- calloc(64,1) = 0x100EF61B0
--46722-- calloc(64,1) = 0x100EF6230
--46722-- calloc(64,1) = 0x100EF62B0
--46722-- calloc(64,1) = 0x100EF6330
--46722-- calloc(64,1) = 0x100EF63B0
--46722-- calloc(64,1) = 0x100EF6430
--46722-- calloc(64,1) = 0x100EF64B0
--46722-- calloc(64,1) = 0x100EF6530
--46722-- calloc(64,1) = 0x100EF65B0
--46722-- calloc(64,1) = 0x100EF6630
--46722-- calloc(64,1) = 0x100EF66B0
--46722-- calloc(64,1) = 0x100EF6730
--46722-- calloc(64,1) = 0x100EF67B0
--46722-- calloc(64,1) = 0x100EF6830
--46722-- calloc(64,1) = 0x100EF68B0
--46722-- calloc(64,1) = 0x100EF6930
--46722-- calloc(64,1) = 0x100EF69B0
--46722-- calloc(64,1) = 0x100EF6A30
--46722-- calloc(64,1) = 0x100EF6AB0
--46722-- calloc(64,1) = 0x100EF6B30
--46722-- calloc(64,1) = 0x100EF6BB0
--46722-- calloc(64,1) = 0x100EF6C30
--46722-- calloc(64,1) = 0x100EF6CB0
--46722-- realloc(0x0,256)malloc(256) = 0x100EF6D30
--46722-- realloc(0x100EF6D30,768) = 0x100EF6E70
--46722-- free(0x100EF6E70)
--46722-- realloc(0x0,256)malloc(256) = 0x100EF71B0
--46722-- free(0x100EF71B0)
--46722-- realloc(0x0,256)malloc(256) = 0x100EF72F0
--46722-- realloc(0x100EF72F0,768) = 0x100EF7430
--46722-- free(0x100EF7430)
--46722-- calloc(1,40) = 0x100EF7770
--46722-- calloc(64,1) = 0x100EF77E0
--46722-- calloc(1,56) = 0x100EF7860
--46722-- calloc(1,192) = 0x100EF78E0
--46722-- malloc(18) = 0x100EF79E0
--46722-- calloc(1,40) = 0x100EF7A40
--46722-- malloc(45) = 0x100EF7AB0
--46722-- malloc(157) = 0x100EF7B20
--46722-- calloc(1,40) = 0x100EF7C00
--46722-- malloc(45) = 0x100EF7C70
--46722-- malloc(50) = 0x100EF7CE0
--46722-- calloc(1,40) = 0x100EF7D60
--46722-- malloc(47) = 0x100EF7DD0
--46722-- malloc(49) = 0x100EF7E40
--46722-- calloc(1,40) = 0x100EF7EC0
--46722-- malloc(67) = 0x100EF7F30
--46722-- malloc(52) = 0x100EF7FC0
--46722-- calloc(1,40) = 0x100EF8040
--46722-- malloc(54) = 0x100EF80B0
--46722-- malloc(12) = 0x100EF8130
--46722-- calloc(1,40) = 0x100EF8180
--46722-- malloc(45) = 0x100EF81F0
--46722-- calloc(1,32) = 0x100EF8260
--46722-- calloc(1,192) = 0x100EF82C0
--46722-- malloc(118) = 0x100EF83C0
--46722-- malloc(122) = 0x100EF8480
--46722-- free(0x0)
--46722-- malloc(16) = 0x100EF8540
--46722-- malloc(64) = 0x100EF8590
--46722-- malloc(14) = 0x100EF8610
--46722-- calloc(1,120) = 0x100EF8660
--46722-- realloc(0x0,256)malloc(256) = 0x100EF8720
--46722-- free(0x100EF8720)
--46722-- malloc(48) = 0x100EF8860
--46722-- malloc(20) = 0x100EF88D0
--46722-- malloc(9) = 0x100EF8930
--46722-- malloc(4096) = 0x100EF8980
SIGMA = 255
--46722-- free(0x0)
DIR = dataset/
--46722-- free(0x0)
INPUT = input-100.txt
--46722-- free(0x0)
K = 2
--46722-- free(0x0)
--46722-- malloc(80) = 0x100EF99C0
--46722-- malloc(36) = 0x100EF9A50
--46722-- malloc(32) = 0x100EF9AC0
MEMLIMIT = 2048.00 MB
--46722-- free(0x0)
CHECK = 0
--46722-- free(0x0)
COMPUTE_BWT = 0
--46722-- free(0x0)
WORKSPACE = 13.n bytes
--46722-- free(0x0)
--46722-- malloc(4112) = 0x100EF9B20
--46722-- free(0x100EF9B20)

### PREPROCESSING ###
--46722-- malloc(128) = 0x100EFAB70
--46722-- free(0x100EFAB70)
--46722-- malloc(65536) = 0x100EFAC30
--46722-- free(0x0)
--46722-- realloc(0x0,8)malloc(8) = 0x100F0AC70
--46722-- malloc(65536) = 0x100F0ACC0
==46722== Invalid read of size 8
==46722==    at 0x1000015ED: free (in ./egsa)
==46722==    by 0x100007CEB: load_multiple_txt (in ./egsa)
==46722==    by 0x10000871A: preprocessing (in ./egsa)
==46722==    by 0x10000C788: egsa (in ./egsa)
==46722==    by 0x10000CC3E: main (in ./egsa)
==46722==  Address 0x100f0ac68 is 8 bytes before a block of size 8 alloc'd
==46722==    at 0x1001BA086: malloc (in /usr/local/Cellar/valgrind/3.14.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==46722==    by 0x1003F42BC: sappend (in /usr/lib/system/libsystem_c.dylib)
==46722==    by 0x1003F419C: getdelim (in /usr/lib/system/libsystem_c.dylib)
==46722==    by 0x100007B9B: load_multiple_txt (in ./egsa)
==46722==    by 0x10000871A: preprocessing (in ./egsa)
==46722==    by 0x10000C788: egsa (in ./egsa)
==46722==    by 0x10000CC3E: main (in ./egsa)
==46722== 
--46722-- free(0x0)
malloc_count ### free(0x100f0ac60) has no sentinel !!! memory corruption?
==46722== Invalid read of size 8
==46722==    at 0x100001615: free (in ./egsa)
==46722==    by 0x100007CEB: load_multiple_txt (in ./egsa)
==46722==    by 0x10000871A: preprocessing (in ./egsa)
==46722==    by 0x10000C788: egsa (in ./egsa)
==46722==    by 0x10000CC3E: main (in ./egsa)
==46722==  Address 0x100f0ac60 is 16 bytes before a block of size 8 alloc'd
==46722==    at 0x1001BA086: malloc (in /usr/local/Cellar/valgrind/3.14.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==46722==    by 0x1003F42BC: sappend (in /usr/lib/system/libsystem_c.dylib)
==46722==    by 0x1003F419C: getdelim (in /usr/lib/system/libsystem_c.dylib)
==46722==    by 0x100007B9B: load_multiple_txt (in ./egsa)
==46722==    by 0x10000871A: preprocessing (in ./egsa)
==46722==    by 0x10000C788: egsa (in ./egsa)
==46722==    by 0x10000CC3E: main (in ./egsa)
==46722== 
--46722-- free(0x100F0AC60)
==46722== Invalid free() / delete / delete[] / realloc()
==46722==    at 0x1001BA463: free (in /usr/local/Cellar/valgrind/3.14.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==46722==    by 0x100007CEB: load_multiple_txt (in ./egsa)
==46722==    by 0x10000871A: preprocessing (in ./egsa)
==46722==    by 0x10000C788: egsa (in ./egsa)
==46722==    by 0x10000CC3E: main (in ./egsa)
==46722==  Address 0x100f0ac60 is 16 bytes before a block of size 8 alloc'd
==46722==    at 0x1001BA086: malloc (in /usr/local/Cellar/valgrind/3.14.0/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==46722==    by 0x1003F42BC: sappend (in /usr/lib/system/libsystem_c.dylib)
==46722==    by 0x1003F419C: getdelim (in /usr/lib/system/libsystem_c.dylib)
==46722==    by 0x100007B9B: load_multiple_txt (in ./egsa)
==46722==    by 0x10000871A: preprocessing (in ./egsa)
==46722==    by 0x10000C788: egsa (in ./egsa)
==46722==    by 0x10000CC3E: main (in ./egsa)
==46722== 
--46722-- realloc(0x0,32)malloc(32) = 0x100F1AD00
--46722-- free(0x0)
malloc_count ### free(0x100f1acf0) has no sentinel !!! memory corruption?
--46722-- free(0x100F1ACF0)
--46722-- free(0x100F0ACC0)
K = 2
--46722-- free(0x0)
--46722-- free(0x100EFAC30)
--46722-- malloc(132) = 0x100F1AD60
--46722-- malloc(528) = 0x100F1AE30
--46722-- free(0x0)
--46722-- malloc(65536) = 0x100F1B080
--46722-- free(0x100F1B080)
PARTITIONS = 1
--46722-- free(0x0)
--46722-- malloc(36) = 0x100F2B0C0
--46722-- malloc(36) = 0x100F2B130
--46722-- malloc(36) = 0x100F2B1A0
TOTAL = 24 bytes    0.00 MB
--46722-- free(0x0)
CLOCK = 0.061911 TIME = 1.000000
--46722-- free(0x0)
--46722-- free(0x0)
0.061911    1.000000

### PHASE 1 ###
--46722-- malloc(65536) = 0x100F2B210
--46722-- malloc(50) = 0x100F3B250
--46722-- free(0x100F2B210)
--46722-- malloc(120) = 0x100F3B2D0
--46722-- malloc(120) = 0x100F3B390
--46722-- malloc(1036) = 0x100F3B450
--46722-- free(0x100F3B450)
--46722-- malloc(112) = 0x100F3B8A0
--46722-- free(0x100F3B8A0)
--46722-- free(0x0)
--46722-- malloc(112) = 0x100F3B950
--46722-- malloc(65536) = 0x100F3BA00
--46722-- free(0x100F3BA00)
--46722-- free(0x100F3B950)
--46722-- free(0x100F3B2D0)
--46722-- free(0x100F3B390)
--46722-- free(0x100F3B250)
CLOCK = 0.038981 TIME = 0.000000
--46722-- free(0x0)
--46722-- free(0x0)
0.038981    0.000000

### PHASE 2 ###
--46722-- malloc(141904) = 0x100F4BA40
--46722-- malloc(24) = 0x100F6E4D0
--46722-- malloc(28) = 0x100F6E530
--46722-- malloc(28) = 0x100F6E590
--46722-- malloc(67108888) = 0x1049AF040
--46722-- malloc(24) = 0x100F6E5F0
--46722-- malloc(24) = 0x100F6E650
--46722-- malloc(24) = 0x100F6E6B0
--46722-- malloc(24) = 0x100F6E710
--46722-- malloc(24) = 0x100F6E770
--46722-- malloc(24) = 0x100F6E7D0
--46722-- malloc(24) = 0x100F6E830
--46722-- malloc(24) = 0x100F6E890
--46722-- malloc(24) = 0x100F6E8F0
--46722-- malloc(24) = 0x100F6E950
--46722-- malloc(24) = 0x100F6E9B0
--46722-- malloc(24) = 0x100F6EA10
--46722-- malloc(24) = 0x100F6EA70
--46722-- malloc(24) = 0x100F6EAD0
--46722-- malloc(24) = 0x100F6EB30
--46722-- malloc(24) = 0x100F6EB90
--46722-- malloc(24) = 0x100F6EBF0
--46722-- malloc(24) = 0x100F6EC50
--46722-- malloc(24) = 0x100F6ECB0
--46722-- malloc(24) = 0x100F6ED10
--46722-- malloc(24) = 0x100F6ED70
--46722-- malloc(24) = 0x100F6EDD0
--46722-- malloc(24) = 0x100F6EE30
--46722-- malloc(24) = 0x100F6EE90
--46722-- malloc(24) = 0x100F6EEF0
--46722-- malloc(24) = 0x100F6EF50
--46722-- malloc(24) = 0x100F6EFB0
--46722-- malloc(24) = 0x100F6F010
--46722-- malloc(24) = 0x100F6F070
--46722-- malloc(24) = 0x100F6F0D0
--46722-- malloc(24) = 0x100F6F130
--46722-- malloc(24) = 0x100F6F190
--46722-- malloc(24) = 0x100F6F1F0
--46722-- malloc(24) = 0x100F6F250
--46722-- malloc(24) = 0x100F6F2B0
--46722-- malloc(24) = 0x100F6F310
--46722-- malloc(24) = 0x100F6F370
--46722-- malloc(24) = 0x100F6F3D0
--46722-- malloc(24) = 0x100F6F430
--46722-- malloc(24) = 0x100F6F490
--46722-- malloc(24) = 0x100F6F4F0
--46722-- malloc(24) = 0x100F6F550
--46722-- malloc(24) = 0x100F6F5B0
--46722-- malloc(24) = 0x100F6F610
--46722-- malloc(24) = 0x100F6F670
--46722-- malloc(24) = 0x100F6F6D0
--46722-- malloc(24) = 0x100F6F730
--46722-- malloc(24) = 0x100F6F790
--46722-- malloc(24) = 0x100F6F7F0
--46722-- malloc(24) = 0x100F6F850
--46722-- malloc(24) = 0x100F6F8B0
--46722-- malloc(24) = 0x100F6F910
--46722-- malloc(24) = 0x100F6F970
--46722-- malloc(24) = 0x100F6F9D0
--46722-- malloc(24) = 0x100F6FA30
--46722-- malloc(24) = 0x100F6FA90
--46722-- malloc(24) = 0x100F6FAF0
--46722-- malloc(24) = 0x100F6FB50
--46722-- malloc(24) = 0x100F6FBB0
--46722-- malloc(24) = 0x100F6FC10
--46722-- malloc(24) = 0x100F6FC70
--46722-- malloc(24) = 0x100F6FCD0
--46722-- malloc(24) = 0x100F6FD30
--46722-- malloc(24) = 0x100F6FD90
--46722-- malloc(24) = 0x100F6FDF0
--46722-- malloc(699072) = 0x100F6FE50
--46722-- malloc(24) = 0x10101A950
--46722-- malloc(699072) = 0x10101A9B0
--46722-- malloc(699072) = 0x1010C54B0
--46722-- malloc(24) = 0x10116FFB0
--46722-- malloc(24) = 0x101170010
--46722-- malloc(24) = 0x101170070
--46722-- malloc(24) = 0x1011700D0
--46722-- malloc(699072) = 0x101170130
--46722-- malloc(24) = 0x10121AC30
--46722-- malloc(24) = 0x10121AC90
--46722-- malloc(24) = 0x10121ACF0
--46722-- malloc(24) = 0x10121AD50
--46722-- malloc(699072) = 0x10121ADB0
--46722-- malloc(699072) = 0x1012EF040
--46722-- malloc(24) = 0x1012C58B0
--46722-- malloc(699072) = 0x101399B40
--46722-- malloc(24) = 0x1012C5910
--46722-- malloc(24) = 0x101444640
--46722-- malloc(24) = 0x1012C5970
--46722-- malloc(24) = 0x1014446A0
--46722-- malloc(24) = 0x1012C59D0
--46722-- malloc(699072) = 0x101444700
--46722-- malloc(24) = 0x1012C5A30
--46722-- malloc(24) = 0x1014EF200
--46722-- malloc(24) = 0x1012C5A90
--46722-- malloc(24) = 0x1014EF260
--46722-- malloc(24) = 0x1012C5AF0
--46722-- malloc(24) = 0x1014EF2C0
--46722-- malloc(24) = 0x1012C5B50
--46722-- malloc(24) = 0x1014EF320
--46722-- malloc(699072) = 0x1014EF380
--46722-- malloc(24) = 0x1012C5BB0
--46722-- malloc(24) = 0x101599E80
--46722-- malloc(24) = 0x1012C5C10
--46722-- malloc(24) = 0x101599EE0
--46722-- malloc(24) = 0x1012C5C70
--46722-- malloc(24) = 0x101599F40
--46722-- malloc(699072) = 0x101599FA0
--46722-- malloc(699072) = 0x1016EF040
--46722-- malloc(24) = 0x1012C5CD0
--46722-- malloc(24) = 0x101644AA0
--46722-- malloc(699072) = 0x101799B40
--46722-- malloc(24) = 0x1012C5D30
--46722-- malloc(1398120) = 0x101844640
--46722-- malloc(699072) = 0x101999BF0
--46722-- malloc(24) = 0x1012C5D90
--46722-- malloc(699072) = 0x101AEF040
--46722-- malloc(24) = 0x1012C5DF0
--46722-- malloc(24) = 0x101644B00
--46722-- malloc(699072) = 0x101B99B40
--46722-- malloc(24) = 0x1012C5E50
--46722-- malloc(24) = 0x101644B60
--46722-- malloc(24) = 0x1012C5EB0
--46722-- malloc(699072) = 0x101C44640
--46722-- malloc(1398120) = 0x101CEF140
--46722-- malloc(699072) = 0x101EEF040
--46722-- malloc(24) = 0x1012C5F10
--46722-- malloc(24) = 0x101644BC0
--46722-- malloc(24) = 0x1012C5F70
--46722-- malloc(24) = 0x101644C20
--46722-- malloc(24) = 0x1012C5FD0
--46722-- malloc(24) = 0x101644C80
--46722-- malloc(24) = 0x1012C6030
--46722-- malloc(24) = 0x101644CE0
--46722-- malloc(24) = 0x1012C6090
--46722-- malloc(24) = 0x101644D40
--46722-- malloc(24) = 0x1012C60F0
--46722-- malloc(24) = 0x101644DA0
--46722-- malloc(24) = 0x1012C6150
--46722-- malloc(24) = 0x101644E00
--46722-- malloc(24) = 0x1012C61B0
--46722-- malloc(24) = 0x101644E60
--46722-- malloc(24) = 0x1012C6210
--46722-- malloc(24) = 0x101644EC0
--46722-- malloc(24) = 0x1012C6270
--46722-- malloc(24) = 0x101644F20
--46722-- malloc(24) = 0x1012C62D0
--46722-- malloc(24) = 0x101644F80
--46722-- malloc(24) = 0x1012C6330
--46722-- malloc(24) = 0x101644FE0
--46722-- malloc(24) = 0x1012C6390
--46722-- malloc(24) = 0x101645040
--46722-- malloc(24) = 0x1012C63F0
--46722-- malloc(24) = 0x1016450A0
--46722-- malloc(24) = 0x1012C6450
--46722-- malloc(24) = 0x101645100
--46722-- malloc(24) = 0x1012C64B0
--46722-- malloc(24) = 0x101645160
--46722-- malloc(24) = 0x1012C6510
--46722-- malloc(24) = 0x1016451C0
--46722-- malloc(24) = 0x1012C6570
--46722-- malloc(24) = 0x101645220
--46722-- malloc(24) = 0x1012C65D0
--46722-- malloc(24) = 0x101645280
--46722-- malloc(24) = 0x1012C6630
--46722-- malloc(24) = 0x1016452E0
--46722-- malloc(24) = 0x1012C6690
--46722-- malloc(24) = 0x101645340
--46722-- malloc(24) = 0x1012C66F0
--46722-- malloc(24) = 0x1016453A0
--46722-- malloc(24) = 0x1012C6750
--46722-- malloc(24) = 0x101645400
--46722-- malloc(24) = 0x1012C67B0
--46722-- malloc(24) = 0x101645460
--46722-- malloc(24) = 0x1012C6810
--46722-- malloc(24) = 0x1016454C0
--46722-- malloc(24) = 0x1012C6870
--46722-- malloc(24) = 0x101645520
--46722-- malloc(24) = 0x1012C68D0
--46722-- malloc(24) = 0x101645580
--46722-- malloc(24) = 0x1012C6930
--46722-- malloc(24) = 0x1016455E0
--46722-- malloc(24) = 0x1012C6990
--46722-- malloc(24) = 0x101645640
--46722-- malloc(24) = 0x1012C69F0
--46722-- malloc(24) = 0x1016456A0
--46722-- malloc(24) = 0x1012C6A50
--46722-- malloc(24) = 0x101645700
--46722-- malloc(24) = 0x1012C6AB0
--46722-- malloc(24) = 0x101645760
--46722-- malloc(24) = 0x1012C6B10
--46722-- malloc(24) = 0x1016457C0
--46722-- malloc(24) = 0x1012C6B70
--46722-- malloc(24) = 0x101645820
--46722-- malloc(24) = 0x1012C6BD0
--46722-- malloc(24) = 0x101645880
--46722-- malloc(24) = 0x1012C6C30
--46722-- malloc(24) = 0x1016458E0
--46722-- malloc(24) = 0x1012C6C90
--46722-- malloc(24) = 0x101645940
--46722-- malloc(24) = 0x1012C6CF0
--46722-- malloc(24) = 0x1016459A0
--46722-- malloc(24) = 0x1012C6D50
--46722-- malloc(24) = 0x101645A00
--46722-- malloc(24) = 0x1012C6DB0
--46722-- malloc(24) = 0x101645A60
--46722-- malloc(24) = 0x1012C6E10
--46722-- malloc(24) = 0x101645AC0
--46722-- malloc(24) = 0x1012C6E70
--46722-- malloc(24) = 0x101645B20
--46722-- malloc(24) = 0x1012C6ED0
--46722-- malloc(24) = 0x101645B80
--46722-- malloc(24) = 0x1012C6F30
--46722-- malloc(24) = 0x101645BE0
--46722-- malloc(24) = 0x1012C6F90
--46722-- malloc(24) = 0x101645C40
--46722-- malloc(24) = 0x1012C6FF0
--46722-- malloc(24) = 0x101645CA0
--46722-- malloc(24) = 0x1012C7050
--46722-- malloc(24) = 0x101645D00
--46722-- malloc(24) = 0x1012C70B0
--46722-- malloc(24) = 0x101645D60
--46722-- malloc(24) = 0x1012C7110
--46722-- malloc(24) = 0x101645DC0
--46722-- malloc(24) = 0x1012C7170
--46722-- malloc(24) = 0x101645E20
--46722-- malloc(24) = 0x1012C71D0
--46722-- malloc(24) = 0x101645E80
--46722-- malloc(24) = 0x1012C7230
--46722-- malloc(24) = 0x101645EE0
--46722-- malloc(24) = 0x1012C7290
--46722-- malloc(24) = 0x101645F40
--46722-- malloc(24) = 0x1012C72F0
--46722-- malloc(24) = 0x101645FA0
--46722-- malloc(24) = 0x1012C7350
--46722-- malloc(24) = 0x101646000
--46722-- malloc(24) = 0x1012C73B0
--46722-- malloc(24) = 0x101646060
--46722-- malloc(24) = 0x1012C7410
--46722-- malloc(24) = 0x1016460C0
--46722-- malloc(24) = 0x1012C7470
--46722-- malloc(24) = 0x101646120
--46722-- malloc(24) = 0x1012C74D0
--46722-- malloc(24) = 0x101646180
--46722-- malloc(24) = 0x1012C7530
--46722-- malloc(24) = 0x1016461E0
--46722-- malloc(24) = 0x1012C7590
--46722-- malloc(24) = 0x101646240
--46722-- malloc(24) = 0x1012C75F0
--46722-- malloc(24) = 0x1016462A0
--46722-- malloc(24) = 0x1012C7650
--46722-- malloc(24) = 0x101646300
--46722-- malloc(24) = 0x1012C76B0
--46722-- malloc(24) = 0x101646360
--46722-- malloc(24) = 0x1012C7710
--46722-- malloc(24) = 0x1016463C0
--46722-- malloc(24) = 0x1012C7770
--46722-- malloc(24) = 0x101646420
--46722-- malloc(128) = 0x1012C77D0
--46722-- free(0x1012C77D0)
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101646480
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1012C7890
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1012D78D0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1016564C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101A446F0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101666500
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101A54730
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101676540
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101A64770
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101686580
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101A747B0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1016965C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101A847F0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1016A6600
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101A94830
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1016B6640
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101AA4870
--46722-- free(0x0)
--46722-- malloc(3632) = 0x1012E7910
--46722-- malloc(65536) = 0x1016C6680
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1016D66C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101AB48B0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101E446F0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101AC48F0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101AD4930
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101E54730
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101F99B40
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101E64770
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101FA9B80
--46722-- free(0x0)
--46722-- malloc(3632) = 0x1012E8780
--46722-- malloc(65536) = 0x101E747B0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101FB9BC0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101E847F0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101FC9C00
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101E94830
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101FD9C40
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101EA4870
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101FE9C80
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101EB48B0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101FF9CC0
--46722-- free(0x0)
--46722-- malloc(3632) = 0x1012E95F0
--46722-- malloc(65536) = 0x101EC48F0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x101ED4930
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102009D00
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102019D40
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102029D80
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102039DC0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102049E00
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102059E40
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102069E80
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102079EC0
--46722-- free(0x0)
--46722-- malloc(3632) = 0x1012EA460
--46722-- malloc(65536) = 0x102089F00
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102099F40
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1020A9F80
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1020B9FC0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1020CA000
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1020DA040
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1020EA080
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1020FA0C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10210A100
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10211A140
--46722-- free(0x0)
--46722-- malloc(3632) = 0x1012EB2D0
--46722-- malloc(65536) = 0x10212A180
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10213A1C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10214A200
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10215A240
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10216A280
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10217A2C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10218A300
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10219A340
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1021AA380
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1021BA3C0
--46722-- free(0x0)
--46722-- malloc(3632) = 0x1012EC140
--46722-- malloc(65536) = 0x1021CA400
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1021DA440
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1021EA480
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1021FA4C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10220A500
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10221A540
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10222A580
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10223A5C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10224A600
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10225A640
--46722-- free(0x0)
--46722-- malloc(3632) = 0x1012ECFB0
--46722-- malloc(65536) = 0x10226A680
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10227A6C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10228A700
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10229A740
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1022AA780
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1022BA7C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1022CA800
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1022DA840
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1022EF040
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1022FF080
--46722-- free(0x0)
--46722-- malloc(3632) = 0x1012EDE20
--46722-- malloc(65536) = 0x10230F0C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10231F100
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10232F140
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10233F180
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10234F1C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10235F200
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10236F240
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10237F280
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10238F2C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10239F300
--46722-- free(0x0)
--46722-- malloc(3632) = 0x1022EA880
--46722-- malloc(65536) = 0x1023AF340
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1023BF380
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1023CF3C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1023DF400
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1023EF440
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1023FF480
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10240F4C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10241F500
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10242F540
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10243F580
--46722-- free(0x0)
--46722-- malloc(3632) = 0x1022EB6F0
--46722-- malloc(65536) = 0x10244F5C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10245F600
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10246F640
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10247F680
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10248F6C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10249F700
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1024AF740
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1024BF780
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1024CF7C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1024DF800
--46722-- free(0x0)
--46722-- malloc(3632) = 0x1022EC560
--46722-- malloc(65536) = 0x1024EF840
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1024FF880
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10250F8C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10251F900
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10252F940
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10253F980
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10254F9C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10255FA00
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10256FA40
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10257FA80
--46722-- free(0x0)
--46722-- malloc(3632) = 0x1022ED3D0
--46722-- malloc(65536) = 0x10258FAC0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10259FB00
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1025AFB40
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1025BFB80
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1025CFBC0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1025DFC00
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1025EFC40
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1025FFC80
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10260FCC0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10261FD00
--46722-- free(0x0)
--46722-- malloc(3632) = 0x1016E6700
--46722-- malloc(65536) = 0x10262FD40
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10263FD80
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10264FDC0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10265FE00
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10266FE40
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10267FE80
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10268FEC0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10269FF00
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1026AFF40
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1026BFF80
--46722-- free(0x0)
--46722-- malloc(3632) = 0x1016E7570
--46722-- malloc(65536) = 0x1026CFFC0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1026EF040
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1026FF080
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10270F0C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10271F100
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10272F140
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10273F180
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10274F1C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10275F200
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10276F240
--46722-- free(0x0)
--46722-- malloc(3632) = 0x1016E83E0
--46722-- malloc(65536) = 0x10277F280
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10278F2C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10279F300
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1027AF340
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1027BF380
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1027CF3C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1027DF400
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1027EF440
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1027FF480
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10280F4C0
--46722-- free(0x0)
--46722-- malloc(3632) = 0x1016E9250
--46722-- malloc(65536) = 0x10281F500
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10282F540
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10283F580
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10284F5C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10285F600
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10286F640
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10287F680
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10288F6C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10289F700
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1028AF740
--46722-- free(0x0)
--46722-- malloc(3632) = 0x1016EA0C0
--46722-- malloc(65536) = 0x1028BF780
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1028CF7C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1028DF800
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1028EF840
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1028FF880
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10290F8C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10291F900
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10292F940
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10293F980
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10294F9C0
--46722-- free(0x0)
--46722-- malloc(3632) = 0x1016EAF30
--46722-- malloc(65536) = 0x10295FA00
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10296FA40
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10297FA80
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10298FAC0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x10299FB00
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1029AFB40
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1029BFB80
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1029CFBC0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1029DFC00
--46722-- free(0x0)
--46722-- malloc(65536) = 0x1029EFC40
--46722-- free(0x0)
--46722-- malloc(3632) = 0x1016EBDA0
--46722-- malloc(65536) = 0x1029FFC80
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102A0FCC0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102A1FD00
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102A2FD40
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102A3FD80
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102A4FDC0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102A5FE00
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102A6FE40
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102A7FE80
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102A8FEC0
--46722-- free(0x0)
--46722-- malloc(3632) = 0x1016ECC10
--46722-- malloc(65536) = 0x102A9FF00
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102AAFF40
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102ABFF80
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102ACFFC0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102AEF040
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102AFF080
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102B0F0C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102B1F100
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102B2F140
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102B3F180
--46722-- free(0x0)
--46722-- malloc(3632) = 0x1016EDA80
--46722-- malloc(65536) = 0x102B4F1C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102B5F200
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102B6F240
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102B7F280
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102B8F2C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102B9F300
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102BAF340
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102BBF380
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102BCF3C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102BDF400
--46722-- free(0x0)
--46722-- malloc(3632) = 0x101AE4970
--46722-- malloc(65536) = 0x102BEF440
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102BFF480
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102C0F4C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102C1F500
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102C2F540
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102C3F580
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102C4F5C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102C5F600
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102C6F640
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102C7F680
--46722-- free(0x0)
--46722-- malloc(3632) = 0x101EE4970
--46722-- malloc(65536) = 0x102C8F6C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102C9F700
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102CAF740
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102CBF780
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102CCF7C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102CDF800
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102CEF840
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102CFF880
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102D0F8C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102D1F900
--46722-- free(0x0)
--46722-- malloc(3632) = 0x101AE57E0
--46722-- malloc(65536) = 0x102D2F940
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102D3F980
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102D4F9C0
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102D5FA00
--46722-- free(0x0)
--46722-- malloc(65536) = 0x102D6FA40
--46722-- free(0x0)
==46722== Warning: invalid file descriptor 261 in syscall open()
heap_alloc_induced(h->fSIGMA): Too many open files
==46722== Invalid read of size 8
==46722==    at 0x1003F0CED: flockfile (in /usr/lib/system/libsystem_c.dylib)
==46722==    by 0x1003F30B5: fseek (in /usr/lib/system/libsystem_c.dylib)
==46722==    by 0x100008F77: heap_alloc_induced (in ./egsa)
==46722==    by 0x10000BA49: esa_merge (in ./egsa)
==46722==    by 0x10000C884: egsa (in ./egsa)
==46722==    by 0x10000CC3E: main (in ./egsa)
==46722==  Address 0x68 is not stack'd, malloc'd or (recently) free'd
==46722== 
==46722== 
==46722== Process terminating with default action of signal 11 (SIGSEGV)
==46722==  Access not within mapped region at address 0x68
==46722==    at 0x1003F0CED: flockfile (in /usr/lib/system/libsystem_c.dylib)
==46722==    by 0x1003F30B5: fseek (in /usr/lib/system/libsystem_c.dylib)
==46722==    by 0x100008F77: heap_alloc_induced (in ./egsa)
==46722==    by 0x10000BA49: esa_merge (in ./egsa)
==46722==    by 0x10000C884: egsa (in ./egsa)
==46722==    by 0x10000CC3E: main (in ./egsa)
==46722==  If you believe this happened as a result of a stack
==46722==  overflow in your program's main thread (unlikely but
==46722==  possible), you can try to increase the size of the
==46722==  main thread stack using the --main-stacksize= flag.
==46722==  The main thread stack size used in this run was 8388608.
==46722== 
==46722== HEAP SUMMARY:
==46722==     in use at exit: 98,562,712 bytes in 713 blocks
==46722==   total heap usage: 748 allocs, 37 frees, 98,904,758 bytes allocated
==46722== 
==46722== LEAK SUMMARY:
==46722==    definitely lost: 40 bytes in 2 blocks
==46722==    indirectly lost: 0 bytes in 0 blocks
==46722==      possibly lost: 81,937,708 bytes in 264 blocks
==46722==    still reachable: 16,602,773 bytes in 291 blocks
==46722==         suppressed: 22,191 bytes in 156 blocks
==46722== Rerun with --leak-check=full to see details of leaked memory
==46722== 
==46722== For counts of detected and suppressed errors, rerun with: -v
==46722== ERROR SUMMARY: 7 errors from 4 contexts (suppressed: 4 from 4)
Segmentation fault: 11
felipelouza commented 6 years ago

Hi @bukosabino, I think the problem now is with getline(). However, I am not sure I will manage to solve this issues completly before having in hands a MAC OS, sorry.

felipelouza commented 5 years ago

Hi again @bukosabino, a friend of mine helped me and it seems that egsa should work when compiled with gcc5, please try make CC=gcc-mp-5 and see if everything is ok. Cheers!

grcd commented 5 years ago

Hi again @bukosabino, a friend of mine helped me and it seems that egsa should work when compiled with gcc5, please try make CC=gcc-mp-5 and see if everything is ok. Cheers!

Hi @felipelouza, I am experiencing the same problem as @bukosabino compiling with (homebrew) gcc 8.3.0.

I tried to compile with MacPorts gcc-mp-5 as you suggested above, but I obtain this ld-related error message:

gcc-mp-5 external/malloc_count/malloc_count.o external/gsaca-k.o lib/utils.o lib/file.o lib/heap.o lib/esa.o lib/lcp.o src/egsa.o main.c -o egsa -O3 -m64 -D_FILE_OFFSET_BITS=64 -Wall -Wno-implicit-function-declaration -Wno-unused-result -lm -ldl -DDEBUG=0 -DBWT=0 -DMEMLIMIT=2048

ld: unexpected token: !tapi-tbd-v3 file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd' for architecture x86_64 collect2: error: ld returned 1 exit status make: *** [compile] Error 1

I am running macOS Mojave 10.14.3 on 2.4Ghz Intel Core i5 4GB RAM 1600 Mhz DDR3. Here is my brew configoutput:

CPU: quad-core 64-bit haswell Homebrew Ruby: 2.3.7 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby Clang: 10.0 build 1001 Git: 2.19.2 => /usr/local/bin/git Curl: 7.54.0 => /usr/bin/curl Java: 1.8.0_201 macOS: 10.14.3-x86_64 CLT: 10.2.0.0.1.1552586384 Xcode: 10.2 XQuartz: 2.7.11 => /opt/X11

Any hints about it?

grcd commented 5 years ago

Hi @bukosabino, I think the problem now is with getline(). However, I am not sure I will manage to solve this issues completly before having in hands a MAC OS, sorry.

In the meanwhile, I tried to re-compile using gcc-8. I get the same error @bukosabino got, namely:

malloc_count ### free(0x7faebac02b80) has no sentinel !!! memory corruption? egsa(99135,0x10c7795c0) malloc: error for object 0x7faebac02b80: pointer being freed was not allocated egsa(99135,0x10c7795c0) malloc: set a breakpoint in malloc_error_break to debug Abort trap: 6

I tried to investigate a little bit the behavior of getline, right after your line of code (within file.c):

size = getline((char **)&c_buffer, &len, f_in); // read line

It is weird: it seems that getline do malloc/realloc correctly (if you try to printf c_buffer, there is actually the line you read) but as soon as you free(c_buffer), you get the error above. So far, I did not find any open issue on Stackoverflow or similar websites.

felipelouza commented 5 years ago

Hi @grcdaniele, sorry the late reply, it is not easy to find out a solution without access to a MAC OS. I added a new option to the compilation make mac_os=1, where the getlines are replaced by fgets(). Could you check if it works? In the case you need a fast (internal memory) tool to build SA, LCP, DA, GSA and BWT for string collections, you can use this tool: https://github.com/felipelouza/gsufsort Cheers!

grcd commented 5 years ago

Hi @bukosabino, sorry the late reply, it is not easy to find out a solution without access to a MAC OS. I added a new option to the compilation make mac_os=1, where the getlines are replaced by fgets(). Could you check if it works? In the case you need a fast (internal memory) tool to build SA, LCP, DA, GSA and BWT for string collections, you can use this tool: https://github.com/felipelouza/gsufsort Cheers!

It works now! Thank you @felipelouza :)

felipelouza commented 5 years ago

That is great \o/ Recall that each line in the input cannot be large than 4096 characters. Thanks @grcdaniele !!