Apache segfault with passenger -


i have problem installin passenger under linux. way i'm doning

  1. added repository: deb https://oss-binaries.phusionpassenger.com/apt/passenger trusty main /etc/apt/sources.list.d/passenger.list

  2. installed it:

sudo apt-get install libapache2-mod-passenger

reading package lists... done building dependency tree        reading state information... done following package automatically installed , no longer required:   libev4 use 'apt-get autoremove' remove it. following new packages installed:   libapache2-mod-passenger 0 upgraded, 1 newly installed, 0 remove , 580 not upgraded. need 0 b/273 kb of archives. after operation, 1 281 kb of additional disk space used. selecting unselected package libapache2-mod-passenger. (reading database ... 287776 files , directories installed.) preparing unpack .../libapache2-mod-passenger_1%3a5.0.13-1~trusty1_amd64.deb ... unpacking libapache2-mod-passenger (1:5.0.13-1~trusty1) ... setting libapache2-mod-passenger (1:5.0.13-1~trusty1) ... 
  1. then tried enable passenger module sudo a2enmod passenger reason had /etc/apache2/mods-available/passenger.conf , /etc/apache2/mods-available/passenger.load files missed after installation. (they not created , not removed libapache2-mod-passenger suppose kind of bug). created them manually:

s

set@set:~$ ruby /home/set/.rvm/rubies/ruby-2.1.5/bin/ruby set@set:~$ rails /home/set/.rvm/gems/ruby-2.1.5/bin/rails set@set:~$ ll /usr/lib/apache2/modules/ | grep passenger -rw-r--r-- 1 root root 1209112 jul  3 01:35 mod_passenger.so 

/etc/apache2/mods-available/passenger.conf:

<ifmodule passenger_module>         passengerroot /home/set/.rvm/gems/ruby-2.1.5/bin/passenger         passengerruby /home/set/.rvm/rubies/ruby-2.1.5/bin/ruby </ifmodule> 

and /etc/apache2/mods-available/passenger.load:

loadmodule passenger_module /usr/lib/apache2/modules/mod_passenger.so 
  1. the module enabled when restarting apache throw me segfault:

a

starting web server apache2                                                                                                                                                                                                               segmentation fault (core dumped) action 'start' failed. apache error log may have more information.  apache2 instance did not start within 20 seconds. please read log files discover problems 

and coredump:

gnu gdb (ubuntu 7.7-0ubuntu3.1) 7.7 copyright (c) 2014 free software foundation, inc. license gplv3+: gnu gpl version 3 or later <http://gnu.org/licenses/gpl.html> free software: free change , redistribute it. there no warranty, extent permitted law.  type "show copying" , "show warranty" details. gdb configured "x86_64-linux-gnu". type "show configuration" configuration details. bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. find gdb manual , other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. help, type "help". type "apropos word" search commands related "word"... reading symbols apache2...(no debugging symbols found)...done. [new lwp 30116] [thread debugging using libthread_db enabled] using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". core generated `/usr/sbin/apache2 -k start'. program terminated signal sigsegv, segmentation fault. #0  0x00007faa58b8e37e in std::_rb_tree<std::string, std::pair<std::string const, std::string>, std::_select1st<std::pair<std::string const, std::string> >, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > >::_m_begin() const () /usr/lib/apache2/modules/mod_passenger.so 

so stuck @ point , have no idea move nex. reinstalling of libapache2-mod-passenger not help. how can fix problem?

this issue more memory issue.
facing similar issue. case happening virtual box vm's. similar setup me worked on typical hardware more ram.

what doing fix issue install latest passenger module. gem install passenger , running passenger-install-apache2-module comes natively passenger.

and think latest module work.

here puppetmaster.conf file entries under apache conf dir.

loadmodule passenger_module /usr/local/share/gems/gems/passenger-5.0.26/buildout/apache2/mod_passenger.so passengerroot /usr/local/share/gems/gems/passenger-5.0.26 

Comments