[Bug 1586859] [NEW] urllib3/util/retry.py broke on passing invalid type

2016-05-29 Thread John Weng
Public bug reported:

Hi,

I was running "pip wheel --wheel-dir $WHEELHOUSE --index-url
$PYPI_SERVER --requirement $2 --find-links $WHEELHOUSE" and receiving
below stacktrace with package python-pip-whl version 8.1.1-2ubuntu0.1 in
Ubuntu 16.04 (Python 3.5). The old release 8.1.1-2 works all good.


Collecting repoze.lru==0.6 (from -r ./python-pip-freeze.txt (line 39))
Exception:
Traceback (most recent call last):
  File 
"/usr/local/dev-venv/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connection.py",
 line 137, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
  File 
"/usr/local/dev-venv/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/util/connection.py",
 line 91, in create_connection
raise err
  File 
"/usr/local/dev-venv/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/util/connection.py",
 line 81, in create_connection
sock.connect(sa)
OSError: [Errno 101] Network is unreachable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File 
"/usr/local/dev-venv/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connectionpool.py",
 line 560, in urlopen
body=body, headers=headers)
  File 
"/usr/local/dev-venv/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connectionpool.py",
 line 354, in _make_request
conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.5/http/client.py", line 1106, in request
self._send_request(method, url, body, headers)
  File "/usr/lib/python3.5/http/client.py", line 1151, in _send_request
self.endheaders(body)
  File "/usr/lib/python3.5/http/client.py", line 1102, in endheaders
self._send_output(message_body)
  File "/usr/lib/python3.5/http/client.py", line 934, in _send_output
self.send(msg)
  File "/usr/lib/python3.5/http/client.py", line 877, in send
self.connect()
  File 
"/usr/local/dev-venv/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connection.py",
 line 162, in connect
conn = self._new_conn()
  File 
"/usr/local/dev-venv/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connection.py",
 line 146, in _new_conn
self, "Failed to establish a new connection: %s" % e)
pip._vendor.requests.packages.urllib3.exceptions.NewConnectionError: 
: Failed to establish a new connection: [Errno 101] Network is 
unreachable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/dev-venv/lib/python3.5/site-packages/pip/basecommand.py", 
line 209, in main
status = self.run(options, args)
  File "/usr/local/dev-venv/lib/python3.5/site-packages/pip/commands/wheel.py", 
line 195, in run
if not wb.build():
  File "/usr/local/dev-venv/lib/python3.5/site-packages/pip/wheel.py", line 
748, in build
self.requirement_set.prepare_files(self.finder)
  File "/usr/local/dev-venv/lib/python3.5/site-packages/pip/req/req_set.py", 
line 360, in prepare_files
ignore_dependencies=self.ignore_dependencies))
  File "/usr/local/dev-venv/lib/python3.5/site-packages/pip/req/req_set.py", 
line 512, in _prepare_file
finder, self.upgrade, require_hashes)
  File 
"/usr/local/dev-venv/lib/python3.5/site-packages/pip/req/req_install.py", line 
273, in populate_link
self.link = finder.find_requirement(self, upgrade)
  File "/usr/local/dev-venv/lib/python3.5/site-packages/pip/index.py", line 
442, in find_requirement
all_candidates = self.find_all_candidates(req.name)
  File "/usr/local/dev-venv/lib/python3.5/site-packages/pip/index.py", line 
400, in find_all_candidates
for page in self._get_pages(url_locations, project_name):
  File "/usr/local/dev-venv/lib/python3.5/site-packages/pip/index.py", line 
545, in _get_pages
page = self._get_page(location)
  File "/usr/local/dev-venv/lib/python3.5/site-packages/pip/index.py", line 
648, in _get_page
return HTMLPage.get_page(link, session=self.session)
  File "/usr/local/dev-venv/lib/python3.5/site-packages/pip/index.py", line 
757, in get_page
"Cache-Control": "max-age=600",
  File 
"/usr/local/dev-venv/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py",
 line 480, in get
return self.request('GET', url, **kwargs)
  File "/usr/local/dev-venv/lib/python3.5/site-packages/pip/download.py", line 
378, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
  File 
"/usr/local/dev-venv/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py",
 line 468, in request
resp = self.send(prep, **send_kwargs)
  File 
"/usr/local/dev-venv/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py",
 line 597, in send
history = [resp for resp in gen] if allow_redirects else []
  File 
"/usr/local/dev-venv/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py",
 line 597, in 
history = [resp for resp in gen] 

[Bug 1568714] Re: stack smashing detected ***: msktutil terminated for version 0.5.1+git8158aa2b-1

2016-04-14 Thread John Weng
I have checked out this revision but can't apply the patch as the code
is quite different.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1568714

Title:
  stack smashing detected ***: msktutil terminated for version
  0.5.1+git8158aa2b-1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/msktutil/+bug/1568714/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1568714] Re: stack smashing detected ***: msktutil terminated for version 0.5.1+git8158aa2b-1

2016-04-13 Thread John Weng
Hi Joern, which tag/revision you are working on. I tried revision
8158aa2b, tags v0.5 and v0.5.1, but none of them looks right.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1568714

Title:
  stack smashing detected ***: msktutil terminated for version
  0.5.1+git8158aa2b-1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/msktutil/+bug/1568714/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 1568714] Re: stack smashing detected ***: msktutil terminated for version 0.5.1+git8158aa2b-1

2016-04-13 Thread John Weng
Sorry I haven't tried the patch yet. What I did is installing the 0.5.1-1
version from https://launchpad.net/ubuntu/trusty/amd64/msktutil/0.5.1-1 and
it works

2016-04-13 17:48 GMT+10:00 sturze :

> same here...
>
> @ wengcsyz - is the patch working?
>
> date for fix?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1568714
>
> Title:
>   stack smashing detected ***: msktutil terminated for version
>   0.5.1+git8158aa2b-1
>
> Status in msktutil package in Ubuntu:
>   Confirmed
>
> Bug description:
>   I'm running both Ubuntu 15.10 and 14.04. I test the Msktutil package
>   all both machines, however it only works on the 14.04. On the 15.10
>   the version is 0.5.1+git8158aa2b-1, and when I try to get the key tab
>   it will throw out below error message. I downloaded version 0.5.1-1
>   and it runs smoothly on 15.10.
>
>   Below information is all I can get.
>
>   Thanks
>
>
>   root@client:~# msktutil -c -b "CN=COMPUTERS" -s
> HTTP/client.example.local -k /etc/apache2/client.keytab --computer-name
> client-k --upn HTTP/client.example.local --server fs.example.local --verbose
>-- init_password: Wiping the computer password structure
>-- generate_new_password: Generating a new, random password for the
> computer account
>-- generate_new_password:  Characters read from /dev/urandom = 84
>-- create_fake_krb5_conf: Created a fake krb5.conf file:
> /tmp/.msktkrb5.conf-ZCtfc4
>-- reload: Reloading Kerberos Context
>-- finalize_exec: SAM Account Name is: client-k$
>-- try_machine_keytab_princ: Trying to authenticate for client-k$ from
> local keytab...
>-- try_machine_keytab_princ: Error: krb5_get_init_creds_keytab failed
> (Client not found in Kerberos database)
>-- try_machine_keytab_princ: Authentication with keytab failed
>-- try_machine_keytab_princ: Trying to authenticate for
> host/client.example.local from local keytab...
>-- try_machine_keytab_princ: Error: krb5_get_init_creds_keytab failed
> (Client not found in Kerberos database)
>-- try_machine_keytab_princ: Authentication with keytab failed
>-- try_machine_password: Trying to authenticate for client-k$ with
> password.
>-- create_default_machine_password: Default machine password for
> client-k$ is client
>-- try_machine_password: Error: krb5_get_init_creds_keytab failed
> (Client not found in Kerberos database)
>-- try_machine_password: Authentication with password failed
>-- try_user_creds: Checking if default ticket cache has tickets...
>-- finalize_exec: Authenticated using method 4
>
>-- ldap_connect: Connecting to LDAP server: fs.example.local try_tls=YES
>-- ldap_connect: Connecting to LDAP server: fs.example.local try_tls=NO
>   SASL/GSSAPI authentication started
>   SASL username: user@EXAMPLE.LOCAL
>   SASL SSF: 56
>   SASL data security layer installed.
>-- ldap_connect: LDAP_OPT_X_SASL_SSF=56
>
>   *** stack smashing detected ***: msktutil terminated
>   Aborted (core dumped)
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/msktutil/+bug/1568714/+subscriptions
>

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1568714

Title:
  stack smashing detected ***: msktutil terminated for version
  0.5.1+git8158aa2b-1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/msktutil/+bug/1568714/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1568714] Re: stack smashing detected ***: msktutil terminated for version 0.5.1+git8158aa2b-1

2016-04-11 Thread John Weng
Awesome I will give it a go tomorrow

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1568714

Title:
  stack smashing detected ***: msktutil terminated for version
  0.5.1+git8158aa2b-1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/msktutil/+bug/1568714/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1568714] [NEW] stack smashing detected ***: msktutil terminated for version 0.5.1+git8158aa2b-1

2016-04-11 Thread John Weng
Public bug reported:

I'm running both Ubuntu 15.10 and 14.04. I test the Msktutil package all
both machines, however it only works on the 14.04. On the 15.10 the
version is 0.5.1+git8158aa2b-1, and when I try to get the key tab it
will throw out below error message. I downloaded version 0.5.1-1 and it
runs smoothly on 15.10.

Below information is all I can get.

Thanks


root@client:~# msktutil -c -b "CN=COMPUTERS" -s HTTP/client.example.local -k 
/etc/apache2/client.keytab --computer-name client-k --upn 
HTTP/client.example.local --server fs.example.local --verbose
 -- init_password: Wiping the computer password structure
 -- generate_new_password: Generating a new, random password for the computer 
account
 -- generate_new_password:  Characters read from /dev/urandom = 84
 -- create_fake_krb5_conf: Created a fake krb5.conf file: 
/tmp/.msktkrb5.conf-ZCtfc4
 -- reload: Reloading Kerberos Context
 -- finalize_exec: SAM Account Name is: client-k$
 -- try_machine_keytab_princ: Trying to authenticate for client-k$ from local 
keytab...
 -- try_machine_keytab_princ: Error: krb5_get_init_creds_keytab failed (Client 
not found in Kerberos database)
 -- try_machine_keytab_princ: Authentication with keytab failed
 -- try_machine_keytab_princ: Trying to authenticate for 
host/client.example.local from local keytab...
 -- try_machine_keytab_princ: Error: krb5_get_init_creds_keytab failed (Client 
not found in Kerberos database)
 -- try_machine_keytab_princ: Authentication with keytab failed
 -- try_machine_password: Trying to authenticate for client-k$ with password.
 -- create_default_machine_password: Default machine password for client-k$ is 
client
 -- try_machine_password: Error: krb5_get_init_creds_keytab failed (Client not 
found in Kerberos database)
 -- try_machine_password: Authentication with password failed
 -- try_user_creds: Checking if default ticket cache has tickets...
 -- finalize_exec: Authenticated using method 4

 -- ldap_connect: Connecting to LDAP server: fs.example.local try_tls=YES
 -- ldap_connect: Connecting to LDAP server: fs.example.local try_tls=NO
SASL/GSSAPI authentication started
SASL username: user@EXAMPLE.LOCAL
SASL SSF: 56
SASL data security layer installed.
 -- ldap_connect: LDAP_OPT_X_SASL_SSF=56

*** stack smashing detected ***: msktutil terminated
Aborted (core dumped)

** Affects: msktutil (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1568714

Title:
  stack smashing detected ***: msktutil terminated for version
  0.5.1+git8158aa2b-1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/msktutil/+bug/1568714/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs