Yes it is and I found the problem

The problem was  that I was sending a text contains square brackets “[ some 
text ]” every time I send this text to decoder I got this segmentation fault 

But if I send “[ some text” just without the close bracket the output goes 
without errors and also with the open bracket but with both it gives me the 
error

Do you have explanation?

Thanks for your interest

 

From: Hieu Hoang [mailto:hieuho...@gmail.com] 
Sent: Tuesday, October 21, 2014 11:50 AM
To: i.rama...@saudisoft.com; moses-support@mit.edu
Subject: Re: [Moses-support] Segmentation Fault

 

does the same segfault happen when you use the moses command line executable? 
I'm not familiar with the daemon.pl

On 21/10/14 02:31, Ihab Ramadan wrote:

You will find the ini file in the attachements.

I was running the daemon.pl script exists in the directory 
“mosesdecoder/contrib/web/bin/daemon.pl” which run the moses excecutable

Like that

./daemon 172.16.0.97 9105 mosespath/model/moses.ini

Then I send the input to that port using a socket connected to it and receive 
the output from the same port

 

From: Hieu Hoang [mailto:hieuho...@gmail.com] 
Sent: Tuesday, October 21, 2014 10:46 AM
To: i.rama...@saudisoft.com; moses-support@mit.edu
Subject: Re: [Moses-support] Segmentation Fault

 

can you also post the moses.ini file and and EXACT command you ran

On 20/10/14 11:44, Ihab Ramadan wrote:

Dears,

What may cause the segmentation fault during decoding 

This a snapshot of the output of moses 

 

BEST TRANSLATION: . [1]  [total=-4.743] 
core=(0.000,-1.000,1.000,-0.114,-0.373,-0.127,-0.146,-0.164,0.000,0.000,0.000,0.000,0.000,0.000,-11.485)
  

Line 79: Decision rule took 0.000 seconds total

Line 79: Additional reporting took 0.000 seconds total

Line 79: Translation took 0.799 seconds total

Translating line 80  in thread id 139738513774336

Translating: Connect the 

reading bin ttable

size of OFF_T 8

binary phrasefile loaded, default OFF_T: -1

Line 80: Initialize search took 0.795 seconds total

Line 80: Collecting options took 0.000 seconds

Line 80: Search took 0.001 seconds

BEST TRANSLATION: صل [11]  [total=-8.329] 
core=(0.000,-1.000,1.000,-1.099,-2.645,-2.398,-6.344,-0.511,0.000,0.000,0.000,0.000,0.000,0.000,-13.757)
  

Line 80: Decision rule took 0.000 seconds total

Line 80: Additional reporting took 0.000 seconds total

Line 80: Translation took 0.797 seconds total

*** Segmentation fault

Register dump:

 

RAX: 00000000099a5f40   RBX: 0000000000000000   RCX: 00007f1769659620

RDX: 00000000099a5f40   RSI: 0000000000000001   RDI: 0000000007038470

RBP: 0000000007038480   R8 : 0000000000000040   R9 : 0000000000000000

R10: 0000000000000000   R11: 0000000000000000   R12: 0000000000000002

R13: 0000000000000000   R14: 0000000012c7d9c0   R15: 00000000014da5e0

RSP: 00007fff6a3efd40

 

RIP: 0000000000460b1f   EFLAGS: 00010206

 

CS: 0033   FS: 0000   GS: 0000

 

Trap: 0000000e   Error: 00000006   OldMask: 00000000   CR2: 00000000

 

FPUCW: 0000037f   FPUSW: 00000000   TAG: 00000000

RIP: 00000000   RDP: 00000000

 

ST(0) 0000 0000000000000000   ST(1) 0000 0000000000000000

ST(2) 0000 0000000000000000   ST(3) 0000 0000000000000000

ST(4) 0000 0000000000000000   ST(5) 0000 0000000000000000

ST(6) 0000 0000000000000000   ST(7) 0000 0000000000000000

mxcsr: 1fa4

XMM0:  00000000000000000000000000000000 XMM1:  00000000000000000000000000000000

XMM2:  00000000000000000000000000000000 XMM3:  00000000000000000000000000000000

XMM4:  00000000000000000000000000000000 XMM5:  00000000000000000000000000000000

XMM6:  00000000000000000000000000000000 XMM7:  00000000000000000000000000000000

XMM8:  00000000000000000000000000000000 XMM9:  00000000000000000000000000000000

XMM10: 00000000000000000000000000000000 XMM11: 00000000000000000000000000000000

XMM12: 00000000000000000000000000000000 XMM13: 00000000000000000000000000000000

XMM14: 00000000000000000000000000000000 XMM15: 00000000000000000000000000000000

 

Backtrace:

/home/SMT/mosesdecoder-master/contrib/web/bin/../../../bin/moses[0x460b1f]

/home/SMT/mosesdecoder-master/contrib/web/bin/../../../bin/moses[0x4a2c89]

/home/SMT/mosesdecoder-master/contrib/web/bin/../../../bin/moses[0x42768d]

/home/SMT/mosesdecoder-master/contrib/web/bin/../../../bin/moses[0x427f42]

/home/SMT/mosesdecoder-master/contrib/web/bin/../../../bin/moses[0x412b62]

/lib64/libc.so.6(__libc_start_main+0xf5)[0x7f17692d1be5]

/home/SMT/mosesdecoder-master/contrib/web/bin/../../../bin/moses[0x41a3c5]

 

 

 

Best Regards

Ihab Ramadan| Senior Developer|  <http://www.saudisoft.com/> Saudisoft - Egypt 
| Tel  +2 02 330 320 37  Ext- 0 | Mob+201007570826 | Fax+20233032036 | Follow 
us on  
<http://www.linkedin.com/company/77017?trk=vsrp_companies_res_name&trkInfo=VSRPsearchId%3A1489659901402995947155%2CVSRPtargetId%3A77017%2CVSRPcmpt%3Aprimary>
 linked |  
<https://www.facebook.com/pages/Saudisoft-Co-Ltd/289968997768973?ref_type=bookmark>
 ZA102637861 |  <https://twitter.com/Saudisoft> ZA102637858

 







_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support

 

 

_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to