tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Segfault due to ebaa5c8 dynamic executables (PIE)


From: Herman ten Brugge
Subject: Re: [Tinycc-devel] Segfault due to ebaa5c8 dynamic executables (PIE)
Date: Sat, 13 Aug 2022 11:36:00 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0

I changed debug check in tccdbg.c on mob. Could you try again.

    Herman


On 8/6/22 21:35, Arthur Williams wrote:
Was trying to compile X and noticed that it failed building hw/xfree86/

Turns out tcc was segfaulting by trying to deference a null address.
Bisected mob to conclude that this regression was introduced by
`ebaa5c8 dynamic executables (PIE)`.

Also built tcc with its backtracing support and re-ran to get the
following output:
```
7f282ff1293c : by ???
tccelf.c:311: by section_ptr_add
tccdbg.c:453: by put_stabs
tccdbg.c:477: by put_stabn
```

And putting that all together, `section_ptr_add` received a null `Section`
which implies `stab_section` is null. Double-checked this conclusion by
adding an assert.

Not too familiar with this part of the code so thought I'd just share my
observations.

Arthur





reply via email to

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