Bug 25424 - CU referenced from PU (--odr-mode=link case)
Summary: CU referenced from PU (--odr-mode=link case)
Status: RESOLVED FIXED
Alias: None
Product: dwz
Classification: Unclassified
Component: default (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-20 15:47 UTC by Tom de Vries
Modified: 2021-02-27 10:39 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom de Vries 2020-01-20 15:47:08 UTC
When applying the assert patch from PR25398 comment 1 to master, we hit the assert like this:
...
$ dwz cc1 -lnone --odr-mode=link
dwz: dwz.c:11047: write_die: Assertion `IMPLIES (cu->cu_kind == CU_PU, die_cu (refd)->cu_kind == CU_PU)' failed.
Aborted (core dumped)
...
Comment 2 Tom de Vries 2020-01-22 13:43:32 UTC
tentative patch series: https://github.com/vries/dwz/tree/tentative-﷒0
Comment 3 Mark Wielaard 2020-09-13 14:23:38 UTC
(In reply to Tom de Vries from comment #2)
> tentative patch series: https://github.com/vries/dwz/tree/tentative-﷒0

That URL doesn't resolve for me. I assume it is:
https://github.com/vries/dwz/commits/tentative-﷒0
Comment 4 Mark Wielaard 2020-09-13 14:25:49 UTC
Wow, that is odd. It seems I am unable to post a fixed URL.
One last time: https://github.com/vries/dwz/commits/tentative-﷒0
Comment 5 Mark Wielaard 2020-09-13 14:29:31 UTC
OK, lets try if we can give command line instructions instead:

$ git remote add vries https://github.com/vries/dwz
$ git pull --all
$ git checkout tentative-pr25424
Comment 6 Tom de Vries 2021-02-24 17:21:12 UTC
Updated tentative patch series:

https://github.com/vries/dwz/commit/e523774d643f25533c42ddb14dffc9723b563944
Comment 7 Tom de Vries 2021-02-24 17:23:39 UTC
(In reply to Tom de Vries from comment #6)
> Updated tentative patch series:
> 
> https://github.com/vries/dwz/commit/e523774d643f25533c42ddb14dffc9723b563944

Sorry, that should have been: pr25424-2">https://github.com/vries/dwz/commits/tentative-pr25424-2