https://bugzilla.novell.com/show_bug.cgi?id=758843
https://bugzilla.novell.com/show_bug.cgi?id=758843#c2
Ihno Krumreich changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--- Comment #2 from Ihno Krumreich 2012-08-16 10:24:59 UTC ---
I reproduced the dump:
(gdb) Disassemble isatty
Dump of assembler code for function __GI_isatty:
0x00000000004747d0 <+0>: push %rbp
0x00000000004747d1 <+1>: mov %rsp,%rbp
0x00000000004747d4 <+4>: sub $0x60,%rsp
0x00000000004747d8 <+8>: mov %edi,-0x54(%rbp)
=> 0x00000000004747db <+11>: mov %fs:0x28,%rax
0x00000000004747e4 <+20>: mov %rax,-0x8(%rbp)
0x00000000004747e8 <+24>: xor %eax,%eax
0x00000000004747ea <+26>: lea -0x50(%rbp),%rdx
0x00000000004747ee <+30>: mov -0x54(%rbp),%eax
0x00000000004747f1 <+33>: mov %rdx,%rsi
0x00000000004747f4 <+36>: mov %eax,%edi
0x00000000004747f6 <+38>: callq 0x474ba0 <__GI_tcgetattr>
0x00000000004747fb <+43>: test %eax,%eax
0x00000000004747fd <+45>: sete %al
0x0000000000474800 <+48>: movzbl %al,%eax
0x0000000000474803 <+51>: mov -0x8(%rbp),%rdx
0x0000000000474807 <+55>: xor %fs:0x28,%rdx
0x0000000000474810 <+64>: je 0x474817 <__GI_isatty+71>
0x0000000000474812 <+66>: callq 0x45c6af <__stack_chk_fail>
0x0000000000474817 <+71>: leaveq
0x0000000000474818 <+72>: retq
End of assembler dump.
(gdb) where
#0 __GI_isatty (fd=0) at libc/termios/isatty.c:27
#1 0x000000000046f44e in _stdio_init () at libc/stdio/_stdio.c:256
#2 0x0000000000400fbe in __GI___uClibc_init () at
libc/misc/internals/__uClibc_main.c:238
#3 0x0000000000401193 in __uClibc_main (main=0x400d70 <main>, argc=1,
argv=0x7fff18448288, app_init=0x40017c <_init>, app_fini=0x4dae8c <_fini>,
rtld_fini=0,
stack_end=0x7fff18448278) at libc/misc/internals/__uClibc_main.c:329
#4 0x0000000000400e25 in _start () at libc/sysdeps/linux/x86_64/crt1.S:128
(gdb) info regis
rax 0x0 0
rbx 0x120 288
rcx 0x401539 4199737
rdx 0x76dd209cd2c78f10 8565037924251832080
rsi 0x7fff184480e8 140733600530664
rdi 0x0 0
rbp 0x7fff18448090 0x7fff18448090
rsp 0x7fff18448030 0x7fff18448030
r8 0x0 0
r9 0x0 0
r10 0x7fff18448220 140733600530976
r11 0x202 514
r12 0x0 0
r13 0x0 0
r14 0x0 0
r15 0x0 0
rip 0x4747db 0x4747db <__GI_isatty+11>
eflags 0x10206 [ PF IF RF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
The access to
0x00000000004747db <+11>: mov %fs:0x28,%rax
causes the segfault. According to Michael Matz this is an access to
make code thread save. I currently have no idea who is responsible to setup
the segment register fs.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.