Hello, Am Sonntag, 15. Januar 2017, 19:22:46 CET schrieb Michael Ströder:
Christian Boltz wrote:
Am Sonntag, 15. Januar 2017, 18:26:48 CET schrieb Michael Ströder:
Hmm, are you 100% sure that this is not a local installation issue?
This question sounds like asking for 100% bug-free code ;-)) [1]
No, at first this question asks for a simple example reproducing a potential bug without your repo infrastructure. ;-)
I'm afraid finding a simple reproducer isn't that easy - the backtrace
has a call stack over 33 functions in various files, and looks like
something in gettext.py could hand over something unexpected to re.py.
This still doesn't explain where this "something" comes from ;-)
(The full backtrace is attached to the bugreport.)
At least adding a print command in re.py brings some insight:
I'm heavily using regex-matching in my web2ldap which seems to work just fine.
I'm not using bzr and therefore I just did this quick test:
$ mkdir bzr-test $ cd bzr-test/ $ bzr init Created a standalone tree (format: 2a)
$ bzr up Tree is up to date at revision 0 of branch /home/michael/tmp/bzr-test
Could you please check whether the simple test above also raises TypeError on your system?
Done, and it crashes successfully ;-) # mkdir bzr-test # cd bzr-test # bzr init bzr: ERROR: exceptions.TypeError: first argument must be string or compiled pattern The middle part changed, but the bottom part (starting at bzrlib/ i18n.py) is the same again. Oh, and the backtrace now only lists 25 levels, so it's a bit simpler :-) Hmm, speaking about i18n and gettext - what about $LANG? LANG=C bzr init works LANG=de_DE bzr init crashes LANG=pt_BR bzr init LANG=fr_FR bzr init also crash. I'm quite sure I don't have anything from these languages installed, but maybe a *-lang package contains something relevant. This still doesn't solve everything, but it's a first step in debugging.
[1] Just for fun - would you say that this little script is 100% bug-free and that it is ok to ship it in openSUSE? (Ignore the "it's useless" part, please ;-)
#!/bin/bash echo "Hello World!" > /tmp/hello.txt cat /tmp/hello.txt rm /tmp/hello.txt
I vaguely remember that you used this as an example in your AppArmor talk at GPN...
Right, but this wasn't an answer to my question ;-)
Regards,
Christian Boltz
--