[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Linphone-developers] Crash with no sound card installed...
From: |
Simon Morlat |
Subject: |
Re: [Linphone-developers] Crash with no sound card installed... |
Date: |
Thu, 22 Mar 2007 17:18:51 +0100 |
User-agent: |
KMail/1.9.5 |
Hi,
Thanks for this bug report.
Can you include me the full backtrace ?
Actually ms_snd_card_get_string_id() should not have been called with
obj==NULL....
Simon
Le jeudi 8 mars 2007 15:49, Robin Getz a écrit :
> I was running linphonec on a system with no sound card installed (I just
> wanted to create the default .linphonerc file), and I got a null pointer
> access in:
>
> linphone-1.6.0/mediastreamer2/src/mssndcard.c:ms_snd_card_get_string_id()
>
> const char *ms_snd_card_get_string_id(MSSndCard *obj){
> if (obj->id==NULL)
> obj->id=ms_strdup_printf("%s:
> %s",obj->desc->driver_type,obj->name);
>
> return obj->id;
> }
>
> Shouldn't there be a checked here as well to make sure obj != NULL, before
> it looks at ->id?
>
> The interesting thing (I thought) was that it didn't warn me on running,
> but crashed on "quit"...
>
> ----------------------
> root:~> linphonec
> NLS disabled.
> Ready
> Warning: video is disabled in linphonec. Run with -V option to enable it.
> linphonec> quit
> Terminating...
> No active call.
>
> NULL pointer access
> SIGSEGV
> ======================
>
> Thanks
>
> -Robin
>
>
> _______________________________________________
> Linphone-developers mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/linphone-developers