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: New
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-04-29 17:11 UTC (History)
5 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 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...