[rtpproxy] setrlimit(RLIMIT_CORE): Operation not permitted

Hi,
System info: OpenWrt SNAPSHOT, r6864-db34cdf6c5 on a Netgear Wndr3700v2.
I'm trying to get to setup rtpproxy - 2.1.0-20170914-2.
What I get is

Thu May 10 07:27:35 2018 daemon.err rtpproxy[5228]: ERR:GLOBAL:set_rlimits: setrlimit(RLIMIT_CORE): Operation not permitted (1)

The content of /etc/config/rtpproxy:

config rtpproxy global
        option enabled 1
config instance 'sip6'                
        option socket 'udp:127.0.0.1:7723'
        option ip6addr '2001:a61:1713:3b80:adc7:7d69:b86a:28f6'
        option user 'nobody'
        option opts '-d DBUG'
                                      
config instance 'sip4'               
        option socket 'udp:127.0.0.1:7724'
        option ipaddr '83.171.164.204'
        option user 'nobody'
        option opts '-d DBUG'

The ipaddr and ip6addr are addresses on my pppoe-wan interface:

# ip a s dev pppoe-wan
18: pppoe-wan: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1492 qdisc fq_codel state UNKNOWN group default qlen 3
    link/ppp 
    inet 83.171.164.204 peer 82.135.16.28/32 scope global pppoe-wan
       valid_lft forever preferred_lft forever
    inet6 2001:a61:1713:3b80:adc7:7d69:b86a:28f6/128 scope global 
       valid_lft forever preferred_lft forever
    inet6 fe80::xxxx:xxxx:xxxx:xxxx/10 scope link 
       valid_lft forever preferred_lft forever

I have no idea what is going wrong here. Any help appreciated,

Thanks,

Peter Pöschl

Hi,

It seems that the rtpproxy package contains a command that is not supported by the OpenWRT kernel.

I've looked it up and am somewhat confused as the code is supposed to handle the case where the command does not return a usable result. If you really want to deal with this, you should probably open an issue over at rtpproxy:

...but more probably you can just accept that rtpproxy is broken in this snapshot and move on. :slight_smile:

LP,
Jure

Hello Jure,

It seems that the rtpproxy package contains a command that is not supported

by the OpenWRT kernel.

Do you happen to know which kernel module/option I have to compile in (maybe it really is that simple)?

Thanks,

Peter

Hello Peter et al,

rtpproxy tries to set RLIMIT_CORE to unlimited. RLIMIT_CORE is used to set the size for coredumps.

It's not that that functionalty is not available. It's just that the user you're running rtpproxy with ("nobody") doesn't have permissions to set it. And that's OK. You don't need to worry about coredumps unless you're debugging the software I reckon. rtproxy will start and do its job anyway.

Kind regards,
Seb