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..

Chatscript 3.5 error (bug)
 
 

When I enter the words “Date of transaction” program crashes.
Error message - “Segmentation fault (core dumped)”.

OS Linux. Chatscript local mode

 

 
  [ # 1 ]

Interesting. Nothing happens badly on my internal copy.
Can you compile (from ChatScript top level) g++ -lpthread -lrt -funsigned-char src/*.cpp -g
and then run it as:
gdb ./a.out
set args local
run
then make it crash and do backtrace and email me that?

 

 
  [ # 2 ]

Program received signal SIGSEGV, Segmentation fault.
0x000000000041d817 in AssignRoles(bool&) ()

 

 
  [ # 3 ]

Is “Date of transaction” the literal input you typed in?  I don’t crash doing that. The trace of AssignRoles is too broad, which is why I need a stacktrace telling me which line of code did it (-g and gdb run)

 

 
  [ # 4 ]

crashes on mac also:

HARRY:  Did you run away from home when you were little?
diivious: > Date of transaction

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x000000090069ef98
0x000000010002f69e in AssignRoles (changed=@0x7fff5fbf89f3) at englishTagger.cpp:5100
5100                                         else if (posValues[i-2] & TO_INFINITIVE && bitCounts[i-2] > 1) // separated with adverb
(gdb) bt
#0 0x000000010002f69e in AssignRoles (changed=@0x7fff5fbf89f3) at englishTagger.cpp:5100
#1 0x000000010003132c in English_ParseSentence (resolved=@0x7fff5fbf904b, changed=@0x7fff5fbf89f3) at englishTagger.cpp:5418
#2 0x000000010003509c in ApplyRules (guessAcceptable=true) at englishTagger.cpp:1275
#3 0x000000010003882d in PerformPosTag () at englishTagger.cpp:401
#4 0x000000010003988e in English_TagIt () at englishTagger.cpp:511
#5 0x00000001000643b5 in MarkAllImpliedWords () at markSystem.cpp:564
#6 0x000000010005e920 in PrepareSentence (input=0x1001197e0 “Date of transaction”, mark=true, user=true) at mainSystem.cpp:1483
#7 0x000000010005eb0b in DoSentence (prepassTopic=0x7fff5fbfeb1c “”) at mainSystem.cpp:974
#8 0x000000010005f4c2 in ProcessInput (input=0x1001197e0 “Date of transaction”) at mainSystem.cpp:918
#9 0x000000010005facc in PerformChat (user=0x1006a5220 “diivious”, usee=0x1006a5420 “harry”, incoming=0x10069cd41 “Date of transaction”, ip=0x1000c6b00 “”,
  output=0x10094e201 “”, fileID=-1) at mainSystem.cpp:807
#10 0x0000000100060081 in MainLoop () at mainSystem.cpp:612
#11 0x0000000100062251 in main (argc=2, argv=0x7fff5fbff8a0) at mainSystem.cpp:1504
(gdb) f 0
#0 0x000000010002f69e in AssignRoles (changed=@0x7fff5fbf89f3) at englishTagger.cpp:5100
5100                                         else if (posValues[i-2] & TO_INFINITIVE && bitCounts[i-2] > 1) // separated with adverb
(gdb) p i
$1 = 1

 

 
  [ # 5 ]

that’s what I needed. thanks. Will post a new release later today.

 

 
  [ # 6 ]

CS 3.51 now released which should fix mac issues

 

 
  [ # 7 ]

In Linux (64 bit) compiling with the-g flag the error does not occur

 

 
  [ # 8 ]

Improvements have helped in version 3.51. thank you

 

 
  login or register to react