List:Internals« Previous MessageNext Message »
From:Hiromichi Watari Date:April 24 2011 8:34pm
Subject:Use of thread specific data with mysqld
View as plain text  
Hi,
I'm trying to use thread specific data with mysqld but ran into a problem with my_errno
generating Segmentation fault at the following line.
I know that my_errno is also thread specific data but not familiar with its
implementation.
I'm using pthread_key_create(), pthread_setspecific() and pthread_getspecific() for my own
thread specific data, is there something I should be aware of ?
Thanks,
Hiromichi

p.s. I ran into this problem only if I try to use my own thread specific data, of course.

--------------------------------------------------------------------------------------------------
 
File my_register_filename(....)
.
.
.

my_errno= errno;   ----> generates segmentation fault
.
.
.



Program received signal SIGSEGV, Segmentation fault.
0x084b5975 in my_register_filename (fd=-1, FileName=0xb75b52af "./mysql/db.opt",
type_of_file=FILE_BY_OPEN, error_message_number=29, MyFlags=0) at
/home/hwatari/mysql-server-4/mysql-5.5-modified/mysys/my_open.c:157

Thread
Use of thread specific data with mysqldHiromichi Watari24 Apr
  • Re: Use of thread specific data with mysqldSergei Golubchik24 Apr
    • Re: Use of thread specific data with mysqldHiromichi Watari26 Apr
      • Re: Use of thread specific data with mysqldMarc Alff27 Apr
        • Re: Use of thread specific data with mysqldHiromichi Watari28 Apr
          • Re: Use of thread specific data with mysqldMats Kindahl3 May
            • Re: Use of thread specific data with mysqldHiromichi Watari4 May
            • Re: Use of thread specific data with mysqldMichael Widenius4 May
              • Regression test returning different result each time it's runHiromichi Watari15 Jun
                • Re: Regression test returning different result each time it's runØystein Grøvlen16 Jun
                  • Re: Regression test returning different result each time it's runHiromichi Watari16 Jun
                    • Re: Regression test returning different result each time it's runØystein Grøvlen16 Jun
                      • Re: Regression test returning different result each time it's runRick James16 Jun
                        • Re: Regression test returning different result each time it's runHiromichi Watari18 Jun
                      • Re: Regression test returning different result each time it's runHiromichi Watari18 Jun
                        • Name of function to execute mysql commandHiromichi Watari21 Jan