Bugs item #1518158, was opened at 2006-07-06 15:46
Message generated for change (Comment added) made by sjoerd
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: Sjoerd Mullender (sjoerd)
Date: 2007-08-02 10:28
Message:
Logged In: YES
user_id=43607
Originator: NO
Some experimentation on two different machines shows that you can get the
crash pretty reliably on Marcin's dual core system, but not at all on my
single core. There may be more differences in system libraries.
This probably needs to be investigated more by someone with a dual core
system. Stefan, Niels, feel free...
----------------------------------------------------------------------
Comment By: Marcin Zukowski (e-r00)
Date: 2007-07-31 15:00
Message:
Logged In: YES
user_id=607094
Originator: YES
Yup, still fails. Server output, fresh CVS build:
$ Mserver
# MonetDB Server v4.19.0
# based on GDK v1.19.0
# 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>!WARNING: THRnew: too many threads
!WARNING: THRnew: too many threads
!WARNING: THRnew: too many threads
!WARNING: THRnew: too many threads
!WARNING: THRnew: too many threads
!WARNING: THRnew: too many threads
!WARNING: THRnew: too many threads
!WARNING: THRnew: too many threads
!WARNING: THRnew: too many threads
!WARNING: THRnew: too many threads
!WARNING: THRnew: too many threads
!WARNING: THRnew: too many threads
!WARNING: THRnew: too many threads
!WARNING: THRnew: too many threads
!WARNING: THRnew: too many threads
Segmentation fault
----------------------------------------------------------------------
Comment By: Sjoerd Mullender (sjoerd)
Date: 2007-07-31 13:07
Message:
Logged In: YES
user_id=43607
Originator: NO
Is this still a problem? I don't seem to be able to reproduce the crash.
And no, bash is not portable enough. You can't use it on Windows.
----------------------------------------------------------------------
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: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs