FS#48384 - [tcc] built programs segfault

Attached to Project: Community Packages
Opened by Steffen Nurpmeso (sdaoden) - Tuesday, 01 March 2016, 12:32 GMT
Last edited by Sergej Pupykin (sergej) - Thursday, 31 March 2016, 11:09 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Oh, i just detected that the tcc package is broken:

#include <time.h>
# include <errno.h>
int main(void){
struct timespec ts;

if(!clock_gettime(CLOCK_REALTIME, &ts) || errno != ENOSYS)
return 0;
return 1;
}

?0[sdaoden@wales nail.git]$ tcc -o zt xxx.c
?0[sdaoden@wales nail.git]$ ./zt
Segmentation fault (core dumped)
?139[sdaoden@wales nail.git]$

This package lives on my box since over half a year and has been used a thousand times, so i guess it needs a recompilation or similar.
gcc and clang can do the same file still fine.
Please fix this! Thank you!!

Additional info:
* package version(s)
* config and/or log files etc.

ArchLinux up-to-date (except kernel).

Steps to reproduce:
This task depends upon

Closed by  Sergej Pupykin (sergej)
Thursday, 31 March 2016, 11:09 GMT
Reason for closing:  Fixed
Additional comments about closing:  built from mob branch
Comment by Sergej Pupykin (sergej) - Tuesday, 01 March 2016, 19:06 GMT
It looks like it is incompatible with glibc start up code because of segfault occurs before main().
Also package rebuild does not help.
Comment by Steffen Nurpmeso (sdaoden) - Tuesday, 01 March 2016, 21:36 GMT
Oh what a mess. Shit. :)
Was nice to have!
Comment by Steffen Nurpmeso (sdaoden) - Tuesday, 01 March 2016, 21:38 GMT
Oh what a mess. Shit. :)
Was nice to have!
Comment by Alexander F. Rødseth (xyproto) - Wednesday, 16 March 2016, 09:50 GMT
This doesn't look like a packaging issue to me, but an upstream issue.

Issues for tcc itself can be reported here: https://lists.nongnu.org/mailman/listinfo/tinycc-devel
Comment by Steffen Nurpmeso (sdaoden) - Wednesday, 16 March 2016, 12:37 GMT
YEAH, i confirm the branch origin/mob does it again!
Yay!
I subscribed nonetheless.
Thanks!
Comment by Steffen Nurpmeso (sdaoden) - Wednesday, 16 March 2016, 12:43 GMT
(Yet it doesn't compile my thing, but that is something different.-)
Comment by Steffen Nurpmeso (sdaoden) - Thursday, 31 March 2016, 10:51 GMT
Hi! Is this closed? The mob branch works for me - you by chance don't plan to package that one? :)
Ciao!

Loading...