THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened. Details are below. User who did this - arnaud chong (shine)
Attached to Project - sip-router
Summary - app_python doesn't work
Task Type - Bug Report
Category - Module
Status - Unconfirmed
Assigned To - Operating System - Linux
Severity - Medium
Priority - Normal
Reported Version - 3.1
Due in Version - Undecided
Due Date - Undecided
Details - Hello,

When I want to load a python script via the app_python module, kamailio crashes.

The module uses dirname & basename 
(http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sip-router;a=blob;f=modules/app_python/python_mod.c;h=f943e07e568855c62429c58ee29911a5383e5a10;hb=HEAD
 lines 103-106).

"       Both dirname() and basename() may modify the contents of path, so it may be 
desirable to pass a copy when calling one of these functions." (quote from the 
manual).

The path is actually changed and /my/path/blih.py becomes /my/patrh after the 
first dirname, so the return of basename is wrong and everything after is 
broken.



More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=137

You are receiving this message because you have requested it from the Flyspray 
bugtracking system.  If you did not expect this message or don't want to 
receive mails in future, you can change your notification settings at the URL 
shown above.

_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to