You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/09/01 04:45:06 UTC

[GitHub] [pulsar] BewareMyPower commented on issue #17279: [Bug] cpp client segmentation fault

BewareMyPower commented on issue #17279:
URL: https://github.com/apache/pulsar/issues/17279#issuecomment-1233734596

   According to your `ldd` info, your executable links to `/lib64/libstdc++.so.6`, it should be the C++ dependency of GCC 4.8 unless it has been overwritten.
   
   ```bash
   $ ls -l /lib64/libstdc++.so.6
   lrwxrwxrwx 1 root root 19 Nov 13  2020 /lib64/libstdc++.so.6 -> libstdc++.so.6.0.19
   ```
   
   If you compiled your program with GCC 7, you must set the `LD_LIBRARY_PATH` environment variable to the correct path (where the `libstdc++.so` of GCC 7 exists).
   
   > should I compile pulsar client with gcc 7.3.1 to fix this problem?
   
   Maybe not. You should link to the correct library when you ran it. Even if you compiled with GCC 7, if your executable still links to the `/lib64/libstdc++.so.6`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org