Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BF817200BAA for ; Thu, 27 Oct 2016 16:02:31 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BE495160AF6; Thu, 27 Oct 2016 14:02:31 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E0817160AE4 for ; Thu, 27 Oct 2016 16:02:30 +0200 (CEST) Received: (qmail 6581 invoked by uid 500); 27 Oct 2016 14:02:30 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 6559 invoked by uid 99); 27 Oct 2016 14:02:29 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Oct 2016 14:02:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 5F051C00E7 for ; Thu, 27 Oct 2016 14:02:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.998 X-Spam-Level: * X-Spam-Status: No, score=1.998 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id JBM6T3ZNRjnR for ; Thu, 27 Oct 2016 14:02:27 +0000 (UTC) Received: from COL004-OMC2S13.hotmail.com (col004-omc2s13.hotmail.com [65.55.34.87]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 2D5975F576 for ; Thu, 27 Oct 2016 14:02:27 +0000 (UTC) Received: from EUR01-HE1-obe.outbound.protection.outlook.com ([65.55.34.73]) by COL004-OMC2S13.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Thu, 27 Oct 2016 07:02:19 -0700 Received: from HE1EUR01FT064.eop-EUR01.prod.protection.outlook.com (10.152.0.51) by HE1EUR01HT160.eop-EUR01.prod.protection.outlook.com (10.152.0.127) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.5; Thu, 27 Oct 2016 14:02:17 +0000 Received: from VI1PR0901MB0893.eurprd09.prod.outlook.com (10.152.0.51) by HE1EUR01FT064.mail.protection.outlook.com (10.152.1.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.5 via Frontend Transport; Thu, 27 Oct 2016 14:02:17 +0000 Received: from VI1PR0901MB0893.eurprd09.prod.outlook.com ([10.167.199.9]) by VI1PR0901MB0893.eurprd09.prod.outlook.com ([10.167.199.9]) with mapi id 15.01.0669.018; Thu, 27 Oct 2016 14:02:17 +0000 From: Adel Boutros To: Alan Conway , "users@qpid.apache.org" CC: kim.vdriet Subject: Re: [Proton-c] [0.14.0] C++ sending/receiving bytes and map messages Thread-Topic: [Proton-c] [0.14.0] C++ sending/receiving bytes and map messages Thread-Index: AQHSKtFrErqQ8EkmRkeS9R5AsbdSgKC5hf8AgAFR3qmAABsDgIAACcrNgAAIsICAAQk4moAASaQAgAAHeEA= Date: Thu, 27 Oct 2016 14:02:17 +0000 Message-ID: References: ,<1477420210.2582.32.camel@redhat.com> ,<1477498567.11433.20.camel@redhat.com> ,<1477502535.11433.29.camel@redhat.com> ,<1477575304.11433.36.camel@redhat.com> In-Reply-To: <1477575304.11433.36.camel@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=live.com; x-tmn: [xm17o4QvKPNIUhYszER4ys6K5nMVC8CqvY1YBshuHz8=] x-eopattributedmessage: 0 x-microsoft-exchange-diagnostics: 1;HE1EUR01HT160;6:ngrRUtZ60IuDNnXC4Y0gX1V8iymyIslDoHGkDTg6JqIHApECiV0Rbytj9HfTIMX0w6mYMyH3SfOvs+bGnNJlOxaJPNNYxetwd9hVWr6oMQ42avIFMeA34ur4ZFOSwJdGZw3lb8xf9C7H/WWi/AxryjhZRJU0UftTJpIBSoTPNjKnVd/gvWtS7t63xIJvXGvsTzI3oE618gJxFRp7JdFDwxtqkKzGpVSJm4BWsNqOXEyeRatZfEMfbkbb3D0EcdjZOoYuXDwFuREARNHm7eAqzOqkTuHvstEernIoovRYtEWAXDiQMQJLxM8gJa5is0lu;5:iL8asdz5H4RCpd7rA8rVVoCGChrDwJt9rA8GemSzJo8kfOuggB29dEaOgAG0OaSjpxPt1Jp23j55smUgD7fvmURjLV4aklkPUsYpOtDijS7DQqB6gQ3uQOIdJlSkg9lv9xqU8n9VVHItl/Jyet7wWw==;24:JxqxrhbK3khgxvEKKoWHJmUUbK8yQ9vGpgVd+zKnaxKAmKSR9XPwwpJSnY/lD0lLbHQcYXvRzFdAFCjuoWKUsKiYtNUDAjbhDSiO6zUI/O0=;7:VNu3BeuuHFIuJjcKh6CCO1/MMlc/m1pFLn5mmc/nTLYM/gfTXycTkpYctFJUr5or76PQ49H76nfraY3P8ASYSvmBztQ0IB2DFwFUEMbFPQHU4ZK1Qd5jYA3KuCjeinDbBwOoh27SB3W9P7aGRb9TawHq9ZKc5nx0zwng5uBUEAtXutqZ4S32Gcn1UxlEYl3Ji2z31n0EyRLSyRy4bMBQuyGAaUdn+fmdMYUJv5LZtWi9VvmHOcd6uDE2y0SG3Ixq+N5KD7Oq+v/XVdDqPgiTRMnRKRNiKnRpmzWl1BASGmOZnJI2ZQ9mKga9sZEp5OHuAIMdQiLLdvk5W6WWuSlSUSkd8mPOL9RAIFbjMTehWhw= x-forefront-antispam-report: EFV:NLI;SFV:NSPM;SFS:(10019020)(98900003);DIR:OUT;SFP:1102;SCL:1;SRVR:HE1EUR01HT160;H:VI1PR0901MB0893.eurprd09.prod.outlook.com;FPR:;SPF:None;LANG:en; x-ms-office365-filtering-correlation-id: 581421bf-2fad-40f1-1a71-08d3fe71dc93 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(1601124038)(1603103081)(1601125047);SRVR:HE1EUR01HT160; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(432015012)(82015046);SRVR:HE1EUR01HT160;BCL:0;PCL:0;RULEID:;SRVR:HE1EUR01HT160; x-forefront-prvs: 0108A997B2 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_VI1PR0901MB0893C4926DD89E90968AE608CDAA0VI1PR0901MB0893_" MIME-Version: 1.0 X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Oct 2016 14:02:17.3138 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR01HT160 X-OriginalArrivalTime: 27 Oct 2016 14:02:20.0332 (UTC) FILETIME=[BBCFE6C0:01D2305A] archived-at: Thu, 27 Oct 2016 14:02:31 -0000 --_000_VI1PR0901MB0893C4926DD89E90968AE608CDAA0VI1PR0901MB0893_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Adding the mailing list. Otherwise Cliff won't see the mail. Regards, Adel ________________________________ From: Alan Conway Sent: Thursday, October 27, 2016 3:35:04 PM To: Adel Boutros Cc: kim.vdriet Subject: Re: [Proton-c] [0.14.0] C++ sending/receiving bytes and map messag= es On Thu, 2016-10-27 at 09:36 +0000, Adel Boutros wrote: > Hello Alan, > > I have a very simple reproducible test case for the sendBytes on > Visual Studio 2008 > Actually, you have to be in "RelWithDebInfo" because in "Debug" mode > it passes. > > PS: I don't have the issue using Visual Studio 2013 (nsvcr90.dll is > for Visual 2008 if I am not mistaken). > > Is Proton supposed to work using Visual Studio 2008? Or do you > recommend using at least 2013? We do still support C++03 so in principle it should work. Cliff can you comment on recommended Windows compilers? The new C++ code may well be stretching older compilers on template support ;( I would like to investigate this anyway, old compiler problems sometimes point to borderline code that might cause trouble in other circumstances if ignored. Can you make a JIRA? Thanks, Alan. > > Code > ---------------- > #include > > #include > #include > > int main() { > proton::message m; > m.body(proton::binary(std::string("m"))); > //m.body(proton::binary("m")); > return 0; > } > > Exception > -------------- > Unhandled exception at 0x623ce2e4 in messaging-feature-tests.dll: > 0xC0000005: Access violation reading location 0x0000000001479000 > > Stack > ----------- > msvcr90.dll!00000000623ce2e4() > [Frames below may be incorrect and/or missing, no symbols loaded > for msvcr90.dll] > > qpid-proton.dll!pn_buffer_append(pn_buffer_t * > buf=3D0x000007f7b22842bf, const char * bytes=3D0x0000000001477cd0, > unsigned __int64 size=3D0) Line 174 > C++ > qpid-proton.dll!pni_data_intern(pn_data_t * > data=3D0x0000000001477cd0, const char * start=3D0x00000000014785d0, > unsigned __int64 size=3D15595744) Line 437 > C++ > qpid-proton.dll!pni_data_intern_node(pn_data_t * > data=3D0x0000000000edf8e0, pni_node_t * node=3D0x0000000000000000) Line > 470 + 0x12 bytes > C++ > qpid-proton-cpp.dll!proton::codec::`anonymous > namespace'::pn_data_put_amqp_binary(pn_data_t * d=3D0x0000000000edf9c0, > const proton::binary & x=3D{...}) Line 114 + 0x55 bytes > C++ > qpid-proton- > cpp.dll!proton::codec::encoder::insert const & __ptr64>(const proton::binary & x=3D{...}, int (pn_data_t *, > const proton::binary &)* put=3D0x000007f7b36edd1f) Line 121 + 0x11 > bytes C++ > messaging-feature- > tests.dll!proton::value::operator=3D(const > proton::binary & x=3D{...}) Line 88 > C++ > messaging-feature- > tests.dll!proton::value::value(const proton::binary & > x=3D{...}, void * __formal=3D0x0000000000000000) Line 82 + 0x3f bytes > C++ > messaging-feature-tests.dll!main() Line 8 + 0x6c bytes > C++ > messaging-feature-tests.dll!__tmainCRTStartup() Line 582 + 0x19 > bytes > C > kernel32.dll!000007f9da961842() > ntdll.dll!000007f9dcb24f45() > > Regards, > Adel > From: Alan Conway > Sent: Wednesday, October 26, 2016 7:22:15 PM > To: Adel Boutros > Cc: kim.vdriet > Subject: Re: [Proton-c] [0.14.0] C++ sending/receiving bytes and map > messages > > On Wed, 2016-10-26 at 16:51 +0000, Adel Boutros wrote: > > Hello Alan, > > > > I don't think the sending issues are related to jms. > > Agreed. They are definitely C++ bugs and probably my fault :) > > > I tried once to isolate a test case for the receiveBytes but I > wasn't > > able to reproduce. The bytes were correctly found (I think I was in > > Debug mode) > > Tomorrow, I will try again and hopefully have a simple reproducible > > test case for each of the issues. > > > PS: I don't know if this has anything to do with the issues but all > > the c++ code is loaded in java code using jni and the dlls are > loaded > > by calling "System.loadLibrary()" in Java > > I can't think of any reason why that would be a problem, but if you > can't reproduce outside of Java then give me as much information as > you > can about how you reproduce it inside Java. > > --_000_VI1PR0901MB0893C4926DD89E90968AE608CDAA0VI1PR0901MB0893_--