Bug 254483 - DTrace scripts fail: line 106: failed to copy type of 'inp': Conflicting type is already defined
Summary: DTrace scripts fail: line 106: failed to copy type of 'inp': Conflicting type...
Status: Closed DUPLICATE of bug 258763
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 12.2-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-22 18:10 UTC by Yuri Victorovich
Modified: 2021-10-05 01:11 UTC (History)
6 users (show)

See Also:


Attachments
Dependency on ip.d (336 bytes, patch)
2021-04-29 16:47 UTC, Rudolf Čejka
no flags Details | Diff
Dependency on ip.d with .d suffix (338 bytes, patch)
2021-04-29 16:52 UTC, Rudolf Čejka
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer freebsd_triage 2021-03-22 18:10:05 UTC
DTrace scripts that previously worked now fail.

For example:

> #!/usr/sbin/dtrace -s
> 
> /*
>  * Trace process termination events
>  * Args: <none>
>  */
> 
> proc:::exit {
>   printf("proc:::exit pid=%d exec=%s exit-reason=%d", pid, execname, args[0]);
> }

Failure message:
> dtrace: failed to compile script ./proc-exit.d: "/usr/lib/dtrace/ipfw.d", line 106: failed to copy type of 'inp': Conflicting type is already defined
Comment 1 Rudolf Čejka 2021-04-29 16:47:20 UTC
Created attachment 224538 [details]
Dependency on ip.d

Hello, please try included patch. Will it help you? It helped me.
Comment 2 Rudolf Čejka 2021-04-29 16:52:43 UTC
Created attachment 224539 [details]
Dependency on ip.d with .d suffix

Oops, I'm sorry. I wanted to send patch with dependency on ip.d with suffix .d as is in other .d files.
Comment 3 Rudolf Čejka 2021-04-29 17:11:26 UTC
I'm sorry again, I was too fast. This could not be the solution :o/ It worked for me just in case of non existent dependency, which meant that ipfw.d has been skipped. I'm going to keep looking with another try...
Comment 4 Andrey V. Elsukov freebsd_committer freebsd_triage 2021-09-30 12:23:11 UTC
(In reply to Rudolf Čejka from comment #3)

It seems the patch helps when ipfw.d fails with message:
"/usr/lib/dtrace/ipfw.d", line 121: failed to copy type of 'ip6p': Conflicting type is already defined

Add proposed line fixes this problem.
Comment 5 Mark Johnston freebsd_committer freebsd_triage 2021-10-04 16:30:26 UTC
Does the libctf patch from PR 258763 fix this?
Comment 6 Rudolf Čejka 2021-10-05 00:07:24 UTC
Hi, for me, with libctf patch I can run dtrace scripts again. Thank you very much.
Comment 7 Mark Johnston freebsd_committer freebsd_triage 2021-10-05 01:11:43 UTC

*** This bug has been marked as a duplicate of bug 258763 ***
Comment 8 Mark Johnston freebsd_committer freebsd_triage 2021-10-05 01:11:57 UTC
(In reply to Rudolf Čejka from comment #6)
Thanks for the confirmation.