Modify

#1325 new defect

bitlbee-purple not working with skypeweb

Reported by: anonymous Owned by:
Priority: normal Milestone:
Component: Unspecified / other Version: Unspecified
Keywords: Cc:
IRC client+version: Client-independent Operating System: Public server
OS version/distro:

Description

used latest skype4web 1.7

$ ./bitlbee -V 1s BitlBee 3.6 API version 030600 Configure args: --prefix=/home/user/Projects/bitlbee/bitlbee-3.6/../install --otr=1 --purple=1

$ cat ../bitlbee.conf

[settings] User = bitlbee ConfigDir = /home/user/Projects/bitlbee/home DaemonInterface = 127.0.0.1 DaemonPort = 6667 PluginDir = /usr/lib/bitlbee

$ ./sbin/bitlbee -n -F -u -v -c ../bitlbee.conf 13s Warning: Warning: Couldn't write PID to `/var/run/bitlbee.pid' Warning: Can't find function init_plugin_info' in /usr/lib/bitlbee/libskypeweb.so'

Warning: Can't find function init_plugin' in /usr/lib/bitlbee/libskypeweb.so'

(bitlbee:2652): CRITICAL : 16:06:17.730: skypeweb_string_get_chunk: assertion 'chunk_start' failed

Attachments (0)

Change History (3)

comment:1 Changed at 2021-05-05T20:27:10Z by anonymous

After adding prints in

gchar *
skypeweb_string_get_chunk(const gchar *haystack, gsize len, const gchar *start, const gchar *end)
{
	const gchar *chunk_start, *chunk_end;
	g_return_val_if_fail(haystack && start, NULL);


	printf("Before Hello:%s:%d haystack=%s, start=%s\n", __FILE__, __LINE__, haystack, start);
	fflush(stdout);

	
	if (len > 0) {
		chunk_start = g_strstr_len(haystack, len, start);
	} else {
		chunk_start = strstr(haystack, start);
	}

	if (!chunk_start) abort();

	printf("After Hello:%s:%d haystack=%s, start=%s\n", __FILE__, __LINE__, haystack, start);
	fflush(stdout);

	g_return_val_if_fail(chunk_start, NULL);

	chunk_start += strlen(start);
	
	if (end != NULL) {
		if (len > 0) {
			chunk_end = g_strstr_len(chunk_start, len - (chunk_start - haystack), end);
		} else {
			chunk_end = strstr(chunk_start, end);
		}
		g_return_val_if_fail(chunk_end, NULL);
		
		return g_strndup(chunk_start, chunk_end - chunk_start);
	} else {
		return g_strdup(chunk_start);
	}
}




GNU gdb (GDB) 10.2
Copyright (C) 2021 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-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:

Find the GDB manual and other documentation resources online at:
    
For help, type "help".
Type "apropos word" to search for commands related to "word"...


For more info run context-on command, for less info context-on, to toggle run toggle-context

/home/s/hell/.gdbinit:640: Error in sourced command file:
"on" or "off" expected.
Reading symbols from ./install/sbin/bitlbee...
(gdb) r -n -F -u -v -c bitlbee.conf
Starting program: /home/user/Projects/Practice/bitlbee/install/sbin/bitlbee -n -F -u -v -c bitlbee.conf
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/gnu/store/r2snryibhfssdjarcm8ljz8hxq4gcckn-profile/lib/libthread_db.so.1".
Warning: Warning: Couldn't write PID to `/var/run/bitlbee.pid'
[Detaching after fork from child process 4601]
DEBUG proxy: Connection in progress
DEBUG proxy: Connecting to login.live.com:443.
DEBUG proxy: Connected to login.live.com:443.
DEBUG gnutls: Starting handshake with login.live.com
DEBUG gnutls: Handshake complete
DEBUG gnutls/x509: Key print: cc:6f:27:fe:27:e5:c5:ed:da:db:1d:9a:c8:98:81:0d:85:73:cc:5d
DEBUG gnutls/x509: Key print: 62:6d:44:e7:04:d1:ce:ab:e3:bf:0d:53:39:74:64:ac:80:80:14:2c
DEBUG gnutls: Peer provided 2 certs
DEBUG gnutls: Lvl 0 SHA1 fingerprint: cc:6f:27:fe:27:e5:c5:ed:da:db:1d:9a:c8:98:81:0d:85:73:cc:5d
DEBUG gnutls: Serial: 07:3f:df:a6:df:79:7a:d8:5d:27:c6:e8:5b:e2:29:3c
DEBUG gnutls: Cert DN: C=US,ST=Washington,L=Redmond,O=Microsoft Corporation,CN=graph.windows.net
DEBUG gnutls: Cert Issuer DN: C=US,O=DigiCert Inc,CN=DigiCert SHA2 Secure Server CA
DEBUG gnutls: Lvl 1 SHA1 fingerprint: 62:6d:44:e7:04:d1:ce:ab:e3:bf:0d:53:39:74:64:ac:80:80:14:2c
DEBUG gnutls: Serial: 02:74:2e:aa:17:ca:8e:21:c7:17:bb:1f:fc:fd:0c:a0
DEBUG gnutls: Cert DN: C=US,O=DigiCert Inc,CN=DigiCert SHA2 Secure Server CA
DEBUG gnutls: Cert Issuer DN: C=US,O=DigiCert Inc,OU=www.digicert.com,CN=DigiCert Global Root CA
DEBUG certificate/x509/tls_cached: Starting verify for login.live.com
DEBUG certificate/x509/tls_cached: Checking for cached cert...
DEBUG certificate/x509/tls_cached: ...Found cached cert
DEBUG gnutls: Attempting to load X.509 certificate from /home/user/Projects/Practice/bitlbee/home//purple/s/certificates/x509/tls_peers/login.live.com
DEBUG certificate/x509/tls_cached: Peer cert matched cached
DEBUG util: Writing file /home/user/Projects/Practice/bitlbee/home//purple/s/certificates/x509/tls_peers/login.live.com
DEBUG certificate: Successfully verified certificate for login.live.com
DEBUG http: Request 0x555555961e60 performed successfully.
Hello: skypeweb_login.c:326
Before Hello:skypeweb_util.c:28 haystack=<!-- Copyright (C) ...</html>, start=name="PPFT" id="i0327" value="
After Hello:skypeweb_util.c:40 haystack=<!-- Copyright...</html>, start=name="PPFT" id="i0327" value="
DEBUG http: Performing new request 0x55555596f680 to login.live.com.
DEBUG dnsquery: Performing DNS lookup for login.live.com
DEBUG dns: Successfully sent DNS request to child 4722
DEBUG dns: Got response for 'login.live.com'
DEBUG dnsquery: IP resolved for login.live.com
DEBUG proxy: Attempting connection to 20.190.174.1
DEBUG proxy: Connecting to login.live.com:443 with no proxy
DEBUG proxy: Connection in progress
DEBUG proxy: Connecting to login.live.com:443.
DEBUG proxy: Connected to login.live.com:443.
DEBUG gnutls: Starting handshake with login.live.com
DEBUG gnutls: Handshake complete
DEBUG gnutls/x509: Key print: cc:6f:27:fe:27:e5:c5:ed:da:db:1d:9a:c8:98:81:0d:85:73:cc:5d
DEBUG gnutls/x509: Key print: 62:6d:44:e7:04:d1:ce:ab:e3:bf:0d:53:39:74:64:ac:80:80:14:2c
DEBUG gnutls: Peer provided 2 certs
DEBUG gnutls: Lvl 0 SHA1 fingerprint: cc:6f:27:fe:27:e5:c5:ed:da:db:1d:9a:c8:98:81:0d:85:73:cc:5d
DEBUG gnutls: Serial: 07:3f:df:a6:df:79:7a:d8:5d:27:c6:e8:5b:e2:29:3c
DEBUG gnutls: Cert DN: C=US,ST=Washington,L=Redmond,O=Microsoft Corporation,CN=graph.windows.net
DEBUG gnutls: Cert Issuer DN: C=US,O=DigiCert Inc,CN=DigiCert SHA2 Secure Server CA
DEBUG gnutls: Lvl 1 SHA1 fingerprint: 62:6d:44:e7:04:d1:ce:ab:e3:bf:0d:53:39:74:64:ac:80:80:14:2c
DEBUG gnutls: Serial: 02:74:2e:aa:17:ca:8e:21:c7:17:bb:1f:fc:fd:0c:a0
DEBUG gnutls: Cert DN: C=US,O=DigiCert Inc,CN=DigiCert SHA2 Secure Server CA
DEBUG gnutls: Cert Issuer DN: C=US,O=DigiCert Inc,OU=www.digicert.com,CN=DigiCert Global Root CA
DEBUG certificate/x509/tls_cached: Starting verify for login.live.com
DEBUG certificate/x509/tls_cached: Checking for cached cert...
DEBUG certificate/x509/tls_cached: ...Found cached cert
DEBUG gnutls: Attempting to load X.509 certificate from /home/user/Projects/Practice/bitlbee/home//purple/s/certificates/x509/tls_peers/login.live.com
DEBUG certificate/x509/tls_cached: Peer cert matched cached
DEBUG util: Writing file /home/user/Projects/Practice/bitlbee/home//purple/s/certificates/x509/tls_peers/login.live.com
DEBUG certificate: Successfully verified certificate for login.live.com
DEBUG http: Request 0x55555596f680 performed successfully.
Hello: skypeweb_login.c:269
Before Hello:skypeweb_util.c:28 haystack=<html><head><noscript>JavaScript required to sign in<meta http-equiv="Refresh" content="0; URL=https://login.live.com/jsDisabled.srf?mkt=EN-US&lc=1033&uaid=836cef6de5a84097b270591b01155b41&client_flight=ReservedFlight33,ReservedFligh"/></noscript><title>Continue</title><script type="text/javascript">function OnBack(){}function OnNext(){}function DoSubmit(){var subt=false;if(!subt){subt=true;document.fmHF.submit();}}</script></head><body onload="javascript:DoSubmit();"><form name="fmHF" id="fmHF" action="https://lw.skype.com/login/oauth/proxy?site_name=lw.skype.com&wa=wsignin1.0" method="post" target="_top"><input type="hidden" name="pprid" id="pprid" value="3ea6d21d8d9b3472"><input type="hidden" name="NAP" id="NAP" value="V%3D1.9%26E%3D1918%26C%3D4altEjE9MaTAbkLdh7MBOnxX24c9bZukoVZ8k80f8YCbGpj92EKGtw%26W%3D1"><input type="hidden" name="ANON" id="ANON" value="A%3D9F14C52B9276A26069574C2CFFFFFFFF%26E%3D1972%26W%3D1"><input type="hidden" name="t" id="t" value="EgD/AQMAAAAMgAAADQABfoII/SFXANCLHbS1z7MfmuA4vY7N23bxgi0p+SKai9v6lX0nJUrIPOZjhkKMcIHpeCoMwRg38WCtGfnACAqHqsPLdsIFvEJbM+KXLd2syBCyWdZZ2cj7/MbGOsMtBCGEDLO60MAsZFmGsyLTKEhWZYSal3A3GNUv4EsR1XpvR7BuvpUmoXlzgWKKx36GxY+tfJNFFdG9xSYqQFflN5B7e0dcMK5Os3F5jeJJ5lOJDlrKZjI8e66YJAKL2BhwDgyP9iIKao26v9V5BM7wWlJFSZ8DVr9LrRWg9zLsxV5w3hoG5gxpWbrUp7dXN+Lqb+VRMyqWKMAdLH+RXFqZH1sJju4AewDuAAAAAwCLSjPt2PySYNj8kmCqeQQAChAggBAAADoAAAAAAAAISU4AAAAAAAAAAAIAAGVeVUAgBkMABlNoYXJhZAAGUHJhdGFwAAAAAAAAAAAAAAAAAAAAAAAAjZs0cj6m0h0AANj8kmDZowlhAAAAAAAAAAAAAAAAEAAxMjIuMTcxLjE2NC4xMjYABAMAAAAAAAAAAAAAAAABBAAAAAAAAAAAAIWeMlgAAP1o5c6ULBMjAAAAAAAAAAAAAAAAAAAAAAAADgBwcmF0YXAuc2hhcmFkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAA=="></form></body></html>, start=,sFT:'
 



comment:2 in reply to:  description Changed at 2021-05-05T20:36:01Z by anonymous

Replying to anonymous:

used latest skype4web 1.7


$ ./bitlbee -V                                                                                                                                                                                                                                        BitlBee 3.6
API version 030600
Configure args: --prefix=/home/user/Projects/bitlbee/bitlbee-3.6/../install --otr=1 --purple=1


$ cat ../bitlbee.conf 

  [settings]
  User = bitlbee
  ConfigDir = /home/user/Projects/bitlbee/home
  DaemonInterface = 127.0.0.1
  DaemonPort = 6667
  PluginDir = /usr/lib/bitlbee


$ ./sbin/bitlbee -n -F -u -v -c ../bitlbee.conf                                                                                                                                                                                                                                          Warning: Warning: Couldn't write PID to `/var/run/bitlbee.pid'
Warning: Can't find function `init_plugin_info' in `/usr/lib/bitlbee/libskypeweb.so'

Warning: Can't find function `init_plugin' in `/usr/lib/bitlbee/libskypeweb.so'


** (bitlbee:2652): CRITICAL **: 16:06:17.730: skypeweb_string_get_chunk: assertion 'chunk_start' failed




comment:3 Changed at 2021-05-05T20:37:43Z by anonymous

JavaScript required to sign in

Modify Ticket

Action
as new The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.