Bug 243500 - libcrypto: unrealircd segfaults in ssleay_rand_bytes () from /lib/libcrypto.so.8
Summary: libcrypto: unrealircd segfaults in ssleay_rand_bytes () from /lib/libcrypto.so.8
Status: Closed Not Accepted
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 11.3-RELEASE
Hardware: amd64 Any
: --- Affects Some People
Assignee: Kubilay Kocak
URL:
Keywords: crash, needs-qa
Depends on:
Blocks:
 
Reported: 2020-01-22 06:46 UTC by Adam
Modified: 2020-06-09 05:34 UTC (History)
0 users

See Also:
koobs: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam 2020-01-22 06:46:48 UTC
when building UnrealIRCd from source on FreeBSD 11.2, 11.3 or in a FreeNAS jail 
upon running the program segfaults, installing pkg openssl-1.1.1d and rebuilding
fixes the segfault.

Starting program: /usr/home/ircd/src/src/ircd
Breakpoint 1, main (argc=1, argv=0x7fffffffeae0) at ircd.c:945
945 gettimeofday(&timeofday_tv, NULL);
Current language: auto; currently minimal
(gdb) n
946 timeofday = timeofday_tv.tv_sec;
(gdb) n
948 safe_strdup(configfile, CONFIGFILE);
(gdb) n
950 init_random(); /* needs to be done very early!! */
(gdb) n
Program received signal SIGSEGV, Segmentation fault.
0x0000000800d0ee6e in ssleay_rand_bytes () from /lib/libcrypto.so.8
Comment 1 Philip Paeps freebsd_committer freebsd_triage 2020-06-08 14:57:40 UTC
Removing secteam@freebsd.org from this bug.  This appears related to UnrealIRCd.  I don't believe we can contribute usefully to this bug.
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2020-06-09 05:33:50 UTC
^Triage: 

- secteam ack'd (set flag to +)

@Adam The issue as reported (using upstream sources) is probably best reported upstream, until and unless the issue can then be isolated to FreeBSD specifically, in which can please re-open the issue with additional details.

Additionally, if this is reproducible using the port (irc/unreal) using base OpenSSL, please re-open the issue and I'll reclassify it under the Ports & Packages product.