Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <e93f0528-5778-44fd-a46b-e044ff4a734f@gmail.com>
Date: Mon, 2 Sep 2024 20:01:09 +0200
From: Andrea <muradin80@...il.com>
To: john-users@...ts.openwall.com
Subject: How to debug segmentation fault using OpenCL and ROCM

Hi everyone,

I have just recently started to learn using JtR tool and I would like to 
enable OpenCL capabilities.

Unfortunately, running some tests, I'm always getting segmentation fault 
error; I would like to understand the best way to debug the issue and 
track it down to understand if the issue is related to either ROCM, 
OpenCL or JtR (or a mix of them).

Example of command and related error:

john --test=0 --format=sha256crypt-opencl

Device 1: gfx90c:xnack- [AMD Radeon Graphics]
Testing: sha256crypt-opencl, crypt(3) $5$ (rounds=5000) [SHA256 
OpenCL]... Build log: warning: argument unused during compilation: '-I 
opencl' [-Wunused-command-line-argument]
1 warning generated.
Segmentation fault

Additional preliminary info:

john --list=opencl-devices
Platform #0 name: AMD Accelerated Parallel Processing, version: OpenCL 
2.1 AMD-APP.dbg (3614.0)
     Device #0 (1) name:     gfx90c:xnack-
     Board name:             AMD Radeon Graphics
     Device vendor:          Advanced Micro Devices, Inc.
     Device type:            GPU (LE)
     Device version:         OpenCL 2.0
     OpenCL version support: OpenCL C 2.0
     Driver version:         3614.0 (HSA1.1,LC) - AMDGPU-Pro
     Native vector widths:   char 4, short 2, int 1, long 1
     Preferred vector width: char 4, short 2, int 1, long 1
     Global Memory:          512 MiB
     Global Memory Cache:    16 KiB
     Local Memory:           64 KiB (Local)
     Constant Buffer size:   384 MiB
     Max memory alloc. size: 384 MiB
     Max clock (MHz):        1500
     Profiling timer res.:   1 ns
     Max Work Group Size:    256
     Parallel compute cores: 6
     Stream processors:      384  (6 x 64)
     Speed index:            576000
     SIMD width:             16
     Wavefront width:        64
     PCI device topology:    04:00.0

john --list=build-info
Version: 1.9.0-jumbo-1+bleeding-9daf16b574 2024-01-02 05:20:52 +0100
Build: linux-gnu 64-bit x86_64 AVX2 AC OMP OPENCL
SIMD: AVX2, interleaving: MD4:3 MD5:3 SHA1:1 SHA256:1 SHA512:1
System-wide exec: /usr/bin
System-wide home: /etc/john
Private home: ~/.john
CPU tests: AVX2
$JOHN is /etc/john/
Format interface version: 14
Max. number of reported tunable costs: 4
Rec file version: REC4
Charset file version: CHR3
CHARSET_MIN: 1 (0x01)
CHARSET_MAX: 255 (0xff)
CHARSET_LENGTH: 24
SALT_HASH_SIZE: 1048576
SINGLE_IDX_MAX: 2147483648
SINGLE_BUF_MAX: 4294967295
Effective limit: Number of salts vs. SingleMaxBufferSize
Max. Markov mode level: 400
Max. Markov mode password length: 30
gcc version: 13.3.1
GNU libc version: 2.39 (loaded: 2.39)
OpenCL headers version: 1.2
Crypto library: OpenSSL
OpenSSL library version: 0300000d0
OpenSSL 3.0.13 30 Jan 2024
GMP library version: 6.3.0
File locking: fcntl()
fseek(): fseek
ftell(): ftell
fopen(): fopen
memmem(): System's
times(2) sysconf(_SC_CLK_TCK) is 100
Using times(2) for timers, resolution 10 ms
HR timer: clock_gettime(), latency 1.467 us
Total physical host memory: 15408 MiB
Available physical host memory: 8811 MiB
Terminal locale string: en_GB.utf8
Parsed terminal locale: UTF-8

Side note, I'm using a package from Linux Gentoo, which I have compiled 
on my PC, but not the vanilla source of JtR.

Thanks in advance,

Andrea

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.