-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
commit: e619555
Kernel: 6.18.0-rc2
Arch Linux
Haswell
Message: Process 1255757 (openwsmand) of user 0 dumped core.
Stack trace of thread 1255757:
#0 0x00007f918aed5d9d n/a (libc.so.6 + 0x16fd9d)
#1 0x00007f918b9774ab authorize (libwsman_file_auth.so + 0x14ab)
#2 0x000055cbcae95600 _shttpd_check_authorization (/usr/local/sbin/openwsmand + 0xc600)
#3 0x000055cbcae90a58 decide_what_to_do (/usr/local/sbin/openwsmand + 0x7a58)
#4 0x000055cbcae910a7 parse_http_request (/usr/local/sbin/openwsmand + 0x80a7)
#5 0x000055cbcae91f5e process_connection (/usr/local/sbin/openwsmand + 0x8f5e)
#6 0x000055cbcae9267f process_worker_sockets (/usr/local/sbin/openwsmand + 0x967f)
#7 0x000055cbcae92913 shttpd_poll (/usr/local/sbin/openwsmand + 0x9913)
#8 0x000055cbcae9bcd7 wsmand_start_server (/usr/local/sbin/openwsmand + 0x12cd7)
#9 0x000055cbcae9c4bd main (/usr/local/sbin/openwsmand + 0x134bd)
#10 0x00007f918ad8d635 n/a (libc.so.6 + 0x27635)
#11 0x00007f918ad8d6e9 __libc_start_main (libc.so.6 + 0x276e9)
#12 0x000055cbcae8e9f5 _start (/usr/local/sbin/openwsmand + 0x59f5)
Stack trace of thread 1255765:
#0 0x00007f918ae05002 n/a (libc.so.6 + 0x9f002)
#1 0x00007f918adf916c n/a (libc.so.6 + 0x9316c)
#2 0x00007f918adf97dc n/a (libc.so.6 + 0x937dc)
#3 0x00007f918adfc0a8 pthread_cond_timedwait (libc.so.6 + 0x960a8)
#4 0x00007f918b95de14 wsman_server_auxiliary_loop_thread (libwsman_server.so.1 + 0x2e14)
#5 0x00007f918adfc98b n/a (libc.so.6 + 0x9698b)
#6 0x00007f918ae809cc n/a (libc.so.6 + 0x11a9cc)
Stack trace of thread 1255766:
#0 0x00007f918ae05002 n/a (libc.so.6 + 0x9f002)
#1 0x00007f918adf916c n/a (libc.so.6 + 0x9316c)
#2 0x00007f918adf97dc n/a (libc.so.6 + 0x937dc)
#3 0x00007f918adfc0a8 pthread_cond_timedwait (libc.so.6 + 0x960a8)
#4 0x00007f918b95dcb0 wsman_notification_manager (libwsman_server.so.1 + 0x2cb0)
#5 0x00007f918adfc98b n/a (libc.so.6 + 0x9698b)
#6 0x00007f918ae809cc n/a (libc.so.6 + 0x11a9cc)
ELF object binary architecture: AMD x86-64
Server:
$ run0 /usr/local/sbin/openwsmand -c /usr/local/etc/openwsman/openwsman.conf --debug=6
Feb 27 13:50:42 [1256355] using plugin directory: /usr/local/lib64/openwsman/plugins
Feb 27 13:50:42 [1256355] Loading plugin: /usr/local/lib64/openwsman/plugins/libwsman_test.so
Feb 27 13:50:42 [1256355] Loading plugin: /usr/local/lib64/openwsman/plugins/libwsman_identify_plugin.so
Feb 27 13:50:42 [1256355] Loading plugin: /usr/local/lib64/openwsman/plugins/libredirect.so
Feb 27 13:50:42 [1256355] Plugin 'Test', version: 2.2
Feb 27 13:50:42 [1256355] Plugin 'IdentifyResponse', version: 2.2
Feb 27 13:50:42 [1256355] Plugin /usr/local/lib64/openwsman/plugins/libredirect.so fails init()
Feb 27 13:50:42 [1256355] invalid plugin
Feb 27 13:50:42 [1256355] make new callback entry
Feb 27 13:50:42 [1256355] make new callback entry
Feb 27 13:50:42 [1256355] Registering 2 plugins
Feb 27 13:50:42 [1256355] Registering Endpoint: http://schemas.xmlsoap.org/ws/2004/09/transfer/Get
Feb 27 13:50:42 [1256355] Registering endpoint for Get
Feb 27 13:50:42 [1256355] Registering Endpoint: http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate
Feb 27 13:50:42 [1256355] Registering endpoint for Enumerate
Feb 27 13:50:42 [1256355] Registering Endpoint: http://schemas.xmlsoap.org/ws/2004/09/enumeration/Pull
Feb 27 13:50:42 [1256355] Registering endpoint for direct Pull
Feb 27 13:50:42 [1256355] Registering Endpoint: http://schemas.xmlsoap.org/ws/2004/09/enumeration/Pull
Feb 27 13:50:42 [1256355] Registering endpoint for Pull
Feb 27 13:50:42 [1256355] Registering Endpoint: http://schemas.xmlsoap.org/ws/2004/09/enumeration/Release
Feb 27 13:50:42 [1256355] Registering endpoint for Release
Feb 27 13:50:42 [1256355] Registering Endpoint: http://schemas.xmlsoap.org/ws/2004/09/transfer/Put
Feb 27 13:50:42 [1256355] Registering endpoint for Put
Feb 27 13:50:42 [1256355] Registering Endpoint: http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe
Feb 27 13:50:42 [1256355] Registering endpoint for Subscribe
Feb 27 13:50:42 [1256355] Registering Endpoint: http://schemas.xmlsoap.org/ws/2004/08/eventing/Unsubscribe
Feb 27 13:50:42 [1256355] Registering endpoint for Unsubscribe
Feb 27 13:50:42 [1256355] Registering Endpoint: http://schemas.xmlsoap.org/ws/2004/08/eventing/Renew
Feb 27 13:50:42 [1256355] Registering Endpoint: <null>
Feb 27 13:50:42 [1256355] Registering endpoint for Identify
Feb 27 13:50:42 [1256355] subscription_repository_uri = /var/lib/openwsman/subscriptions
Feb 27 13:50:42 [1256355] Working on IPv6 port 5985
Feb 27 13:50:42 [1256355] Basic File authentication uses password file: /<pathTo>/simple_auth.passwd
Feb 27 13:50:42 [1256355] Using Basic Authorization libwsman_file_auth.so
Feb 27 13:50:42 [1256355] Using Basic Authorization libwsman_file_auth.so for /wsman
Feb 27 13:50:42 [1256355] Registered CIM Indication Listener: /cimindicationlistener/*
Feb 27 13:50:42 [1256355] Using Basic Authorization libwsman_file_auth.so for /cimindicationlistener
Client:
$ inst/usr/local/bin/wsman identify -h localhost -P 5985 -u test -d 6
Feb 27 13:51:36 cl->authentication.verify_peer: 1
Feb 27 13:51:36 *****set post buf len = 238******
* Host localhost:5985 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
* Trying [::1]:5985...
* connect to ::1 port 5985 from ::1 port 54364 failed: Connection refused
* Trying 127.0.0.1:5985...
* Established connection to localhost (127.0.0.1 port 5985) from 127.0.0.1 port 43858
* using HTTP/1.x
> POST /wsman HTTP/1.1
Host: localhost:5985
Accept: */*
Content-Type: application/soap+xml;charset=UTF-8
User-Agent: openwsman 2.2.0
Content-Length: 238
* upload completely sent off: 238 bytes
< HTTP/1.1 401 Unauthorized
< WWW-Authenticate: Basic realm="OPENWSMAN"
< Content-Type: text/plain
< Content-Length: 12
<
Feb 27 13:51:36 write_handler: received 12 bytes, all = 12
* Connection #0 to host localhost:5985 left intact
Feb 27 13:51:36 Basic authentication is used
Feb 27 13:51:36 Invoking Auth request callback
Password: * Reusing existing http: connection with host localhost
* Server auth using Basic with user 'test'
> POST /wsman HTTP/1.1
Host: localhost:5985
Authorization: Basic <sanitized>
Accept: */*
Content-Type: application/soap+xml;charset=UTF-8
User-Agent: openwsman 2.2.0
Content-Length: 238
* upload completely sent off: 238 bytes
* Recv failure: Connection reset by peer
* Connection died, retrying a fresh connect (retry count: 1)
* shutting down connection #0
* Issue another request to this URL: 'http://localhost:5985/wsman'
* Hostname localhost was found in DNS cache
* Trying [::1]:5985...
* connect to ::1 port 5985 from ::1 port 58410 failed: Connection refused
* Trying 127.0.0.1:5985...
* Established connection to localhost (127.0.0.1 port 5985) from 127.0.0.1 port 54782
* using HTTP/1.x
* Server auth using Basic with user 'test'
> POST /wsman HTTP/1.1
Host: localhost:5985
Authorization: Basic <sanitized>
Accept: */*
Content-Type: application/soap+xml;charset=UTF-8
User-Agent: openwsman 2.2.0
Content-Length: 238
* upload completely sent off: 238 bytes
* Empty reply from server
* shutting down connection #1
Feb 27 13:52:05 Error = 52 (Server returned nothing (no headers, no data)); curl_easy_perform failed
Feb 27 13:52:05 curl error code: 52.
Feb 27 13:52:05 cl->response_code: 0.
Feb 27 13:52:05 cl->last_error code: 1.
Connection failed. response code = 0
Server returned nothing (no headers, no data)
/usr/local/etc/openwsman/openwsman.conf:
#default except for:
# ssl_cert_file = /etc/openwsman/servercert.pem
# ssl_key_file = /etc/openwsman/serverkey.pem
# ssl_disabled_protocols = SSLv2 SSLv3
basic_password_file = /<pathTo>/simple_auth.passwd
# basic_authenticator = libwsman_pam_auth.so
# basic_authenticator_arg = openwsman
/<pathTo>/simple_auth.passwd:
$ htpasswd -c /<pathTo>/simple_auth.passwd test
Reactions are currently unavailable