You are not logged in.
Pages: 1
I installed and run primecount with simple commands:
primecount 1000
primecount 1e8 -m
primecount 1e8 -l
primecount 1e8 -g
primecount 1e8 -n
primecount 1e8 -d
primecount 1e8 --lmo
and it always dumped core/crashed with error (translated to english):
Wrong instruction (core dump)
It only work with options: '-p', '--Li', '--Li-inverse', '--Ri', '--Ri-inverse'.
When tested with option '--test' primecount also crashed with error:
Testing pi_legendre(x)Wrong instruction (core dump)
I have old Intel(R) Pentium(R) Dual CPU E2140 and 2GB of RAM. Is it too old to work properly with this prog or it is something else?
coredumpctl debug /usr/bin/primecount
didn't return anything useful:
PID: 3484 (primecount)
UID: 1000 (user)
GID: 1000 (user)
Signal: 4 (ILL)
Timestamp: Mon 2019-11-18 18:39:49 CET (4min 24s ago)
Command Line: primecount --test
Executable: /usr/bin/primecount
Control Group: /user.slice/user-1000.slice/session-1.scope
Unit: session-1.scope
Slice: user-1000.slice
Session: 1
Owner UID: 1000 (user)
Boot ID: 3d887a443c5342f89fdcbe14edc3d4dd
Machine ID: 4e6eb13c33544bc2bce3efeaf0d12478
Hostname: home
Storage: none
Message: Process 3484 (primecount) of user 1000 dumped core.
Coredump entry has no core attached (neither internally in the journal nor externally on disk).
From journalctl:
lis 18 18:39:50 home systemd-coredump[3486]: Resource limits disable core dumping for process 3484 (primecount).
lis 18 18:39:50 home systemd-coredump[3486]: Process 3484 (primecount) of user 1000 dumped core.
lis 18 18:39:50 home systemd[1]: systemd-coredump@14-3485-0.service: Succeeded.
Last edited by xerxes_ (2020-02-24 00:28:26)
Offline
I have old Intel(R) Pentium(R) Dual CPU E2140 and 2GB of RAM.
By default primecount is build with POPCNT support. The POPCNT instruction is not present on your old CPU which explains your core dump: "Wrong instruction (core dump)". If you build primecount from source with POPCNT disabled then it will run on your PC as well.
Below are the instructions to build primecount from source with POPCNT disabled on Arch Linux:
sudo pacman -S gcc cmake git
git clone https://github.com/kimwalisch/primecount.git
cd primecount
cmake . -DWITH_POPCNT=OFF
make -j4
sudo make install
Detailed build information can be found at: https://github.com/kimwalisch/primecoun … c/BUILD.md. Note that If I remember correctly I told the maintainer of the primecount Arch package about the option to disable POPCNT in order to make primecount more portable. However for an unknown reason the maintainer decided not to use that option (one reason not to disable POPCNT is that POPCNT usually gives up to 30% better performance).
Offline
Detailed build information can be found at: https://github.com/kimwalisch/primecoun … c/BUILD.md. Note that If I remember correctly I told the maintainer of the primecount Arch package about the option to disable POPCNT in order to make primecount more portable. However for an unknown reason the maintainer decided not to use that option (one reason not to disable POPCNT is that POPCNT usually gives up to 30% better performance).
You don't remember correctly, I've never received, let alone refused, such a request. Anyway, it's done in 5.3-2
Offline
Thanks arojas. Now program work without errors.
Offline
Pages: 1