roxen.lists.pike.general

Subject Author Date
Re: Wow, Trace++ (Re: Identifier reference index 36 out of range Henrik_Grubbström <grubba[at]roxen[dot]com> 22-06-2009
 0..29)
On Mon, 22 Jun 2009, Stephen R. van den Berg wrote:

> Henrik Grubbstr?m wrote:
>> Please update src/program.[ch] so you get the program tables dumped.
>
> This looks promising.  See the new & improved full trace below.
>
>> My guess at this point is that there's some non-threadsafe code during
>> error handling in the mysql module.
>
> That's what I thought, though a casual inspection of the ALLOW() macros
> in mysql.c doesn't reveal anything significant so far.

My main suspect is pike_threadlib.h:SWAP_IN_THREAD_IF_REQUIRED(). Try 
redefining it to:

#define SWAP_IN_THREAD_IF_REQUIRED() ASSERT_THREAD_SWAPPED_IN()

And see if anything bites.

> Identifier reference index 36 out of range 0..29
> -- 
> Sincerely,
>           Stephen R. van den Berg.

--
Henrik Grubbström					<grubba[at]roxen.com>
Roxen Internet Software AB