gluster-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gluster-devel] Segmentation fault on thread exit


From: Shehjar Tikoo
Subject: Re: [Gluster-devel] Segmentation fault on thread exit
Date: Fri, 19 Feb 2010 13:18:35 -0600 (CST)

----- "Dongmin Yu" <address@hidden> wrote:

> Hello,
> 
> When I run simple task on thread context, it causes segmentation fault
> on thread exit. I'm using glusterfs-3.0.2.
> 
> Here're my test code.
> 
> void* test2(void *aa)
> {
>     int a = *(int*)aa;
>     glusterfs_file_t fd ;
>     printf("thread created %d\n", a );
> 
>     fd = glusterfs_open( "/hs2/hello_thread.txt",
> O_CREAT|O_TRUNC|O_WRONLY, 666 );
>     glusterfs_close( fd );
> 
>     printf("end thread %d\n", a );
> 
>     return 0;
> }
> 
> void thread_test2()
> {
>     mount();
>  
The mount syscall takes various arguments. That could  be a cause of the 
segfault.

-Shehjar

   int result;
>     int i=0;
>     pthread_t t;
> 
>     pthread_create(&t, NULL, test2, &i) ;
> 
>     pthread_join( t, (void**)&result);
> 
> }
> 
> #############
> thread created 0
> end thread 0
> Segmentation fault (core dumped)
> 
> ################
> Failed to read a valid object file image from memory.
> [Thread debugging using libthread_db enabled]
> [New Thread -1210217728 (LWP 1103)]
> [New Thread -1219961936 (LWP 1106)]
> [New Thread -1228350544 (LWP 1107)]
> [New Thread -1236739152 (LWP 1109)]
> thread created 0
> end thread 0
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread -1236739152 (LWP 1109)]
> 0xb7dda077 in dlvsym () from /lib/tls/libdl.so.2
> (gdb) bt
> #0  0xb7dda077 in dlvsym () from /lib/tls/libdl.so.2
> #1  0xb7e1dae6 in __nptl_deallocate_tsd () from
> /lib/tls/libpthread.so.0
> #2  0xb7e1e0cb in start_thread () from /lib/tls/libpthread.so.0
> #3  0xb7ef701e in clone () from /lib/tls/libc.so.6
> 
> 
> 
> 
> Thanks
> 
> DongMin Yu
> 
> HOSTWAY IDC Corp. / R&D Principal Researcher
> TEL. +822 2105 6037
> FAX. +822 2105 6019
> CELL. +8216 2086 1357
> EMAIL: address@hidden<mailto:address@hidden>
> Website: http://www.hostway.com
> 
> NOTICE:  This email and any file transmitted are confidential and/or
> legally privileged and intended only for the person(s) directly
> addressed.  If you are not the intended recipient, any use, copying,
> transmission, distribution, or other forms of dissemination is
> strictly prohibited.  If you have received this email in error, please
> notify the sender immediately and permanently delete the email and
> files, if any.
> 
> _______________________________________________
> Gluster-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/gluster-devel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]