[OpenSER-Devel] [ openser-Bugs-1828190 ] segmenation fault

SourceForge.net noreply at sourceforge.net
Fri Nov 9 10:42:16 UTC 2007


Bugs item #1828190, was opened at 2007-11-08 12:59
Message generated for change (Comment added) made by bogdan_iancu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1828190&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver devel
Status: Open
Resolution: None
Priority: 7
Private: No
Submitted By: Dan (dan_pascu)
Assigned to: Bogdan (bogdan_iancu)
Summary: segmenation fault

Initial Comment:
Program terminated with signal 11, Segmentation fault.
#0  0xb7cd9513 in strlen () from /lib/i686/cmov/libc.so.6
(gdb) bt
#0  0xb7cd9513 in strlen () from /lib/i686/cmov/libc.so.6
#1  0xb794bd44 in get_subs_db (pres_uri=0xb4e510bc, event=0xb58e2450, sender=0x0, s_array=0xb4e50f58, n=0xb4e50f54) at notify.c:982
#2  0xb794c81c in get_subs_dialog (pres_uri=0xb4e510bc, event=0xb58e2450, sender=0x0) at notify.c:1100
#3  0xb795167e in query_db_notify (pres_uri=0xb4e510bc, event=0xb58e2450, watcher_subs=0x0) at notify.c:1246
#4  0xb795487d in mi_refreshWatchers (cmd=0x81607b8, param=0x0) at presence.c:565
#5  0xb793bd75 in default_method (env=0xb4e511c4, host=0x0, methodName=0x8277d68 "refreshWatchers", paramArray=0x8279930, serverInfo=0x0) at ../../mi/mi.h:84
#6  0xb77f30fd in xmlrpc_dispatchCall () from /usr/lib/libxmlrpc_server.so.3
#7  0xb77f32e7 in xmlrpc_registry_process_call () from /usr/lib/libxmlrpc_server.so.3
#8  0xb77f8898 in ?? () from /usr/lib/libxmlrpc_server_abyss.so.3
#9  0xb4e51230 in ?? ()
#10 0x082600e8 in ?? ()
#11 0x00000000 in ?? ()
(gdb) frame 1
#1  0xb794bd44 in get_subs_db (pres_uri=0xb4e510bc, event=0xb58e2450, sender=0x0, s_array=0xb4e50f58, n=0xb4e50f54) at notify.c:982
982                     s.to_domain.len= strlen(s.to_domain.s);
(gdb) list
977                     s.pres_uri= *pres_uri;
978                     s.to_user.s= (char*)row_vals[to_user_col].val.string_val;
979                     s.to_user.len=  strlen(s.to_user.s);
980                     
981                     s.to_domain.s= (char*)row_vals[to_domain_col].val.string_val;
982                     s.to_domain.len= strlen(s.to_domain.s);
983                     
984                     s.from_user.s= (char*)row_vals[from_user_col].val.string_val;
985                     s.from_user.len= strlen(s.from_user.s);
986                     


----------------------------------------------------------------------

>Comment By: Bogdan (bogdan_iancu)
Date: 2007-11-09 12:42

Message:
Logged In: YES 
user_id=1275325
Originator: NO

OK...let's wait for another one.

The "row_vals[to_domain_col]" is of db_val_t type and I was insterested in
the the "null" and "val" fields of this structure.

Bogdan

----------------------------------------------------------------------

Comment By: Dan (dan_pascu)
Date: 2007-11-09 12:19

Message:
Logged In: YES 
user_id=1296758
Originator: YES

I have upgraded openser since and the binary and the core file no longer
match, so I cannot inspect it anymore. However the definition of the
to_domain column in the database is like this:

    to_domain VARCHAR(64) NOT NULL,

so it cannot be NULL. If this info is not enough, I'll check the next time
I get a core file (I seem to get it to crash quite regularly, like once a
day).


----------------------------------------------------------------------

Comment By: Bogdan (bogdan_iancu)
Date: 2007-11-09 11:59

Message:
Logged In: YES 
user_id=1275325
Originator: NO

Hi Dan,

Can you check in the core file what is the content of
row_vals[to_domain_col] variable? I want to see if the field is returned as
NULL or not.

Regards,
bogdan

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1828190&group_id=139143



More information about the Devel mailing list