[developers] Cheap crashes if VPM file(s) cannot be found
eric-n at is.naist.jp
eric-n at is.naist.jp
Mon Aug 18 11:05:03 CEST 2008
Greetings,
Francis and I noticed that Cheap will reliably crash if it cannot find
the VPM file(s) referenced in the pet settings.
An example crash follows. The missing VPM is "semi.vpm." I have
attached a patch that checks for the existence
of VPM files and exits with an error message if they are not found.
eric-n at thyme:~/pet-test [] [17:55:51] [10474]
:) ls
jacy-r376 jacy-r384 japanese.grm pet tanaka-006-015.mem tc-12.txt
eric-n at thyme:~/pet-test [] [17:55:51] [10475]
:) /usr/bin/cheap japanese.grm
reading `pet/japanese.set'... including `pet/mrs.set'... `pet/
shared.set'...
loading `japanese.grm' (Jacy (2008-06-23))
reading ME model `tanaka-006-015.mem'... [282757 features]
Segmentation violation.
Top level.
MT> ^D
eric-n at thyme:~/pet-test [] [17:57:04] [10476]
:)
# after applying patch
eric-n at thyme:~/pet-test [] [18:04:43] [10481]
:) /usr/bin/cheap japanese.grm
reading `pet/japanese.set'... including `pet/mrs.set'... `pet/
shared.set'...
loading `japanese.grm' (Jacy (2008-06-27)) reading ME model
`tanaka-006-015.mem'... [282757 features]
semi.vpm not found
eric-n at thyme:~/pet-test [] [18:04:53] [10482]
:(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 21_find_vpm.diff
Type: application/octet-stream
Size: 833 bytes
Desc: not available
URL: <http://lists.delph-in.net/archives/developers/attachments/20080818/14393000/attachment.obj>
-------------- next part --------------
Eric Nichols
More information about the developers
mailing list