Package: tcc
Version: 0.9.27~git20151227.933c223-1
Severity: important

Dear Maintainer,

I'm currently unable to run any program compiled with tcc.

/tmp$ tcc /usr/share/doc/tcc/examples/ex1.c -o ex1
/tmp$ ./ex1
Segmentation fault

The problem seems related to the already closed bug #808008, but seg-fault
happens in _start ().

/tmp$ gdb ./ex1
[...]
(gdb) run
Starting program: /tmp/ex1

Program received signal SIGSEGV, Segmentation fault.
0x00000000004002a4 in _start ()
(gdb) disassemble
Dump of assembler code for function _start:
   0x0000000000400280 <+0>:     xor    %ebp,%ebp
   0x0000000000400282 <+2>:     mov    %rdx,%r9
   0x0000000000400285 <+5>:     pop    %rsi
   0x0000000000400286 <+6>:     mov    %rsp,%rdx
   0x0000000000400289 <+9>:     and    $0xfffffffffffffff0,%rsp
   0x000000000040028d <+13>:    push   %rax
   0x000000000040028e <+14>:    push   %rsp
   0x000000000040028f <+15>:    mov    $0x400350,%r8
   0x0000000000400296 <+22>:    mov    $0x4002e0,%rcx
   0x000000000040029d <+29>:    mov    $0x4002ab,%rdi
=> 0x00000000004002a4 <+36>:    callq  *0x0(%rip)        # 0x4002aa
<_start+42>
   0x00000000004002aa <+42>:    hlt

Best regards,
mb

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.3.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages tcc depends on:
ii  libc6  2.24-7

Versions of packages tcc recommends:
ii  libc6-dev [libc-dev]  2.24-7

tcc suggests no packages.

-- no debconf information


-- 
http://bodrato.it/

Reply via email to