c++ - GNU 通用公共(public)许可证错误?

标签 c++ boost serial-port gnu

我开发了一个程序,利用串行编程从串行端口读取和写入并将值放入Ubuntu环境中的数据库中。最近,我使用 boost lib 添加了一些功能来过滤读取功能等。但是当我运行程序时,比如 15-20 分钟后,我遇到了段错误。 当我检查我在我的程序中定义的日志文件时,我在其中得到了以下几行。我不知道这是怎么回事。有人可以指导我吗。

a copy of the GNU General Public License          along with this

program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ","NU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ","e
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ","ram; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ","e Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ","tion, Inc., 59 Temple Place, Suite 330, Boston, MA ","ace, Suite 330, Boston, MA ","MA ","","","
","HUB-ARM ")

感谢和问候, 桑普拉特。

最佳答案

简单的回答。你的程序出现了段错误。这意味着它不再有效并且可能表现不佳。

在这种情况下,它开始打印出一个字符串(可能没有正确终止)并且它继续打印出程序内存。您可能已经包含了很长的 GNU GPL 许可文本。出现段错误的程序打印其中一些字符串的可能性很高。

检查您的内存分配、字符串等。您正面临与内存相关的错误。

关于c++ - GNU 通用公共(public)许可证错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4711836/

相关文章:

c++ - 在函数外访问堆栈对象

C++11 线程 boost 容器

c++ - Boost Mini C 教程

batch-file - 如何使用 Windows 批处理文件从 COM 端口发送一系列十六进制命令?

serial-port - 逆向工程黑盒串行协议(protocol)

c++ - 调用 exit() quit() 或 terminate() 后 Qt 线程执行不会停止

c++ - 如何在 Windows 中 Hook 复制操作

无法在 C 中的 Linux 中设置串口配置

c++ - 复制构造函数参数

c++ - 在 Boost 中的 GCC 3.3 问题下使用 operator() 进行编译