Closed Bug 654975 Opened 13 years ago Closed 13 years ago

PGO breaks Linux crash reports

Categories

(Firefox Build System :: General, defect)

All
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla6

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file, 3 obsolete files)

I isolated the lack of DW_AT_low_pc and DW_AT_high_pc from bug 654595 as a gcc 4.5 bug with -freorder-blocks-and-partition (4.4 is also affected, for that matter). gcc 4.6 apparently doesn't have this problem.

The problem is simply reproducible with this simple source code:
  int foo() { return 0; }

Compiled with gcc -o foo.o -c foo.c -g -freorder-blocks-and-partition

I still think we should fix bug 654595 on the dump_syms end, thus filing this separated bug to use as a workaround until we fix bug 654595.
We also need nsprpub/configure to be updated, obviously.
Assignee: nobody → mh+mozilla
Attachment #530275 - Attachment is obsolete: true
Attachment #530277 - Attachment is obsolete: true
New version doing the very same, but without touching nsprpub/
Attachment #530348 - Flags: review?(ted.mielczarek)
Comment on attachment 530348 [details] [diff] [review]
Remove -freorder-blocks-and-partition from PGO build options

Review of attachment 530348 [details] [diff] [review]:

::: config/nspr/Makefile.in
@@ +58,5 @@
 # Copy NSPR to the SDK
 ABS_DIST = $(call core_abspath,$(DIST))
 
 libs::
+	$(MAKE) -C $(DEPTH)/nsprpub PROFILE_USE_CFLAGS="$(PROFILE_USE_CFLAGS)"

We can revert this bit after we land NSPR changes, right? Can you file another bug on the NSPR changes, and mention it in a comment here?
Attachment #530348 - Flags: review?(ted.mielczarek) → review+
(In reply to comment #3)
> Comment on attachment 530348 [details] [diff] [review] [review]
> Remove -freorder-blocks-and-partition from PGO build options
> 
> Review of attachment 530348 [details] [diff] [review] [review]:
> 
> ::: config/nspr/Makefile.in
> @@ +58,5 @@
>  # Copy NSPR to the SDK
>  ABS_DIST = $(call core_abspath,$(DIST))
> 
>  libs::
> +    $(MAKE) -C $(DEPTH)/nsprpub PROFILE_USE_CFLAGS="$(PROFILE_USE_CFLAGS)"
> 
> We can revert this bit after we land NSPR changes, right? Can you file another
> bug on the NSPR changes, and mention it in a comment here?

Filed bug 655058. By "here" you mean here, or in the patch? (we can revert all config/nspr/* changes when the nspr change lands)
In a comment in that bit of the patch, I mean.
Attachment #530348 - Attachment is obsolete: true
http://hg.mozilla.org/mozilla-central/rev/afcca618a5a4
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla6
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: