C++ client race in socket code
------------------------------

                 Key: QPID-449
                 URL: https://issues.apache.org/jira/browse/QPID-449
             Project: Qpid
          Issue Type: Bug
          Components: C++ Client
            Reporter: Alan Conway


quick_topictest fails intermittently on a multi-processor. Fairly easy to 
reproduce. Does not occur on my single CPU laptop so it looks like a thread 
sync problem.

Here's an example: (red-hatters I ran this on  qpid-test.lab.boston.redhat.com)

[EMAIL PROTECTED] tests]$ while ./quick_topictest  ; do echo -n . ; done
........../quick_topictest FAILED:
Start subscriber 1
Start subscriber 0
Completed 1 of 1 in 81ms
Error [20009] Bad file descriptor (sys/apr/Socket.cpp:58)
[EMAIL PROTECTED] tests]$ while ./quick_topictest  ; do echo -n . ; done
................./quick_topictest FAILED:
Start subscriber 1
Start subscriber 0
Completed 1 of 1 in 79ms
Error [20009] Bad file descriptor (sys/apr/Socket.cpp:58)
terminate called after throwing an instance of 'qpid::QpidError'
  what():  Error [20009] Bad file descriptor (sys/apr/Socket.cpp:58)
./topictest: line 30: 10569 Aborted                 ./topic_publisher -messages\
 $MESSAGES -batches $BATCHES -subscribers $SUBSCRIBERS


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to