Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#53923 - [perl-anyevent] crashes perl-net-ssleay

Attached to Project: Arch Linux
Opened by Sergej Pupykin (sergej) - Thursday, 04 May 2017, 08:19 GMT
Last edited by Felix Yan (felixonmars) - Wednesday, 24 May 2017, 06:36 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Steps to reproduce:
- use script from attachment (you need some jabber account)
- Do:
$ ./jabber-send user@example.com password
recipient@example.com
message
^D

It crashes with core dump.

I hacked it around by adding

gcc -c -I/usr/include/openssl-1.0 -L/usr/lib/openssl-1.0 -I/usr/include -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -DVERSION=\"1.80\" -DXS_VERSION=\"1.80\" -fPIC "-I/usr/lib/perl5/core_perl/CORE" SSLeay.c

gcc -shared -Wl,-O1,--sort-common,--as-needed,-z,relro -fstack-protector-strong SSLeay.o -o blib/arch/auto/Net/SSLeay/SSLeay.so -L/usr/lib/openssl-1.0 -L/usr -L/usr/lib64 -L/usr/lib -lssl -lcrypto -lz

at the end of build() function in PKGBUILD just after "make" to rebuild C code with openssl-1.0

gdb stack trace:
(gdb) bt
#0 0x00007ffff43f8ea4 in ?? () from /usr/lib64/libcrypto.so.1.1
#1 0x00007ffff47038a2 in ?? () from /usr/lib64/libssl.so.1.1
#2 0x00007ffff470170f in ?? () from /usr/lib64/libssl.so.1.1
#3 0x00007ffff46e7a3a in ?? () from /usr/lib64/libssl.so.1.1
#4 0x00007ffff46f8049 in SSL_write () from /usr/lib64/libssl.so.1.1
#5 0x00007ffff497f496 in XS_Net__SSLeay_write ()
from /usr/lib/perl5/vendor_perl/auto/Net/SSLeay/SSLeay.so
#6 0x00007ffff7ac3c40 in Perl_pp_entersub () from /usr/lib/perl5/core_perl/CORE/libperl.so
#7 0x00007ffff7abc1a6 in Perl_runops_standard () from /usr/lib/perl5/core_perl/CORE/libperl.so
#8 0x00007ffff7a3c72e in Perl_call_sv () from /usr/lib/perl5/core_perl/CORE/libperl.so
#9 0x00007ffff4bb517f in e_cb () from /usr/lib/perl5/vendor_perl/auto/EV/EV.so
#10 0x00007ffff4bb0986 in ev_invoke_pending () from /usr/lib/perl5/vendor_perl/auto/EV/EV.so
#11 0x00007ffff4bc71bd in ev_run () from /usr/lib/perl5/vendor_perl/auto/EV/EV.so
#12 0x00007ffff4bc830b in XS_EV_run () from /usr/lib/perl5/vendor_perl/auto/EV/EV.so
#13 0x00007ffff7ac3c40 in Perl_pp_entersub () from /usr/lib/perl5/core_perl/CORE/libperl.so
#14 0x00007ffff7abc1a6 in Perl_runops_standard () from /usr/lib/perl5/core_perl/CORE/libperl.so
#15 0x00007ffff7a44275 in perl_run () from /usr/lib/perl5/core_perl/CORE/libperl.so
#16 0x0000000000400d69 in main ()
This task depends upon

Closed by  Felix Yan (felixonmars)
Wednesday, 24 May 2017, 06:36 GMT
Reason for closing:  Fixed
Additional comments about closing:  4:7.13-2
Comment by Antonio Rojas (arojas) - Thursday, 04 May 2017, 09:08 GMT Comment by Felix Yan (felixonmars) - Wednesday, 24 May 2017, 06:36 GMT
Patch applied in 4:7.13-2. Please reopen if you are still getting the problem.

Loading...