You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Manuel Teira (JIRA)" <qp...@incubator.apache.org> on 2008/07/18 12:42:31 UTC
[jira] Created: (QPID-1183) perftest doesn't work correctly when
sizeof(size_t) != sizeof(uint32_t)
perftest doesn't work correctly when sizeof(size_t) != sizeof(uint32_t)
-----------------------------------------------------------------------
Key: QPID-1183
URL: https://issues.apache.org/jira/browse/QPID-1183
Project: Qpid
Issue Type: Bug
Components: C++ Broker
Affects Versions: M3
Environment: A 64 bits architecture where sizeof(size_t) != sizeof(uint32_t). (For example, Solaris on Sparc64, where sizeof(size_t) = 8 and sizeof(uint32_t) = 4)
Reporter: Manuel Teira
Priority: Minor
Fix For: M3
Attachments: perftest-size_t_fix.patch
perftests makes some tests injecting some sequence number in the message data, expecting to find the same data inserting and fetching later the message from the queue. The way sequence number is inserted in implicitly assuming that size_t is the same size than uint32_t. If this is not true, the inserted data is not the expected, and the test fails.
I'm attaching a patch to fix the issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (QPID-1183) perftest doesn't work correctly when
sizeof(size_t) != sizeof(uint32_t)
Posted by "Gordon Sim (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-1183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gordon Sim resolved QPID-1183.
------------------------------
Resolution: Fixed
Applied to trunk as r679048.
> perftest doesn't work correctly when sizeof(size_t) != sizeof(uint32_t)
> -----------------------------------------------------------------------
>
> Key: QPID-1183
> URL: https://issues.apache.org/jira/browse/QPID-1183
> Project: Qpid
> Issue Type: Bug
> Components: C++ Broker
> Affects Versions: M3
> Environment: A 64 bits architecture where sizeof(size_t) != sizeof(uint32_t). (For example, Solaris on Sparc64, where sizeof(size_t) = 8 and sizeof(uint32_t) = 4)
> Reporter: Manuel Teira
> Priority: Minor
> Fix For: M3
>
> Attachments: perftest-size_t_fix.patch
>
>
> perftests makes some tests injecting some sequence number in the message data, expecting to find the same data inserting and fetching later the message from the queue. The way sequence number is inserted in implicitly assuming that size_t is the same size than uint32_t. If this is not true, the inserted data is not the expected, and the test fails.
> I'm attaching a patch to fix the issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (QPID-1183) perftest doesn't work correctly when
sizeof(size_t) != sizeof(uint32_t)
Posted by "Manuel Teira (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-1183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Manuel Teira updated QPID-1183:
-------------------------------
Attachment: perftest-size_t_fix.patch
Use the right sizes to insert data inside the message payload.
> perftest doesn't work correctly when sizeof(size_t) != sizeof(uint32_t)
> -----------------------------------------------------------------------
>
> Key: QPID-1183
> URL: https://issues.apache.org/jira/browse/QPID-1183
> Project: Qpid
> Issue Type: Bug
> Components: C++ Broker
> Affects Versions: M3
> Environment: A 64 bits architecture where sizeof(size_t) != sizeof(uint32_t). (For example, Solaris on Sparc64, where sizeof(size_t) = 8 and sizeof(uint32_t) = 4)
> Reporter: Manuel Teira
> Priority: Minor
> Fix For: M3
>
> Attachments: perftest-size_t_fix.patch
>
>
> perftests makes some tests injecting some sequence number in the message data, expecting to find the same data inserting and fetching later the message from the queue. The way sequence number is inserted in implicitly assuming that size_t is the same size than uint32_t. If this is not true, the inserted data is not the expected, and the test fails.
> I'm attaching a patch to fix the issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.