|<< Back to previous view|
[PCC-358] Segfault on every binary compiled with PCC Created: 18/Jun/11 Updated: 01/Aug/11
Arch Linux running 2.6.39 kernel. Installed last version of pcc and pcc-libs. This is the version string:
# pcc -v
pcc 1.0.0.RELEASE 20110221 for i686-pc-linux-gnu, mghis@trantor
no input files
Every binary I try to compile with PCC, even a trivial 'hello world', crashes with a segfault. I tried to debug with this:
% pcc -g main.c
% gdb a.out
Reading symbols from /tmp/a.out...done.
1 #include <stdio.h>
5 printf("hello world\n");
6 return 0;
Starting program: /tmp/a.out
Program received signal SIGSEGV, Segmentation fault.
0x00000001 in ?? ()
No function contains program counter for selected frame.
Where is the problem?
|Comment by Gregory McGarry [ 11/Jul/11 01:30 AM ]|
pcc-libs should be okay now with the latest binutils.
|Comment by mghis [ 11/Jul/11 03:38 PM ]|
|Thanks, it works! (and I don't know how to close the bug report!)|