Bugs item #1518158, was opened at 2006-07-06 15:46
Message generated for change (Settings changed) made by e-r00
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1518158&group_id=56967

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: Mapi
Group: MonetDB4 CVS Head
Status: Open
>Resolution: None
Priority: 5
Private: No
Submitted By: Marcin Zukowski (e-r00)
Assigned to: Nobody/Anonymous (nobody)
Summary: MonetDB crashes with multiple active connections

Initial Comment:
Start server with a mapi listener, and run e.g. this
shell script:

#!/bin/sh
i=0;
while [ $i -lt 100 ] ; do
    echo $i
    echo "module(alarm);sleep(10);" | MapiClient &
    usleep 10000
    ((i++))
done

Result on the server side:
MT_create_sema: ran out of semaphores

and it dies


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

Comment By: Marcin Zukowski (e-r00)
Date: 2007-05-29 15:28

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

Well, not fixed yet.
If I run this script:

i=0; while [ $i -lt 100 ] ; do echo $i; echo "module(alarm);sleep(10);" |
MapiClient & usleep 10000; ((i++)); done

a few times, I get segfault.
If MonetDB is in gdb, I get it every time:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1082132800 (LWP 1095)]
0x00002aaab7693e6b in xchange_challenge (father=0x2aaaabe96750, stk=1, 
    fdin=0x11cf860, fdout=0x64b110, new_client=1 '\001')
    at /ufs/marcin/monet/MonetDB4/src/mapi/mapi.mx:702
702             c->fdin = fdin;
(gdb) p c
$1 = (Client) 0x0

As for a portable script, if bash is not portable enough, someone with
Python experience (I have none) would do it X100 faster :)

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

Comment By: Niels Nes (nielsnes)
Date: 2007-05-29 14:49

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

Fatal is gone now. But you will still ge the message, out of threads.

Could you find the time to add a portable script to the testing of M4. A
python script for example.
(status is Pending until the test is there)

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

Comment By: Marcin Zukowski (e-r00)
Date: 2007-05-29 13:31

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

Checked the current status.
Still fails. 

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

Comment By: Marcin Zukowski (e-r00)
Date: 2007-01-31 13:43

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

Still crashes, with:

# Monet Database Server V4.17.1
# Copyright (c) 1993-2007, CWI. All rights reserved.
# Compiled for x86_64-redhat-linux-gnu/64bit with 64bit OIDs; dynamically
linked.
# Visit http://monetdb.cwi.nl/ for further information.
MonetDB>module(mapi);
MonetDB>mil_start();
MonetDB>!FATAL: THRnew: too many threads


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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1518158&group_id=56967

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to