{"action":"opened","issue":{"url":"https://api.github.com/repos/DynamoRIO/dynamorio/issues/1649","labels_url":"https://api.github.com/repos/DynamoRIO/dynamorio/issues/1649/labels{/name}","comments_url":"https://api.github.com/repos/DynamoRIO/dynamorio/issues/1649/comments","events_url":"https://api.github.com/repos/DynamoRIO/dynamorio/issues/1649/events","html_url":"https://github.com/DynamoRIO/dynamorio/issues/1649","id":65319504,"number":1649,"title":"rank order violation @ -loglevel 4 in client.alloc test","user":{"login":"derekbruening","id":6509618,"avatar_url":"https://avatars.githubusercontent.com/u/6509618?v=3","gravatar_id":"","url":"https://api.github.com/users/derekbruening","html_url":"https://github.com/derekbruening","followers_url":"https://api.github.com/users/derekbruening/followers","following_url":"https://api.github.com/users/derekbruening/following{/other_user}","gists_url":"https://api.github.com/users/derekbruening/gists{/gist_id}","starred_url":"https://api.github.com/users/derekbruening/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derekbruening/subscriptions","organizations_url":"https://api.github.com/users/derekbruening/orgs","repos_url":"https://api.github.com/users/derekbruening/repos","events_url":"https://api.github.com/users/derekbruening/events{/privacy}","received_events_url":"https://api.github.com/users/derekbruening/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DynamoRIO/dynamorio/labels/Bug-Assert","name":"Bug-Assert","color":"FFFFFF"},{"url":"https://api.github.com/repos/DynamoRIO/dynamorio/labels/OpSys-All","name":"OpSys-All","color":"FFFFFF"},{"url":"https://api.github.com/repos/DynamoRIO/dynamorio/labels/Type-Bug","name":"Type-Bug","color":"ffaaaa"}],"state":"open","locked":false,"assignee":{"login":"derekbruening","id":6509618,"avatar_url":"https://avatars.githubusercontent.com/u/6509618?v=3","gravatar_id":"","url":"https://api.github.com/users/derekbruening","html_url":"https://github.com/derekbruening","followers_url":"https://api.github.com/users/derekbruening/followers","following_url":"https://api.github.com/users/derekbruening/following{/other_user}","gists_url":"https://api.github.com/users/derekbruening/gists{/gist_id}","starred_url":"https://api.github.com/users/derekbruening/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derekbruening/subscriptions","organizations_url":"https://api.github.com/users/derekbruening/orgs","repos_url":"https://api.github.com/users/derekbruening/repos","events_url":"https://api.github.com/users/derekbruening/events{/privacy}","received_events_url":"https://api.github.com/users/derekbruening/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-03-30T22:40:45Z","updated_at":"2015-03-30T22:40:45Z","closed_at":null,"body":"-loglevel 4 =>\r\n# bin32/drrun -debug -loglevel 4 -c suite/tests/bin/libclient.alloc.dll.so -- suite/tests/bin/client.alloc                \r\n<log dir=/work/dr/git/build_x86_dbg_tests/bin32/../logs/client.alloc.4388.00000000>\r\n<Starting application /work/dr/git/build_x86_dbg_tests/suite/tests/bin/client.alloc (4388)>\r\n<Initial options = -no_dynamic_options -loglevel 4 -client_lib '/work/dr/git/build_x86_dbg_tests/suite/tests/bin/libclient.alloc.dll.so;0;' -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 >\r\nthank you for testing the client interface\r\n  testing global memory alloc...success\r\n  testing nonheap memory alloc...<(1+x) Handling our fault in a TRY at 0xf72742ca>\r\nsuccess\r\n  testing custom memory alloc....<rank order violation module_data_lock(readwrite)@/work/dr/git/src/core/module_list.c:60 acquired after dynamo_areas(readwrite)@/work/dr/git/src/core/vmareas.c:1552 in tid:1124>\r\n<Application /work/dr/git/build_x86_dbg_tests/suite/tests/bin/client.alloc (4388).  Internal Error: DynamoRIO debug check failure: /work/dr/git/src/core/utils.c:615 (dcontext->thread_owned_locks->last_lock->rank < lock->rank IF_CLIENT_INTERFACE(|| first_client || both_client)) && \"rank order violation\"\r\n\r\n#7  0xf70f692c in read_lock (rw=0xf73a6b20 <module_data_lock>) at /work/dr/git/src/core/utils.c:1195\r\n#8  0xf71bbab6 in os_get_module_info_lock () at /work/dr/git/src/core/module_list.c:69\r\n#9  0xf72b1642 in get_module_base (pc=0x49315000 \"\\177ELF\\001\\001\\001\\003\") at /work/dr/git/src/core/unix/module.c:319\r\n#10 0xf7192387 in print_vm_area (v=0x4eed67ec, area=0x4eef3950, outf=4000, prefix=0xf730fcef \"  \")\r\n    at /work/dr/git/src/core/vmareas.c:735\r\n#11 0xf71925fb in print_vm_areas (v=0x4eed67ec, outf=4000) at /work/dr/git/src/core/vmareas.c:781\r\n#12 0xf719306e in add_vm_area (v=0x4eed67ec, start=0xf7775000 \"\", end=0xf7776000 \"\\177ELF\\001\\001\\001\", vm_flags=3, frag_flags=0, \r\n    data=0x0, comment=0xf732300b \"fls cb in private lib\") at /work/dr/git/src/core/vmareas.c:938\r\n#13 0xf719c51b in add_dynamo_vm_area (start=0xf7775000 \"\", end=0xf7776000 \"\\177ELF\\001\\001\\001\", prot=3, unmod_image=true, \r\n    comment=0xf732300b \"fls cb in private lib\") at /work/dr/git/src/core/vmareas.c:3586\r\n#14 0xf71e4d44 in raw_mem_alloc (size=4096, prot=3, addr=0xf7775000, flags=(unknown: 0))\r\n    at /work/dr/git/src/core/lib/instrument.c:2634\r\n#15 0xf71e51de in custom_memory_shared (alloc=true, drcontext=0x0, flags=(DR_ALLOC_NON_HEAP | DR_ALLOC_FIXED_LOCATION), size=4096, \r\n    prot=3, addr=0xf7775000, free_res=0x0) at /work/dr/git/src/core/lib/instrument.c:2748\r\n#16 0xf71e53ee in dr_custom_alloc (drcontext=0x0, flags=(DR_ALLOC_NON_HEAP | DR_ALLOC_FIXED_LOCATION), size=4096, prot=3, \r\n    addr=0xf7775000) at /work/dr/git/src/core/lib/instrument.c:2792\r\n#17 0xf77997fe in custom_test () at /work/dr/git/src/suite/tests/client-interface/alloc.dll.c:372\r\n#18 0xf779a30e in dr_init (id=0) at /work/dr/git/src/suite/tests/client-interface/alloc.dll.c:693\r\n#19 0xf71e03ef in instrument_init () at /work/dr/git/src/core/lib/instrument.c:592\r\n"}}