Re: [Ekiga-devel-list] Crash in accounts' code

2008-04-04 Thread Damien Sandras
Le jeudi 03 avril 2008 à 21:45 +0200, Julien Puydt a écrit :
> Hi,
> 
> I was investigating the problems with gmconf-glib when I met this crash:
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0xb45e7b90 (LWP 32657)]
> GMAccountsEndpoint::Main (this=0x85f0e70) at 
> endpoints/accountshandler.cpp:131
> 131 if (accounts_iter->data) {
> (gdb) bt
> #0  GMAccountsEndpoint::Main (this=0x85f0e70)
>  at endpoints/accountshandler.cpp:131
> #1  0xb733b7e4 in PThread::PX_ThreadStart ()
> from /usr/lib/libpt_linux_x86_r.so.2.3-beta0
> #2  0xb69294fb in start_thread () from /lib/i686/cmov/libpthread.so.0
> #3  0xb6655d7e in clone () from /lib/i686/cmov/libc.so.6
> 
> While reading the code, I must admit I don't really understand how that 
> can be : there's a check on account_iter before doing the 
> account_iter->data.
> 
> What's strange is the next line :
> list_account = GM_ACCOUNT (accounts_iter)->data;
> where I would have expected :
> list_account = GM_ACCOUNT (accounts_iter->data);
> 
> Does that looks interesting to someone?

It should indeed be like the second line. But how can it work with the
first line ?!
-- 
 _ Damien Sandras
(o-  
//\Ekiga Softphone : http://www.ekiga.org/
v_/_   NOVACOM : http://www.novacom.be/
   FOSDEM  : http://www.fosdem.org/
   SIP Phone   : sip:[EMAIL PROTECTED]
   

___
Ekiga-devel-list mailing list
Ekiga-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/ekiga-devel-list

[Ekiga-devel-list] Crash in accounts' code

2008-04-03 Thread Julien Puydt
Hi,

I was investigating the problems with gmconf-glib when I met this crash:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb45e7b90 (LWP 32657)]
GMAccountsEndpoint::Main (this=0x85f0e70) at 
endpoints/accountshandler.cpp:131
131   if (accounts_iter->data) {
(gdb) bt
#0  GMAccountsEndpoint::Main (this=0x85f0e70)
 at endpoints/accountshandler.cpp:131
#1  0xb733b7e4 in PThread::PX_ThreadStart ()
from /usr/lib/libpt_linux_x86_r.so.2.3-beta0
#2  0xb69294fb in start_thread () from /lib/i686/cmov/libpthread.so.0
#3  0xb6655d7e in clone () from /lib/i686/cmov/libc.so.6

While reading the code, I must admit I don't really understand how that 
can be : there's a check on account_iter before doing the 
account_iter->data.

What's strange is the next line :
list_account = GM_ACCOUNT (accounts_iter)->data;
where I would have expected :
list_account = GM_ACCOUNT (accounts_iter->data);

Does that looks interesting to someone?

Snark
___
Ekiga-devel-list mailing list
Ekiga-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/ekiga-devel-list