viralcode / memory-sanitizer

Automatically exported from code.google.com/p/memory-sanitizer
1 stars 0 forks source link

drrun segfault #37

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I compiled DynamoRIO and DrMemory accoring to msandr/README.txt
2. For llvm I tool the release branch (3.3.1)
3. I compiled a simple hello world with -O1 -fsanitize=memory
4. Without drrun the binary runs fine
5. With drrun (with debug) I get:

<Application /home/rschulz/download/gromacs5.0/clang/a.out (5795).  
Unrecoverable Error at PC 0x0000000077008d41.  Program aborted. 
Received SIGSEGV at pc 0x0000000077008d41 in thread 5795
Base: 0x0000000071000000
Registers: eax=0x0000000000000000 ebx=0x0000000000000000 ecx=0x00000000712a075b 
edx=0x00000000772351c0
        esi=0x0000000000000010 edi=0x00007f0371c8a080 esp=0x00007f0371caed00 ebp=0x0000000000000001
        r8 =0x0000000000000001 r9 =0x0000000000000000 r10=0x00000000712a075b r11=0x0000000000000246
        r12=0x00007f0371c8a080 r13=0x0000000000000005 r14=0x0000000000000000 r15=0x00007fff5a0c0048
        eflags=0x0000000000010202
version 4.1.2379, custom build
-no_dynamic_options -client_lib 
'/home/rschulz/software/llvm/lib/clang/3.3.1/lib/linux/libclang_rt.msandr-x86_64
.so;0;' -code_api -stack_size 56K -max_elide_jmp 0 -max_elide_call 0 
-no_inline_ignored_syscalls -native_exec_default_list '' 
-no_native_exec_managed_code -no_indcall2direct >

Do I have to use a specific version of DynamoRIO with 3.3.1?

I didn't know whether I should ask here or at DynamoRIO. Also I couldn't find a 
memory-sanitizer mailinglist so I hope opening an issue is OK.

Original issue reported on code.google.com by rol...@rschulz.eu on 19 Nov 2013 at 8:05

GoogleCodeExporter commented 9 years ago
Did you try llvm trunk? This thing is very much in motion and compatibility 
with llvm releases in not a goal at this stage.

Original comment by euge...@google.com on 3 Dec 2013 at 2:31

GoogleCodeExporter commented 9 years ago
Mailing list:
  https://groups.google.com/forum/#!forum/memory-sanitizer
We've added a link to the project page.

Original comment by euge...@google.com on 3 Dec 2013 at 2:43

GoogleCodeExporter commented 9 years ago
I just tried it again with the latest trunk and I get:
FATAL: Shadow memory range is not available.

This is only when run inside drrun. No error without drrun. Since I managed to 
compile all dependencies with MSAN I don't need drrun anymore and thus this 
issue isn't important to me anymore.

Original comment by rol...@rschulz.eu on 27 May 2014 at 10:27