Re: qpid-proton cpp - Broker example segfault
On Mon, Mar 19, 2018 at 12:07 PM, Baptiste Robert < baptisterober...@gmail.com> wrote: > Thank you for your answer, It fixed my issues. Maybe it's due tthe > partial support of C++11 integrated in GCC 4.6.2. > In the same way, is it possible to build the last qpid-proton version with > OpenSSL 1.0.0 ? Since the 0.19 version I cannot built it, is it possible to > set a cmake variable to make it compliant ? > > I'm glad you got the C++ issue sorted out. I don't know about the SSL problem. It is probably possible to work around it but I'm not aware of a fix already in the cmake files.Perhaps someone else on the list can answer that. > Thank you, > > > 2018-03-19 15:21 GMT+01:00 Alan Conway: > > > On Mon, Mar 19, 2018 at 4:45 AM, Baptiste Robert < > > baptisterober...@gmail.com > > > wrote: > > > > > Hello, > > > > > > I'm having an issue with the broker example. When I run it works, but a > > > soon as I send messages to it I get a segfault. I send messages with > the > > > examples simple_send. > > > > > > Note : I compiled the broker with gcc 4.6.2 e.g. without C++11 support, > > and > > > I'm supposing that is the root cause of a lot of my problem with qpid.. > > > > > > > Before C++11 you can't use multiple threads, but the broker and other > > examples are supposed to work single-threaded in that case so we should > > find out what's going wrong. > > > > Try a new build with `cmake -DBUILD_CPP_03=YES` to tell cmake that you > want > > to build in c++-03 compatibility mode. Cmake is supposed to figure that > out > > for itself but maybe there's a problem in the compiler detection logic. > > > > If it still crashes raise a JIRA at issues.apache.org and attache > > theCMakeCache.txt file generated by cmake and the output of these > commands: > > > > $ gcc -v > > $ gdb --batch --quiet -ex "thread apply all bt full" -ex "quit" > > > > > > > > > -- > > > Baptiste Robert > > > > > > > > > -- > Baptiste Robert >
Re: qpid-proton cpp - Broker example segfault
Thank you for your answer, It fixed my issues. Maybe it's due to the partial support of C++11 integrated in GCC 4.6.2. In the same way, is it possible to build the last qpid-proton version with OpenSSL 1.0.0 ? Since the 0.19 version I cannot built it, is it possible to set a cmake variable to make it compliant ? Thank you, 2018-03-19 15:21 GMT+01:00 Alan Conway: > On Mon, Mar 19, 2018 at 4:45 AM, Baptiste Robert < > baptisterober...@gmail.com > > wrote: > > > Hello, > > > > I'm having an issue with the broker example. When I run it works, but a > > soon as I send messages to it I get a segfault. I send messages with the > > examples simple_send. > > > > Note : I compiled the broker with gcc 4.6.2 e.g. without C++11 support, > and > > I'm supposing that is the root cause of a lot of my problem with qpid.. > > > > Before C++11 you can't use multiple threads, but the broker and other > examples are supposed to work single-threaded in that case so we should > find out what's going wrong. > > Try a new build with `cmake -DBUILD_CPP_03=YES` to tell cmake that you want > to build in c++-03 compatibility mode. Cmake is supposed to figure that out > for itself but maybe there's a problem in the compiler detection logic. > > If it still crashes raise a JIRA at issues.apache.org and attache > theCMakeCache.txt file generated by cmake and the output of these commands: > > $ gcc -v > $ gdb --batch --quiet -ex "thread apply all bt full" -ex "quit" > > > > > -- > > Baptiste Robert > > > -- Baptiste Robert
Re: qpid-proton cpp - Broker example segfault
On Mon, Mar 19, 2018 at 4:45 AM, Baptiste Robertwrote: > Hello, > > I'm having an issue with the broker example. When I run it works, but a > soon as I send messages to it I get a segfault. I send messages with the > examples simple_send. > > Note : I compiled the broker with gcc 4.6.2 e.g. without C++11 support, and > I'm supposing that is the root cause of a lot of my problem with qpid.. > Before C++11 you can't use multiple threads, but the broker and other examples are supposed to work single-threaded in that case so we should find out what's going wrong. Try a new build with `cmake -DBUILD_CPP_03=YES` to tell cmake that you want to build in c++-03 compatibility mode. Cmake is supposed to figure that out for itself but maybe there's a problem in the compiler detection logic. If it still crashes raise a JIRA at issues.apache.org and attache theCMakeCache.txt file generated by cmake and the output of these commands: $ gcc -v $ gdb --batch --quiet -ex "thread apply all bt full" -ex "quit" > -- > Baptiste Robert >
qpid-proton cpp - Broker example segfault
Hello, I'm having an issue with the broker example. When I run it works, but a soon as I send messages to it I get a segfault. I send messages with the examples simple_send. Note : I compiled the broker with gcc 4.6.2 e.g. without C++11 support, and I'm supposing that is the root cause of a lot of my problem with qpid.. Thank you, -- Baptiste Robert