<< Back to previous view

[PCC-358] Segfault on every binary compiled with PCC Created: 18/Jun/11  Updated: 01/Aug/11

Status: Resolved
Project: pcc
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Blocker
Reporter: mghis Assignee: Gregory McGarry
Resolution: Fixed Votes: 0
Environment: 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.
(gdb) list
1 #include <stdio.h>
3 main()
4 {
5 printf("hello world\n");
6 return 0;
7 }
(gdb) run
Starting program: /tmp/a.out

Program received signal SIGSEGV, Segmentation fault.
0x00000001 in ?? ()
(gdb) disassemble
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!)
Generated at Fri Oct 20 23:39:54 CEST 2017 using JIRA Enterprise Edition, Version: 3.13.1-#333.