DynamoRIO / DynamoRIO/dynamorio
Assertion Failure When Profiling
- Dominant language
- C
- Stars
- 3.2k
- Forks
- 629
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 31
Description
_From [wujing...@gmail.com](https://code.google.com/u/111366065612923953872/) on December 01, 2010 17:04:04_
What version of DynamoRIO are you using? SVN Revision 494 What operating system version are you running on? Linux 2.6.32-25-generic What application are you running? MySQL 5.1.35 Is your application 32-bit or 64-bit? 32-bit How are you running the application under DynamoRIO? DYNAMORIO_OPTIONS='-prof_pcs' ~/Research/dynamorio/install-debug/bin/drrun mysql-install/libexec/mysqld What happens when you run without any client? I'm not running it with any client.
What happens when you run with debug build ("-debug" flag to drrun/drconfig/drinject)? The same problem. What steps will reproduce the problem? 1. Start MySQL server using the above command line.
2. Run sysbench.
LD_LIBRARY_PATH=$PWD/mysql-install/lib/mysql/ \
sysbench-install/bin/sysbench \
--mysql-user=root \
--num-threads=1 \
--max-requests=20000 \
--test=oltp \
--oltp-table-size=20000 \
--mysql-socket=/tmp/mysql.sock \
--oltp-table-name=sbtest \
--mysql-db=sysbench_db \
run What is the expected output? What do you see instead? Is this an application crash, a DynamoRIO crash, a DynamoRIO assert, or a hang (see https://code.google.com/p/dynamorio/wiki/BugReporting and set the title appropriately)? Assertion failure.
top_unit == NULL || su->use_lock
(Error occurred @26650 frags)
version 2.1.0, custom build
-prof_pcs
0x1963fa68 0x001cab70
0x1963fbd8 0x00230c46
0x1963fc28 0x00231496
0x1963fc98 0x00231901
0x1963fcb8 0x002ec48f
0x1963fd28 0x002e7cf2
0x1963ffe8 0x002b4470
0xb675c578 0x0839fa39
0xb675c5c8 0x0836c0cc
0xb675c608 0x083645c0
0xb675c678 0x0835b09b> Please provide any additional information below. 1. I guess it is PR 596808
2. The problem does not show up if the number of requests (--max-requests) is small (e.g. 2000).
_Original issue: http://code.google.com/p/dynamorio/issues/detail?id=362_
Contributor guide
Assessment
This issue has not been assessed yet.