Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using it? #226

Open
SkewedZeppelin opened this issue Feb 5, 2024 · 3 comments
Open

Using it? #226

SkewedZeppelin opened this issue Feb 5, 2024 · 3 comments

Comments

@SkewedZeppelin
Copy link

SkewedZeppelin commented Feb 5, 2024

I've made a package for Fedora to run with isoalloc globally, however I think I'm doing something very wrong

Testing manually on eb1f3f2 with all defaults:

LD_PRELOAD=/home/admin/isoalloc/build/libisoalloc.so cat /proc/self/maps
#works

LD_PRELOAD=/home/admin/isoalloc/build/libisoalloc.so htop
#works

LD_PRELOAD=/home/admin/isoalloc/build/libisoalloc.so /usr/bin/grep aa
/usr/bin/grep: memory exhausted

LD_PRELOAD=/home/admin/isoalloc/build/libisoalloc.so /usr/bin/meld
[ABORTING][4337](src/iso_alloc.c:1725 _iso_free_internal_unlocked()) Could not find any zone for allocation at 0x2cb1eee57000

LD_PRELOAD=/home/admin/isoalloc/build/libisoalloc.so /usr/bin/firefox
[ABORTING][4493](src/iso_alloc.c:2053 _iso_chunk_size()) Could not find any zone for allocation at 0x389f59ad7000
#I didn't expect this one to work regardless, but still is slightly different error to previous

LD_PRELOAD=/home/admin/isoalloc/build/libisoalloc.so /usr/bin/mumble 
mumble: src/hostapi/jack/pa_jack.c:524: BuildDeviceList: Assertion `err == 0' failed.
Aborted (core dumped)
#this one maybe exposing an actual issue?
#audacity fails the same error

LD_PRELOAD=/home/admin/isoalloc/build/libisoalloc.so /usr/bin/qalculate-gtk 
[ABORTING][5003](src/iso_alloc_util.c:157 mmap_pages()) Failed to mmap rw pages
Aborted (core dumped)

LD_PRELOAD=/home/admin/isoalloc/build/libisoalloc.so /usr/bin/libreoffice 
grep: memory exhausted
/usr/lib64/libreoffice/program/soffice: line 149:  4845 Done                    echo "$checks"
      4846 Aborted                 (core dumped) | grep -q "cc"
[ABORTING][4876](src/iso_alloc_util.c:157 mmap_pages()) Failed to mmap rw pages
Unspecified Application Error
#this one I really don't understand

furthermore enabling MEMCPY_SANITY results in htop segfaulting
and MEMSET_SANITY even segfaults cat

edit for sanity:

Running tests test... Succeeded
Running big_tests test... Succeeded
Running interfaces_test test... Succeeded
Running thread_tests test... Succeeded
Running pool_test test... Succeeded
Running rand_freelist test... Succeeded
Running double_free test... Succeeded
Running big_double_free test... Succeeded
Running heap_overflow test... Succeeded
Running heap_underflow test... Succeeded
Running leaks_test test... Succeeded
Running wild_free test... Succeeded
Running unaligned_free test... Succeeded
Running incorrect_chunk_size_multiple test... Succeeded
Running big_canary_test test... Succeeded
Running zero_alloc test... Succeeded
Running sized_free test... Succeeded
17 Tests passed
0 Tests failed
@struct
Copy link
Owner

struct commented Feb 8, 2024

Thanks for the report. I will take a look at reproducing these.

@struct
Copy link
Owner

struct commented Feb 10, 2024

I cannot reproduce the grep, meld, mumble, cat, or htop issues. The others I still need to test. Can you provide more information about versions and which OS you were using?

@SkewedZeppelin
Copy link
Author

SkewedZeppelin commented Feb 10, 2024

Updated Fedora 39 with Linux 6.7.x.
Compiled the malloc with clang 17.0.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants