Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2961)

Issue 320150043: i#1349 build drltrace parallel to drstrace: initial commit (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
7 years, 2 months ago by Maxim Shudrak
Modified:
7 years, 2 months ago
Reviewers:
bruening
CC:
drmemory-devs_googlegroups.com
Visibility:
Public.

Description

Commit log for first patchset: --------------- i#1349 build drltrace parallel to drstrace: initial commit Drltrace copied in drmemory's dir Drltrace_frontend is created similar to drstrace Updateds DR to X ---------------

Patch Set 1 #

Total comments: 15
Unified diffs Side-by-side diffs Delta from patch set Stats (+624 lines, -125 lines) Patch
M CMakeLists.txt View 2 chunks +8 lines, -0 lines 3 comments Download
A drltrace/CMakeLists.txt View 1 chunk +128 lines, -0 lines 5 comments Download
A drltrace/README.md View 1 chunk +3 lines, -0 lines 1 comment Download
A drltrace/drltrace.c View 1 chunk +367 lines, -0 lines 2 comments Download
A drltrace/drltrace.dox View 1 chunk +81 lines, -0 lines 0 comments Download
A + drltrace/drltrace_frontend.c View 13 chunks +37 lines, -125 lines 4 comments Download

Messages

Total messages: 9
Maxim Shudrak
7 years, 2 months ago (2017-02-04 16:48:43 UTC) #1
Maxim Shudrak
Several comments to support this commit. https://codereview.appspot.com/320150043/diff/1/CMakeLists.txt File CMakeLists.txt (right): https://codereview.appspot.com/320150043/diff/1/CMakeLists.txt#newcode881 CMakeLists.txt:881: # DRMF_INTERNAL_BUILD is ...
7 years, 2 months ago (2017-02-04 16:59:46 UTC) #2
bruening
> Updateds DR to X Spelling error Please use NOCHECKIN to ensure it is updated ...
7 years, 2 months ago (2017-02-09 16:05:15 UTC) #3
bruening
We'd prefer to keep drltrace as BSD. If the only code it will share with ...
7 years, 2 months ago (2017-02-09 16:25:12 UTC) #4
bruening
https://codereview.appspot.com/320150043/diff/1/CMakeLists.txt File CMakeLists.txt (right): https://codereview.appspot.com/320150043/diff/1/CMakeLists.txt#newcode881 CMakeLists.txt:881: # DRMF_INTERNAL_BUILD is used to notify DynamoRIO that we're ...
7 years, 2 months ago (2017-02-09 18:07:40 UTC) #5
Maxim Shudrak
On 2017/02/09 18:07:40, bruening wrote: > https://codereview.appspot.com/320150043/diff/1/CMakeLists.txt > File CMakeLists.txt (right): > > https://codereview.appspot.com/320150043/diff/1/CMakeLists.txt#newcode881 > ...
7 years, 2 months ago (2017-02-18 14:56:00 UTC) #6
bruening
On 2017/02/18 14:56:00, Maxim Shudrak wrote: > Ok, I've implemented frontend using droption.h, it works ...
7 years, 2 months ago (2017-02-20 19:35:17 UTC) #7
Maxim Shudrak
On 2017/02/20 19:35:17, bruening wrote: > On 2017/02/18 14:56:00, Maxim Shudrak wrote: > > Ok, ...
7 years, 2 months ago (2017-02-20 20:24:00 UTC) #8
Maxim Shudrak
7 years, 2 months ago (2017-02-21 19:34:09 UTC) #9
On 2017/02/20 20:24:00, Maxim Shudrak wrote:
> On 2017/02/20 19:35:17, bruening wrote:
> > On 2017/02/18 14:56:00, Maxim Shudrak wrote:
> > > Ok, I've implemented frontend using droption.h, it works pretty well for
> > Windows
> > > and for Linux.
> > 
> > For staging the commits, it might be cleanest to first commit the code in an
> > identical or nearly-identical state to what it looked like in the DR repo
> (even
> > if the only way to do that is to have it not build or run, if it's hard to
> make
> > it build or run: just don't enable in cmake yet), so we have nice history of
> > what changed in one repo without having to do a manual diff.  Seem
reasonable?
> > 
> > > However, I have the
> > > following error when I try to build drltracelib in Linux
> > > drltrace.c:187:13: error: implicit declaration of function ‘cast_to_func’
> > > [-Werror=implicit-function-declaration]
> > >              app_pc (*indir)(void) = (app_pc (*)(void))
> > cast_to_func(sym->addr);
> > >              ^
> > > drltrace.c:187:37: error: cast to pointer from integer of different size
> > > [-Werror=int-to-pointer-cast]
> > >              app_pc (*indir)(void) = (app_pc (*)(void))
> > cast_to_func(sym->addr);
> > > cc1: all warnings being treated as errors
> > > 
> > > Something related to static dlls linkage process ?
> > 
> > Isn't that just a utility func in the DR repo that's not in the DrM repo?
> 
> Ok, I will prepare clean commit of drltrace. Yes, that was my problem, fixed.
> Now I have the following error when I try to start drltrace with ping:
> 
> <Starting application /bin/ping (54512)>
> <WARNING! symbol lookup error: libdrltracelib.so undefined symbol f_global>
> <WARNING! symbol lookup error: libdrltracelib.so undefined symbol
> reported_disk_error>
> <WARNING! symbol lookup error: libdrltracelib.so undefined symbol
tls_idx_util>
> <WARNING! symbol lookup error: libdrltracelib.so undefined symbol
> op_print_stderr>
> <WARNING! symbol lookup error: libdrltracelib.so undefined symbol
> op_ignore_asserts>
> <WARNING! symbol lookup error: libdrltracelib.so undefined symbol f_results>
> <WARNING! symbol lookup error: libdrltracelib.so undefined symbol
> print_prefix_to_console>
> <WARNING! symbol lookup error: libdrltracelib.so undefined symbol
> drmemory_abort>
> <Paste into GDB to debug DynamoRIO clients:
> set confirm off
> add-symbol-file
> '/home/osboxes/drmemory_clean/build/bin64/debug/libdrltracelib.so'
> 0x0000000073807720
> add-symbol-file
> '/home/osboxes/drmemory_clean/build/dynamorio/lib64/debug/libdynamorio.so'
> 0x00005578dd242a88
> >
> <Initial options = -no_dynamic_options -client_lib
> '/home/osboxes/drmemory_clean/build/bin64/debug/libdrltracelib.so;0;-logdir .'
> -code_api -stack_size 56K -max_elide_jmp 0 -max_elide_call 0 -early_inject
> -emulate_brk -no_inline_ignored_syscalls -native_exec_default_list ''
> -no_native_exec_managed_code -no_indcall2direct >
> drltrace log file is ./drltrace.ping.54512.0000.log
> <Application /bin/ping (54512).  Dr. LTrace internal crash at PC
> 0x0000000073807fe7.  Please report this at http://drmemory.org/issues. 
Program
> aborted.
> Received SIGSEGV at client library pc 0x0000000073807fe7 in thread 54512
> Base: 0x00005578dd216000
> Registers:eax=0x0000000000000000 ebx=0x00005578dd850270 ecx=0x0000000053ab83a0
> edx=0x00005578dd81f8c0
> 	esi=0x0000000000000001 edi=0x0000000053aa1450 esp=0x00007ffefda12190
> ebp=0x00007ffefda12220
> 	r8 =0x0000000000000000 r9 =0x0000000000000000 r10=0x0000000053ab6b58
> r11=0x0000000053b23e70
> 	r12=0x0000000000000000 r13=0x0000000000000000 r14=0x0000000000000000
> r15=0x0000000000000000
> 	eflags=0x0000000000010202
> version 6.2.17200, build 17411
> -no_dynamic_options -client_lib
> '/home/osboxes/drmemory_clean/build/bin64/debug/libdrltracelib.so;0;-logdir .'
> -code_api -stack_size 56K -max_elide_jmp 0 -max_elide_call 0 -early_inject
> -emulate_brk -no_inline_ignored_syscalls -native_exec_default_list ''
> -no_native_exec_managed_code -no_indcall2direct 
> 0x00007ffefda12220 0x000000007380852e
> 0x00007ffefda12250 0x000000007380b48d
> 0x00007ffefda124b0 0x00005578dd42d33c
> 0x00007ffefda12520 0x00005578dd42a216
> 0x00007ffefda12560 0x00005578dd2a728f
> 0x00007ffefda12da0 0x00005578dd51e272
> 0x00007ffefda137f0 0x00005578dd4d3044
>
/home/osboxes/drmemory_clean/build/bin64/debug/libdrltracelib.so=0x0000000073800000>
> 
> It seems that I need to start debugging :)

Fixed, remove drsyscall_static and everything started work correctly.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b