Closed miwest929 closed 8 years ago
Hey Mike - thanks for the detailed report, and sorry that's been happening to you.
There are two things I would check:
du -h
on the data dir (if, when compiling libpostal, you passed ./configure --datadir=/data
the datadir would be /data/libpostal), it should take up about 2.2G of spaceGiven the function it's crashing on, which is toward the middle of loading the parser, I suspect that one of those conditions might be the cause. If not, let me know.
Thanks @thatdatabaseguy for your detailed analysis. I'm still in the process of testing each of your hypotheses. I'll let you know what I discover!
@thatdatabaseguy I was able to get ruby_postal
working without a Segmentation Fault. The issue was 1.
. The data download phase must have previously failed despite taking up 2.1G
. I simply reinstalled libpostal
from scratch and redownloaded the data. Now my demo.rb
works as expected. Thank you for your assistance. I'm closing this issue.
I keep running into a Segmentation Fault whenever I require
ruby_postal/parser
. I have no idea why this is happening. Any assistance to help me diagnose the error would be much appreciated. Ruby versionruby_postal gem version
Machine information
Contents of demo.rb
When I run that script with
ruby demo.rb
I receive the following:Any ideas about the root cause or suggestions on how to get to diagnose it?