Summary: | ASTERISK-24953: segmentation fault after changing PJSIP_MAX_PKT_LEN | ||
Reporter: | yaron nahum (yaronna) | Labels: | |
Date Opened: | 2015-04-13 01:25:24 | Date Closed: | 2015-04-14 19:16:49 |
Priority: | Critical | Regression? | |
Status: | Closed/Complete | Components: | Channels/chan_pjsip |
Versions: | SVN 13.3.2 | Frequency of Occurrence | |
Related Issues: | |||
Environment: | Attachments: | ( 0) backtrace_13_4_15_09_16.txt ( 1) backtrace_13_4_16_28.txt ( 2) config_site.h | |
Description: | I am trying to handle packets longer than 4000 bytes. Reading from your posts I added in pjlib/include/pj/config_site.h the line
#define PJSIP_MAX_PKT_LEN 4200 Once I made that change any sip packet received generates a sigfault. | ||
Comments: | By: yaron nahum (yaronna) 2015-04-13 01:27:13.887-0500 The backtrace taken after the crash By: Joshua C. Colp (jcolp) 2015-04-13 05:27:49.710-0500 Did you rebuild Asterisk as well? I would suggest doing a make clean in both pjproject and Asterisk after making this change and ensuring everything in both are rebuilt. Don't forget to install pjproject BEFORE rebuilding Asterisk or it will not pick up the change. If you didn't do this then I would expect to see this segmentation fault, as the layout of the received message structure has changed but Asterisk only knows the old one. By: yaron nahum (yaronna) 2015-04-13 08:32:52.871-0500 Backtrace after cleaning and recompilation. By: yaron nahum (yaronna) 2015-04-13 08:34:24.238-0500 Cleaned and recompiled both pjproject and asterisk. Added -g flag to pjproject compilation in order to see symbols from pjproject. The same happened. By: yaron nahum (yaronna) 2015-04-13 08:36:48.640-0500 I am attaching my config_site.h By: Rusty Newton (rnewton) 2015-04-14 19:16:35.263-0500 I can't reproduce this using your config_site.h. We don't believe this is a bug so I'll close this out as Cannot Reproduce. Sound like you'll probably want to wipe everything out and start from scratch as based on JColps assessment it appears Asterisk isn't compiled against the PJSIP compilation you are using. By: yaron nahum (yaronna) 2015-04-15 02:51:01.886-0500 Could you please tell me how to wipe everything? I have tried make clean / make distclean / make realclean on both pjproject and asterisk and I get the same result. By: yaron nahum (yaronna) 2015-04-15 06:36:24.380-0500 I found it !!!! I removed all the files from /usr/lib64/asterisk/modules and it solved it. |