Bug 254461
Summary: | Compiling "fwlogwatch" with -O2: Segmentation fault while running | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Christian Weiss <cwei> | ||||
Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 7 | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2007-09-04 16:57:24 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Christian Weiss
2007-08-25 20:48:15 UTC
Created attachment 172641 [details]
small /var/log/messages for testing purposes
Far more probable than a compiler bug is just a buggy program. If the program triggers undefined behavior somewhere, different optimization levels can change how the bug manifests. So, please start with running the program under valgrind, or some other memory management debugger (ElectricFence, etc.), check for warnings, try to do binary search in which source file the -O1 vs. -O2 matters, try additional options like -O2 -fno-strict-aliasing in case e.g. the program would violate aliasing rules. You are right. There was a bug... |