Error on realloc call

10 views
Skip to first unread message

cy8berpunk

unread,
Feb 22, 2023, 5:26:39 AM2/22/23
to Dr. Memory Users
Hi,
I'm completely new to dbi and I'm unsure wether it's me or an actual bug.
So I've written a client that is meant to create multiple arrays that store mem reads/ writes.
When the array limit is reached I'm calling realloc(it's a very basic process, nothing complex) but upon access of the newly returned pointer (which is only 12k away from the original pointer), I'm getting a segfault.

regards Luick
The error:
```
<Application /home/ubuntu/projekte/MlConcurrencyAstAnalyser/basicMultiThread.elf (10722).  Tool internal crash at PC 0x0000000072004f50.  Please report this at your tool's issue tracker.  Program aborted.
Received SIGSEGV at client library pc 0x0000000072004f50 in thread 10722
Base: 0x0000000071000000
Registers:    eflags=0x0000000060001000
version 9.0.1, custom build
-no_dynamic_options -client_lib '/home/ubuntu/projekte/MlConcurrencyAstAnalyser/build/libmyclient.so;0;' -client_lib64 '/home/ubuntu/projekte/MlConcurrencyAstAnalyser/build/libmyclient.so;0;' -code_api -stack_size 56K -signal_stack_size 32K -max_elide_jmp 0 -max_elide_call 0 -early_inject -emulate_brk -no_inline_ignored_
0x0000fffdbc10bc50 0x0000000072002c5c
0x0000fffdbc10bcc0 0x000000003101b7c4
0x0000ffffe7fb44c0 0x0000ffffbc07e108
/home/ubuntu/projekte/MlConcurrencyAstAnalyser/DynamoRIO/lib64/release/libdynamorio.so=0x0000000071000000
/home/ubuntu/projekte/MlConcurrencyAstAnalyser/build/libmyclient.so=0x0000000072000000
/lib/aarch64-linux-gnu/libc.so.6=0x0000fffdbbef2000
/usr/lib/ld-linux-aarch64.so.1=0x0000fffdbbebd000
/home/ubuntu/projekte/MlConcurrencyAstAnalyser/DynamoRIO/ext/lib64/release/libdrx.so=0x0000000077000000
/home/ubuntu/projekte/MlConcurrencyAstAnalyser/Dyn>
```

Derek Bruening

unread,
Feb 22, 2023, 8:10:09 PM2/22/23
to drmemor...@googlegroups.com
I think you meant to send this to https://groups.google.com/g/dynamorio-users rather than this list?

--

---
You received this message because you are subscribed to the Google Groups "Dr. Memory Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drmemory-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drmemory-users/822e4679-2537-4493-b62b-915b204dcc0dn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages