Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

word2phrase segmentation fault #7

Open
GoogleCodeExporter opened this issue Apr 19, 2015 · 4 comments
Open

word2phrase segmentation fault #7

GoogleCodeExporter opened this issue Apr 19, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

When I run demo-phrases.sh on Linux I get the following error message:

./demo-phrases.sh: line 6:  5492 Segmentation fault      ./word2phrase -train 
text8 -output text8-phrase -threshold 500 -debug 2





Original issue reported on code.google.com by [email protected] on 25 Aug 2013 at 11:12

@GoogleCodeExporter
Copy link
Author

having the same. Compiled with gcc47 on amazon standard image. word2vec works 
fine.

Original comment by [email protected] on 13 Sep 2013 at 12:04

@GoogleCodeExporter
Copy link
Author

ditto

Original comment by [email protected] on 17 Nov 2013 at 6:24

@GoogleCodeExporter
Copy link
Author

Hit this as well and found the box out of memory and no swap configured
might want to check for NULL on mallocs

Original comment by [email protected] on 17 Nov 2014 at 3:40

@GoogleCodeExporter
Copy link
Author

I am getting the same segmentation problem.  I am trying to run demo-word.sh on 
Unbuntu, which is installed on a Virtual Machine on Mac OSX.

I tried compiling with gcc4.7 on Ubuntu, but it does not work for me.  

When I check out the C code for word2vec and run "make" on trunk, I get the 
following warning messages:


dev@dev-VirtualBox:~/text-analytics/trunk$ make
gcc word2vec.c -o word2vec -lm -pthread -O3 -march=native -Wall -funroll-loops 
-Wno-unused-result
gcc word2phrase.c -o word2phrase -lm -pthread -O3 -march=native -Wall 
-funroll-loops -Wno-unused-result
gcc distance.c -o distance -lm -pthread -O3 -march=native -Wall -funroll-loops 
-Wno-unused-result
distance.c: In function ‘main’:
distance.c:31:8: warning: unused variable ‘ch’ [-Wunused-variable]
   char ch;
        ^
gcc word-analogy.c -o word-analogy -lm -pthread -O3 -march=native -Wall 
-funroll-loops -Wno-unused-result
word-analogy.c: In function ‘main’:
word-analogy.c:31:8: warning: unused variable ‘ch’ [-Wunused-variable]
   char ch;
        ^
gcc compute-accuracy.c -o compute-accuracy -lm -pthread -O3 -march=native -Wall 
-funroll-loops -Wno-unused-result
compute-accuracy.c: In function ‘main’:
compute-accuracy.c:29:109: warning: unused variable ‘ch’ [-Wunused-variable]
   char st1[max_size], st2[max_size], st3[max_size], st4[max_size], bestw[N][max_size], file_name[max_size], ch;
                                                                                                             ^
chmod +x *.sh


Does anyone have any suggestions?

Original comment by [email protected] on 8 Apr 2015 at 10:29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant