Issue Details (XML | Word | Printable)

Key: PCC-360
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Anders Magnusson
Reporter: Nicolas Joly
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
pcc

runtime crash on float assignment

Created: 23/Jun/11 07:35 PM   Updated: 25/Jun/11 11:14 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Environment:
NetBSD lynche.sis.pasteur.fr 5.99.52 NetBSD 5.99.52 (LYNCHE) #7: Wed May 25 18:14:00 CEST 2011 njoly@lynche.sis.pasteur.fr:/local/src/NetBSD/obj.amd64/sys/arch/amd64/compile/LYNCHE amd64
pcc 1.1.0.DEVEL 20110620 for x86_64-unknown-netbsd5.99.52


 Description  « Hide
The following sample code, crash at runtime on f2 assignment:

njoly@lynche [~]> cat xx.c
int main() {
  float f1 = 0.0;
  float f2 = -f1;
  return 0; }
njoly@lynche [~]> pcc -g -o xx xx.c; echo $?
0
njoly@lynche [~]> ./xx
zsh: segmentation fault (core dumped) ./xx
njoly@lynche [~]> gdb xx xx.core
GNU gdb 6.5
[...]
Core was generated by `xx'.
Program terminated with signal 11, Segmentation fault.
#0 0x000000000040089e in main () at xx.c:3
3 float f2 = -f1;


 All   Comments   Change History      Sort Order: Descending order - Click to sort in ascending order
Anders Magnusson added a comment - 25/Jun/11 11:14 AM
Fixed.

Nicolas Joly added a comment - 25/Jun/11 11:11 AM
Indeed. No more problem.
Thanks.

Anders Magnusson added a comment - 25/Jun/11 10:04 AM
Can you please recheck? It may just have been fixed.