Bug 1500209 - Segmentation fault in modperl_wbucket_pass
Summary: Segmentation fault in modperl_wbucket_pass
Keywords:
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: mod_perl
Version: epel7
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Andrew Bauer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-10 08:18 UTC by Matti Linnanvuori
Modified: 2023-07-18 07:06 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Matti Linnanvuori 2017-10-10 08:18:59 UTC
Description of problem:

Segmentation fault in modperl_wbucket_pass

Version-Release number of selected component (if applicable):

mod_perl-2.0.10-2.el7.x86_64

How reproducible:

Occasionally

Steps to Reproduce:
1. Run Apache HTTP Server requests calling mod_perl.

Actual results:

Segmentation fault in modperl_wbucket_pass.

Expected results:

No segmentation faults

Additional info:

httpd-2.4.6-67.el7_4.2.x86_64
perl-libs-5.16.3-292.el7.x86_64

gdb /usr/sbin/httpd /var/apache-dump/core.27406
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-100.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/httpd...Reading symbols from /usr/sbin/httpd...(no debugging symbols found)...done.
(no debugging symbols found)...done.

warning: core file may not match specified executable file.
[New LWP 27406]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/sbin/httpd -DFOREGROUND'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f7ac341fc2a in modperl_wbucket_pass ()
   from /etc/httpd/modules/mod_perl.so
Missing separate debuginfos, use: debuginfo-install httpd-2.4.6-67.el7_4.2.x86_64
(gdb) bt full
#0  0x00007f7ac341fc2a in modperl_wbucket_pass ()
   from /etc/httpd/modules/mod_perl.so
No symbol table info available.
#1  0x00007f7ac341f2ff in PerlIOApache_flush ()
   from /etc/httpd/modules/mod_perl.so
No symbol table info available.
#2  0x00007f7ac31a65ff in Perl_PerlIO_flush ()
   from /usr/lib64/perl5/CORE/libperl.so
No symbol table info available.
#3  0x00007f7ac31a6649 in Perl_PerlIO_flush ()
   from /usr/lib64/perl5/CORE/libperl.so
No symbol table info available.
#4  0x00007f7ac317b268 in Perl_pp_system ()
   from /usr/lib64/perl5/CORE/libperl.so
No symbol table info available.
#5  0x00007f7ac3128b86 in Perl_runops_standard ()
   from /usr/lib64/perl5/CORE/libperl.so
No symbol table info available.
#6  0x00007f7ac30c0168 in Perl_call_sv () from /usr/lib64/perl5/CORE/libperl.so
No symbol table info available.
#7  0x00007f7ac3419bf9 in modperl_callback ()
   from /etc/httpd/modules/mod_perl.so
No symbol table info available.
#8  0x00007f7ac341a408 in modperl_callback_run_handlers ()
   from /etc/httpd/modules/mod_perl.so
No symbol table info available.
#9  0x00007f7ac341a90f in modperl_callback_per_dir ()
   from /etc/httpd/modules/mod_perl.so
No symbol table info available.
#10 0x00007f7ac34152fb in modperl_response_handler_run ()
   from /etc/httpd/modules/mod_perl.so
No symbol table info available.
#11 0x00007f7ac3415536 in modperl_response_handler_cgi ()
   from /etc/httpd/modules/mod_perl.so
No symbol table info available.
#12 0x00005577cc2f1a10 in ap_run_handler ()
No symbol table info available.
#13 0x00005577cc2f1f59 in ap_invoke_handler ()
No symbol table info available.
#14 0x00005577cc306ada in ap_process_async_request ()
No symbol table info available.
#15 0x00005577cc306db4 in ap_process_request ()
No symbol table info available.
#16 0x00005577cc302fb2 in ap_process_http_connection ()
No symbol table info available.
#17 0x00005577cc2fb010 in ap_run_process_connection ()
No symbol table info available.
#18 0x00007f7ac821e80f in child_main ()
   from /etc/httpd/modules/mod_mpm_prefork.so
No symbol table info available.
#19 0x00007f7ac821ea55 in make_child ()
   from /etc/httpd/modules/mod_mpm_prefork.so
No symbol table info available.
#20 0x00007f7ac821f6ee in prefork_run ()
   from /etc/httpd/modules/mod_mpm_prefork.so
No symbol table info available.
#21 0x00005577cc2d615e in ap_run_mpm ()
No symbol table info available.
#22 0x00005577cc2ceed6 in main ()
No symbol table info available.

Comment 1 Petr Pisar 2017-11-01 12:23:52 UTC
Could you please provide more details. What Perl script do you run, how the httpd is configured?

Because I cannot reproduce it. I installed the mod_perl, uncommented the Perl Alias and Directory directives in /etc/httpd/conf.d/perl.conf, created this simple script:

# cat /var/www/perl/test.pl
use strict;
use warnings;
print "Content-Type: text/plain\r\n\r\nSuccess.\n";

set executable bit to it and requested <http://localhost/perl/test.pl> 10877 times. It never failed.

There are definitely some bugs in mod_perl but without a reproducer I cannot do anything.

Comment 2 Matti Linnanvuori 2017-11-01 12:31:43 UTC
I got the segmentation faults by calling Perl function system in a script, like system('convert /tmp/image.png /tmp/output.png'); When I replaced the calls to system with spawn_proc_prog, I no longer got segmentation faults.

Comment 3 Fedora Admin user for bugzilla script actions 2022-02-05 05:02:21 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.


Note You need to log in before you can comment on or make changes to this bug.