Bug 1472061 - mod_cluster + mod_proxy_wstunnel causes Segmentation Fault
mod_cluster + mod_proxy_wstunnel causes Segmentation Fault
Product: JBoss Web Server 3
Classification: JBoss
Component: mod_cluster (Show other bugs)
x86_64 Linux
unspecified Severity high
: ---
: ---
Assigned To: Weinan Li
Michal Karm Babacek
Depends On:
  Show dependency treegraph
Reported: 2017-07-17 22:10 EDT by KooV
Modified: 2017-07-18 02:13 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2017-07-18 02:13:08 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
JBoss Issue Tracker JBCS-375 Major New mod_cluster + mod_proxy_wstunnel causes Segmentation Fault 2017-10-09 03:14 EDT

  None (edit)
Description KooV 2017-07-17 22:10:03 EDT
Description of problem:
mod_cluster + mod_proxy_wstunnel causes segfault

Version-Release number of selected component (if applicable):
RHEL 6.9 x86_64
Jboss Web Server 3.0.3 + SP1
JBoss EAP 6.4.16

This occurred while testing the example https://access.redhat.com/solutions/47442

----------- mod_cluster.conf in httpd
LoadModule proxy_cluster_module modules/mod_proxy_cluster.so
LoadModule cluster_slotmem_module modules/mod_cluster_slotmem.so
LoadModule manager_module modules/mod_manager.so
LoadModule advertise_module modules/mod_advertise.so

MemManagerFile /software/httpd/cache/mod_cluster

    <Directory "/">
        Require all granted

    KeepAliveTimeout 60
    MaxKeepAliveRequests 0
    ManagerBalancerName mycluster
    ServerAdvertise Off

<Location /mc>
    SetHandler mod_cluster-manager
    Require all granted

--------- mod_proxy_wstunnel.conf in httpd
LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so

<Proxy balancer://TEST_WS>
    BalancerMember ws:// route=node11
    BalancerMember ws:// route=node21
    ProxySet stickysession=JSESSIONID|jsessionid

RewriteEngine On

RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteRule /jboss-websocket-hello/(.*)               balancer://TEST_WS/jboss-websocket-hello/$1 [P,L]

If you request websocket open, segfault will always occur.

This only happens when using a balancer and not when testing with no balancer.

Similarly, wierd state occurs when using mod_jk + mod_proxy_wstunnel.

If you try to stop httpd in the open state of websocket, it will not be stopped and it will end with SIGKILL.

I think there is something wrong with balancer.
Comment 1 Michal Karm Babacek 2017-07-18 02:13:08 EDT
Hi KooV, we migrated the project to another bug tracker, please, follow: https://issues.jboss.org/browse/JBCS-375

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