[pkg-apparmor] Bug#1104268: aa-logprof: [Python] re.PatternError: unbalanced parenthesis at position 51

Christian Boltz debian-bugs at cboltz.de
Mon Apr 28 22:26:13 BST 2025


Hello,

Am Montag, 28. April 2025, 02:33 schrieb John Scott:
> re.PatternError: unbalanced parenthesis at position 51

> Let me know if you're unable to reproduce it.

Given your description and the aa-logprof output, I'd guess that the 
problem is triggered by a line in your audit.log - probably a file with 
an interesting[tm] filename gets accessed.

What I can say is that it isn't triggered by choosing "In(h)erit".
The line "Complain-mode changes:" indicates that aa-logprof continued to 
the non-exec file permissions, and it most likely crashed in that part.

Unfortunately Python 3.13 no longer includes the cgitb module which 
would provide much more useful debug output. However, there should [1] 
be a package python3-legacy-cgi - please install it and try again.
aa-logprof should then (when crashing) print a line pointing to a file 
/tmp/apparmor-bugreport-*.txt with more debug info. I'll need that file, 
and the audit.log line containing the filename that triggers the broken 
regex.

An alternative is to send me [2] your audit.log (or only the line that 
triggers the problem, if you can find out which line it is) so that I can 
reproduce the issue.


Regards,

Christian Boltz

[1] I don't use Debian, therefore I can only rely on packages.debian.org

[2] no need to mail the full file to the bugtracker

-- 
What? You mean you don't install betas on production machines?
Come on Carlos, where's your sense of adventure? ;-)
[Mike in opensuse-factory]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://alioth-lists.debian.net/pipermail/pkg-apparmor-team/attachments/20250428/da8d385c/attachment-0001.sig>


More information about the pkg-apparmor-team mailing list