AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

buffer overflow detected
 
 

I use in rule many answers. For example:

# ==========================================================================================

#! tell us about yourself
u: (tell us about yourself) ^keep() ^repeat()
    [ I have done my schooling from south point school, kolkata. ]
    [ I am currently pursuing my B-Tech course in st. Thomas college of engineering and technology and I am in final year now. ]
    [ I am recently undergoing a project on how to save power i.e., I am going to create power saving devices along with my fellow members. ]
    [ I am an optimistic person, I will work hard for the betterment of the company, always look for opportunities to improve myself and will try to make your company go to the top. ]
    [ I always try my level best to achieve success in life at any cost. ]
    [ Regarding my family details I live in kolkata along with my parents and my younger brother. ]
    [ My pastime is reading storybooks and I try to remain involved in social works like giving education kit to the poor who want to study, for that I collect donation from houses of my locality and I have many followers who work along with me and as I’m a book lover I am an active member of a library in my locality. ]
    [ My pastime is reading storybooks and I try to remain involved in social works like giving education kit to the poor who want to study, for that I collect donation from houses of my locality and I have many followers who work along with me and as I’m a book lover I am an active member of a library in my locality. ]
    [ Looking for an opportunity to work in your company. ]
    [ I always try my level best to achieve success in life at any cost. ]
    [ Well my name is Kumar santosh anand I am 21 years old, Basically I am from bihar patna but now I am staying in laxmi nagar delhi.]

# ==========================================================================================

When I enter the command: verify - have the following:

# ==========================================================================================
alex: > :verify
VERIFYING ~introductions ......
*** buffer overflow detected ***: ./ChatScript terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7f5ec0edf5cc]
/lib/x86_64-linux-gnu/libc.so.6(+0x110560)[0x7f5ec0ede560]
/lib/x86_64-linux-gnu/libc.so.6(__strncpy_chk+0x16c)[0x7f5ec0edd86c]
./ChatScript[0x467cc4]
./ChatScript[0x4538bb]
./ChatScript[0x45b8dc]
./ChatScript[0x45b99c]
./ChatScript[0x45bc53]
./ChatScript[0x43676d]
./ChatScript[0x436a65]
./ChatScript[0x436f01]
./ChatScript[0x4035d8]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7f5ec0defea5]
./ChatScript[0x403b11]
======= Memory map: ========
.............
.......
# ==========================================================================================

Probably the internal buffer is too small.

You can increase the buffer? Or make it a dynamically changing

Please help

 

 
  [ # 1 ]

I stuck that in a test topic, built it, did :verify on that topic in windows and Linux with no problem. So I can’t see the problem yet. Can you rebuild your Linux with -g e.g. from chatscript main do:  g++ -lpthread -lrt -funsigned-char src/*.cpp -g
and run gdb a.out
and set args local
and run
then do it and crash. Then do backtrace   and send me the results?

 

 
  login or register to react