jens-maus / amissl

:closed_lock_with_key: AmiSSL is the AmigaOS/MorphOS/AROS port of OpenSSL. It wraps the full functionality of OpenSSL into a full-fledged Amiga shared library that makes it possible for Amiga applications to use the full OpenSSL API through a standard Amiga shared library interface (e.g. web browsers wanting to support HTTPS, etc.)...
Apache License 2.0
88 stars 15 forks source link

OpenSSL command crashes on OS3 #28

Closed Futaura closed 4 years ago

Futaura commented 5 years ago

The OpenSSL command in AmiSSL 4.2 is fine, but in AmiSSL 4.3 it crashes during startup on OS3. My debugging availability for OS3 is somewhat limited currently, bit SnoopDos shows it crashing after opening locale.library and before it even attempts to open amisslmaster.library. E-UAE shows it crashes while attempting to run some library call, but with a null pointer in A6.

Futaura commented 5 years ago

@jens-maus Did anything change in your m68k cross compiler environment? Just trying to figure out why this has started apparently crashing before the AmiSSL libs are involved. Not sure if I can trust the UAE crash report - the function it is showing appears to be OpenLibrary(). Wish I had my A1200 - would be so much easier to debug this.

Gerbinist commented 5 years ago

Executing OpenSSL without any commandline options produces the following hits:

29-Apr-19  22:30:00
WORD READ from FFFFFDD8 (INST)                 PC: FFFFFDD8
USP : 784A8C08 SR: 0000  (U0)(-)(-)  TCB: 78416890
Data: 00000004 7848D1E6 00000004 00000000 00000001 00000014 1E0DEBF1 7842959C
Addr: 78486130 7848605E 7848E1A4 784AF378 784B0DDE 78416890 00000000 782297F0
Stck: 78486144 00000004 00000000 000051DC 7848D7B6 00010000 00000001 00000000
Stck: 7848A882 000051DC 7848AA76 00000000 7848ABB4 00010000 78425780 00000001
----> 78486144 - "OpenSSL"  Hunk 0000 Offset 0005CBA4
----> 7848D7B6 - "OpenSSL"  Hunk 0000 Offset 00064216
----> 7848A882 - "OpenSSL"  Hunk 0000 Offset 000612E2
----> 7848AA76 - "OpenSSL"  Hunk 0000 Offset 000614D6
----> 7848ABB4 - "OpenSSL"  Hunk 0000 Offset 00061614
PC Address invalid
Name: "Shell Process"  CLI: "OpenSSL"

29-Apr-19  22:30:00
Exception !!   00000002     TCB: 78416890     CTX: 78115D90     SSP: 782297F0
USP : 784A8C08 SR: 0000  (U0)(-)(-)  TCB: 78416890
Data: 00000004 7848D1E6 00000004 00000000 00000001 00000014 1E0DEBF1 7842959C
Addr: 78486130 7848605E 7848E1A4 784AF378 784B0DDE 78416890 00000000 782297F0
Stck: 78486144 00000004 00000000 000051DC 7848D7B6 00010000 00000001 00000000
Stck: 7848A882 000051DC 7848AA76 00000000 7848ABB4 00010000 78425780 00000001
----> 78486144 - "OpenSSL"  Hunk 0000 Offset 0005CBA4
----> 7848D7B6 - "OpenSSL"  Hunk 0000 Offset 00064216
----> 7848A882 - "OpenSSL"  Hunk 0000 Offset 000612E2
----> 7848AA76 - "OpenSSL"  Hunk 0000 Offset 000614D6
----> 7848ABB4 - "OpenSSL"  Hunk 0000 Offset 00061614
PC Address invalid
Name: "Shell Process"  CLI: "OpenSSL"

1260 / OS 3.1.4