http403 / pyrit

Automatically exported from code.google.com/p/pyrit
0 stars 0 forks source link

Attempts to use SSE2 on non-SSE2 cpu #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Running pyrit on non-sse2 athlon processor - XP2100 and XP2700 

What is the expected output? What do you see instead?
Should see selftest results instead I get the following when running pyrit
selftest on an AMD Athlon XP 2100+ & 2700+ CPU

Cores incorporated in the test:
#1:  'CPU-Core (SSE2)'

Running selftest for at least 60 seconds...
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.5/site-packages/cpyrit.py", line 90, in run
    self._testComputeFunction(101)
  File "/usr/lib/python2.5/site-packages/cpyrit.py", line 87, in
_testComputeFunction
    raise ValueError, "Test-vector does not result in correct PMK."
ValueError: Test-vector does not result in correct PMK.

Traceback (most recent call last):
  File "/usr/bin/pyrit", line 542, in <module>
    Pyrit_CLI().init()
  File "/usr/bin/pyrit", line 93, in init
    }.setdefault(commands[0] if len(commands) > 0 else 'help',
self.print_help)()
  File "/usr/bin/pyrit", line 455, in selftest
    solvedPMKs = cp.dequeue(block=False)
  File "/usr/lib/python2.5/site-packages/cpyrit.py", line 412, in dequeue
    self._check_cores()
  File "/usr/lib/python2.5/site-packages/cpyrit.py", line 333, in _check_cores
    raise SystemError, "The core '%s' has died unexpectedly." % core
SystemError: The core 'CPU-Core (SSE2)' has died unexpectedly.

What version of the product are you using? On what operating system?
Pyrit-0.2.3 latest  & latest SVN source

Please provide any additional information below.

cat /proc/cpuinfo 
processor   : 0
vendor_id   : AuthenticAMD
cpu family  : 6
model       : 8
model name  : AMD Athlon(tm) XP 2700+
stepping    : 1
cpu MHz     : 2166.414
cache size  : 256 KB
fdiv_bug    : no
hlt_bug     : no
f00f_bug    : no
coma_bug    : no
fpu     : yes
fpu_exception   : yes
cpuid level : 1
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat
pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow up
bogomips    : 4332.82
clflush size    : 32
power management: ts

Original issue reported on code.google.com by mbcolang...@gmail.com on 1 Aug 2009 at 7:08

GoogleCodeExporter commented 9 years ago
Thanks for reporting. You can fix this for the time being by opening 
_cpyrit_cpu.h
and removing the line '#define COMPILE_SSE2'.

Original comment by lukas.l...@gmail.com on 1 Aug 2009 at 7:37

GoogleCodeExporter commented 9 years ago
Same issue here. My cpu only supports SSE, however, that solution does not seem 
to work for me. I'm using v0.3.0 of pyrit.

User@User-desktop:~/Desktop/pyrit-0.3.0$ sudo python setup.py install
running install
running build
running build_py
running build_ext
building 'cpyrit._cpyrit_cpu' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c cpyrit/_cpyrit_cpu.c -o 
build/temp.linux-i686-2.6/cpyrit/_cpyrit_cpu.o -DVERSION="0.3.0"
cpyrit/_cpyrit_cpu.c: In function ‘pathconfig’:
cpyrit/_cpyrit_cpu.c:1632: error: ‘fourwise_sha1hmac_prepare_sse2’ 
undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c:1632: error: (Each undeclared identifier is reported only 
once
cpyrit/_cpyrit_cpu.c:1632: error: for each function it appears in.)
cpyrit/_cpyrit_cpu.c:1633: error: ‘fourwise_sha1hmac_sse2’ undeclared 
(first use in this function)
cpyrit/_cpyrit_cpu.c:1634: error: ‘fourwise_md5hmac_prepare_sse2’ 
undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c:1635: error: ‘fourwise_md5hmac_sse2’ undeclared (first 
use in this function)
error: command 'gcc' failed with exit status 1

Original comment by marsrov...@gmail.com on 5 Jul 2010 at 11:30

GoogleCodeExporter commented 9 years ago
fixed in r271

Original comment by lukas.l...@gmail.com on 23 Jul 2010 at 8:59