MOR on unix

Olivier Crouzet olivier.crouzet at free.fr
Thu May 23 15:21:15 UTC 2002


Hi,

I am facing the same type of problems. It seems that this only occurs with
the 'optimized' CFLAGS lines (why?) (that is 1st and 3rd lines after
'Other machines' in the makefile.

# Other machines:
 	CFLAGS = -O -DUNX -fwritable-strings -Wall
# if previous doesn't work try:
#	CFLAGS = -DUNX -fwritable-strings
# OR
#   CFLAGS = -O -DUNX -DERRNO -fwritable-strings
#	CFLAGS = -DUNX -DERRNO -fwritable-strings

though compilation runs quite smoothly with either other line which does
not contain this -O option.

However, when compiled this way, though it stops running forever without
doing nothing, mor exits at once when I launch it, with the following
error message:
(I am using the min grammar with the sample.cha file which seems to be
perfect for testing mor and launched it with strace in order to 'try to'
understand what's happening).


> olivier at otawa - ~/bin/clan/MOR/min$ strace -o mor.core mor +xl
> sample.cha mor +xl sample.cha
> Thu May 23 16:44:40 2002
> mor (18-Mar-2002) is conducting analyses on:
>   ALL speaker tiers
>     and those speakers' ALL dependent tiers
>   and ALL header tiers
> ****************************************
> From file <sample.cha> to file <sample.ul2.cex>
> can't open lexicon file lex.
> 
> CURRENT OUTPUT FILE "sample.ul2.cex" IS INCOMPLETE.

I do not know if this is related to the way my files are installed on the
computer. I have the following directory tree :

/home/olivier/bin/clan/ has got the binary tools (it is in my path)
/home/olivier/bin/clan/MOR/ has got the mor grammars
/home/olivier/bin/clan/MOR/min/ is the place where the min grammar is.
/home/olivier/bin/clan/MOR/min/lex/ contains the clo.cut and lex.cut
files.

I tried to export MORLIB=/home/olivier/bin/clan/MOR/min into my
environement without more success.

The core file which strace produces is attached to this mail (actually
it's at the end of the mail because the mail server did not allow me to
put it as an attachment) in case someone understands what's occurring.
According to it I would say that mor tries to open a file named 'lex' in
the min directory whereas lex IS a directory but I am not sure.

I hope we can get to a solution quickly.

Olivier.


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CORE DUMP

execve("/home/olivier/bin/clan/mor", ["mor", "+xl", "sample.cha"], [/* 31
vars */]) = 0
uname({sys="Linux", node="otawa", ...}) = 0
brk(0)                                  = 0x8097ec4
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, 0xbfffeb24)                  = -1 ENOSYS (Function not
implemented)
fstat(3, {st_mode=S_IFREG|0644, st_size=30394, ...}) = 0
old_mmap(NULL, 30394, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\30\222"..., 1024)
= 1024
fstat(3, {st_mode=S_IFREG|0755, st_size=1153784, ...}) = 0
old_mmap(NULL, 1166560, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x4001c000
mprotect(0x4012f000, 40160, PROT_NONE)  = 0
old_mmap(0x4012f000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x113000) = 0x4012f000
old_mmap(0x40135000, 15584, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40135000
close(3)                                = 0
munmap(0x40014000, 30394)               = 0
getcwd("/home/olivier/bin/clan/MOR/min", 4096) = 31
brk(0)                                  = 0x8097ec4
brk(0x8097ee4)                          = 0x8097ee4
brk(0x8098000)                          = 0x8098000
brk(0x809d000)                          = 0x809d000
ioctl(0, SNDCTL_TMR_TEMPO, {B38400 opost isig icanon echo ...}) = 0
access("sample.cha", F_OK)              = 0
open("sample.cha", O_RDONLY)            = 3
access("sample.ulx.cex", F_OK)          = 0
access("sample.ul0.cex", F_OK)          = 0
access("sample.ul1.cex", F_OK)          = 0
access("sample.ul2.cex", F_OK)          = 0
access("sample.ul3.cex", F_OK)          = -1 ENOENT (No such file or
directory)
open("sample.ul3.cex", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
open("punct.cut", O_RDONLY)             = -1 ENOENT (No such file or
directory)
open("/Volumes/pooch/clanW/(lib)/punct.cut", O_RDONLY) = -1 ENOENT (No
such file or directory)
write(2, "mor", 3)                      = 3
write(2, " +xl", 4)                     = 4
write(2, " sample.cha", 11)             = 11
write(2, "\n", 1)                       = 1
fstat64(3, 0xbffff4fc)                  = -1 ENOSYS (Function not
implemented)
fstat(3, {st_mode=S_IFREG|0644, st_size=110, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40014000
read(3, "@Font:\tWin95:Courier:-13:1\r\n at Beg"..., 4096) = 110
_llseek(3, 0, [0], SEEK_SET)            = 0
time([1022165623])                      = 1022165623
open("/etc/localtime", O_RDONLY)        = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=1082, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40015000
read(5, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\f\0\0\0\f\0"..., 4096)
= 1082
brk(0x809e000)                          = 0x809e000
close(5)                                = 0
munmap(0x40015000, 4096)                = 0
write(2, "Thu May 23 16:53:43 2002\n", 25) = 25
write(2, "mor", 3)                      = 3
write(2, " (18-Mar-2002)", 14)          = 14
write(2, " is conducting analyses on:\n", 28) = 28
write(2, "  ", 2)                       = 2
write(2, "ALL speaker tiers", 17)       = 17
write(2, "\n    and those speakers\' ", 25) = 25
write(2, "ALL dependent tiers", 19)     = 19
write(2, "\n  and ", 7)                 = 7
write(2, "ALL header tiers", 16)        = 16
write(2, "\n*******************************"..., 42) = 42
write(2, "From file <sample.cha> to file <"..., 48) = 48
chdir("/home/olivier/bin/clan/MOR/min") = 0
open("sf.cut", O_RDONLY)                = -1 ENOENT (No such file or
directory)
open("/Volumes/pooch/clanW/(lib)/sf.cut", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("ar.cut", O_RDONLY)                = 5
brk(0x80a0000)                          = 0x80a0000
brk(0x80a5000)                          = 0x80a5000
brk(0x80a7000)                          = 0x80a7000
old_mmap(NULL, 135168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40139000
brk(0x80c4000)                          = 0x80c4000
fstat(5, {st_mode=S_IFREG|0644, st_size=236, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40015000
read(5, "% allo rules are ordered!\r\nRULEN"..., 4096) = 236
read(5, "", 4096)                       = 0
chdir("/home/olivier/bin/clan/MOR/min") = 0
chdir("lex")                            = 0
chdir("/Volumes/pooch/clanW/(lib)/")    = -1 ENOENT (No such file or
directory)
chdir("lex")                            = -1 ENOENT (No such file or
directory)
chdir("/home/olivier/bin/clan/MOR/min") = 0
write(2, "can\'t open lexicon file lex.\n", 29) = 29
close(5)                                = 0
munmap(0x40015000, 4096)                = 0
close(3)                                = 0
munmap(0x40014000, 4096)                = 0
close(4)                                = 0
write(2, "\nCURRENT OUTPUT FILE \"sample.ul3"..., 53) = 53
_exit(0)                                = ?

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% END OF CORE DUMP

-- 
  Olivier Crouzet, Ph.D.
  Institut des Sciences Cognitives
  UMR 5015 CNRS-Université Claude Bernard Lyon 1
  67, boulevard Pinel
  69675 Bron Cedex
  France

     phone:        (+33) 04 37 91 12 60
     fax:          (+33) 04 37 91 12 10
     e-mail:       olivier.crouzet at isc.cnrs.fr
 		
  http://www.isc.cnrs.fr
  http://olivier.crouzet.free.fr



More information about the Info-childes mailing list