Hi,
I just make a test if my thoughts are right. On a Wheezy debian i386 I type in comandline
qemu-i386 -strace clonemi
(clonemi is the program testclone but with the endless loops in waitpid at its end put out.)
The result is exact like on Raspberry Pi with ARM 1176 processor.
So you can see, that the error belongs to the try of building TWO threads in the guest i386,
independ which host you have,
Dietmar
PS: Again the parent_tidptr and the child_tidptr are different in the SAME clone(),
but are identic to the values in the other thread with clone(). What does this mean?
Hi,
I just make a test if my thoughts are right. On a Wheezy debian i386 I type in comandline
qemu-i386 -strace clonemi
(clonemi is the program testclone but with the endless loops in waitpid at its end put out.)
The result is exact like on Raspberry Pi with ARM 1176 processor.
So you can see, that the error belongs to the try of building TWO threads in the guest i386,
independ which host you have,
Dietmar
PS: Again the parent_tidptr and the child_tidptr are different in the SAME clone(),
but are identic to the values in the other thread with clone(). What does this mean?
root@didi2: /home/didi2# qemu-i386 -strace clonemi "/etc/ld. so.nohwcap" ,F_OK) = -1 errno=2 (No such file or directory) 8192,PROT_ READ|PROT_ WRITE,MAP_ PRIVATE| MAP_ANONYMOUS, -1,0) = 0x40821000 "/etc/ld. so.preload" ,R_OK) = -1 errno=2 (No such file or directory) etc/ld. so.cache" ,O_RDONLY) = 3 3,0x408004b4) = 0 78819,PROT_ READ,MAP_ PRIVATE, 3,0) = 0x40823000 "/etc/ld. so.nohwcap" ,F_OK) = -1 errno=2 (No such file or directory) lib/i386- linux-gnu/ i686/cmov/ libc.so. 6",O_RDONLY) = 3 0x408005e8, 512) = 512 3,0x40800508) = 0 1427832, PROT_EXEC| PROT_READ, MAP_PRIVATE| MAP_DENYWRITE, 3,0) = 0x40837000 0x4098d000, 4096,PROT_ NONE) = 0 0,12288, PROT_READ| PROT_WRITE, MAP_PRIVATE| MAP_DENYWRITE| MAP_FIXED, 3,0x156) = 0x4098e000 0,10616, PROT_READ| PROT_WRITE, MAP_PRIVATE| MAP_ANONYMOUS| MAP_FIXED, -1,0) = 0x40991000 4096,PROT_ READ|PROT_ WRITE,MAP_ PRIVATE| MAP_ANONYMOUS, -1,0) = 0x40994000 area(1082132912 ,1082253300, 1083786944, 1,0,1082132940) = 0 0x4098e000, 8192,PROT_ READ) = 0 0x4081d000, 4096,PROT_ READ) = 0 0x40823000, 78819) = 0 266240, PROT_READ| PROT_WRITE, MAP_PRIVATE| MAP_ANONYMOUS, -1,0) = 0x40995000 VM|CLONE_ FS|CLONE_ FILES|0x11, child_stack= 0x409d4fe4, parent_ tidptr= 0x4080f590, tls=0x08049a34, child_tidptr= 0x40800ab8) = 12271 266240, PROT_READ| PROT_WRITE, MAP_PRIVATE| MAP_ANONYMOUS, -1,0) = 0x409d6000 VM|CLONE_ FS|CLONE_ FILES|0x11, child_stack= 0x40a15fe4, parent_ tidptr= 0x4080f590, tls=0x08049a34, child_tidptr= 0x40800ab8) = 12272 1,0x408003b4) = 0 0x409d4ddc, 18)thread1: 0 hello1 0x40a15ddc, 18)thread2: 0 hello2 4096,PROT_ READ|PROT_ WRITE,12270 nanosleep( 1084050848, 0,134514044, 0,1809, 1084050856) = 18 MAP_ANONYMOUS, -1,0)12270 nanosleep( 1084317088, 0,134514175, 0,1809, 1084317096) = 0x40a17000 0x40a17000, 18)status1= 0x80487ab 0x40a17000, 19)status2= 0x40800ab8 0x40a17000, 19)End of clone test. /home/didi2#
12270 brk(NULL) = 0x0804a000
12270 uname(0x408007fa) = 0
12270 access(
12270 mmap2(NULL,
12270 access(
12270 open("/
12270 fstat64(
12270 mmap2(NULL,
12270 close(3) = 0
12270 access(
12270 open("/
12270 read(3,
12270 fstat64(
12270 mmap2(NULL,
12270 mprotect(
12270 mmap2(0x4098e00
12270 mmap2(0x4099100
12270 close(3) = 0
12270 mmap2(NULL,
12270 set_thread_
12270 mprotect(
12270 mprotect(
12270 munmap(
12270 mmap2(NULL,
12270 clone(CLONE_
12270 mmap2(NULL,
12270 clone(CLONE_
12270 fstat64(
12270 write(1,
12270 write(1,
= 18
12270 mmap2(NULL,
MAP_PRIVATE|
12270 write(1,
= 18
12270 write(1,
= 19
12270 write(1,
= 19
12270 exit_group(0)
root@didi2: