IC
Ilias Clifton
Wed, Feb 26, 2020 6:05 AM
Hi All,
I've been using pjsua on my void linux system for quite a while without issue. Unfortunately it's stopped working.
pjsau starts up ok, but as soon as I attempt to make or receive a call, I get a segmentation fault - Can someone assist in troubleshooting?
It appears to be audio device related. Audio works ok in other applications such as firefox and vlc.
pjsua has been installed via the pjproject package via xbps.
dmesg and syslog report:
pjsua[8940] general protection fault ip:7f268e92581d sp:7f268d88d0c8 error:0 in libc-2.30.so[7f268e7e9000+149000]
Void linux is a 'rolling release' and I do upgrade regularly - going back through the logs it looks as though linux kernel was recently update from 5.4-5.4.13_2 to 5.4.19_1, and then a few days later from 5.4.19_1 to 5.4.21_1
I can't see any recent updates to libc.
I tried uninstalling the pjproject package and compiling pjproject manually - I get the same issue with the compiled version.
I tried running pjsystest, and the the test wizard - it Segfaults when it tries to play the ring tone.
16:59:01.131 os_core_unix.c !pjlib 2.10-dev for POSIX initialized
16:59:01.134 sip_endpoint.c .Creating endpoint instance...
16:59:01.134 pjlib .select() I/O Queue created (0x559368258220)
16:59:01.134 sip_endpoint.c .Module "mod-msg-print" registered
16:59:01.134 sip_transport.c .Transport manager created.
16:59:01.134 pjsua_core.c .PJSUA state changed: NULL --> CREATED
16:59:01.134 sip_endpoint.c .Module "mod-pjsua-log" registered
16:59:01.134 sip_endpoint.c .Module "mod-tsx-layer" registered
16:59:01.134 sip_endpoint.c .Module "mod-stateful-util" registered
16:59:01.134 sip_endpoint.c .Module "mod-ua" registered
16:59:01.134 sip_endpoint.c .Module "mod-100rel" registered
16:59:01.134 sip_endpoint.c .Module "mod-pjsua" registered
16:59:01.134 sip_endpoint.c .Module "mod-invite" registered
16:59:01.204 alsa_dev.c ..ALSA driver found 21 devices
16:59:01.204 alsa_dev.c ..ALSA initialized
16:59:01.204 pjlib ..select() I/O Queue created (0x5593682bfd48)
16:59:01.207 sip_endpoint.c .Module "mod-evsub" registered
16:59:01.207 sip_endpoint.c .Module "mod-presence" registered
16:59:01.208 sip_endpoint.c .Module "mod-mwi" registered
16:59:01.208 sip_endpoint.c .Module "mod-refer" registered
16:59:01.208 sip_endpoint.c .Module "mod-pjsua-pres" registered
16:59:01.208 sip_endpoint.c .Module "mod-pjsua-im" registered
16:59:01.208 sip_endpoint.c .Module "mod-pjsua-options" registered
16:59:01.208 pjsua_core.c .1 SIP worker threads created
16:59:01.208 pjsua_core.c .pjsua version 2.10-dev for Linux-5.4.21/x86_64/glibc-2.30 initialized
16:59:01.208 pjsua_core.c .PJSUA state changed: CREATED --> INIT
16:59:01.208 pjsua_core.c PJSUA state changed: INIT --> STARTING
16:59:01.208 sip_endpoint.c .Module "mod-unsolicited-mwi" registered
16:59:01.208 pjsua_core.c .PJSUA state changed: STARTING --> RUNNING
M E N U :
0: Tests
00: Run test wizard
01: Device Test
02: Play Tone
03: Play WAV File1
04: Play WAV File2
05: Record Audio
06: Latency Test
07: AEC/AES Test
09: Exit
1: Options
10: View Devices
11: View Settings
Enter the menu number: 00
16:59:06.641 systest.c Running test wizard
16:59:06.641 systest.c Running Audio Device List
Audio Device List
Found 21 devices
0: ALSA [surround21] (0/1)
1: ALSA [surround40] (1/1)
2: ALSA [surround41] (0/0)
3: ALSA [surround50] (0/0)
4: ALSA [surround51] (1/1)
5: ALSA [surround71] (1/1)
6: ALSA [default:CARD=PCH] (1/1)
7: ALSA [sysdefault:CARD=PCH] (1/1)
8: ALSA [front:CARD=PCH,DEV=0] (1/1)
9: ALSA [surround21:CARD=PCH,DEV=0] (0/1)
10: ALSA [surround40:CARD=PCH,DEV=0] (1/1)
11: ALSA [surround41:CARD=PCH,DEV=0] (0/0)
12: ALSA [surround50:CARD=PCH,DEV=0] (0/0)
13: ALSA [surround51:CARD=PCH,DEV=0] (1/1)
14: ALSA [surround71:CARD=PCH,DEV=0] (1/1)
15: ALSA [iec958:CARD=PCH,DEV=0] (0/1)
16: ALSA [hdmi:CARD=HDMI,DEV=0] (0/1)
17: ALSA [hdmi:CARD=HDMI,DEV=1] (0/1)
18: ALSA [hdmi:CARD=HDMI,DEV=2] (0/1)
19: ALSA [hdmi:CARD=HDMI,DEV=3] (0/1)
20: ALSA [hdmi:CARD=HDMI,DEV=4] (0/1)
1:OK
1
16:59:38.999 systest.c Running Audio Settings
Audio Settings
Version: 2.10-dev
Test clock rate: 8000
Device clock rate: 8000
Aud frame ptime: 20
Channel count: 1
Audio switching: Conf bridge
Snd buff count: 8
Rec dev : -1 (surround40) [ALSA]
Rec buf : 100 msec
Play dev: -2 (surround40) [ALSA]
Play buf: 140 msec
1:OK
1
Audio Tone Playback Test
This test will play simple ringback tone to the speaker. Please listen carefully for audio impairments such as stutter. You may need to let this test running for a while to make sure that everything is okay. Press OK to start, CANCEL to skip
1:OK 9:Cancel
1
16:59:49.717 systest.c Running Audio Tone Playback Test
16:59:49.717 pjsua_aud.c Conf connect: 1 --> 0
16:59:49.717 pjsua_aud.c .Set sound device: capture=-1, playback=-2
16:59:49.718 pjsua_aud.c ..Opening sound device (speaker + mic) PCM@8000/1/20ms
16:59:49.737 conference.c .Port 1 (ringback) transmitting to port 0 (surround40)
Audio Tone Playback Test
Ringback tone should be playing now in the speaker. Press OK to stop.
1:OK
Segmentation fault
#aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CS4208 Analog [CS4208 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: CS4208 Digital [CS4208 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 10: HDMI 4 [HDMI 4]
Subdevices: 1/1
Subdevice #0: subdevice #0
IC
Ilias Clifton
Wed, Feb 26, 2020 10:16 PM
Sending again in plain text...
Hi All,
I've been using pjsua on my void linux system for quite a while without issue. Unfortunately it's stopped working.
pjsau starts up ok, but as soon as I attempt to make or receive a call, I get a segmentation fault - Can someone assist in troubleshooting?
It appears to be audio device related. Audio works ok in other applications such as firefox and vlc.
pjsua has been installed via the pjproject package via xbps.
dmesg and syslog report:
pjsua[8940] general protection fault ip:7f268e92581d sp:7f268d88d0c8 error:0 in libc-2.30.so[7f268e7e9000+149000]
Void linux is a 'rolling release' and I do upgrade regularly - going back through the logs it looks as though linux kernel was recently update from 5.4-5.4.13_2 to 5.4.19_1, and then a few days later from 5.4.19_1 to 5.4.21_1
I can't see any recent updates to libc.
I tried uninstalling the pjproject package and compiling pjproject manually - I get the same issue with the compiled version.
I tried running pjsystest, and the the test wizard - it Segfaults when it tries to play the ring tone.
16:59:01.131 os_core_unix.c !pjlib 2.10-dev for POSIX initialized
16:59:01.134 sip_endpoint.c .Creating endpoint instance...
16:59:01.134 pjlib .select() I/O Queue created (0x559368258220)
16:59:01.134 sip_endpoint.c .Module "mod-msg-print" registered
16:59:01.134 sip_transport.c .Transport manager created.
16:59:01.134 pjsua_core.c .PJSUA state changed: NULL --> CREATED
16:59:01.134 sip_endpoint.c .Module "mod-pjsua-log" registered
16:59:01.134 sip_endpoint.c .Module "mod-tsx-layer" registered
16:59:01.134 sip_endpoint.c .Module "mod-stateful-util" registered
16:59:01.134 sip_endpoint.c .Module "mod-ua" registered
16:59:01.134 sip_endpoint.c .Module "mod-100rel" registered
16:59:01.134 sip_endpoint.c .Module "mod-pjsua" registered
16:59:01.134 sip_endpoint.c .Module "mod-invite" registered
16:59:01.204 alsa_dev.c ..ALSA driver found 21 devices
16:59:01.204 alsa_dev.c ..ALSA initialized
16:59:01.204 pjlib ..select() I/O Queue created (0x5593682bfd48)
16:59:01.207 sip_endpoint.c .Module "mod-evsub" registered
16:59:01.207 sip_endpoint.c .Module "mod-presence" registered
16:59:01.208 sip_endpoint.c .Module "mod-mwi" registered
16:59:01.208 sip_endpoint.c .Module "mod-refer" registered
16:59:01.208 sip_endpoint.c .Module "mod-pjsua-pres" registered
16:59:01.208 sip_endpoint.c .Module "mod-pjsua-im" registered
16:59:01.208 sip_endpoint.c .Module "mod-pjsua-options" registered
16:59:01.208 pjsua_core.c .1 SIP worker threads created
16:59:01.208 pjsua_core.c .pjsua version 2.10-dev for Linux-5.4.21/x86_64/glibc-2.30 initialized
16:59:01.208 pjsua_core.c .PJSUA state changed: CREATED --> INIT
16:59:01.208 pjsua_core.c PJSUA state changed: INIT --> STARTING
16:59:01.208 sip_endpoint.c .Module "mod-unsolicited-mwi" registered
16:59:01.208 pjsua_core.c .PJSUA state changed: STARTING --> RUNNING
M E N U :
0: Tests
00: Run test wizard
01: Device Test
02: Play Tone
03: Play WAV File1
04: Play WAV File2
05: Record Audio
06: Latency Test
07: AEC/AES Test
09: Exit
1: Options
10: View Devices
11: View Settings
Enter the menu number: 00
16:59:06.641 systest.c Running test wizard
16:59:06.641 systest.c Running Audio Device List
Audio Device List
Found 21 devices
0: ALSA [surround21] (0/1)
1: ALSA [surround40] (1/1)
2: ALSA [surround41] (0/0)
3: ALSA [surround50] (0/0)
4: ALSA [surround51] (1/1)
5: ALSA [surround71] (1/1)
6: ALSA [default:CARD=PCH] (1/1)
7: ALSA [sysdefault:CARD=PCH] (1/1)
8: ALSA [front:CARD=PCH,DEV=0] (1/1)
9: ALSA [surround21:CARD=PCH,DEV=0] (0/1)
10: ALSA [surround40:CARD=PCH,DEV=0] (1/1)
11: ALSA [surround41:CARD=PCH,DEV=0] (0/0)
12: ALSA [surround50:CARD=PCH,DEV=0] (0/0)
13: ALSA [surround51:CARD=PCH,DEV=0] (1/1)
14: ALSA [surround71:CARD=PCH,DEV=0] (1/1)
15: ALSA [iec958:CARD=PCH,DEV=0] (0/1)
16: ALSA [hdmi:CARD=HDMI,DEV=0] (0/1)
17: ALSA [hdmi:CARD=HDMI,DEV=1] (0/1)
18: ALSA [hdmi:CARD=HDMI,DEV=2] (0/1)
19: ALSA [hdmi:CARD=HDMI,DEV=3] (0/1)
20: ALSA [hdmi:CARD=HDMI,DEV=4] (0/1)
1:OK
1
16:59:38.999 systest.c Running Audio Settings
Audio Settings
Version: 2.10-dev
Test clock rate: 8000
Device clock rate: 8000
Aud frame ptime: 20
Channel count: 1
Audio switching: Conf bridge
Snd buff count: 8
Rec dev : -1 (surround40) [ALSA]
Rec buf : 100 msec
Play dev: -2 (surround40) [ALSA]
Play buf: 140 msec
1:OK
1
Audio Tone Playback Test
This test will play simple ringback tone to the speaker. Please listen carefully for audio impairments such as stutter. You may need to let this test running for a while to make sure that everything is okay. Press OK to start, CANCEL to skip
1:OK 9:Cancel
1
16:59:49.717 systest.c Running Audio Tone Playback Test
16:59:49.717 pjsua_aud.c Conf connect: 1 --> 0
16:59:49.717 pjsua_aud.c .Set sound device: capture=-1, playback=-2
16:59:49.718 pjsua_aud.c ..Opening sound device (speaker + mic) PCM@8000/1/20ms
16:59:49.737 conference.c .Port 1 (ringback) transmitting to port 0 (surround40)
Audio Tone Playback Test
Ringback tone should be playing now in the speaker. Press OK to stop.
1:OK
Segmentation fault
#aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CS4208 Analog [CS4208 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: CS4208 Digital [CS4208 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 10: HDMI 4 [HDMI 4]
Subdevices: 1/1
Subdevice #0: subdevice #0
Sending again in plain text...
Hi All,
I've been using pjsua on my void linux system for quite a while without issue. Unfortunately it's stopped working.
pjsau starts up ok, but as soon as I attempt to make or receive a call, I get a segmentation fault - Can someone assist in troubleshooting?
It appears to be audio device related. Audio works ok in other applications such as firefox and vlc.
pjsua has been installed via the pjproject package via xbps.
dmesg and syslog report:
pjsua[8940] general protection fault ip:7f268e92581d sp:7f268d88d0c8 error:0 in libc-2.30.so[7f268e7e9000+149000]
Void linux is a 'rolling release' and I do upgrade regularly - going back through the logs it looks as though linux kernel was recently update from 5.4-5.4.13_2 to 5.4.19_1, and then a few days later from 5.4.19_1 to 5.4.21_1
I can't see any recent updates to libc.
I tried uninstalling the pjproject package and compiling pjproject manually - I get the same issue with the compiled version.
I tried running pjsystest, and the the test wizard - it Segfaults when it tries to play the ring tone.
16:59:01.131 os_core_unix.c !pjlib 2.10-dev for POSIX initialized
16:59:01.134 sip_endpoint.c .Creating endpoint instance...
16:59:01.134 pjlib .select() I/O Queue created (0x559368258220)
16:59:01.134 sip_endpoint.c .Module "mod-msg-print" registered
16:59:01.134 sip_transport.c .Transport manager created.
16:59:01.134 pjsua_core.c .PJSUA state changed: NULL --> CREATED
16:59:01.134 sip_endpoint.c .Module "mod-pjsua-log" registered
16:59:01.134 sip_endpoint.c .Module "mod-tsx-layer" registered
16:59:01.134 sip_endpoint.c .Module "mod-stateful-util" registered
16:59:01.134 sip_endpoint.c .Module "mod-ua" registered
16:59:01.134 sip_endpoint.c .Module "mod-100rel" registered
16:59:01.134 sip_endpoint.c .Module "mod-pjsua" registered
16:59:01.134 sip_endpoint.c .Module "mod-invite" registered
16:59:01.204 alsa_dev.c ..ALSA driver found 21 devices
16:59:01.204 alsa_dev.c ..ALSA initialized
16:59:01.204 pjlib ..select() I/O Queue created (0x5593682bfd48)
16:59:01.207 sip_endpoint.c .Module "mod-evsub" registered
16:59:01.207 sip_endpoint.c .Module "mod-presence" registered
16:59:01.208 sip_endpoint.c .Module "mod-mwi" registered
16:59:01.208 sip_endpoint.c .Module "mod-refer" registered
16:59:01.208 sip_endpoint.c .Module "mod-pjsua-pres" registered
16:59:01.208 sip_endpoint.c .Module "mod-pjsua-im" registered
16:59:01.208 sip_endpoint.c .Module "mod-pjsua-options" registered
16:59:01.208 pjsua_core.c .1 SIP worker threads created
16:59:01.208 pjsua_core.c .pjsua version 2.10-dev for Linux-5.4.21/x86_64/glibc-2.30 initialized
16:59:01.208 pjsua_core.c .PJSUA state changed: CREATED --> INIT
16:59:01.208 pjsua_core.c PJSUA state changed: INIT --> STARTING
16:59:01.208 sip_endpoint.c .Module "mod-unsolicited-mwi" registered
16:59:01.208 pjsua_core.c .PJSUA state changed: STARTING --> RUNNING
M E N U :
---------
0: Tests
00: Run test wizard
01: Device Test
02: Play Tone
03: Play WAV File1
04: Play WAV File2
05: Record Audio
06: Latency Test
07: AEC/AES Test
09: Exit
1: Options
10: View Devices
11: View Settings
Enter the menu number: 00
16:59:06.641 systest.c Running test wizard
16:59:06.641 systest.c Running Audio Device List
Audio Device List
Found 21 devices
0: ALSA [surround21] (0/1)
1: ALSA [surround40] (1/1)
2: ALSA [surround41] (0/0)
3: ALSA [surround50] (0/0)
4: ALSA [surround51] (1/1)
5: ALSA [surround71] (1/1)
6: ALSA [default:CARD=PCH] (1/1)
7: ALSA [sysdefault:CARD=PCH] (1/1)
8: ALSA [front:CARD=PCH,DEV=0] (1/1)
9: ALSA [surround21:CARD=PCH,DEV=0] (0/1)
10: ALSA [surround40:CARD=PCH,DEV=0] (1/1)
11: ALSA [surround41:CARD=PCH,DEV=0] (0/0)
12: ALSA [surround50:CARD=PCH,DEV=0] (0/0)
13: ALSA [surround51:CARD=PCH,DEV=0] (1/1)
14: ALSA [surround71:CARD=PCH,DEV=0] (1/1)
15: ALSA [iec958:CARD=PCH,DEV=0] (0/1)
16: ALSA [hdmi:CARD=HDMI,DEV=0] (0/1)
17: ALSA [hdmi:CARD=HDMI,DEV=1] (0/1)
18: ALSA [hdmi:CARD=HDMI,DEV=2] (0/1)
19: ALSA [hdmi:CARD=HDMI,DEV=3] (0/1)
20: ALSA [hdmi:CARD=HDMI,DEV=4] (0/1)
1:OK
1
16:59:38.999 systest.c Running Audio Settings
Audio Settings
Version: 2.10-dev
Test clock rate: 8000
Device clock rate: 8000
Aud frame ptime: 20
Channel count: 1
Audio switching: Conf bridge
Snd buff count: 8
Rec dev : -1 (surround40) [ALSA]
Rec buf : 100 msec
Play dev: -2 (surround40) [ALSA]
Play buf: 140 msec
1:OK
1
Audio Tone Playback Test
This test will play simple ringback tone to the speaker. Please listen carefully for audio impairments such as stutter. You may need to let this test running for a while to make sure that everything is okay. Press OK to start, CANCEL to skip
1:OK 9:Cancel
1
16:59:49.717 systest.c Running Audio Tone Playback Test
16:59:49.717 pjsua_aud.c Conf connect: 1 --> 0
16:59:49.717 pjsua_aud.c .Set sound device: capture=-1, playback=-2
16:59:49.718 pjsua_aud.c ..Opening sound device (speaker + mic) PCM@8000/1/20ms
16:59:49.737 conference.c .Port 1 (ringback) transmitting to port 0 (surround40)
Audio Tone Playback Test
Ringback tone should be playing now in the speaker. Press OK to stop.
1:OK
Segmentation fault
#aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CS4208 Analog [CS4208 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: CS4208 Digital [CS4208 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 10: HDMI 4 [HDMI 4]
Subdevices: 1/1
Subdevice #0: subdevice #0
M
Ming
Thu, Feb 27, 2020 1:12 AM
Hi Ilias,
Can you provide the stack trace so we can know where the segv occurred exactly?
Regards,
Ming
On Thu, Feb 27, 2020 at 6:17 AM Ilias Clifton adilias3@gmx.com wrote:
Sending again in plain text...
Hi All,
I've been using pjsua on my void linux system for quite a while without issue. Unfortunately it's stopped working.
pjsau starts up ok, but as soon as I attempt to make or receive a call, I get a segmentation fault - Can someone assist in troubleshooting?
It appears to be audio device related. Audio works ok in other applications such as firefox and vlc.
pjsua has been installed via the pjproject package via xbps.
dmesg and syslog report:
pjsua[8940] general protection fault ip:7f268e92581d sp:7f268d88d0c8 error:0 in libc-2.30.so[7f268e7e9000+149000]
Void linux is a 'rolling release' and I do upgrade regularly - going back through the logs it looks as though linux kernel was recently update from 5.4-5.4.13_2 to 5.4.19_1, and then a few days later from 5.4.19_1 to 5.4.21_1
I can't see any recent updates to libc.
I tried uninstalling the pjproject package and compiling pjproject manually - I get the same issue with the compiled version.
I tried running pjsystest, and the the test wizard - it Segfaults when it tries to play the ring tone.
16:59:01.131 os_core_unix.c !pjlib 2.10-dev for POSIX initialized
16:59:01.134 sip_endpoint.c .Creating endpoint instance...
16:59:01.134 pjlib .select() I/O Queue created (0x559368258220)
16:59:01.134 sip_endpoint.c .Module "mod-msg-print" registered
16:59:01.134 sip_transport.c .Transport manager created.
16:59:01.134 pjsua_core.c .PJSUA state changed: NULL --> CREATED
16:59:01.134 sip_endpoint.c .Module "mod-pjsua-log" registered
16:59:01.134 sip_endpoint.c .Module "mod-tsx-layer" registered
16:59:01.134 sip_endpoint.c .Module "mod-stateful-util" registered
16:59:01.134 sip_endpoint.c .Module "mod-ua" registered
16:59:01.134 sip_endpoint.c .Module "mod-100rel" registered
16:59:01.134 sip_endpoint.c .Module "mod-pjsua" registered
16:59:01.134 sip_endpoint.c .Module "mod-invite" registered
16:59:01.204 alsa_dev.c ..ALSA driver found 21 devices
16:59:01.204 alsa_dev.c ..ALSA initialized
16:59:01.204 pjlib ..select() I/O Queue created (0x5593682bfd48)
16:59:01.207 sip_endpoint.c .Module "mod-evsub" registered
16:59:01.207 sip_endpoint.c .Module "mod-presence" registered
16:59:01.208 sip_endpoint.c .Module "mod-mwi" registered
16:59:01.208 sip_endpoint.c .Module "mod-refer" registered
16:59:01.208 sip_endpoint.c .Module "mod-pjsua-pres" registered
16:59:01.208 sip_endpoint.c .Module "mod-pjsua-im" registered
16:59:01.208 sip_endpoint.c .Module "mod-pjsua-options" registered
16:59:01.208 pjsua_core.c .1 SIP worker threads created
16:59:01.208 pjsua_core.c .pjsua version 2.10-dev for Linux-5.4.21/x86_64/glibc-2.30 initialized
16:59:01.208 pjsua_core.c .PJSUA state changed: CREATED --> INIT
16:59:01.208 pjsua_core.c PJSUA state changed: INIT --> STARTING
16:59:01.208 sip_endpoint.c .Module "mod-unsolicited-mwi" registered
16:59:01.208 pjsua_core.c .PJSUA state changed: STARTING --> RUNNING
M E N U :
0: Tests
00: Run test wizard
01: Device Test
02: Play Tone
03: Play WAV File1
04: Play WAV File2
05: Record Audio
06: Latency Test
07: AEC/AES Test
09: Exit
1: Options
10: View Devices
11: View Settings
Enter the menu number: 00
16:59:06.641 systest.c Running test wizard
16:59:06.641 systest.c Running Audio Device List
Audio Device List
Found 21 devices
0: ALSA [surround21] (0/1)
1: ALSA [surround40] (1/1)
2: ALSA [surround41] (0/0)
3: ALSA [surround50] (0/0)
4: ALSA [surround51] (1/1)
5: ALSA [surround71] (1/1)
6: ALSA [default:CARD=PCH] (1/1)
7: ALSA [sysdefault:CARD=PCH] (1/1)
8: ALSA [front:CARD=PCH,DEV=0] (1/1)
9: ALSA [surround21:CARD=PCH,DEV=0] (0/1)
10: ALSA [surround40:CARD=PCH,DEV=0] (1/1)
11: ALSA [surround41:CARD=PCH,DEV=0] (0/0)
12: ALSA [surround50:CARD=PCH,DEV=0] (0/0)
13: ALSA [surround51:CARD=PCH,DEV=0] (1/1)
14: ALSA [surround71:CARD=PCH,DEV=0] (1/1)
15: ALSA [iec958:CARD=PCH,DEV=0] (0/1)
16: ALSA [hdmi:CARD=HDMI,DEV=0] (0/1)
17: ALSA [hdmi:CARD=HDMI,DEV=1] (0/1)
18: ALSA [hdmi:CARD=HDMI,DEV=2] (0/1)
19: ALSA [hdmi:CARD=HDMI,DEV=3] (0/1)
20: ALSA [hdmi:CARD=HDMI,DEV=4] (0/1)
1:OK
1
16:59:38.999 systest.c Running Audio Settings
Audio Settings
Version: 2.10-dev
Test clock rate: 8000
Device clock rate: 8000
Aud frame ptime: 20
Channel count: 1
Audio switching: Conf bridge
Snd buff count: 8
Rec dev : -1 (surround40) [ALSA]
Rec buf : 100 msec
Play dev: -2 (surround40) [ALSA]
Play buf: 140 msec
1:OK
1
Audio Tone Playback Test
This test will play simple ringback tone to the speaker. Please listen carefully for audio impairments such as stutter. You may need to let this test running for a while to make sure that everything is okay. Press OK to start, CANCEL to skip
1:OK 9:Cancel
1
16:59:49.717 systest.c Running Audio Tone Playback Test
16:59:49.717 pjsua_aud.c Conf connect: 1 --> 0
16:59:49.717 pjsua_aud.c .Set sound device: capture=-1, playback=-2
16:59:49.718 pjsua_aud.c ..Opening sound device (speaker + mic) PCM@8000/1/20ms
16:59:49.737 conference.c .Port 1 (ringback) transmitting to port 0 (surround40)
Audio Tone Playback Test
Ringback tone should be playing now in the speaker. Press OK to stop.
1:OK
Segmentation fault
#aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CS4208 Analog [CS4208 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: CS4208 Digital [CS4208 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 10: HDMI 4 [HDMI 4]
Subdevices: 1/1
Subdevice #0: subdevice #0
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Hi Ilias,
Can you provide the stack trace so we can know where the segv occurred exactly?
Regards,
Ming
On Thu, Feb 27, 2020 at 6:17 AM Ilias Clifton <adilias3@gmx.com> wrote:
>
> Sending again in plain text...
>
> Hi All,
>
> I've been using pjsua on my void linux system for quite a while without issue. Unfortunately it's stopped working.
>
> pjsau starts up ok, but as soon as I attempt to make or receive a call, I get a segmentation fault - Can someone assist in troubleshooting?
>
> It appears to be audio device related. Audio works ok in other applications such as firefox and vlc.
>
> pjsua has been installed via the pjproject package via xbps.
>
> dmesg and syslog report:
> pjsua[8940] general protection fault ip:7f268e92581d sp:7f268d88d0c8 error:0 in libc-2.30.so[7f268e7e9000+149000]
>
> Void linux is a 'rolling release' and I do upgrade regularly - going back through the logs it looks as though linux kernel was recently update from 5.4-5.4.13_2 to 5.4.19_1, and then a few days later from 5.4.19_1 to 5.4.21_1
>
> I can't see any recent updates to libc.
>
> I tried uninstalling the pjproject package and compiling pjproject manually - I get the same issue with the compiled version.
>
> I tried running pjsystest, and the the test wizard - it Segfaults when it tries to play the ring tone.
>
>
> 16:59:01.131 os_core_unix.c !pjlib 2.10-dev for POSIX initialized
> 16:59:01.134 sip_endpoint.c .Creating endpoint instance...
> 16:59:01.134 pjlib .select() I/O Queue created (0x559368258220)
> 16:59:01.134 sip_endpoint.c .Module "mod-msg-print" registered
> 16:59:01.134 sip_transport.c .Transport manager created.
> 16:59:01.134 pjsua_core.c .PJSUA state changed: NULL --> CREATED
> 16:59:01.134 sip_endpoint.c .Module "mod-pjsua-log" registered
> 16:59:01.134 sip_endpoint.c .Module "mod-tsx-layer" registered
> 16:59:01.134 sip_endpoint.c .Module "mod-stateful-util" registered
> 16:59:01.134 sip_endpoint.c .Module "mod-ua" registered
> 16:59:01.134 sip_endpoint.c .Module "mod-100rel" registered
> 16:59:01.134 sip_endpoint.c .Module "mod-pjsua" registered
> 16:59:01.134 sip_endpoint.c .Module "mod-invite" registered
> 16:59:01.204 alsa_dev.c ..ALSA driver found 21 devices
> 16:59:01.204 alsa_dev.c ..ALSA initialized
> 16:59:01.204 pjlib ..select() I/O Queue created (0x5593682bfd48)
> 16:59:01.207 sip_endpoint.c .Module "mod-evsub" registered
> 16:59:01.207 sip_endpoint.c .Module "mod-presence" registered
> 16:59:01.208 sip_endpoint.c .Module "mod-mwi" registered
> 16:59:01.208 sip_endpoint.c .Module "mod-refer" registered
> 16:59:01.208 sip_endpoint.c .Module "mod-pjsua-pres" registered
> 16:59:01.208 sip_endpoint.c .Module "mod-pjsua-im" registered
> 16:59:01.208 sip_endpoint.c .Module "mod-pjsua-options" registered
> 16:59:01.208 pjsua_core.c .1 SIP worker threads created
> 16:59:01.208 pjsua_core.c .pjsua version 2.10-dev for Linux-5.4.21/x86_64/glibc-2.30 initialized
> 16:59:01.208 pjsua_core.c .PJSUA state changed: CREATED --> INIT
> 16:59:01.208 pjsua_core.c PJSUA state changed: INIT --> STARTING
> 16:59:01.208 sip_endpoint.c .Module "mod-unsolicited-mwi" registered
> 16:59:01.208 pjsua_core.c .PJSUA state changed: STARTING --> RUNNING
> M E N U :
> ---------
> 0: Tests
> 00: Run test wizard
> 01: Device Test
> 02: Play Tone
> 03: Play WAV File1
> 04: Play WAV File2
> 05: Record Audio
> 06: Latency Test
> 07: AEC/AES Test
> 09: Exit
>
> 1: Options
> 10: View Devices
> 11: View Settings
> Enter the menu number: 00
> 16:59:06.641 systest.c Running test wizard
> 16:59:06.641 systest.c Running Audio Device List
> Audio Device List
> Found 21 devices
> 0: ALSA [surround21] (0/1)
> 1: ALSA [surround40] (1/1)
> 2: ALSA [surround41] (0/0)
> 3: ALSA [surround50] (0/0)
> 4: ALSA [surround51] (1/1)
> 5: ALSA [surround71] (1/1)
> 6: ALSA [default:CARD=PCH] (1/1)
> 7: ALSA [sysdefault:CARD=PCH] (1/1)
> 8: ALSA [front:CARD=PCH,DEV=0] (1/1)
> 9: ALSA [surround21:CARD=PCH,DEV=0] (0/1)
> 10: ALSA [surround40:CARD=PCH,DEV=0] (1/1)
> 11: ALSA [surround41:CARD=PCH,DEV=0] (0/0)
> 12: ALSA [surround50:CARD=PCH,DEV=0] (0/0)
> 13: ALSA [surround51:CARD=PCH,DEV=0] (1/1)
> 14: ALSA [surround71:CARD=PCH,DEV=0] (1/1)
> 15: ALSA [iec958:CARD=PCH,DEV=0] (0/1)
> 16: ALSA [hdmi:CARD=HDMI,DEV=0] (0/1)
> 17: ALSA [hdmi:CARD=HDMI,DEV=1] (0/1)
> 18: ALSA [hdmi:CARD=HDMI,DEV=2] (0/1)
> 19: ALSA [hdmi:CARD=HDMI,DEV=3] (0/1)
> 20: ALSA [hdmi:CARD=HDMI,DEV=4] (0/1)
> 1:OK
> 1
> 16:59:38.999 systest.c Running Audio Settings
> Audio Settings
> Version: 2.10-dev
> Test clock rate: 8000
> Device clock rate: 8000
> Aud frame ptime: 20
> Channel count: 1
> Audio switching: Conf bridge
> Snd buff count: 8
> Rec dev : -1 (surround40) [ALSA]
> Rec buf : 100 msec
> Play dev: -2 (surround40) [ALSA]
> Play buf: 140 msec
> 1:OK
> 1
> Audio Tone Playback Test
> This test will play simple ringback tone to the speaker. Please listen carefully for audio impairments such as stutter. You may need to let this test running for a while to make sure that everything is okay. Press OK to start, CANCEL to skip
> 1:OK 9:Cancel
> 1
> 16:59:49.717 systest.c Running Audio Tone Playback Test
> 16:59:49.717 pjsua_aud.c Conf connect: 1 --> 0
> 16:59:49.717 pjsua_aud.c .Set sound device: capture=-1, playback=-2
> 16:59:49.718 pjsua_aud.c ..Opening sound device (speaker + mic) PCM@8000/1/20ms
> 16:59:49.737 conference.c .Port 1 (ringback) transmitting to port 0 (surround40)
> Audio Tone Playback Test
> Ringback tone should be playing now in the speaker. Press OK to stop.
> 1:OK
> Segmentation fault
>
>
>
>
> #aplay -l
> **** List of PLAYBACK Hardware Devices ****
> card 0: PCH [HDA Intel PCH], device 0: CS4208 Analog [CS4208 Analog]
> Subdevices: 1/1
> Subdevice #0: subdevice #0
> card 0: PCH [HDA Intel PCH], device 1: CS4208 Digital [CS4208 Digital]
> Subdevices: 1/1
> Subdevice #0: subdevice #0
> card 1: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
> Subdevices: 1/1
> Subdevice #0: subdevice #0
> card 1: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
> Subdevices: 1/1
> Subdevice #0: subdevice #0
> card 1: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
> Subdevices: 1/1
> Subdevice #0: subdevice #0
> card 1: HDMI [HDA Intel HDMI], device 9: HDMI 3 [HDMI 3]
> Subdevices: 1/1
> Subdevice #0: subdevice #0
> card 1: HDMI [HDA Intel HDMI], device 10: HDMI 4 [HDMI 4]
> Subdevices: 1/1
> Subdevice #0: subdevice #0
>
>
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip@lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
IC
Ilias Clifton
Thu, Feb 27, 2020 2:24 AM
Hi Ming,
Stack trace for pjsystest :
(gdb) bt full
#0 __GI___pthread_timedjoin_ex (threadid=18344288135642611207, thread_return=0x7ffff68c8970, abstime=0x0, block=true) at pthread_join_common.c:86
pd = 0xfe9400ddfe63fe07
self = <optimized out>
result = <optimized out>
pd_result = <optimized out>
#1 0x000055555565d499 in pj_thread_join ()
No symbol table info available.
#2 0x00005555555f92cf in alsa_stream_stop ()
No symbol table info available.
#3 0x00005555555dddb9 in stop_sound_device.isra ()
No symbol table info available.
#4 0x0000555555578b45 in close_snd_dev ()
No symbol table info available.
#5 0x0000555555578f0e in close_snd_timer_cb ()
No symbol table info available.
#6 0x000055555566f2ba in pj_timer_heap_poll ()
No symbol table info available.
#7 0x00005555555ae45b in pjsip_endpt_handle_events2 ()
No symbol table info available.
#8 0x000055555556992e in pjsua_handle_events ()
No symbol table info available.
#9 0x0000555555569984 in worker_thread ()
No symbol table info available.
#10 0x000055555565d9a5 in thread_main ()
No symbol table info available.
#11 0x00007ffff7c0bf27 in start_thread (arg=<optimized out>) at pthread_create.c:479
ret = <optimized out>
pd = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737329796864, 3752310335381315807, 140737488345214, 140737488345215, 140737329794944, 140737329796864, -3752326114514689825, -3752327659091910433}, mask_was_saved = 0}},
priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = 0
#12 0x00007ffff7a40e0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
No locals.
Please let me know if there is any other information I can provide.
Hi Ilias,
Can you provide the stack trace so we can know where the segv occurred exactly?
Regards,
Ming
On Thu, Feb 27, 2020 at 6:17 AM Ilias Clifton <adilias3 at gmx.com> wrote:
Sending again in plain text...
Hi All,
I've been using pjsua on my void linux system for quite a while without issue. Unfortunately it's stopped working.
pjsau starts up ok, but as soon as I attempt to make or receive a call, I get a segmentation fault - Can someone assist in troubleshooting?
It appears to be audio device related. Audio works ok in other applications such as firefox and vlc.
pjsua has been installed via the pjproject package via xbps.
dmesg and syslog report:
pjsua[8940] general protection fault ip:7f268e92581d sp:7f268d88d0c8 error:0 in libc-2.30.so[7f268e7e9000+149000]
Void linux is a 'rolling release' and I do upgrade regularly - going back through the logs it looks as though linux kernel was recently update from 5.4-5.4.13_2 to 5.4.19_1, and then a few days later from 5.4.19_1 to 5.4.21_1
I can't see any recent updates to libc.
I tried uninstalling the pjproject package and compiling pjproject manually - I get the same issue with the compiled version.
I tried running pjsystest, and the the test wizard - it Segfaults when it tries to play the ring tone.
16:59:01.131 os_core_unix.c !pjlib 2.10-dev for POSIX initialized
16:59:01.134 sip_endpoint.c .Creating endpoint instance...
16:59:01.134 pjlib .select() I/O Queue created (0x559368258220)
16:59:01.134 sip_endpoint.c .Module "mod-msg-print" registered
16:59:01.134 sip_transport.c .Transport manager created.
16:59:01.134 pjsua_core.c .PJSUA state changed: NULL --> CREATED
16:59:01.134 sip_endpoint.c .Module "mod-pjsua-log" registered
16:59:01.134 sip_endpoint.c .Module "mod-tsx-layer" registered
16:59:01.134 sip_endpoint.c .Module "mod-stateful-util" registered
16:59:01.134 sip_endpoint.c .Module "mod-ua" registered
16:59:01.134 sip_endpoint.c .Module "mod-100rel" registered
16:59:01.134 sip_endpoint.c .Module "mod-pjsua" registered
16:59:01.134 sip_endpoint.c .Module "mod-invite" registered
16:59:01.204 alsa_dev.c ..ALSA driver found 21 devices
16:59:01.204 alsa_dev.c ..ALSA initialized
Hi Ming,
Stack trace for pjsystest :
(gdb) bt full
#0 __GI___pthread_timedjoin_ex (threadid=18344288135642611207, thread_return=0x7ffff68c8970, abstime=0x0, block=true) at pthread_join_common.c:86
pd = 0xfe9400ddfe63fe07
self = <optimized out>
result = <optimized out>
pd_result = <optimized out>
#1 0x000055555565d499 in pj_thread_join ()
No symbol table info available.
#2 0x00005555555f92cf in alsa_stream_stop ()
No symbol table info available.
#3 0x00005555555dddb9 in stop_sound_device.isra ()
No symbol table info available.
#4 0x0000555555578b45 in close_snd_dev ()
No symbol table info available.
#5 0x0000555555578f0e in close_snd_timer_cb ()
No symbol table info available.
#6 0x000055555566f2ba in pj_timer_heap_poll ()
No symbol table info available.
#7 0x00005555555ae45b in pjsip_endpt_handle_events2 ()
No symbol table info available.
#8 0x000055555556992e in pjsua_handle_events ()
No symbol table info available.
#9 0x0000555555569984 in worker_thread ()
No symbol table info available.
#10 0x000055555565d9a5 in thread_main ()
No symbol table info available.
#11 0x00007ffff7c0bf27 in start_thread (arg=<optimized out>) at pthread_create.c:479
ret = <optimized out>
pd = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737329796864, 3752310335381315807, 140737488345214, 140737488345215, 140737329794944, 140737329796864, -3752326114514689825, -3752327659091910433}, mask_was_saved = 0}},
priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = 0
#12 0x00007ffff7a40e0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
No locals.
Please let me know if there is any other information I can provide.
>Hi Ilias,
>
>Can you provide the stack trace so we can know where the segv occurred exactly?
>
>Regards,
>Ming
>
>On Thu, Feb 27, 2020 at 6:17 AM Ilias Clifton <adilias3 at gmx.com> wrote:
>>
>> Sending again in plain text...
>>
>> Hi All,
>>
>> I've been using pjsua on my void linux system for quite a while without issue. Unfortunately it's stopped working.
>>
>> pjsau starts up ok, but as soon as I attempt to make or receive a call, I get a segmentation fault - Can someone assist in troubleshooting?
>>
>> It appears to be audio device related. Audio works ok in other applications such as firefox and vlc.
>>
>> pjsua has been installed via the pjproject package via xbps.
>>
>> dmesg and syslog report:
>> pjsua[8940] general protection fault ip:7f268e92581d sp:7f268d88d0c8 error:0 in libc-2.30.so[7f268e7e9000+149000]
>>
>> Void linux is a 'rolling release' and I do upgrade regularly - going back through the logs it looks as though linux kernel was recently update from 5.4-5.4.13_2 to 5.4.19_1, and then a few days later from 5.4.19_1 to 5.4.21_1
>>
>> I can't see any recent updates to libc.
>>
>> I tried uninstalling the pjproject package and compiling pjproject manually - I get the same issue with the compiled version.
>>
>> I tried running pjsystest, and the the test wizard - it Segfaults when it tries to play the ring tone.
>>
>>
>> 16:59:01.131 os_core_unix.c !pjlib 2.10-dev for POSIX initialized
>> 16:59:01.134 sip_endpoint.c .Creating endpoint instance...
>> 16:59:01.134 pjlib .select() I/O Queue created (0x559368258220)
>> 16:59:01.134 sip_endpoint.c .Module "mod-msg-print" registered
>> 16:59:01.134 sip_transport.c .Transport manager created.
>> 16:59:01.134 pjsua_core.c .PJSUA state changed: NULL --> CREATED
>> 16:59:01.134 sip_endpoint.c .Module "mod-pjsua-log" registered
>> 16:59:01.134 sip_endpoint.c .Module "mod-tsx-layer" registered
>> 16:59:01.134 sip_endpoint.c .Module "mod-stateful-util" registered
>> 16:59:01.134 sip_endpoint.c .Module "mod-ua" registered
>> 16:59:01.134 sip_endpoint.c .Module "mod-100rel" registered
>> 16:59:01.134 sip_endpoint.c .Module "mod-pjsua" registered
>> 16:59:01.134 sip_endpoint.c .Module "mod-invite" registered
>> 16:59:01.204 alsa_dev.c ..ALSA driver found 21 devices
>> 16:59:01.204 alsa_dev.c ..ALSA initialized
...
IC
Ilias Clifton
Thu, Feb 27, 2020 2:25 AM
Hi Ming,
Stack trace for pjsystest :
(gdb) bt full
#0 __GI___pthread_timedjoin_ex (threadid=18344288135642611207, thread_return=0x7ffff68c8970, abstime=0x0, block=true) at pthread_join_common.c:86
pd = 0xfe9400ddfe63fe07
self = <optimized out>
result = <optimized out>
pd_result = <optimized out>
#1 0x000055555565d499 in pj_thread_join ()
No symbol table info available.
#2 0x00005555555f92cf in alsa_stream_stop ()
No symbol table info available.
#3 0x00005555555dddb9 in stop_sound_device.isra ()
No symbol table info available.
#4 0x0000555555578b45 in close_snd_dev ()
No symbol table info available.
#5 0x0000555555578f0e in close_snd_timer_cb ()
No symbol table info available.
#6 0x000055555566f2ba in pj_timer_heap_poll ()
No symbol table info available.
#7 0x00005555555ae45b in pjsip_endpt_handle_events2 ()
No symbol table info available.
#8 0x000055555556992e in pjsua_handle_events ()
No symbol table info available.
#9 0x0000555555569984 in worker_thread ()
No symbol table info available.
#10 0x000055555565d9a5 in thread_main ()
No symbol table info available.
#11 0x00007ffff7c0bf27 in start_thread (arg=<optimized out>) at pthread_create.c:479
ret = <optimized out>
pd = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737329796864, 3752310335381315807, 140737488345214, 140737488345215, 140737329794944, 140737329796864, -3752326114514689825, -3752327659091910433}, mask_was_saved = 0}},
priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = 0
#12 0x00007ffff7a40e0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
No locals.
Please let me know if there is any other information I can provide.
Hi Ilias,
Can you provide the stack trace so we can know where the segv occurred exactly?
Regards,
Ming
On Thu, Feb 27, 2020 at 6:17 AM Ilias Clifton <adilias3 at gmx.com> wrote:
Sending again in plain text...
Hi All,
I've been using pjsua on my void linux system for quite a while without issue. Unfortunately it's stopped working.
pjsau starts up ok, but as soon as I attempt to make or receive a call, I get a segmentation fault - Can someone assist in troubleshooting?
It appears to be audio device related. Audio works ok in other applications such as firefox and vlc.
pjsua has been installed via the pjproject package via xbps.
dmesg and syslog report:
pjsua[8940] general protection fault ip:7f268e92581d sp:7f268d88d0c8 error:0 in libc-2.30.so[7f268e7e9000+149000]
Void linux is a 'rolling release' and I do upgrade regularly - going back through the logs it looks as though linux kernel was recently update from 5.4-5.4.13_2 to 5.4.19_1, and then a few days later from 5.4.19_1 to 5.4.21_1
I can't see any recent updates to libc.
I tried uninstalling the pjproject package and compiling pjproject manually - I get the same issue with the compiled version.
I tried running pjsystest, and the the test wizard - it Segfaults when it tries to play the ring tone.
16:59:01.131 os_core_unix.c !pjlib 2.10-dev for POSIX initialized
16:59:01.134 sip_endpoint.c .Creating endpoint instance...
16:59:01.134 pjlib .select() I/O Queue created (0x559368258220)
16:59:01.134 sip_endpoint.c .Module "mod-msg-print" registered
16:59:01.134 sip_transport.c .Transport manager created.
16:59:01.134 pjsua_core.c .PJSUA state changed: NULL --> CREATED
16:59:01.134 sip_endpoint.c .Module "mod-pjsua-log" registered
16:59:01.134 sip_endpoint.c .Module "mod-tsx-layer" registered
16:59:01.134 sip_endpoint.c .Module "mod-stateful-util" registered
16:59:01.134 sip_endpoint.c .Module "mod-ua" registered
16:59:01.134 sip_endpoint.c .Module "mod-100rel" registered
16:59:01.134 sip_endpoint.c .Module "mod-pjsua" registered
16:59:01.134 sip_endpoint.c .Module "mod-invite" registered
16:59:01.204 alsa_dev.c ..ALSA driver found 21 devices
16:59:01.204 alsa_dev.c ..ALSA initialized
Hi Ming,
Stack trace for pjsystest :
(gdb) bt full
#0 __GI___pthread_timedjoin_ex (threadid=18344288135642611207, thread_return=0x7ffff68c8970, abstime=0x0, block=true) at pthread_join_common.c:86
pd = 0xfe9400ddfe63fe07
self = <optimized out>
result = <optimized out>
pd_result = <optimized out>
#1 0x000055555565d499 in pj_thread_join ()
No symbol table info available.
#2 0x00005555555f92cf in alsa_stream_stop ()
No symbol table info available.
#3 0x00005555555dddb9 in stop_sound_device.isra ()
No symbol table info available.
#4 0x0000555555578b45 in close_snd_dev ()
No symbol table info available.
#5 0x0000555555578f0e in close_snd_timer_cb ()
No symbol table info available.
#6 0x000055555566f2ba in pj_timer_heap_poll ()
No symbol table info available.
#7 0x00005555555ae45b in pjsip_endpt_handle_events2 ()
No symbol table info available.
#8 0x000055555556992e in pjsua_handle_events ()
No symbol table info available.
#9 0x0000555555569984 in worker_thread ()
No symbol table info available.
#10 0x000055555565d9a5 in thread_main ()
No symbol table info available.
#11 0x00007ffff7c0bf27 in start_thread (arg=<optimized out>) at pthread_create.c:479
ret = <optimized out>
pd = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737329796864, 3752310335381315807, 140737488345214, 140737488345215, 140737329794944, 140737329796864, -3752326114514689825, -3752327659091910433}, mask_was_saved = 0}},
priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = 0
#12 0x00007ffff7a40e0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
No locals.
Please let me know if there is any other information I can provide.
>Hi Ilias,
>
>Can you provide the stack trace so we can know where the segv occurred exactly?
>
>Regards,
>Ming
>
>On Thu, Feb 27, 2020 at 6:17 AM Ilias Clifton <adilias3 at gmx.com> wrote:
>>
>> Sending again in plain text...
>>
>> Hi All,
>>
>> I've been using pjsua on my void linux system for quite a while without issue. Unfortunately it's stopped working.
>>
>> pjsau starts up ok, but as soon as I attempt to make or receive a call, I get a segmentation fault - Can someone assist in troubleshooting?
>>
>> It appears to be audio device related. Audio works ok in other applications such as firefox and vlc.
>>
>> pjsua has been installed via the pjproject package via xbps.
>>
>> dmesg and syslog report:
>> pjsua[8940] general protection fault ip:7f268e92581d sp:7f268d88d0c8 error:0 in libc-2.30.so[7f268e7e9000+149000]
>>
>> Void linux is a 'rolling release' and I do upgrade regularly - going back through the logs it looks as though linux kernel was recently update from 5.4-5.4.13_2 to 5.4.19_1, and then a few days later from 5.4.19_1 to 5.4.21_1
>>
>> I can't see any recent updates to libc.
>>
>> I tried uninstalling the pjproject package and compiling pjproject manually - I get the same issue with the compiled version.
>>
>> I tried running pjsystest, and the the test wizard - it Segfaults when it tries to play the ring tone.
>>
>>
>> 16:59:01.131 os_core_unix.c !pjlib 2.10-dev for POSIX initialized
>> 16:59:01.134 sip_endpoint.c .Creating endpoint instance...
>> 16:59:01.134 pjlib .select() I/O Queue created (0x559368258220)
>> 16:59:01.134 sip_endpoint.c .Module "mod-msg-print" registered
>> 16:59:01.134 sip_transport.c .Transport manager created.
>> 16:59:01.134 pjsua_core.c .PJSUA state changed: NULL --> CREATED
>> 16:59:01.134 sip_endpoint.c .Module "mod-pjsua-log" registered
>> 16:59:01.134 sip_endpoint.c .Module "mod-tsx-layer" registered
>> 16:59:01.134 sip_endpoint.c .Module "mod-stateful-util" registered
>> 16:59:01.134 sip_endpoint.c .Module "mod-ua" registered
>> 16:59:01.134 sip_endpoint.c .Module "mod-100rel" registered
>> 16:59:01.134 sip_endpoint.c .Module "mod-pjsua" registered
>> 16:59:01.134 sip_endpoint.c .Module "mod-invite" registered
>> 16:59:01.204 alsa_dev.c ..ALSA driver found 21 devices
>> 16:59:01.204 alsa_dev.c ..ALSA initialized
...
M
Ming
Thu, Feb 27, 2020 3:04 AM
Hi Ilias,
With debugging info should be better.
On Thu, Feb 27, 2020 at 10:26 AM Ilias Clifton adilias3@gmx.com wrote:
Hi Ming,
Stack trace for pjsystest :
(gdb) bt full
#0 __GI___pthread_timedjoin_ex (threadid=18344288135642611207, thread_return=0x7ffff68c8970, abstime=0x0, block=true) at pthread_join_common.c:86
pd = 0xfe9400ddfe63fe07
self = <optimized out>
result = <optimized out>
pd_result = <optimized out>
#1 0x000055555565d499 in pj_thread_join ()
No symbol table info available.
#2 0x00005555555f92cf in alsa_stream_stop ()
No symbol table info available.
#3 0x00005555555dddb9 in stop_sound_device.isra ()
No symbol table info available.
#4 0x0000555555578b45 in close_snd_dev ()
No symbol table info available.
#5 0x0000555555578f0e in close_snd_timer_cb ()
No symbol table info available.
#6 0x000055555566f2ba in pj_timer_heap_poll ()
No symbol table info available.
#7 0x00005555555ae45b in pjsip_endpt_handle_events2 ()
No symbol table info available.
#8 0x000055555556992e in pjsua_handle_events ()
No symbol table info available.
#9 0x0000555555569984 in worker_thread ()
No symbol table info available.
#10 0x000055555565d9a5 in thread_main ()
No symbol table info available.
#11 0x00007ffff7c0bf27 in start_thread (arg=<optimized out>) at pthread_create.c:479
ret = <optimized out>
pd = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737329796864, 3752310335381315807, 140737488345214, 140737488345215, 140737329794944, 140737329796864, -3752326114514689825, -3752327659091910433}, mask_was_saved = 0}},
priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = 0
#12 0x00007ffff7a40e0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
No locals.
Please let me know if there is any other information I can provide.
Hi Ilias,
Can you provide the stack trace so we can know where the segv occurred exactly?
Regards,
Ming
On Thu, Feb 27, 2020 at 6:17 AM Ilias Clifton <adilias3 at gmx.com> wrote:
Sending again in plain text...
Hi All,
I've been using pjsua on my void linux system for quite a while without issue. Unfortunately it's stopped working.
pjsau starts up ok, but as soon as I attempt to make or receive a call, I get a segmentation fault - Can someone assist in troubleshooting?
It appears to be audio device related. Audio works ok in other applications such as firefox and vlc.
pjsua has been installed via the pjproject package via xbps.
dmesg and syslog report:
pjsua[8940] general protection fault ip:7f268e92581d sp:7f268d88d0c8 error:0 in libc-2.30.so[7f268e7e9000+149000]
Void linux is a 'rolling release' and I do upgrade regularly - going back through the logs it looks as though linux kernel was recently update from 5.4-5.4.13_2 to 5.4.19_1, and then a few days later from 5.4.19_1 to 5.4.21_1
I can't see any recent updates to libc.
I tried uninstalling the pjproject package and compiling pjproject manually - I get the same issue with the compiled version.
I tried running pjsystest, and the the test wizard - it Segfaults when it tries to play the ring tone.
16:59:01.131 os_core_unix.c !pjlib 2.10-dev for POSIX initialized
16:59:01.134 sip_endpoint.c .Creating endpoint instance...
16:59:01.134 pjlib .select() I/O Queue created (0x559368258220)
16:59:01.134 sip_endpoint.c .Module "mod-msg-print" registered
16:59:01.134 sip_transport.c .Transport manager created.
16:59:01.134 pjsua_core.c .PJSUA state changed: NULL --> CREATED
16:59:01.134 sip_endpoint.c .Module "mod-pjsua-log" registered
16:59:01.134 sip_endpoint.c .Module "mod-tsx-layer" registered
16:59:01.134 sip_endpoint.c .Module "mod-stateful-util" registered
16:59:01.134 sip_endpoint.c .Module "mod-ua" registered
16:59:01.134 sip_endpoint.c .Module "mod-100rel" registered
16:59:01.134 sip_endpoint.c .Module "mod-pjsua" registered
16:59:01.134 sip_endpoint.c .Module "mod-invite" registered
16:59:01.204 alsa_dev.c ..ALSA driver found 21 devices
16:59:01.204 alsa_dev.c ..ALSA initialized
Hi Ilias,
With debugging info should be better.
On Thu, Feb 27, 2020 at 10:26 AM Ilias Clifton <adilias3@gmx.com> wrote:
>
> Hi Ming,
>
> Stack trace for pjsystest :
>
> (gdb) bt full
> #0 __GI___pthread_timedjoin_ex (threadid=18344288135642611207, thread_return=0x7ffff68c8970, abstime=0x0, block=true) at pthread_join_common.c:86
> pd = 0xfe9400ddfe63fe07
> self = <optimized out>
> result = <optimized out>
> pd_result = <optimized out>
> #1 0x000055555565d499 in pj_thread_join ()
> No symbol table info available.
> #2 0x00005555555f92cf in alsa_stream_stop ()
> No symbol table info available.
> #3 0x00005555555dddb9 in stop_sound_device.isra ()
> No symbol table info available.
> #4 0x0000555555578b45 in close_snd_dev ()
> No symbol table info available.
> #5 0x0000555555578f0e in close_snd_timer_cb ()
> No symbol table info available.
> #6 0x000055555566f2ba in pj_timer_heap_poll ()
> No symbol table info available.
> #7 0x00005555555ae45b in pjsip_endpt_handle_events2 ()
> No symbol table info available.
> #8 0x000055555556992e in pjsua_handle_events ()
> No symbol table info available.
> #9 0x0000555555569984 in worker_thread ()
> No symbol table info available.
> #10 0x000055555565d9a5 in thread_main ()
> No symbol table info available.
> #11 0x00007ffff7c0bf27 in start_thread (arg=<optimized out>) at pthread_create.c:479
> ret = <optimized out>
> pd = <optimized out>
> unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737329796864, 3752310335381315807, 140737488345214, 140737488345215, 140737329794944, 140737329796864, -3752326114514689825, -3752327659091910433}, mask_was_saved = 0}},
> priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
> not_first_call = 0
> #12 0x00007ffff7a40e0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
> No locals.
>
>
>
> Please let me know if there is any other information I can provide.
>
>
>
>
> >Hi Ilias,
> >
> >Can you provide the stack trace so we can know where the segv occurred exactly?
> >
> >Regards,
> >Ming
> >
> >On Thu, Feb 27, 2020 at 6:17 AM Ilias Clifton <adilias3 at gmx.com> wrote:
> >>
> >> Sending again in plain text...
> >>
> >> Hi All,
> >>
> >> I've been using pjsua on my void linux system for quite a while without issue. Unfortunately it's stopped working.
> >>
> >> pjsau starts up ok, but as soon as I attempt to make or receive a call, I get a segmentation fault - Can someone assist in troubleshooting?
> >>
> >> It appears to be audio device related. Audio works ok in other applications such as firefox and vlc.
> >>
> >> pjsua has been installed via the pjproject package via xbps.
> >>
> >> dmesg and syslog report:
> >> pjsua[8940] general protection fault ip:7f268e92581d sp:7f268d88d0c8 error:0 in libc-2.30.so[7f268e7e9000+149000]
> >>
> >> Void linux is a 'rolling release' and I do upgrade regularly - going back through the logs it looks as though linux kernel was recently update from 5.4-5.4.13_2 to 5.4.19_1, and then a few days later from 5.4.19_1 to 5.4.21_1
> >>
> >> I can't see any recent updates to libc.
> >>
> >> I tried uninstalling the pjproject package and compiling pjproject manually - I get the same issue with the compiled version.
> >>
> >> I tried running pjsystest, and the the test wizard - it Segfaults when it tries to play the ring tone.
> >>
> >>
> >> 16:59:01.131 os_core_unix.c !pjlib 2.10-dev for POSIX initialized
> >> 16:59:01.134 sip_endpoint.c .Creating endpoint instance...
> >> 16:59:01.134 pjlib .select() I/O Queue created (0x559368258220)
> >> 16:59:01.134 sip_endpoint.c .Module "mod-msg-print" registered
> >> 16:59:01.134 sip_transport.c .Transport manager created.
> >> 16:59:01.134 pjsua_core.c .PJSUA state changed: NULL --> CREATED
> >> 16:59:01.134 sip_endpoint.c .Module "mod-pjsua-log" registered
> >> 16:59:01.134 sip_endpoint.c .Module "mod-tsx-layer" registered
> >> 16:59:01.134 sip_endpoint.c .Module "mod-stateful-util" registered
> >> 16:59:01.134 sip_endpoint.c .Module "mod-ua" registered
> >> 16:59:01.134 sip_endpoint.c .Module "mod-100rel" registered
> >> 16:59:01.134 sip_endpoint.c .Module "mod-pjsua" registered
> >> 16:59:01.134 sip_endpoint.c .Module "mod-invite" registered
> >> 16:59:01.204 alsa_dev.c ..ALSA driver found 21 devices
> >> 16:59:01.204 alsa_dev.c ..ALSA initialized
>
> ...
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip@lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
IC
Ilias Clifton
Thu, Feb 27, 2020 3:23 AM
Hi Ming,
with CFLAGS += -g in user.mak
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt full
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
set = {__val = {0, 140737347587216, 4222451712, 140737219922896, 140737219922997, 140737219922896, 140737219922896, 140737219923064, 140737219923196, 140737219922896, 140737219923196, 0, 0, 0, 0, 0}}
pid = <optimized out>
tid = <optimized out>
ret = <optimized out>
#1 0x00007ffff796955b in __GI_abort () at abort.c:79
save_stage = 1
act = {__sigaction_handler = {sa_handler = 0x7ffff0000bd0, sa_sigaction = 0x7ffff0000bd0}, sa_mask = {__val = {0, 140737219922896, 0, 0, 0, 0, 21474836480, 0, 140737321266176, 140737348708128, 140737348692792, 0,
1882042535986576384, 140737348677678, 140737304481792, 140737348692792}}, sa_flags = 1432959306, sa_restorer = 0x766}
sigs = {__val = {32, 0 <repeats 15 times>}}
#2 0x00007ffff796942f in __assert_fail_base (fmt=0x7ffff7aceb38 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x555555693b38 "frame->size == conf->samples_per_frame * conf->bits_per_sample / 8",
file=0x55555569394a "../src/pjmedia/conference.c", line=1894, function=<optimized out>) at assert.c:92
str = 0x7ffff0000bd0 ""
total = 4096
#3 0x00007ffff7978112 in __GI___assert_fail (assertion=assertion@entry=0x555555693b38 "frame->size == conf->samples_per_frame * conf->bits_per_sample / 8", file=file@entry=0x55555569394a "../src/pjmedia/conference.c",
line=line@entry=1894, function=function@entry=0x555555694130 <PRETTY_FUNCTION.7819> "get_frame") at assert.c:101
No locals.
#4 0x00005555555d85f0 in get_frame (this_port=<optimized out>, frame=0x7ffff60a6e40) at ../src/pjmedia/conference.c:1894
conf = 0x555555794d38
speaker_frame_type = PJMEDIA_FRAME_TYPE_NONE
ci = <optimized out>
cj = <optimized out>
i = <optimized out>
j = <optimized out>
p_in = <optimized out>
PRETTY_FUNCTION = "get_frame"
#5 0x00005555555e7955 in play_cb (user_data=0x55555580e538, frame=0x7ffff60a6e40) at ../src/pjmedia/sound_port.c:88
snd_port = 0x55555580e538
port = <optimized out>
required_size = <optimized out>
status = <optimized out>
PRETTY_FUNCTION = "play_cb"
#6 0x00005555556052ff in pb_thread_func (arg=0x55555580f548) at ../src/pjmedia-audiodev/alsa_dev.c:518
frame = {type = PJMEDIA_FRAME_TYPE_AUDIO, buf = 0x55555580f648, size = 340, timestamp = {u32 = {lo = 340, hi = 0}, u64 = 340}, bit_info = 0}
stream = 0x55555580f548
pcm = 0x555555813160
size = 340
nframes = 170
user_data = 0x55555580e538
buf = 0x55555580f648 ""
tstamp = {u32 = {lo = 340, hi = 0}, u64 = 340}
result = <optimized out>
#7 0x000055555566c990 in thread_main (param=0x555555813710) at ../src/pj/os_core_unix.c:541
rec = 0x555555813710
result = <optimized out>
rc = <optimized out>
PRETTY_FUNCTION = "thread_main"
#8 0x00007ffff7c0bf27 in start_thread (arg=<optimized out>) at pthread_create.c:479
ret = <optimized out>
pd = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737321268992, -6001230096311842423, 140737488346366, 140737488346367, 140737321267072, 140737321268992, 6001245588768885129, 6001247183811709321}, mask_was_saved = 0}},
priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = 0
#9 0x00007ffff7a40e0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
No locals.
Hi Ilias,
With debugging info should be better.
On Thu, Feb 27, 2020 at 10:26 AM Ilias Clifton adilias3@gmx.com wrote:
Hi Ming,
Stack trace for pjsystest :
(gdb) bt full
#0 __GI___pthread_timedjoin_ex (threadid=18344288135642611207, thread_return=0x7ffff68c8970, abstime=0x0, block=true) at pthread_join_common.c:86
pd = 0xfe9400ddfe63fe07
self = <optimized out>
result = <optimized out>
pd_result = <optimized out>
#1 0x000055555565d499 in pj_thread_join ()
No symbol table info available.
#2 0x00005555555f92cf in alsa_stream_stop ()
No symbol table info available.
#3 0x00005555555dddb9 in stop_sound_device.isra ()
No symbol table info available.
#4 0x0000555555578b45 in close_snd_dev ()
No symbol table info available.
#5 0x0000555555578f0e in close_snd_timer_cb ()
No symbol table info available.
#6 0x000055555566f2ba in pj_timer_heap_poll ()
No symbol table info available.
#7 0x00005555555ae45b in pjsip_endpt_handle_events2 ()
No symbol table info available.
#8 0x000055555556992e in pjsua_handle_events ()
No symbol table info available.
#9 0x0000555555569984 in worker_thread ()
No symbol table info available.
#10 0x000055555565d9a5 in thread_main ()
No symbol table info available.
#11 0x00007ffff7c0bf27 in start_thread (arg=<optimized out>) at pthread_create.c:479
ret = <optimized out>
pd = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737329796864, 3752310335381315807, 140737488345214, 140737488345215, 140737329794944, 140737329796864, -3752326114514689825, -3752327659091910433}, mask_was_saved = 0}},
priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = 0
#12 0x00007ffff7a40e0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
No locals.
Please let me know if there is any other information I can provide.
Hi Ilias,
Can you provide the stack trace so we can know where the segv occurred exactly?
Regards,
Ming
On Thu, Feb 27, 2020 at 6:17 AM Ilias Clifton <adilias3 at gmx.com> wrote:
Sending again in plain text...
Hi Ming,
with CFLAGS += -g in user.mak
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt full
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
set = {__val = {0, 140737347587216, 4222451712, 140737219922896, 140737219922997, 140737219922896, 140737219922896, 140737219923064, 140737219923196, 140737219922896, 140737219923196, 0, 0, 0, 0, 0}}
pid = <optimized out>
tid = <optimized out>
ret = <optimized out>
#1 0x00007ffff796955b in __GI_abort () at abort.c:79
save_stage = 1
act = {__sigaction_handler = {sa_handler = 0x7ffff0000bd0, sa_sigaction = 0x7ffff0000bd0}, sa_mask = {__val = {0, 140737219922896, 0, 0, 0, 0, 21474836480, 0, 140737321266176, 140737348708128, 140737348692792, 0,
1882042535986576384, 140737348677678, 140737304481792, 140737348692792}}, sa_flags = 1432959306, sa_restorer = 0x766}
sigs = {__val = {32, 0 <repeats 15 times>}}
#2 0x00007ffff796942f in __assert_fail_base (fmt=0x7ffff7aceb38 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x555555693b38 "frame->size == conf->samples_per_frame * conf->bits_per_sample / 8",
file=0x55555569394a "../src/pjmedia/conference.c", line=1894, function=<optimized out>) at assert.c:92
str = 0x7ffff0000bd0 ""
total = 4096
#3 0x00007ffff7978112 in __GI___assert_fail (assertion=assertion@entry=0x555555693b38 "frame->size == conf->samples_per_frame * conf->bits_per_sample / 8", file=file@entry=0x55555569394a "../src/pjmedia/conference.c",
line=line@entry=1894, function=function@entry=0x555555694130 <__PRETTY_FUNCTION__.7819> "get_frame") at assert.c:101
No locals.
#4 0x00005555555d85f0 in get_frame (this_port=<optimized out>, frame=0x7ffff60a6e40) at ../src/pjmedia/conference.c:1894
conf = 0x555555794d38
speaker_frame_type = PJMEDIA_FRAME_TYPE_NONE
ci = <optimized out>
cj = <optimized out>
i = <optimized out>
j = <optimized out>
p_in = <optimized out>
__PRETTY_FUNCTION__ = "get_frame"
#5 0x00005555555e7955 in play_cb (user_data=0x55555580e538, frame=0x7ffff60a6e40) at ../src/pjmedia/sound_port.c:88
snd_port = 0x55555580e538
port = <optimized out>
required_size = <optimized out>
status = <optimized out>
__PRETTY_FUNCTION__ = "play_cb"
#6 0x00005555556052ff in pb_thread_func (arg=0x55555580f548) at ../src/pjmedia-audiodev/alsa_dev.c:518
frame = {type = PJMEDIA_FRAME_TYPE_AUDIO, buf = 0x55555580f648, size = 340, timestamp = {u32 = {lo = 340, hi = 0}, u64 = 340}, bit_info = 0}
stream = 0x55555580f548
pcm = 0x555555813160
size = 340
nframes = 170
user_data = 0x55555580e538
buf = 0x55555580f648 ""
tstamp = {u32 = {lo = 340, hi = 0}, u64 = 340}
result = <optimized out>
#7 0x000055555566c990 in thread_main (param=0x555555813710) at ../src/pj/os_core_unix.c:541
rec = 0x555555813710
result = <optimized out>
rc = <optimized out>
__PRETTY_FUNCTION__ = "thread_main"
#8 0x00007ffff7c0bf27 in start_thread (arg=<optimized out>) at pthread_create.c:479
ret = <optimized out>
pd = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737321268992, -6001230096311842423, 140737488346366, 140737488346367, 140737321267072, 140737321268992, 6001245588768885129, 6001247183811709321}, mask_was_saved = 0}},
priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = 0
#9 0x00007ffff7a40e0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
No locals.
>Hi Ilias,
>
>With debugging info should be better.
>
>On Thu, Feb 27, 2020 at 10:26 AM Ilias Clifton <adilias3@gmx.com> wrote:
>>
>> Hi Ming,
>>
>> Stack trace for pjsystest :
>>
>> (gdb) bt full
>> #0 __GI___pthread_timedjoin_ex (threadid=18344288135642611207, thread_return=0x7ffff68c8970, abstime=0x0, block=true) at pthread_join_common.c:86
>> pd = 0xfe9400ddfe63fe07
>> self = <optimized out>
>> result = <optimized out>
>> pd_result = <optimized out>
>> #1 0x000055555565d499 in pj_thread_join ()
>> No symbol table info available.
>> #2 0x00005555555f92cf in alsa_stream_stop ()
>> No symbol table info available.
>> #3 0x00005555555dddb9 in stop_sound_device.isra ()
>> No symbol table info available.
>> #4 0x0000555555578b45 in close_snd_dev ()
>> No symbol table info available.
>> #5 0x0000555555578f0e in close_snd_timer_cb ()
>> No symbol table info available.
>> #6 0x000055555566f2ba in pj_timer_heap_poll ()
>> No symbol table info available.
>> #7 0x00005555555ae45b in pjsip_endpt_handle_events2 ()
>> No symbol table info available.
>> #8 0x000055555556992e in pjsua_handle_events ()
>> No symbol table info available.
>> #9 0x0000555555569984 in worker_thread ()
>> No symbol table info available.
>> #10 0x000055555565d9a5 in thread_main ()
>> No symbol table info available.
>> #11 0x00007ffff7c0bf27 in start_thread (arg=<optimized out>) at pthread_create.c:479
>> ret = <optimized out>
>> pd = <optimized out>
>> unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737329796864, 3752310335381315807, 140737488345214, 140737488345215, 140737329794944, 140737329796864, -3752326114514689825, -3752327659091910433}, mask_was_saved = 0}},
>> priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
>> not_first_call = 0
>> #12 0x00007ffff7a40e0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
>> No locals.
>>
>>
>>
>> Please let me know if there is any other information I can provide.
>>
>>
>>
>>
>> >Hi Ilias,
>> >
>> >Can you provide the stack trace so we can know where the segv occurred exactly?
>> >
>> >Regards,
>> >Ming
>> >
>> >On Thu, Feb 27, 2020 at 6:17 AM Ilias Clifton <adilias3 at gmx.com> wrote:
>> >>
>> >> Sending again in plain text...
...