stefanocasazza / ULib

C++ application development framework, to help developers create and deploy applications quickly and simply
GNU Lesser General Public License v3.0
947 stars 107 forks source link

userver_tcp segfaults on Amazon Linux 2 #59

Closed l1x closed 5 years ago

l1x commented 5 years ago

I am trying to run a benchmark with ulib on AWS using Amazon Linux 2 which is a new kernel version + the RedHat / CentOS userland.

This is what I am getting:

userver_tcp: WARNING: 30/12/18 17:18:46 (pid 30701) setCommand() failed, command "usp_compile.sh" not found
userver_tcp: ABORT: 30/12/18 17:18:46 (pid 30701) program interrupt by the kernel - SIGSEGV (11, Segmentation fault)
--------------------------------------------------------------------------------------------
 pid: 30701
 address: (nil) - SEGV_MAPERR (1, Address not mapped to object)
 rss usage: 336.84 MBytes
 address space usage: 5.83 MBytes
--------------------------------------------------------------------------------------------

I am using the following to build and run ulib:

./configure --prefix=/usr/local/ulib --enable-static && make && sudo make install

The config file:

userver {
  PORT 8080
  LISTEN_BACKLOG 64
  DOCUMENT_ROOT /opt/ulib/
  PID_FILE      /opt/ulib/userver_tcp.pid
  LOG_FILE /var/log/userver.log
  LOG_FILE_SZ   50M
  PLUGIN "http"
  PLUGIN_DIR /usr/local/ulib/libexec
}
http {
 CACHE_FILE_MASK *.swf
}

I think I am missing something with usp_compile.sh. I could not find a reference to that.

Let me know how should I build and start up ulib/userver_tcp. Thanks.

stefanocasazza commented 5 years ago

Hi,

usp_compile.sh is the script used to compile the usp servlet inside the DOCUMENT_ROOT. In your building it must be located in /usr/local/ulib/bin, so you must set the environment PATH to include it...

Bests Stefano

PS: anyway I added some code to manage the issue...

2018-12-30 20:44 GMT+01:00, Istvan notifications@github.com:

I am trying to run a benchmark with ulib on AWS using Amazon Linux 2 which is a new kernel version + the RedHat / CentOS userland.

This is what I am getting:

userver_tcp: WARNING: 30/12/18 17:18:46 (pid 30701) setCommand() failed,
command "usp_compile.sh" not found
userver_tcp: ABORT: 30/12/18 17:18:46 (pid 30701) program interrupt by the
kernel - SIGSEGV (11, Segmentation fault)
--------------------------------------------------------------------------------------------
 pid: 30701
 address: (nil) - SEGV_MAPERR (1, Address not mapped to object)
 rss usage: 336.84 MBytes
 address space usage: 5.83 MBytes
--------------------------------------------------------------------------------------------

I am using the following to build and run ulib:

./configure --prefix=/usr/local/ulib --enable-static && make && sudo make
install

The config file:

userver {
  PORT 8080
  LISTEN_BACKLOG 64
  DOCUMENT_ROOT /opt/ulib/
  PID_FILE      /opt/ulib/userver_tcp.pid
  LOG_FILE /var/log/userver.log
  LOG_FILE_SZ   50M
  PLUGIN "http"
  PLUGIN_DIR /usr/local/ulib/libexec
}
http {
 CACHE_FILE_MASK *.swf
}

I think I am missing something with usp_compile.sh. I could not find a reference to that.

Let me know how should I build and start up ulib/userver_tcp. Thanks.

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/stefanocasazza/ULib/issues/59