GNU General Public License ERROR?
I have developed a program which makes use of serial programming to read and write from serial port and put the values in databases in Ubuntu environment. Lately, I have added few functionality using boost lib to filter the read function etc. But when I run the program , say after 15-20 mins , I got segmentation fault . When I check the log file which I have defined in my program I got following lines in it. I have no clue what is all about. Can someone guide me on that.
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,开发者_JAVA百科 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 ")
Thanks and regards, SamPrat.
Easy answer. Your program segfaulted. That means its is no longer working and it can behave badly.
In this case it started to print out a string (probably not properly terminated) and it was continuing to print out the program memory. And you have probably included the GNU GPL license text which is long. The possibility that segfaulted program will print some of these strings is high.
Check your memory allocations, strings etc. You are facing a memory related bug.
My guess,
you have are printing/using an unterminated string. and when you come to print it, well it keeps printing every char until it reaches '/0' or SEGFAULT :), the GPL license text just happens to be in the right place.
精彩评论