We are having and issue were worker is dies unexpectedly . We tried creating the core dump files as mentioned in the mediasoup :: Support
We did the
$ mkdir /tmp/cores
$ chmod 777 /tmp/cores
$ echo “/tmp/cores/core.%e.sig%s.%p” > /proc/sys/kernel/core_pattern
$ ulimit -c unlimited
and started the process using pm2 and it didnt create the core file we then started the process using node but no luck. If we kill the process manually using kill -s SIGSEGV the file get produced. So stuck not sure where to go from here
Our platform is as follows
node v14.15.1
mediasoup-3.7.14
gcc 9.3.0
g++ 9.3.0
c++ 9.3.0
–The log before
2021-06-13T15:42:59: 2021-06-13T22:42:59.432Z mediasoup:ERROR:Channel Producer Channel error: Error: write EPIPE
2021-06-13T15:42:59: xxxxxxxxxxxxxx
2021-06-13T15:42:59: 2021-06-13T22:42:59.433Z mediasoup:Transport consume()
2021-06-13T15:42:59: 2021-06-13T22:42:59.433Z mediasoup:Channel request() [method:transport.consume, id:5912]
2021-06-13T15:42:59: xxxxxxxxxxxxxx
2021-06-13T15:42:59: 2021-06-13T22:42:59.434Z mediasoup:Transport consume()
2021-06-13T15:42:59: 2021-06-13T22:42:59.434Z mediasoup:Channel request() [method:transport.consume, id:5913]
2021-06-13T15:42:59: 2021-06-13T22:42:59.436Z mediasoup:Channel Consumer Channel ended by the worker process
2021-06-13T15:42:59: 2021-06-13T22:42:59.443Z mediasoup:PayloadChannel Consumer PayloadChannel ended by the worker process
2021-06-13T15:42:59: 2021-06-13T22:42:59.443Z mediasoup:PayloadChannel Producer PayloadChannel ended by the worker process
2021-06-13T15:42:59: 2021-06-13T22:42:59.445Z mediasoup:Worker close()
May be this Error write EPIPE may be the issue. Our best guess is that the event is ahppeneing when a user is trying to share their screen.
Trying to figure out how we can core dump file , any help would be much appreciated