linphone segfaults when receiving messages from a Linphone account

  • Open
  • quality assurance status badge
Details
3 participants
  • Christopher Howard
  • Maxim Cournoyer
  • Raghav Gururajan
Owner
unassigned
Submitted by
Christopher Howard
Severity
normal
C
C
Christopher Howard wrote on 7 Apr 2021 19:16
Ongoing difficulities after linphoneqt -> linphone-desktop transition
(name . bug-guix)(address . bug-guix@gnu.org)
f6a17f193932d9f3c1d1a2290541b40efd40a4c4.camel@librehacker.com
Hi, I've been having difficulties since the the recent linphone
updates. I know some work has been done on the package in recent
commits, so just a few minutes ago I ran

guix time-machine -- environment --ad-hoc linphone-desktop

christopher@theoden ~ [env]$ guix describe
Generation 14 Apr 01 2021 13:21:37 (current)
guix 079a7f2
branch: master
commit: 079a7f2c65c51da7b53b0e5ef44c516dc8eaab6e

The two problems I get running the program are:

(1) I get non-descript error icons when I send messages to contacts
(though the messages seem to get through)

(2) old messages do not appear when I start the application

(3) messages from others appear in notifications window but not in the
app screen

(4) sometimes get a segfault upon replying to a message

Ideally I should test with a clean linphone profile but haven't gotten
to it yet due to being busy.

For now I am using an inferior to run linphoneqt from commit
3f1b2bd322b6cdba99a43d08e5e8464f7424cbc5, which still works great.

--
Christopher Howard
Attachment: file
C
C
Christopher Howard wrote on 7 Apr 2021 19:20
(address . 47641@debbugs.gnu.org)
aa66f5ac2713c89439c3f4f5a39adc0b32b0fd4c.camel@librehacker.com
My system information:

christopher@theoden ~$ neofetch --stdout
christopher@theoden
-------------------
OS: Guix System 079a7f2c65c51da7b53b0e5ef44c516dc8eaab6e x86_64
Host: OptiPlex 9020 00
Kernel: 5.11.11-gnu
Uptime: 1 day, 20 hours, 39 mins
Packages: 92 (guix-system), 102 (guix-user)
Shell: bash 5.0.16
Resolution: 1920x1080
DE: GNOME
Theme: Adwaita [GTK2/3]
Icons: Adwaita [GTK2/3]
Terminal: kitty
CPU: Intel i5-4570 (4) @ 3.600GHz
GPU: Intel HD Graphics
GPU: AMD ATI Radeon HD 8490 / R5 235X OEM
Memory: 3393MiB / 7871MiB

--
Christopher Howard
Attachment: file
M
M
Maxim Cournoyer wrote on 19 Apr 2021 04:43
(name . Christopher Howard)(address . christopher@librehacker.com)
87lf9fhu4h.fsf@gmail.com
Hi Christopher!

Christopher Howard <christopher@librehacker.com> writes:

Toggle quote (25 lines)
> Hi, I've been having difficulties since the the recent linphone
> updates. I know some work has been done on the package in recent
> commits, so just a few minutes ago I ran
>
> guix time-machine -- environment --ad-hoc linphone-desktop
>
> christopher@theoden ~ [env]$ guix describe
> Generation 14 Apr 01 2021 13:21:37 (current)
> guix 079a7f2
> repository URL: https://git.savannah.gnu.org/git/guix.git
> branch: master
> commit: 079a7f2c65c51da7b53b0e5ef44c516dc8eaab6e
>
> The two problems I get running the program are:
>
> (1) I get non-descript error icons when I send messages to contacts
> (though the messages seem to get through)
>
> (2) old messages do not appear when I start the application
>
> (3) messages from others appear in notifications window but not in the
> app screen
>
> (4) sometimes get a segfault upon replying to a message

Hmm, it seems the problem strictly has to do with messaging? That would
explain how my testing of the application failed to reveal it as I don't
currently used that feature (I use it for SIP calls only).

Is someone else equipped and able to reproduce it? Perhaps Raghav
(CC'd)?

Sorry for the breakage!

Maxim
R
R
Raghav Gururajan wrote on 22 Apr 2021 07:43
(address . 47641@debbugs.gnu.org)
c2aeb271-655b-e49b-1d18-62b76cb79bb9@raghavgururajan.name
Hi Christopher and Maxim,

Toggle quote (25 lines)
>> Hi, I've been having difficulties since the the recent linphone
>> updates. I know some work has been done on the package in recent
>> commits, so just a few minutes ago I ran
>>
>> guix time-machine -- environment --ad-hoc linphone-desktop
>>
>> christopher@theoden ~ [env]$ guix describe
>> Generation 14 Apr 01 2021 13:21:37 (current)
>> guix 079a7f2
>> repository URL: https://git.savannah.gnu.org/git/guix.git
>> branch: master
>> commit: 079a7f2c65c51da7b53b0e5ef44c516dc8eaab6e
>>
>> The two problems I get running the program are:
>>
>> (1) I get non-descript error icons when I send messages to contacts
>> (though the messages seem to get through)
>>
>> (2) old messages do not appear when I start the application
>>
>> (3) messages from others appear in notifications window but not in the
>> app screen
>>
>> (4) sometimes get a segfault upon replying to a message

Thanks for the report.

Would you be able to help me with the testing, by test-messaging me over
linphone, so that I can try some fixes? My address is raghavgururajan at
sip.linphone.org

Toggle quote (4 lines)
> Hmm, it seems the problem strictly has to do with messaging? That would
> explain how my testing of the application failed to reveal it as I don't
> currently used that feature (I use it for SIP calls only).

Same here.

Toggle quote (3 lines)
> Is someone else equipped and able to reproduce it? Perhaps Raghav
> (CC'd)?

I'll try to fix it.

Regards,
RG.
Attachment: OpenPGP_signature
C
C
Christopher Howard wrote on 22 Apr 2021 19:31
(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)
84e87899b2eb4bc13124bf8ab5d0f2e976c31b2b.camel@librehacker.com
Raghav, I have sent you an instant message from my account. I am
currently still using the old version of linphone.

Christopher

-----Original Message-----
From: Raghav Gururajan <rg@raghavgururajan.name>
To: 47641@debbugs.gnu.org
Cc: Christopher Howard <christopher@librehacker.com>, Maxim Cournoyer <
maxim.cournoyer@gmail.com>
Subject: Re: bug#47641: Ongoing difficulities after linphoneqt ->
linphone-desktop transition
Date: Thu, 22 Apr 2021 01:43:37 -0400

Hi Christopher and Maxim,
Toggle quote (17 lines)
> > Hi, I've been having difficulties since the the recent
> > linphoneupdates. I know some work has been done on the package in
> > recentcommits, so just a few minutes ago I ran
> > guix time-machine -- environment --ad-hoc linphone-desktop
> > christopher@theoden ~ [env]$ guix describeGeneration 14 Apr 01
> > 2021 13:21:37 (current) guix 079a7f2 repository URL:
> > https://git.savannah.gnu.org/git/guix.git
> > branch: master commit:
> > 079a7f2c65c51da7b53b0e5ef44c516dc8eaab6e
> > The two problems I get running the program are:
> > (1) I get non-descript error icons when I send messages to
> > contacts(though the messages seem to get through)
> > (2) old messages do not appear when I start the application
> > (3) messages from others appear in notifications window but not in
> > theapp screen
> > (4) sometimes get a segfault upon replying to a message

Thanks for the report.
Would you be able to help me with the testing, by test-messaging me
over linphone, so that I can try some fixes? My address is
raghavgururajan at sip.linphone.org
Toggle quote (4 lines)
> Hmm, it seems the problem strictly has to do with messaging? That
> wouldexplain how my testing of the application failed to reveal it as
> I don'tcurrently used that feature (I use it for SIP calls only).

Same here.
Toggle quote (3 lines)
> Is someone else equipped and able to reproduce it? Perhaps
> Raghav(CC'd)?

I'll try to fix it.
Regards,RG.
Attachment: file
M
M
Maxim Cournoyer wrote on 23 Apr 2021 06:22
(name . Raghav Gururajan)(address . rg@raghavgururajan.name)
875z0d3a01.fsf@gmail.com
Hello,

Raghav Gururajan <rg@raghavgururajan.name> writes:

[...]

Toggle quote (11 lines)
>> Hmm, it seems the problem strictly has to do with messaging? That would
>> explain how my testing of the application failed to reveal it as I don't
>> currently used that feature (I use it for SIP calls only).
>
> Same here.
>
>> Is someone else equipped and able to reproduce it? Perhaps Raghav
>> (CC'd)?
>
> I'll try to fix it.

Thank you!

Maxim
M
M
Maxim Cournoyer wrote on 5 May 2021 17:48
(name . Raghav Gururajan)(address . rg@raghavgururajan.name)
878s4tji68.fsf@gmail.com
retitle 47641 linphone-qt has problems with text messaging using linphone accounts
thanks

Hello,

Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:

Toggle quote (17 lines)
> Hello,
>
> Raghav Gururajan <rg@raghavgururajan.name> writes:
>
> [...]
>
>>> Hmm, it seems the problem strictly has to do with messaging? That would
>>> explain how my testing of the application failed to reveal it as I don't
>>> currently used that feature (I use it for SIP calls only).
>>
>> Same here.
>>
>>> Is someone else equipped and able to reproduce it? Perhaps Raghav
>>> (CC'd)?
>>
>> I'll try to fix it.

I could test sending text messages via a SIP account, and it seemed to
work fine. I'm retitling this issue to reflect that it apparently
affects only Linphone accounts.

Thanks,

Maxim
R
R
Raghav Gururajan wrote on 14 May 2021 18:04
(address . 47641@debbugs.gnu.org)
c5db2dbc-2b99-20a9-99fd-fe7f03efac6a@raghavgururajan.name
Hi Christopher,

Toggle quote (3 lines)
> Raghav, I have sent you an instant message from my account. I am
> currently still using the old version of linphone.

I didn't receive it. Could you please retry?

Linphone Account: raghavgururajan@sip.linphone.org

Regards,
RG.
Attachment: OpenPGP_signature
M
M
Maxim Cournoyer wrote on 14 May 2021 19:55
(name . Raghav Gururajan)(address . rg@raghavgururajan.name)
871ra96vzg.fsf@gmail.com
Hello Raghav,

Raghav Gururajan <rg@raghavgururajan.name> writes:

Toggle quote (12 lines)
> Hi Christopher,
>
>> Raghav, I have sent you an instant message from my account. I am
>> currently still using the old version of linphone.
>
> I didn't receive it. Could you please retry?
>
> Linphone Account: raghavgururajan@sip.linphone.org
>
> Regards,
> RG.

I've also sent some messages to you, using a freshly created
apteryx@@sip.linphone.org. The logs seem to suggest it's happening:

Toggle snippet (65 lines)
[13:53:20:103][Info]Core:linphone: channel [0x37c5440] [332] bytes parsed
[13:53:20:103][Info]Core:linphone: Found transaction matching response.
[13:53:20:103][Info]Core:linphone: Changing [client] [MESSAGE] transaction [0x4a410f0], from state [TRYING] to [PROCEEDING]
[13:53:25:319][Warning]Core:linphone: Unable to get event from invalid key.
[13:53:25:319][Info]Core:linphone: Linphone core [0x2e3af50] notified [message_sent]
[13:53:25:319][Info]Core:linphone: MainDb::addEvent() of type 5
[13:53:25:539][Info]Core:linphone: Skipping top route of initial route-set because same as request-uri
[13:53:25:539][Info]Core:linphone: linphone_core_find_auth_info(): returning auth info username=apteryx, realm=sip.linphone.org
[13:53:25:539][Info]Core:linphone: AuthStack::authFound() for Username[apteryx];Userid[];Realm[sip.linphone.org];Domain[sip.linphone.org];Algorithm[];
[13:53:25:539][Info]Core:linphone: Auth info found for [apteryx] realm [sip.linphone.org]
[13:53:25:539][Info]Core:linphone: Changing [client] [MESSAGE] transaction [0x446bd50], from state [INIT] to [TRYING]
[13:53:25:539][Info]Core:linphone: channel [0x37c5440]: message sent to [TLS://sip.linphone.org:5223], size: [821] bytes
MESSAGE sip:raghavgururajan@sip.linphone.org SIP/2.0
Via: SIP/2.0/TLS 192.168.10.15:36146;branch=z9hG4bK.nvSrPVAQ-;rport
From: <sip:apteryx@sip.linphone.org>;tag=sNabHMonG
To: sip:raghavgururajan@sip.linphone.org
CSeq: 20 MESSAGE
Call-ID: FmJ5VPXB0Z
Max-Forwards: 70
Supported: replaces, outbound, gruu
Date: Fri, 14 May 2021 17:53:25 GMT
Content-Type: text/plain
Content-Length: 12
User-Agent: Linphone Desktop/4.2.5 (Linux 5.11.15-gnu, Qt 5.15.2) LinphoneCore/4.4.0
Proxy-Authorization: Digest realm="sip.linphone.org", nonce="ODZJ5AAAAAD+5i4ZAAAmBjdV5PQAAAAA", algorithm=SHA-256, opaque="+GNywA==", username="apteryx", uri="sip:raghavgururajan@sip.linphone.org", response="ac0ce24d9d9c3785afa9a60395dc5b968b64527b2e4ff85c95b8cf3324849f65", cnonce="8kDLLCPfecEsYnUM", nc=0000000b, qop=auth

another test
[13:53:25:716][Info]Core:linphone: Chat message 0x4b85670: moving from Idle to InProgress
[13:53:25:716][0x2946a00][Info]components/sip-addresses/SipAddressesModel.cpp:427: Handle message sent.
[13:53:25:716][Info]Core:linphone: QT: components/sip-addresses/SipAddressesModel.cpp:427: Handle message sent.
[13:53:25:716][0x2946a00][Info]components/sip-addresses/SipAddressesModel.cpp:485: "Update (`sip:raghavgururajan@sip.linphone.org`, `sip:apteryx@sip.linphone.org`) from chat message."
[13:53:25:716][Info]Core:linphone: QT: components/sip-addresses/SipAddressesModel.cpp:485: "Update (`sip:raghavgururajan@sip.linphone.org`, `sip:apteryx@sip.linphone.org`) from chat message."
[13:53:25:725][Info]Core:linphone: channel [0x37c5440]: received [332] new bytes from [TLS://sip.linphone.org:5223]:
SIP/2.0 100 Trying
Via: SIP/2.0/TLS 192.168.10.15:36146;branch=z9hG4bK.nvSrPVAQ-;rport=36146;received=205.236.230.44
From: <sip:apteryx@sip.linphone.org>;tag=sNabHMonG
To: <sip:raghavgururajan@sip.linphone.org>
Call-ID: FmJ5VPXB0Z
CSeq: 20 MESSAGE
Server: Flexisip/2.0.4-14-ga52de420 (sofia-sip-nta/2.0)
Content-Length: 0


[13:53:25:727][Info]Core:linphone: channel [0x37c5440] [332] bytes parsed
[13:53:25:727][Info]Core:linphone: Found transaction matching response.
[13:53:25:727][Info]Core:linphone: Changing [client] [MESSAGE] transaction [0x446bd50], from state [TRYING] to [PROCEEDING]
[13:53:30:657][Info]Core:linphone: channel [0x37c5440]: received [277] new bytes from [TLS://sip.linphone.org:5223]:
SIP/2.0 202 Accepted
Via: SIP/2.0/TLS 192.168.10.15:36146;branch=z9hG4bK.nvSrPVAQ-;rport=36146;received=205.236.230.44
From: <sip:apteryx@sip.linphone.org>;tag=sNabHMonG
To: <sip:raghavgururajan@sip.linphone.org>
Call-ID: FmJ5VPXB0Z
CSeq: 20 MESSAGE
Content-Length: 0


[13:53:30:659][Info]Core:linphone: channel [0x37c5440] [277] bytes parsed
[13:53:30:659][Info]Core:linphone: Found transaction matching response.
[13:53:30:659][Info]Core:linphone: Changing [client] [MESSAGE] transaction [0x446bd50], from state [PROCEEDING] to [COMPLETED]
[13:53:30:659][Info]Core:linphone: Chat message 0x4b85670: moving from InProgress to Delivered
[13:53:30:866][Info]Core:linphone: Changing [client] [MESSAGE] transaction [0x446bd50], from state [COMPLETED] to [TERMINATED]
[13:53:30:866][Info]Core:linphone: Client MESSAGE transaction [0x446bd50] terminated
[13:53:30:866][Info]Core:linphone: Unhandled transaction terminated [0x446bd50]

Did you receive anything?

I can't seem to reproduce the crash seen by Christopher.

Maxim
C
C
Christopher Howard wrote on 20 May 2021 20:20
(address . 47641@debbugs.gnu.org)
94020ce06c225a5c1a3c2690cb23896ba71cdc0b.camel@librehacker.com
Just sent another message a few minutes ago. Clients shows all messages
are sent, but have not been seen by recipient.

-----Original Message-----
From: Raghav Gururajan <rg@raghavgururajan.name>
To: Christopher Howard <christopher@librehacker.com>, Maxim Cournoyer <
maxim.cournoyer@gmail.com>
Cc: 47641@debbugs.gnu.org
Subject: Re: bug#47641: Ongoing difficulities after linphoneqt ->
linphone-desktop transition
Date: Fri, 14 May 2021 12:04:38 -0400

Hi Christopher,
Toggle quote (3 lines)
> Raghav, I have sent you an instant message from my account. I am
> currently still using the old version of linphone.

I didn't receive it. Could you please retry?
Linphone Account: raghavgururajan@sip.linphone.org

Regards,RG.
Attachment: file
M
M
Maxim Cournoyer wrote on 30 Aug 2021 02:36
(name . Christopher Howard)(address . christopher@librehacker.com)
87czpvu5sw.fsf@gmail.com
Hi Christopher,

Christopher Howard <christopher@librehacker.com> writes:

Toggle quote (19 lines)
> Just sent another message a few minutes ago. Clients shows all messages
> are sent, but have not been seen by recipient.
>
> -----Original Message-----
> From: Raghav Gururajan <rg@raghavgururajan.name>
> To: Christopher Howard <christopher@librehacker.com>, Maxim Cournoyer <
> maxim.cournoyer@gmail.com>
> Cc: 47641@debbugs.gnu.org
> Subject: Re: bug#47641: Ongoing difficulities after linphoneqt ->
> linphone-desktop transition
> Date: Fri, 14 May 2021 12:04:38 -0400
>
> Hi Christopher,
>> Raghav, I have sent you an instant message from my account. I am
>> currently still using the old version of linphone.
>
> I didn't receive it. Could you please retry?
> Linphone Account: raghavgururajan@sip.linphone.org

This issue seems to have gone stale; is it still a problem for you?
Were you able to follow-up with Raghav's requests for further testing?

Thanks,

Maxim
R
R
Raghav Gururajan wrote on 30 Aug 2021 02:39
(address . 47641@debbugs.gnu.org)
46c81c13-0851-92e3-2e85-2d6273af5fd7@raghavgururajan.name
Hi Maxim!

Toggle quote (3 lines)
> This issue seems to have gone stale; is it still a problem for you?
> Were you able to follow-up with Raghav's requests for further testing?

We tried messaging each other and the issue is reproducible. I tried
many ways locally but couldn't fix it. I'll keep trying.

Ideas are welcome. :)

Regards,
RG.
Attachment: OpenPGP_signature
C
C
Christopher Howard wrote on 30 Aug 2021 05:55
(address . 47641@debbugs.gnu.org)
f8a00261bb21f1d941f4ae487d3858c574ace28b.camel@librehacker.com
I've kept RG on my list of contacts but have never received any messages from him, and he doesn't seem to get mine.

I still have my system frozen to use the older working version of linphone, through the trick of using an inferior in my manifest file. I have not recently tested anything newer than that.

--
Christopher Howard
Gemini capsule: gemini://gem.librehacker.com


On Sun, 2021-08-29 at 20:39 -0400, Raghav Gururajan wrote:
Toggle quote (12 lines)
> Hi Maxim!
>
> > This issue seems to have gone stale; is it still a problem for you?
> > Were you able to follow-up with Raghav's requests for further testing?
>
> We tried messaging each other and the issue is reproducible. I tried
> many ways locally but couldn't fix it. I'll keep trying.
>
> Ideas are welcome. :)
>
> Regards,
> RG.
M
M
Maxim Cournoyer wrote on 30 Aug 2021 22:24
(name . Christopher Howard)(address . christopher@librehacker.com)
87zgsyk7fg.fsf@gmail.com
Hello,

Christopher Howard <christopher@librehacker.com> writes:

Toggle quote (7 lines)
> I've kept RG on my list of contacts but have never received any
> messages from him, and he doesn't seem to get mine.
>
> I still have my system frozen to use the older working version of
> linphone, through the trick of using an inferior in my manifest
> file. I have not recently tested anything newer than that.

Thank you (both) for the update. IIRC the issue occurs only when using
Linphone accounts (not generic SIP ones), am I correct?

If so, I'll at least edit the title.

If we can't get to the bottom of it, perhaps upstream (Belladone) could
be of help? If there are no obvious error messages, there's not much to
troubleshoot. It's their software and their service, hopefully they
have a clue! :-)

Maxim
M
M
Maxim Cournoyer wrote on 31 Aug 2021 17:41
(name . Christopher Howard)(address . christopher@librehacker.com)
87eea9ipu2.fsf@gmail.com
Hello Christopher,

Christopher Howard <christopher@librehacker.com> writes:

Toggle quote (4 lines)
> I've kept RG on my list of contacts but have never received any messages from him, and he doesn't seem to get mine.
>
> I still have my system frozen to use the older working version of linphone, through the trick of using an inferior in my manifest file. I have not recently tested anything newer than that.

I've shared my private account privately with you, we can do some tests
and see if there are any error messages appearing from the console, if
you are available.

Thanks,

Maxim
M
M
Maxim Cournoyer wrote on 1 Sep 2021 14:33
(name . Christopher Howard)(address . christopher@librehacker.com)
8735qoeaq2.fsf@gmail.com
retitle 47641 linphone segfaults when receiving messages from a Linphone account
thanks

Hello,

Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:

Toggle quote (15 lines)
> Hello Christopher,
>
> Christopher Howard <christopher@librehacker.com> writes:
>
>> I've kept RG on my list of contacts but have never received any
>> messages from him, and he doesn't seem to get mine.
>>
>> I still have my system frozen to use the older working version of
>> linphone, through the trick of using an inferior in my manifest
>> file. I have not recently tested anything newer than that.
>
> I've shared my private account privately with you, we can do some tests
> and see if there are any error messages appearing from the console, if
> you are available.

When I checked Linphone's output today, it had crashed, with the
following message:

Toggle snippet (24 lines)
[...]

[18:34:28:135][Info]Core:linphone: channel [0x2a9a6f0] [334] bytes parsed
[18:34:28:135][Info]Core:linphone: Found transaction matching response.
[18:34:28:135][Info]Core:linphone: Changing [client] [MESSAGE] transaction [0x426f760], from state [TRYING] to [PROCEEDING]
[18:34:28:334][Info]Core:linphone: channel [0x2a9a6f0]: received [278] new bytes from [TLS://sip.linphone.org:5223]:
SIP/2.0 200 Ok
Via: SIP/2.0/TLS 192.168.10.15:59384;received=66.158.153.61;branch=z9hG4bK.2eNQCqmQS;rport=59384
From: <sip:ANONYMIZED1@sip.linphone.org>;tag=dZU47iIcu
To: <sip:ANONYMIZED2@sip.linphone.org>;tag=qAHFPPW
Call-ID: fAx3bYNPwa
CSeq: 20 MESSAGE
Content-Length: 0

[18:34:28:335][Info]Core:linphone: channel [0x2a9a6f0] [278] bytes parsed
[18:34:28:335][Info]Core:linphone: Found transaction matching response.
[18:34:28:335][Info]Core:linphone: Changing [client] [MESSAGE] transaction [0x426f760], from state [PROCEEDING] to [COMPLETED]
[18:34:28:337][Error]Core:linphone: Unhandled generic exception in MainDb::getEventFromKey: `std::bad_cast`.
[18:34:28:337][Error]Core:linphone: cannot find eventLog for db key [0x3a5bdb0] associated to message [0x3a5bd70]
[18:34:28:338][Error]Core:linphone: Unhandled generic exception in MainDb::getEventFromKey: `std::bad_cast`.
Segmentation fault


When attempting to restart Linphone, the crash persists, like so:

Toggle snippet (72 lines)
[08:24:53:002][Info]Core:linphone: Changing [server] [NOTIFY] transaction [0x234a7f0], from state [INIT] to [TRYING]
[08:24:53:002][Info]Core:linphone: belle_sip_object_to_string(): temporary buffer is too short while doing to_string() for belle_sip_multipart_body_handler_t, retrying
[08:24:53:002][Error]Core:linphone: body handler [0x2feabc0] transfered only [2085] bytes while [4106] were expected
[08:24:53:002][Info]Core:linphone: Notify presence for list 0x13bce40
[08:24:53:006][Info]Core:linphone: QT: components/sip-addresses/SipAddressesModel.cpp:340: "Update presence of `sip:raghavgururajan@sip.linphone.org`: 1."
[08:24:53:006][Info]Core:linphone: Linphone core [0x1094240] notified [notify_presence_received_for_uri_or_tel]
[08:24:53:006][Info]Core:linphone: Linphone core [0x1094240] notified [notify_presence_received]
[08:24:53:006][Info]Core:linphone: Changing [server] [NOTIFY] transaction [0x234a7f0], from state [TRYING] to [COMPLETED]
[08:24:53:006][Info]Core:linphone: channel [0x1abbb70]: message sent to [TLS://sip.linphone.org:5223], size: [478] bytes
SIP/2.0 200 Ok
Via: SIP/2.0/TLS sip6.linphone.org:5223;received=54.37.202.229;rport;branch=z9hG4bK.0cj7De7HvSgcry9BNc0Z595SSc
Via: SIP/2.0/TCP 127.0.0.1:5065;branch=z9hG4bK.45hjmVnWu;rport=54254
From: <sips:rls@sip.linphone.org>;tag=BUE0Wu8
To: <sip:ANONYMIZED1@sip.linphone.org>;tag=SrhwXqDiL
Call-ID: E4D8HWHxNd
CSeq: 111 NOTIFY
User-Agent: Linphone Desktop/4.2.5 (Linux 5.13.12-gnu, Qt 5.15.2) LinphoneCore/4.4.0
Supported: replaces, outbound, gruu
Content-Length: 0


[08:24:53:006][Info]Core:linphone: Dialog [0x2bf2fa0]: now updated by transaction [0x234a7f0].
[08:24:53:006][Info]Core:linphone: Garbage collecting unowned object of type belle_sip_header_content_type_t
[08:24:53:011][Info]Core:linphone: channel [0x1abbb70]: received [334] new bytes from [TLS://sip.linphone.org:5223]:
SIP/2.0 100 Trying
Via: SIP/2.0/TLS 192.168.10.15:59386;branch=z9hG4bK.68gzFFTF3;rport=59386;received=66.158.153.61
From: <sip:ANONYMIZED1@sip.linphone.org>;tag=oSC4-HTmj
To: <sip:ANONYMIZED2@sip.linphone.org>
Call-ID: pvi-2leZ~y
CSeq: 20 MESSAGE
Server: Flexisip/2.1.0-alpha-160-g988d5ffe (sofia-sip-nta/2.0)
Content-Length: 0


[08:24:53:013][Info]Core:linphone: channel [0x1abbb70] [334] bytes parsed
[08:24:53:013][Info]Core:linphone: Found transaction matching response.
[08:24:53:013][Info]Core:linphone: Changing [client] [MESSAGE] transaction [0x2beb760], from state [TRYING] to [PROCEEDING]
[08:24:53:013][Info]Core:linphone: Changing [server] [NOTIFY] transaction [0x234a7f0], from state [COMPLETED] to [TERMINATED]
[08:24:53:013][Info]Core:linphone: Server NOTIFY transaction [0x234a7f0] terminated
[08:24:53:013][Info]Core:linphone: Unhandled transaction terminated [0x234a7f0]
[08:24:53:032][Info]Core:linphone: channel [0x1abbb70]: received [334] new bytes from [TLS://sip.linphone.org:5223]:
SIP/2.0 100 Trying
Via: SIP/2.0/TLS 192.168.10.15:59386;branch=z9hG4bK.E49iyRRDc;rport=59386;received=66.158.153.61
From: <sip:ANONYMIZED1@sip.linphone.org>;tag=j~CfQFRgo
To: <sip:ANONYMIZED2@sip.linphone.org>
Call-ID: JvrRbU9Aqy
CSeq: 20 MESSAGE
Server: Flexisip/2.1.0-alpha-160-g988d5ffe (sofia-sip-nta/2.0)
Content-Length: 0


[08:24:53:033][Info]Core:linphone: channel [0x1abbb70] [334] bytes parsed
[08:24:53:033][Info]Core:linphone: Found transaction matching response.
[08:24:53:033][Info]Core:linphone: Changing [client] [MESSAGE] transaction [0x2cecf10], from state [TRYING] to [PROCEEDING]
[08:24:53:052][Info]Core:linphone: channel [0x1abbb70]: received [278] new bytes from [TLS://sip.linphone.org:5223]:
SIP/2.0 200 Ok
Via: SIP/2.0/TLS 192.168.10.15:59386;received=66.158.153.61;branch=z9hG4bK.68gzFFTF3;rport=59386
From: <sip:ANONYMIZED1@sip.linphone.org>;tag=oSC4-HTmj
To: <sip:ANONYMIZED2@sip.linphone.org>;tag=44ddfWh
Call-ID: pvi-2leZ~y
CSeq: 20 MESSAGE
Content-Length: 0


[08:24:53:053][Info]Core:linphone: channel [0x1abbb70] [278] bytes parsed
[08:24:53:053][Info]Core:linphone: Found transaction matching response.
[08:24:53:053][Info]Core:linphone: Changing [client] [MESSAGE] transaction [0x2beb760], from state [PROCEEDING] to [COMPLETED]
[08:24:53:054][Error]Core:linphone: Unhandled generic exception in MainDb::getEventFromKey: `std::bad_cast`.
[08:24:53:054][Error]Core:linphone: cannot find eventLog for db key [0x13be7d0] associated to message [0x13be790]
[08:24:53:054][Error]Core:linphone: Unhandled generic exception in MainDb::getEventFromKey: `std::bad_cast`.

It should make it not too difficult to reproduce it in GDB and gather a
backtrace.

Maxim
M
M
Maxim Cournoyer wrote on 1 Sep 2021 19:00
Re: bug#47641: linphone segfaults when receiving messages from a Linphone account
(name . Christopher Howard)(address . christopher@librehacker.com)
87lf4gcju3.fsf_-_@gmail.com
Hello,

Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:

[...]

Toggle quote (13 lines)
> When I checked Linphone's output today, it had crashed, with the
> following message:
>
> [...]
>
> [18:34:28:335][Info]Core:linphone: channel [0x2a9a6f0] [278] bytes parsed
> [18:34:28:335][Info]Core:linphone: Found transaction matching response.
> [18:34:28:335][Info]Core:linphone: Changing [client] [MESSAGE] transaction [0x426f760], from state [PROCEEDING] to [COMPLETED]
> [18:34:28:337][Error]Core:linphone: Unhandled generic exception in MainDb::getEventFromKey: `std::bad_cast`.
> [18:34:28:337][Error]Core:linphone: cannot find eventLog for db key [0x3a5bdb0] associated to message [0x3a5bd70]
> [18:34:28:338][Error]Core:linphone: Unhandled generic exception in MainDb::getEventFromKey: `std::bad_cast`.
> Segmentation fault

?