Re: handle_threadlist_exception called with threadlist_ix -1

2005-12-16 Thread ubik
I cannot reproduce a simple testcase because the app is really big.
I'll try to find the problem but it is really hard.
Is there a way to simple use pthreadwin32 with cygwin? I found no info
about that and there are a lot of conflicts when compiling using
pthreadwin32.

Giuseppe

>
>   If you can produce a simple testcase that reproduces the problem and that
> anyone can _easily_ compile and run, people here will be glad to look at it.
>
>   It might also be worth your time to try the most recent cygwin1.dll
> development snapshot (http://cygwin.com/snapshots) and see if any problems
> have already been fixed.
>
>
> cheers,
>   DaveK
> --
> Can't think of a witty .sigline today
>
>
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:   http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
>
>

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: handle_threadlist_exception called with threadlist_ix -1

2005-12-16 Thread Chris Taylor

Pavel Tsekov wrote:

On Fri, 16 Dec 2005, Christopher Faylor wrote:



On Fri, Dec 16, 2005 at 02:10:31PM +0100, Pavel Tsekov wrote:


i'm using cygwin release version is 1.5.18-1 and my program compiles
and work perfectly on linux.  It compiles also on cygwin but after
15-20 sec it segfault.  I think that the problem is in pthread
implementation on cygwin.


The cygwin pthread implementation is guaranteed safe when used as
directed!


http://sourceware.org/ml/cygwin/2005-10/msg00101.html

I could not resist.


As long as you're not resisting:

http://sourceware.org/ml/cygwin/2005-10/msg00101.html

Still waiting for the patch...



Forgive my bad memory, but I don't remember promising you a patch ...
I also never insisted that you or anyone else must fix this bug. I
found a bug and reported it and also included a testcase.

By the way if the original poster does something in his code similiar to
what was discussed in that thread it might prove useful to him to read it.
This way he/she will know that this is a no-no on Cygwin.



You didn't, but you did find what you thought was the root cause - a
patch would certainly be appreciated..
cgf and Corinna don't have all the time in the world after all.

Mental note: learn C++ and/or C.

--

Spinning complacently in the darkness, covered and blinded by a blanket
of little lives, false security has lulled the madness of this world
into a slumber. Wake up! An eye is upon you, staring straight down and
keenly through, seeing all that you are and everything that you will
never be. Yes, an eye is upon you, an eye ready to blink. So face
forward, with arms wide open and mind reeling. Your future has
arrived... Are you ready to go?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: handle_threadlist_exception called with threadlist_ix -1

2005-12-16 Thread Pavel Tsekov

On Fri, 16 Dec 2005, Christopher Faylor wrote:

> On Fri, Dec 16, 2005 at 02:10:31PM +0100, Pavel Tsekov wrote:
> >>>i'm using cygwin release version is 1.5.18-1 and my program compiles
> >>>and work perfectly on linux.  It compiles also on cygwin but after
> >>>15-20 sec it segfault.  I think that the problem is in pthread
> >>>implementation on cygwin.
> >>
> >>The cygwin pthread implementation is guaranteed safe when used as
> >>directed!
> >
> >http://sourceware.org/ml/cygwin/2005-10/msg00101.html
> >
> >I could not resist.
>
> As long as you're not resisting:
>
> http://sourceware.org/ml/cygwin/2005-10/msg00101.html
>
> Still waiting for the patch...

Forgive my bad memory, but I don't remember promising you a patch ...
I also never insisted that you or anyone else must fix this bug. I
found a bug and reported it and also included a testcase.

By the way if the original poster does something in his code similiar to
what was discussed in that thread it might prove useful to him to read it.
This way he/she will know that this is a no-no on Cygwin.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: handle_threadlist_exception called with threadlist_ix -1

2005-12-16 Thread Christopher Faylor
On Fri, Dec 16, 2005 at 02:10:31PM +0100, Pavel Tsekov wrote:
>>>i'm using cygwin release version is 1.5.18-1 and my program compiles
>>>and work perfectly on linux.  It compiles also on cygwin but after
>>>15-20 sec it segfault.  I think that the problem is in pthread
>>>implementation on cygwin.
>>
>>The cygwin pthread implementation is guaranteed safe when used as
>>directed!
>
>http://sourceware.org/ml/cygwin/2005-10/msg00101.html
>
>I could not resist.

As long as you're not resisting:

http://sourceware.org/ml/cygwin/2005-10/msg00101.html

Still waiting for the patch...

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: handle_threadlist_exception called with threadlist_ix -1

2005-12-16 Thread Pavel Tsekov
> > i'm using cygwin release version is 1.5.18-1 and my program compiles
> > and work perfectly on linux.
> > It compiles also on cygwin but after 15-20 sec it segfault. I think
> > that the problem is in pthread implementation on cygwin.
> 
>   The cygwin pthread implementation is guaranteed safe when used as
> directed!

http://sourceware.org/ml/cygwin/2005-10/msg00101.html

I could not resist.

-- 
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: handle_threadlist_exception called with threadlist_ix -1

2005-12-16 Thread Dave Korn
ubik wrote:
> Hello,
> 
> i'm using cygwin release version is 1.5.18-1 and my program compiles
> and work perfectly on linux.
> It compiles also on cygwin but after 15-20 sec it segfault. I think
> that the problem is in pthread implementation on cygwin.

  The cygwin pthread implementation is guaranteed safe when used as directed!
 
> this is stackdump:
> 
> 5 [sig] ds2 1944 handle_threadlist_exception:
> handle_threadlist_exception called with threadlist_ix -1
> Exception: STATUS_ACCESS_VIOLATION at eip=61015EF1
> 
> please explain me if it's possibile to fix it.

  If you can produce a simple testcase that reproduces the problem and that
anyone can _easily_ compile and run, people here will be glad to look at it.

  It might also be worth your time to try the most recent cygwin1.dll
development snapshot (http://cygwin.com/snapshots) and see if any problems
have already been fixed.


cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



handle_threadlist_exception called with threadlist_ix -1

2005-12-16 Thread ubik
Hello,

i'm using cygwin release version is 1.5.18-1 and my program compiles
and work perfectly on linux.
It compiles also on cygwin but after 15-20 sec it segfault. I think
that the problem is in pthread implementation on cygwin.

this is stackdump:

5 [sig] ds2 1944 handle_threadlist_exception:
handle_threadlist_exception called with threadlist_ix -1
Exception: STATUS_ACCESS_VIOLATION at eip=61015EF1

please explain me if it's possibile to fix it.

thanks,
Giuseppe A.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: handle_threadlist_exception: handle_threadlist_exception called with threadlist_ix -1

2005-10-13 Thread Pavel Tsekov
On Wed, 12 Oct 2005, Pavel Tsekov wrote:

> On Tue, 11 Oct 2005, Christopher Faylor wrote:
>
> > I don't see how ignoring blocked signals would cause a SEGV however.
>
> Well... indirectly they do :) I hope you are not too annoyed already
> because this time I really found the cause of the problem.
>
> Assume a signal is sent to a thread with pthread_kill() but the thread is
> blocking the signal and in doesn't get processed through it's lifetime.
> The thread dies but the signal still remains in the singal queue.
> Something triggeres the processing of the signal - sig_dispatch_pending()
> in my case (which is called as part of pthread_sigmask()). As part of the
> processing the 'tls' member of sigpacket is dereferenced but at that time
> it is already invalid.
>
> I'll try to post a testcase ASAP which demonstrates the problem.

Find the testcase attached. The interesting part starts when SIGUSR2 is
send from the main thread.#include 
#include 
#include 
#include 

static pid_t the_pid;

static void empty_handler(int signo)
{
  printf ("in empty_handler(): signo = %d\n", signo);
}

static void *thread_loop (void *unused)
{
  int i;
  sigset_t block_set, pending_set;

  sigemptyset (&block_set);
  sigaddset (&block_set, SIGUSR2);
  if (pthread_sigmask (SIG_BLOCK, &block_set, NULL) != 0)
{
  printf ("failed to set the list of blocked signals\n");
}

  /* All done - let the main thread know that it
 can send us a signal. */
  kill (the_pid, SIGUSR1);

  for (i = 0; i < INT_MAX; i++);

  printf ("exiting thread_loop()\n");

  return NULL;
}

int main (int argc, char **argv)
{
  int rv;
  int i;
  pthread_t thr_id;
  sigset_t new_set, old_set;
  void *thr_result;

  the_pid = getpid ();

  /* Dummy synchronization scheme so that we know that
 the second thread initialized its list of blocked
 signals. */
  signal (SIGUSR1, empty_handler);
  sigemptyset (&new_set);
  sigaddset (&new_set, SIGUSR1);
  sigprocmask (SIG_BLOCK, &new_set, &old_set);

  rv = pthread_create (&thr_id, NULL, thread_loop, NULL);
  if (rv != 0)
{
  printf ("failed to create thread.\n");
  exit (1);
}

  /* Wait until the second thread signals the main thread. */
  sigsuspend (&old_set);
  sigprocmask (SIG_UNBLOCK, &new_set, NULL);

  /* Send a SIGUSR2 signal to the second thread while
 it is blocking SIGUSR2. */
  pthread_kill (thr_id, SIGUSR2);

  /* Wait for the thread to terminate. */
  pthread_join (thr_id, &thr_result);

  /* Trigger sig_dispatch_pending() */
  signal (SIGUSR1, SIG_IGN);

  /* Just wait for the program to crash. */
  sleep (600);

  exit (0);
}
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

Re: handle_threadlist_exception: handle_threadlist_exception called with threadlist_ix -1

2005-10-12 Thread Pavel Tsekov
On Tue, 11 Oct 2005, Christopher Faylor wrote:

> I don't see how ignoring blocked signals would cause a SEGV however.

Well... indirectly they do :) I hope you are not too annoyed already
because this time I really found the cause of the problem.

Assume a signal is sent to a thread with pthread_kill() but the thread is
blocking the signal and in doesn't get processed through it's lifetime.
The thread dies but the signal still remains in the singal queue.
Something triggeres the processing of the signal - sig_dispatch_pending()
in my case (which is called as part of pthread_sigmask()). As part of the
processing the 'tls' member of sigpacket is dereferenced but at that time
it is already invalid.

I'll try to post a testcase ASAP which demonstrates the problem.



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: handle_threadlist_exception: handle_threadlist_exception called with threadlist_ix -1

2005-10-11 Thread Christopher Faylor
On Tue, Oct 11, 2005 at 05:51:00PM +0300, Pavel Tsekov wrote:
>On Thu, 6 Oct 2005, Pavel Tsekov wrote:
>
>> On Thu, 6 Oct 2005, Christopher Faylor wrote:
>>
>> > >It might be a different problem but the message is the same.
>> >
>> > It *is* a different problem.
>>
>> Ok.
>>
>> > Some thread is sending a signal 31 (SIGUSR1).  Which thread is doing this?
>>
>> An application thread signaling another thread to stop its execution. I am
>> on it - I'll report back if I manage to find something.
>
>While tracking this problem I found what I suspect is a small bug in
>the way sigsuspend() works when it is used to retrieve the list of pending
>signals for a thread other than the main one. I think this is related to
>the crash I am seeing in some way though this has to be determined yet.

See the FIXME a few lines down from that.

>As I read the code, when retrieving the list of pending signals
>sigpending() inspects only the list of blocked signals for the main
>thread - it doesn't look in the thread specific list of blocked signals
>of the calling thread.

So, it sounds like you're pretty close to a PTC.

I don't see how ignoring blocked signals would cause a SEGV however.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: handle_threadlist_exception: handle_threadlist_exception called with threadlist_ix -1

2005-10-11 Thread Pavel Tsekov
On Thu, 6 Oct 2005, Pavel Tsekov wrote:

> On Thu, 6 Oct 2005, Christopher Faylor wrote:
>
> > >It might be a different problem but the message is the same.
> >
> > It *is* a different problem.
>
> Ok.
>
> > Some thread is sending a signal 31 (SIGUSR1).  Which thread is doing this?
>
> An application thread signaling another thread to stop its execution. I am
> on it - I'll report back if I manage to find something.

While tracking this problem I found what I suspect is a small bug in
the way sigsuspend() works when it is used to retrieve the list of pending
signals for a thread other than the main one. I think this is related to
the crash I am seeing in some way though this has to be determined yet.

As I read the code, when retrieving the list of pending signals
sigpending() inspects only the list of blocked signals for the main
thread - it doesn't look in the thread specific list of blocked signals
of the calling thread.

The code which I refer to is the following block from wait_sig():

case __SIGPENDING:
  *pack.mask = 0;
  unsigned bit;
  sigq.reset ();
  while ((q = sigq.next ()))
if (myself->getsigmask () & (bit = SIGTOMASK (q->si.si_signo)))
  *pack.mask |= bit;
  break;

On the other hand the code in sigpacket::process() does the right thing
when it delivers a signal i.e. it looks the list of blocked signals in
both the main thread and the target thread.

Attached is a simple test case which demonstrates the problem.

On Linux:

pending_set = 
pending_set = 
pending_set = 
pending_set = 
pending_set = 
pending_set = 0800
exiting thread_loop()

On Cygwin:

pending_set = 
pending_set = 
pending_set = 
pending_set = 
pending_set = 
pending_set = 
pending_set = 
pending_set = 
pending_set = 
pending_set = 
pending_set = 
pending_set = 
pending_set = 

[ keeps looping forever ]#include 
#include 
#include 

static void *thread_loop (void *unused)
{
  sigset_t block_set, pending_set;

  sigemptyset (&block_set);
  sigaddset (&block_set, SIGUSR2);
  if (pthread_sigmask (SIG_BLOCK, &block_set, NULL) != 0)
{
  printf ("failed to set the list of blocked signals\n");
}

  while (1)
{
  sigpending (&pending_set);

  printf ("pending_set = %08X\n", pending_set);

  if (sigismember (&pending_set, SIGUSR2) != 0)
break;

  sleep (1);
}

  printf ("exiting thread_loop()\n");

  return NULL;
}

int main (int argc, char **argv)
{
  int rv;
  pthread_t thr_id;

  rv = pthread_create (&thr_id, NULL, thread_loop, NULL);
  if (rv != 0)
{
  printf ("failed to create thread.\n");
  exit (1);
}

  /* give the second thread a chance to run */
  sleep (5);

  while (1)
{
  if (pthread_kill (thr_id, SIGUSR2) != 0)
break;
}

  exit (0);
}
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

Re: handle_threadlist_exception: handle_threadlist_exception called with threadlist_ix -1

2005-10-06 Thread Pavel Tsekov
On Thu, 6 Oct 2005, Christopher Faylor wrote:

> >It might be a different problem but the message is the same.
>
> It *is* a different problem.

Ok.

> Some thread is sending a signal 31 (SIGUSR1).  Which thread is doing this?

An application thread signaling another thread to stop its execution. I am
on it - I'll report back if I manage to find something.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: handle_threadlist_exception: handle_threadlist_exception called with threadlist_ix -1

2005-10-06 Thread Christopher Faylor
On Thu, Oct 06, 2005 at 05:39:35PM +0300, Pavel Tsekov wrote:
>On Thu, 6 Oct 2005, Christopher Faylor wrote:
>
>> Did you happen to notice when the age of the message to which you're
>> responding?  Dave figured out the problem subsequent to sending the
>> above.  It was due to some object files not getting rebuilt after a
>> change to cygtls.h.
>
>Yes. When I saw the error message I remembered that I've seen it on
>the mailing list already. So, I used the search engine to find on
>which date the message was posted and replied ot that post.
>
>It might be a different problem but the message is the same.

It *is* a different problem.

>And this is with a clean build of the dll from yesterday and a clean
>build of the software from today.  Here is a backtrace (just for the
>record):
>
>(gdb) bt
>#0  sigismember (set=0x162f090, sig=31) at
>../../../../src/winsup/cygwin/signal.cc:429
>#1  0x61017710 in sigpacket::process (this=0x6113b3ec) at
>../../../../src/winsup/cygwin/exceptions.cc:1072
>#2  0x61092b18 in wait_sig () at
>../../../../src/winsup/cygwin/sigproc.cc:1128
>#3  0x610033ef in cygthread::stub (arg=0xa2eff0) at
>../../../../src/winsup/cygwin/cygthread.cc:73
>#4  0x0f94 in ?? ()
>#5  0x in ?? () from
>
>In frame 0 'set' is pointing at invalid memory - I am trying to determine
>why.

Some thread is sending a signal 31 (SIGUSR1).  Which thread is doing this?

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: handle_threadlist_exception: handle_threadlist_exception called with threadlist_ix -1

2005-10-06 Thread Pavel Tsekov

On Thu, 6 Oct 2005, Christopher Faylor wrote:

> Did you happen to notice when the age of the message to which you're
> responding?  Dave figured out the problem subsequent to sending the
> above.  It was due to some object files not getting rebuilt after a
> change to cygtls.h.

Yes. When I saw the error message I remembered that I've seen it on
the mailing list already. So, I used the search engine to find on
which date the message was posted and replied ot that post.

It might be a different problem but the message is the same. And this is
with a clean build of the dll from yesterday and a clean build of the
software from today. Here is a backtrace (just for the record):

(gdb) bt
#0  sigismember (set=0x162f090, sig=31) at
../../../../src/winsup/cygwin/signal.cc:429
#1  0x61017710 in sigpacket::process (this=0x6113b3ec) at
../../../../src/winsup/cygwin/exceptions.cc:1072
#2  0x61092b18 in wait_sig () at
../../../../src/winsup/cygwin/sigproc.cc:1128
#3  0x610033ef in cygthread::stub (arg=0xa2eff0) at
../../../../src/winsup/cygwin/cygthread.cc:73
#4  0x0f94 in ?? ()
#5  0x in ?? () from

In frame 0 'set' is pointing at invalid memory - I am trying to determine
why.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: handle_threadlist_exception: handle_threadlist_exception called with threadlist_ix -1

2005-10-06 Thread Christopher Faylor
On Thu, Oct 06, 2005 at 04:18:39PM +0300, Pavel Tsekov wrote:
>On Thu, 1 Sep 2005, Christopher Faylor wrote:
>
>> On Thu, Sep 01, 2005 at 03:25:17PM +0100, Dave Korn wrote:
>> >
>> >  Anyone else seeing quite a lot of these with current cvs HEAD?  Often when
>> >pressing Ctrl-C, sometimes when things exit for other (signal-related?)
>> >reasons?
>> >
>> >  I think this error indicates that a signal has been received but either
>> >find_tls hasn't yet been called, or something has overwritten the threadlist
>> >index.  There's a lot that goes on at startup/fork time, though, and I'm not
>> >deeply familiar with it.  Since I'm set up for debugging ATM, does anyone
>> >have any suggestions where I could look next?
>>
>> How about looking in the direction of a simple test scenario which 
>> demonstrates
>> what you are reporting?
>
>I am can reproduce this repeatedly - I'll try to isolate the cause and
>post a test case.

Did you happen to notice when the age of the message to which you're
responding?  Dave figured out the problem subsequent to sending the
above.  It was due to some object files not getting rebuilt after a
change to cygtls.h.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: handle_threadlist_exception: handle_threadlist_exception called with threadlist_ix -1

2005-10-06 Thread Pavel Tsekov
On Thu, 1 Sep 2005, Christopher Faylor wrote:

> On Thu, Sep 01, 2005 at 03:25:17PM +0100, Dave Korn wrote:
> >
> >  Anyone else seeing quite a lot of these with current cvs HEAD?  Often when
> >pressing Ctrl-C, sometimes when things exit for other (signal-related?)
> >reasons?
> >
> >  I think this error indicates that a signal has been received but either
> >find_tls hasn't yet been called, or something has overwritten the threadlist
> >index.  There's a lot that goes on at startup/fork time, though, and I'm not
> >deeply familiar with it.  Since I'm set up for debugging ATM, does anyone
> >have any suggestions where I could look next?
>
> How about looking in the direction of a simple test scenario which 
> demonstrates
> what you are reporting?

I am can reproduce this repeatedly - I'll try to isolate the cause and
post a test case.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: handle_threadlist_exception: handle_threadlist_exception called with threadlist_ix -1

2005-09-01 Thread Dave Korn
Original Message
>From: Christopher Faylor
>Sent: 01 September 2005 15:44

> On Thu, Sep 01, 2005 at 03:25:17PM +0100, Dave Korn wrote:
>> 
>>  Anyone else seeing quite a lot of these with current cvs HEAD?  Often
>> when pressing Ctrl-C, sometimes when things exit for other
>> (signal-related?) reasons? 
>> 
>>  I think this error indicates that a signal has been received but either
>> find_tls hasn't yet been called, or something has overwritten the
>> threadlist index.  There's a lot that goes on at startup/fork time,
>> though, and I'm not deeply familiar with it.  Since I'm set up for
>> debugging ATM, does anyone have any suggestions where I could look next?
> 
> How about looking in the direction of a simple test scenario which
> demonstrates what you are reporting?
> 
> cgf


  Well, "run programs and sometimes it happens when you press Ctrl-C" isn't
exactly reproducible, so I was trying to find out what the message _means_
so that I could try and make a few guesses at how to trip whatever condition
it indicates so that I might have a chance of being able to make a testcase.


cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: handle_threadlist_exception: handle_threadlist_exception called with threadlist_ix -1

2005-09-01 Thread Christopher Faylor
On Thu, Sep 01, 2005 at 03:25:17PM +0100, Dave Korn wrote:
>
>  Anyone else seeing quite a lot of these with current cvs HEAD?  Often when
>pressing Ctrl-C, sometimes when things exit for other (signal-related?)
>reasons?
>
>  I think this error indicates that a signal has been received but either
>find_tls hasn't yet been called, or something has overwritten the threadlist
>index.  There's a lot that goes on at startup/fork time, though, and I'm not
>deeply familiar with it.  Since I'm set up for debugging ATM, does anyone
>have any suggestions where I could look next?

How about looking in the direction of a simple test scenario which demonstrates
what you are reporting?

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



handle_threadlist_exception: handle_threadlist_exception called with threadlist_ix -1

2005-09-01 Thread Dave Korn


  Anyone else seeing quite a lot of these with current cvs HEAD?  Often when
pressing Ctrl-C, sometimes when things exit for other (signal-related?)
reasons?

  I think this error indicates that a signal has been received but either
find_tls hasn't yet been called, or something has overwritten the threadlist
index.  There's a lot that goes on at startup/fork time, though, and I'm not
deeply familiar with it.  Since I'm set up for debugging ATM, does anyone
have any suggestions where I could look next?


cheers, 
  DaveK
-- 
Can't think of a witty .sigline today


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/