### 1. Phix 0.8.0 - running 'p' produces 'segment violation'

- Posted by srb623 4 weeks ago
- 521 views

I have downloaded and installed the 64 bit version of phix for linux as per the instructions (i note that i did have to change the download of p32 to p64 - so i assume that is an error in the documentation that needs to be fixed). I am running Debian Buster (testing) with kernel 4.19.28 with all of the latest updates applied. When I try to do './p -test' it crashes with 'segment violation'. I note that there is not any debug information in the executable when I went into gdb to attempt to get a backtrace to provide further information here. Can someone please advise how I can progress this matter further ?

### 2. Re: Phix 0.8.0 - running 'p' produces 'segment violation'

- Posted by irv 4 weeks ago
- 491 views

After changing the p32 to p64 as suggested above, the install tests ran correctly on Linux Mint 64. However, running the primes demo didn't:

irv@irv-desktop ~/phix/demo/rosetta $ ../../p Extensible_prime_generator.exw The first 20 primes are: {2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71} The primes between 100 and 150 are: {101,103,107,109,113,127,131,137,139,149} There are 30 primes between 7700 and 8000. The 10th prime is : 29 The 100th prime is : 541 The 1,000th prime is : 7919 The 10,000th prime is : 104729 The 100,000th prime is : 1299709 The 1,000,000th prime is : 15485863 The 10,000,000th prime is : 179424673 Segmentation fault

### 3. Re: Phix 0.8.0 - running 'p' produces 'segment violation'

- Posted by Senator 3 weeks ago
- 338 views

Ubuntu 16.04, 64 bit system Euphoria 4.1, 64 bit AFTER Changing p32 to p64

Extensible_prime_generator.exw FAILS as did Irv's test on Debian Buster.

However; RUNNING on EUPHORIA 4.1

(64 bit,with minor editing, 64 bit system)

The first 20 primes are: {2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71}

The primes between 100 and 150 are: {101,103,107,109,113,127,131,137,139,149}

There are 30 primes between 7700 and 8000

The 10th prime is : 29

~~~~~~~~~~~~~~~~~~~~~

The 100,000,000th prime is : 2038074743

47.07 secs interpreted

50.32 secs shrouded *.il !?

compile fails (core dump)

~~~~~~~~~~~~Prime Sieve Benchmark~~~~~~~~~~~~

PHIX 0.8.0, 64 bit interpreted = 112502.6 sieves per second

Euphoria 4.1, 64 bit interpreted = 45800.0 sieves per second

112502.6/45800.00 = 2.5

** *Phix interpreted is 2.5 X faster than Euphoria interpeted* **

~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Euphoria 4.1, 64 bit compiled = 315675.0 sieves per second

PHIX 0.8.0, 64 bit compiled = 134031.9 sieves per second

315675.0/134031.9 = 2.4

** *Euphoria Compiled is 2.4 X faster than PHIX compiled* **

Regards,

Ken Rhodes