Opened 12 years ago
Closed 12 years ago
#4687 closed Bugs (invalid)
boost::interprocess::message_queue::receive and timed_receive bug(Linux)
Reported by: | anonymous | Owned by: | Ion Gaztañaga |
---|---|---|---|
Milestone: | To Be Determined | Component: | interprocess |
Version: | Boost 1.44.0 | Severity: | Problem |
Keywords: | message_queue CPU 100% | Cc: |
Description
There is a bug in boost::interprocess::message_queue, the receive and timed_receive methods, it will make the cpu's load more than 100%. Under the environment 1 there has the problem,but under the environment 2 is ok.
environment 1: Linux 2.6.9-67; g++(gcc)3.4.6,g++(gcc)4.1.2; Hat Enterprise Linux AS release 4 (Nahant Update 6); redhat-3;
environment 2: Linux 2.6.18-128; g++(gcc)4.1.2; Red Hat Enterprise Linux Server release 5.3 (Tikanga)
Change History (2)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Could not reproduce the problem.
Note:
See TracTickets
for help on using tickets.
environment 3: Linux 2.6.9-55.ELsmp; g++ (GCC) 3.4.6 20060404 (Red Hat 3.4.6-8)
Initially we saw the same problem -- 100% cpu. Adding -I/usr/include/nptl to the build solved the problem:
/usr/include/bits/posix_opt.h: #define _POSIX_THREAD_PROCESS_SHARED -1 /usr/include/nptl/bits/posix_opt.h: #define _POSIX_THREAD_PROCESS_SHARED 200112L
YMMV