That looks like you don't have an abstractions/base file (actually you don't seem to have any abstractions/* file), which would be very unusual.
Can you please exist if /etc/apparmor.d/abstractions/base exists on your system?
The bug itsself is easy to explain - create_new_profile() blindly assumes abstractions/base exists and adds it to the profile. It's not surprising that this explodes later - checking something in a non-existing file rarely works ;-)
That looks like you don't have an abstractions/base file (actually you don't seem to have any abstractions/* file), which would be very unusual.
Can you please exist if /etc/apparmor. d/abstractions/ base exists on your system?
The bug itsself is easy to explain - create_ new_profile( ) blindly assumes abstractions/base exists and adds it to the profile. It's not surprising that this explodes later - checking something in a non-existing file rarely works ;-)