Bug#846243: tcc: segmentation fault on any code compiled by tcc (similar to #808008)

2016-12-02 Thread Marco Bodrato
Bonjour!

Il Gio, 1 Dicembre 2016 6:39 pm, Matteo Cypriani ha scritto:
> Le mardi 29 novembre 2016, 15:31:29 EST Marco Bodrato a écrit :
>> /tmp$ tcc /usr/share/doc/tcc/examples/ex1.c -o ex1
>> /tmp$ ./ex1
>> Segmentation fault
>
> I tried reproducing this on two of my machines (amd64 like yours, and same
> versions of tcc and libc6 than you), but I don't have this problem.
> Could you please show us the result of `tcc -vv`?

Oops, you are right. My fault. I forgot I installed a local version of tcc
and it was in the path before the Debian version...

Using the tcc binary from the package, the bug disappear. The bug can be
closed.

Sorry and thanks for your work,
mb

-- 
http://bodrato.it/papers/



Bug#846243: tcc: segmentation fault on any code compiled by tcc (similar to #808008)

2016-12-01 Thread Matteo Cypriani
Control: tags -1 moreinfo

Hi Marco,

Le mardi 29 novembre 2016, 15:31:29 EST Marco Bodrato a écrit :
> /tmp$ tcc /usr/share/doc/tcc/examples/ex1.c -o ex1
> /tmp$ ./ex1
> Segmentation fault

I tried reproducing this on two of my machines (amd64 like yours, and same 
versions of tcc and libc6 than you), but I don't have this problem.
Could you please show us the result of `tcc -vv`?

Cheers,
  Matteo

signature.asc
Description: This is a digitally signed message part.


Bug#846243: tcc: segmentation fault on any code compiled by tcc (similar to #808008)

2016-11-29 Thread Marco Bodrato
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.
0x004002a4 in _start ()
(gdb) disassemble
Dump of assembler code for function _start:
   0x00400280 <+0>: xor%ebp,%ebp
   0x00400282 <+2>: mov%rdx,%r9
   0x00400285 <+5>: pop%rsi
   0x00400286 <+6>: mov%rsp,%rdx
   0x00400289 <+9>: and$0xfff0,%rsp
   0x0040028d <+13>:push   %rax
   0x0040028e <+14>:push   %rsp
   0x0040028f <+15>:mov$0x400350,%r8
   0x00400296 <+22>:mov$0x4002e0,%rcx
   0x0040029d <+29>:mov$0x4002ab,%rdi
=> 0x004002a4 <+36>:callq  *0x0(%rip)# 0x4002aa
<_start+42>
   0x004002aa <+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/