Summary:ASTERISK-13545: Using the Parking Lot feature randomly causes a segfault
Reporter:Jose Roberto Gutierrez (jrgutier)Labels:
Date Opened:2009-02-09 11:22:18.000-0600Date Closed:2009-02-25 16:21:59.000-0600
Versions:Frequency of
Environment:Attachments:( 0) asterisk-config.tar.gz
( 1) dahdicompile.patch.txt
( 2) full.tar.gz
( 3) parkcrash-bt.txt
Description:This started happening once there were more people introduced to the feature. We then offloaded the feature to another server and directed all calls to the new server via trunking, and that started crashing. At least I was able to get a core dump and backtrace without disturbing the main PBX server.
Comments:By: Terry Wilson (twilson) 2009-02-09 11:35:09.000-0600

There have been tons of fixes added to parking since 1.4.23.  Could I get you to try with a fresh checkout from http://svn.digium.com/svn/asterisk/branches/1.4 and see if the problem still exists?  Also, having some examples, logs, config files, etc. would make it easier to track down and reproduce if the problem does still exist in the 1.4 branch.

By: Jose Roberto Gutierrez (jrgutier) 2009-02-09 12:03:50.000-0600

I've just uploaded the full log file and my asterisk configuration. Everything is pretty vanilla, since I setup a server just for parking.

By: Terry Wilson (twilson) 2009-02-09 12:19:55.000-0600

Ok.  Thanks.  Let me know when you've tried the 1.4 SVN branch.

By: Jose Roberto Gutierrez (jrgutier) 2009-02-09 13:19:35.000-0600

I'm having a hard time compiling the 1.4 branch. Getting this error.

  [CC] res_musiconhold.c -> res_musiconhold.o
In file included from /usr/src/asterisk-1.4-svn/include/asterisk/dahdi_compat.h:27,
                from res_musiconhold.c:76:
/usr/include/dahdi/user.h:736: error: expected specifier-qualifier-list before ‘__s32’
/usr/include/dahdi/user.h:939: error: expected specifier-qualifier-list before ‘__s32’

By: Terry Wilson (twilson) 2009-02-09 14:45:24.000-0600

Looks like a DAHDI issue.  What version of dahdi are you using?  It compiles fine for me with a recent checkout of dahdi and asterisk 1.4.

By: Jose Roberto Gutierrez (jrgutier) 2009-02-09 15:03:15.000-0600

I had the latest stable DAHDI drivers and tools ( and respectively). I now have checked out the latest SVN and installed it, still have the problem. Does this have anything to do w/ the fact that I'm running the following configuration: RHEL5.3 x64? I'm still able to compile the release just fine.

By: Terry Wilson (twilson) 2009-02-11 11:14:48.000-0600

Ok, I reproduced the compile problem using a Centos 5.2 x86_64 vm.  Try the dahdicompile.patch.txt and see if it allows you to get through the compile; then see if the reported problem is fixed.

By: Jose Roberto Gutierrez (jrgutier) 2009-02-11 16:20:47.000-0600

Patch was successful. Will be monitoring for segfaults in the next few days and will update here. Thanks.

By: Joshua C. Colp (jcolp) 2009-02-18 13:54:59.000-0600

jrgutier: It has been a week since your last message. Is everything well?

By: Jose Roberto Gutierrez (jrgutier) 2009-02-18 14:00:58.000-0600

So far, yes. It has had an uptime of 6 days without any crashing, after the you guys gave me that patch to get it to compile. I'm going to recompile to an optimized non-debug build this next week.

By: Mark Hulber (hulber) 2009-02-24 07:54:05.000-0600

I'm having trouble compiling asteris due to the user.h errors.  I tried to use this patch but it failed to patch.

By: Jeremy S (jeremy1) 2009-02-24 17:11:39.000-0600

I'm having the same problem as hulber. Also see:


I manually applied the changes and still receive the following error upon compilation:

  [LD] app_dahdibarge.o -> app_dahdibarge.so
  [CC] app_dahdiras.c -> app_dahdiras.o
app_dahdiras.c:47:35: error: asterisk/dahdi_compat.h: No such file or directory
In file included from app_dahdiras.c:53:
/usr/include/dahdi/user.h:736: error: expected specifier-qualifier-list before ‘__s32’
/usr/include/dahdi/user.h:939: error: expected specifier-qualifier-list before ‘__s32’
make[1]: *** [app_dahdiras.o] Error 1
make: *** [apps] Error 2

So I guess the question now is: Where is dahdi_compat.h?

By: Terry Wilson (twilson) 2009-02-25 16:21:58.000-0600

The compiling issue for both 1.4 and 1.6.0 has been fixed in SVN and will be available in the next release.  This is a bug relating to parking, so I'm going to go ahead and close it since the reporter has stopped getting the crashes.