[Devel] [ openser-Bugs-1676839 ] mysql modules crashes when DB server disappears.

SourceForge.net noreply at sourceforge.net
Mon Mar 19 11:51:12 CET 2007


Bugs item #1676839, was opened at 2007-03-08 23:59
Message generated for change (Comment added) made by miconda
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1676839&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: Closed
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: Kobi Eshun (ekobi)
Assigned to: Daniel-Constantin Mierla (miconda)
Summary: mysql modules crashes when DB server disappears.

Initial Comment:
Hi,

If the connected MySQL DB server disappears unexpectedly, db_mysql_update() generates a seg. fault. Here is a stack trace.
--
kobi

#0  0xb7dceb3e in str2val (_t=42, _v=0x1, _s=0xb7f2a14f "???\r", '\220' <repeats 13 times>, "U\211?S\203?\034?????\201?\210?\005", 
    _l=24576) at val.c:239
#1  0xb7dccc25 in db_mysql_update (_h=0x81666e0, _k=0x2a, _o=0x2a, _v=0x2a, _uk=0xbfcb9c00, _uv=0x81666e0, _n=12, _un=0)
    at dbase.c:215
#2  0xb7b6477b in msg_active_watchers_clean () from /usr/lib/openser/modules/presence.so
#3  0x0808d571 in run_timer ()
#4  0x08065813 in main_loop ()
#5  0x080660cf in main ()
(gdb) where
#0  0xb7dceb3e in str2val (_t=42, _v=0x1, _s=0xb7f2a14f "???\r", '\220' <repeats 13 times>, "U\211?S\203?\034?????\201?\210?\005", 
    _l=24576) at val.c:239
#1  0xb7dccc25 in db_mysql_update (_h=0x81666e0, _k=0x2a, _o=0x2a, _v=0x2a, _uk=0xbfcb9c00, _uv=0x81666e0, _n=12, _un=0)
    at dbase.c:215
#2  0xb7b6477b in msg_active_watchers_clean () from /usr/lib/openser/modules/presence.so
#3  0x0808d571 in run_timer ()
#4  0x08065813 in main_loop ()
#5  0x080660cf in main ()


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

>Comment By: Daniel-Constantin Mierla (miconda)
Date: 2007-03-19 12:51

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

No update, assume no more crash. If still on, then please reopen the bug.

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

Comment By: Kobi Eshun (ekobi)
Date: 2007-03-09 21:58

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

Thanks for the follow-up -- I'm running a few days behind HEAD. I'll sync
and see if I can reproduce. Cheers,
--
kobi

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

Comment By: Aron Rosenberg (amr42)
Date: 2007-03-09 19:33

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

The build is SVN rev 1761

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

Comment By: Daniel-Constantin Mierla (miconda)
Date: 2007-03-09 17:22

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

The line number does not seem to match something in latest val.c . Are you
running the latest SVN version? Could you please send full back trace via
"bt"?

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

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



More information about the Devel mailing list