我开发了一个程序,利用串行编程从串行端口读取和写入并将值放入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/