Python Module Threading Issue

Gary Gwin garygwin at gmail.com
Fri Aug 17 02:07:07 CEST 2018


Hi Arran,

I built 3.0.18 from the master branch and reproduced the same concurrency
issue. The issue manifests under a small load with config of multiple
modules in multiple sites. I didn't know how to provide the full context
here:

https://github.com/FreeRADIUS/freeradius-server/tree/master/src/tests/modules/python

I minimized my test case and changed the naming conventions to match. I've
attached:

1) modules.conf - which can probably be appended to modules.conf in the
repro
2) mod7.py - minimized Python code to use
3) test-small.csv - test accounts to use with radperf

To configure in the default raddb config:

1) sites-enabed/default - add 'mod7_default' before chap in authorize
2) sites-enabled/inner-tunnel - add 'mod7_inner_tunnel' before chap in
authorize
3) mods-enabled - I'm sure you know what to do better than me

Run:

1) ./radperf -s -p 10 -D stats.out -f test-small.csv 127.0.0.1 auth
testing123

Run radiusd as a service. The issue does not manifest running "radiusd -X".

Please provide more instructions if you want me to do more to integrate
into the Python test environment.

Thanks,

Gary


On Tue, Aug 14, 2018 at 7:56 AM Arran Cudbard-Bell <
a.cudbardb at freeradius.org> wrote:

>
>
> > On 13 Aug 2018, at 18:26, Gary Gwin <garygwin at gmail.com> wrote:
> >
> > Hi Alan,
> >
> > I see the same issues with 3.0.17:
> >
> > sudo grep Fatal /var/log/freeradius/radius.log
> > Fatal Python error: PyEval_SaveThread: NULL tstate
> >
> > freeradius -v
> > radiusd: FreeRADIUS Version 3.0.17 (git #cb7c6d3), for host
> > x86_64-pc-linux-gnu
>
> Could you try master branch (it's not config compatible unfortunately), to
> see if the issue is fixed there.
>
> If it's not, could you submit a pull request for an automated test case so
> it can be reproduced locally.
>
> There are multiple test cases in there already for python so it should be
> easy to follow one of the existing examples.
>
> -Arran
>
>
> Arran Cudbard-Bell <a.cudbardb at freeradius.org>
> FreeRADIUS Development Team
>
> FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: module.conf
Type: application/octet-stream
Size: 401 bytes
Desc: not available
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20180816/6b64bd64/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mod7.py
Type: application/octet-stream
Size: 234 bytes
Desc: not available
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20180816/6b64bd64/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-small.csv
Type: application/octet-stream
Size: 660 bytes
Desc: not available
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20180816/6b64bd64/attachment-0002.obj>


More information about the Freeradius-Users mailing list