[lkml]   [2006]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectO_DIRECT error, user space programming
I got an:
*** glibc detected *** double free or corruption (!prev): 0x84c01000 ***
using O_DIRECT with threads: this error appends if I run several threads
wich are reading several files (opened with O_RDONLY|O_DIRECT) at the same
The error doesn't appends if I open the files whithout O_DIRECT or if I
place a pthread_join after each thread call.
I'm sure that no double free is done.
kernel version: 2.6.17 SMP PREEMPT
glibc version: 2.3.6
filesystem: ext3
g++ used: g++ (GCC) 4.0.4 20060507 (prerelease) (Debian 4.0.3-3)
Does somebody knows the reasons of the error? There are limitation to use
O_DIRECT on a multithread application?
Thanks in advance for any help.

ps. I can provide the source code code (135 lines of C++) if it is useful
to uinderstand better the problem

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2006-11-29 15:53    [W:0.019 / U:9.920 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site