Bug#882145: asterisk: pjsip show history causes segmentation fault

2020-08-28 Thread Bernhard Schmidt
Control: forward -1 https://issues.asterisk.org/jira/browse/ASTERISK-28854

Am 14.08.20 um 09:47 schrieb Benoit Panizzon:

Hi,

>> Benoit, are you using IPv6? If yes,
>> https://issues.asterisk.org/jira/browse/ASTERISK-28854 could be the
>> culprit.
> 
> Well, why should I use that old legacy phased out ipv4 protocol? :-)

I agree :-)

I have verified the patch and it works fine. Stable upload fixing this
bug has been requested.

Bernhard



Bug#882145: asterisk: pjsip show history causes segmentation fault

2020-08-14 Thread Benoit Panizzon
Hi Bernie

> Benoit, are you using IPv6? If yes,
> https://issues.asterisk.org/jira/browse/ASTERISK-28854 could be the
> culprit.

Well, why should I use that old legacy phased out ipv4 protocol? :-)

Thank you for the update!

-BenoƮt-



Bug#882145: asterisk: pjsip show history causes segmentation fault

2020-07-31 Thread Bernhard Schmidt
> 0x7fff8d3a11d0 in sprint_list_entry
> (entry=entry@entry=0x55d91ff8, line=line@entry=0x7fffabc902b0
> "[2001:4ca0:0:10a:215:65ff:feb7:4e7e]:11922", len=256) at
> res_pjsip_history.c:663

Benoit, are you using IPv6? If yes,
https://issues.asterisk.org/jira/browse/ASTERISK-28854 could be the
culprit.

Bernhard



Bug#882145: asterisk: pjsip show history causes segmentation fault

2019-09-08 Thread Benoit Panizzon
Package: asterisk
Version: 1:16.2.1~dfsg-1+deb10u1
Followup-For: Bug #882145

Dear Maintainer,

Bug still present in Buster:

Asterisk 16.2.1~dfsg-1+deb10u1

[5016293.453591] asterisk[26466]: segfault at 7fb5 ip 7fb59afd5880 
sp 7fb5998bebb0 error 4 in res_pjsip_history.so[7fb59afd4000+4000]

Noone else ever using pjsip history?

-Benoit-

-- System Information:
Debian Release: 10.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8), 
LANGUAGE=de_CH:de (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages asterisk depends on:
ii  adduser  3.118
ii  asterisk-config  1:16.2.1~dfsg-1+deb10u1
ii  asterisk-core-sounds-en  1.6.1-1
ii  asterisk-modules 1:16.2.1~dfsg-1+deb10u1
ii  libc62.28-10
ii  libcap2  1:2.25-2
ii  libedit2 3.1-20181209-1
ii  libjansson4  2.12-1
ii  libpopt0 1.16-12
ii  libsqlite3-0 3.27.2-3
ii  libssl1.11.1.1c-1
ii  libsystemd0  241-7~deb10u1
ii  liburiparser10.9.1-1
ii  libuuid1 2.33.1-0.1
ii  libxml2  2.9.4+dfsg1-7+b3
ii  libxslt1.1   1.1.32-2.1~deb10u1
ii  lsb-base 10.2019051400

Versions of packages asterisk recommends:
ii  asterisk-moh-opsound-gsm 2.03-1
ii  asterisk-voicemail [asterisk-voicemail-storage]  1:16.2.1~dfsg-1+deb10u1
ii  sox  14.4.2+git20190427-1

Versions of packages asterisk suggests:
pn  asterisk-dahdi   
pn  asterisk-dev 
pn  asterisk-doc 
pn  asterisk-ooh323  
pn  asterisk-opus
pn  asterisk-vpb 

-- no debconf information



Bug#882145: asterisk: pjsip show history causes segmentation fault

2017-11-20 Thread Bernhard Schmidt
Control: tags -1 + confirmed

On Sun, Nov 19, 2017 at 04:59:30PM +0100, Benoit Panizzon wrote:

Hi,

> I could reproduce apparently two different segmentation faults by doing the 
> following:
> 
> pjsip set history on
> pjsip show history
> 
> [8677620.301738] asterisk[24252]: segfault at 7fb6 ip 
> 7fb5f434426a sp 7fb623ffdf80 error 4 in 
> res_pjsip_history.so[7fb5f4341000+6000]
> [8677680.807810] asterisk[25015]: segfault at 7f22 ip 
> 7f21b822c26a sp 7f21ebffdf80 error 4 in 
> res_pjsip_history.so[7f21b8229000+6000]
> [8677741.313448] asterisk[25324]: segfault at 21000 ip 7f02251d8800 sp 
> 7f01a0f62788 error 4 in libc-2.24.so[7f0225158000+195000]
> 
> As I am on the task of migrating from chan_sip to pjsip, my only config at 
> the moment is one phone, just to figure out how pjsip exactly works:

FTR, I can reproduce this. The backtrace is 

0x7fff8d3a11d0 in sprint_list_entry (entry=entry@entry=0x55d91ff8, 
line=line@entry=0x7fffabc902b0 "[2001:4ca0:0:10a:215:65ff:feb7:4e7e]:11922", 
len=256) at res_pjsip_history.c:663
663 res_pjsip_history.c: No such file or directory.
(gdb) bt
#0  0x7fff8d3a11d0 in sprint_list_entry (entry=entry@entry=0x55d91ff8, 
line=line@entry=0x7fffabc902b0 "[2001:4ca0:0:10a:215:65ff:feb7:4e7e]:11922", 
len=256) at res_pjsip_history.c:663
#1  0x7fff8d3a24d3 in history_on_tx_msg (tdata=) at 
res_pjsip_history.c:711
#2  0x7fffd262321e in ?? () from /usr/lib/x86_64-linux-gnu/libpjsip.so.2
#3  0x7fffd2629a62 in pjsip_transport_send () from 
/usr/lib/x86_64-linux-gnu/libpjsip.so.2
#4  0x7fffd2624c53 in ?? () from /usr/lib/x86_64-linux-gnu/libpjsip.so.2
#5  0x7fffd2624f72 in ?? () from /usr/lib/x86_64-linux-gnu/libpjsip.so.2
#6  0x7fffd262824e in pjsip_resolve () from 
/usr/lib/x86_64-linux-gnu/libpjsip.so.2
#7  0x7fffd2626b4d in pjsip_endpt_send_request_stateless () from 
/usr/lib/x86_64-linux-gnu/libpjsip.so.2
#8  0x7fffd2636f6f in ?? () from /usr/lib/x86_64-linux-gnu/libpjsip.so.2
#9  0x7fffd2637456 in ?? () from /usr/lib/x86_64-linux-gnu/libpjsip.so.2
#10 0x7fffd26395b7 in pjsip_tsx_send_msg () from 
/usr/lib/x86_64-linux-gnu/libpjsip.so.2
#11 0x7fffd2639a8f in pjsip_endpt_send_request () from 
/usr/lib/x86_64-linux-gnu/libpjsip.so.2
#12 0x7fffaf99b319 in endpt_send_request 
(endpoint=endpoint@entry=0x55f5e058, tdata=tdata@entry=0x55f7bc68, 
timeout=timeout@entry=3000, token=token@entry=0x55ec7b58, 
cb=0x7fffaf99b510 ) at res_pjsip.c:3609
#13 0x7fffaf99dd58 in ast_sip_send_out_of_dialog_request 
(tdata=0x55f7bc68, endpoint=endpoint@entry=0x55f5e058, timeout=3000, 
token=token@entry=0x55fc8d08, 
callback=callback@entry=0x7fffaf9a1590 ) at 
res_pjsip.c:3756
#14 0x7fffaf9a12aa in qualify_contact (endpoint=endpoint@entry=0x0, 
contact=contact@entry=0x55fc8d08) at res_pjsip/pjsip_options.c:444
#15 0x7fffaf9a1533 in qualify_contact_task (obj=0x55fc8d08) at 
res_pjsip/pjsip_options.c:519
#16 0x556f80e8 in ast_taskprocessor_execute ()
#17 0x556ffd90 in ?? ()
#18 0x556f80e8 in ast_taskprocessor_execute ()
#19 0x556ff764 in ?? ()
#20 0x55707d7c in ?? ()
#21 0x75d4a494 in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#22 0x74954aff in clone () from /lib/x86_64-linux-gnu/libc.so.6

Unfortunately I did not find an obvious reason and I could not find an
upstream bug as well. 

I currently don't have much time to dive into this. If you have time
verifying this on sid would be helpful.

Bernhard



Bug#882145: asterisk: pjsip show history causes segmentation fault

2017-11-19 Thread Benoit Panizzon
Package: asterisk
Version: 1:13.14.1~dfsg-2+deb9u2
Severity: normal

Dear Maintainer,

I could reproduce apparently two different segmentation faults by doing the 
following:

pjsip set history on
pjsip show history

[8677620.301738] asterisk[24252]: segfault at 7fb6 ip 7fb5f434426a 
sp 7fb623ffdf80 error 4 in res_pjsip_history.so[7fb5f4341000+6000]
[8677680.807810] asterisk[25015]: segfault at 7f22 ip 7f21b822c26a 
sp 7f21ebffdf80 error 4 in res_pjsip_history.so[7f21b8229000+6000]
[8677741.313448] asterisk[25324]: segfault at 21000 ip 7f02251d8800 sp 
7f01a0f62788 error 4 in libc-2.24.so[7f0225158000+195000]

As I am on the task of migrating from chan_sip to pjsip, my only config at the 
moment is one phone, just to figure out how pjsip exactly works:

[transport-udp]
type=transport
protocol=udp
bind=[::]:5061

[11]
type=endpoint
transport=transport-udp
context=from-benoit
disallow=all
allow=g722
allow=alaw
allow=gsm
auth=11
aors=11
callerid=(removed in this bugreport)
;ice_support=yes
qualify_frequency=10
mailboxes=11
voicemail_extension=411

[11]
type=auth
auth_type=userpass
password=(remove in bugreprt)
username=11

[11]
type=aor
max_contacts=1

-Benoit-

-- System Information:
Debian Release: 9.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8), 
LANGUAGE=de_CH:de (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages asterisk depends on:
ii  adduser  3.115
ii  asterisk-config  1:13.14.1~dfsg-2+deb9u2
ii  asterisk-core-sounds-en  1.4.27-1
ii  asterisk-modules 1:13.14.1~dfsg-2+deb9u2
ii  init-system-helpers  1.48
ii  libbsd0  0.8.3-1
ii  libc62.24-11+deb9u1
ii  libcap2  1:2.25-1
ii  libedit2 3.1-20160903-3
ii  libgcc1  1:6.3.0-18
ii  libjansson4  2.9-1
ii  libncurses5  6.0+20161126-1
ii  libpopt0 1.16-10+b2
ii  libsqlite3-0 3.16.2-5
ii  libssl1.11.1.0f-3+deb9u1
ii  libstdc++6   6.3.0-18
ii  libsystemd0  232-25+deb9u1
ii  libtinfo56.0+20161126-1
ii  liburiparser10.8.4-1
ii  libuuid1 2.29.2-1
ii  libxml2  2.9.4+dfsg1-2.2+deb9u1
ii  libxslt1.1   1.1.29-2.1
ii  lsb-base 9.20161125

Versions of packages asterisk recommends:
ii  asterisk-moh-opsound-gsm 2.03-1
ii  asterisk-voicemail [asterisk-voicemail-storage]  1:13.14.1~dfsg-2+deb9u2
ii  sox  14.4.1-5+b2

Versions of packages asterisk suggests:
pn  asterisk-dahdi   
pn  asterisk-dev 
pn  asterisk-doc 
pn  asterisk-ooh323  
pn  asterisk-opus
pn  asterisk-vpb 

-- no debconf information