Skip to content

users/crashrep: Add note about using custom builds of Syncthing#540

Merged
calmh merged 5 commits intosyncthing:mainfrom
tomasz1986:tomasz86-crashrep-localbuild
Aug 1, 2020
Merged

users/crashrep: Add note about using custom builds of Syncthing#540
calmh merged 5 commits intosyncthing:mainfrom
tomasz1986:tomasz86-crashrep-localbuild

Conversation

@tomasz1986
Copy link
Member

Add a note explaining the inclusion of information such as the user's
computer, domain, and user name in the crash logs. Also, provide a
solution on how not to include those when building Syncthing locally.

Signed-off-by: Tomasz Wilczyński twilczynski@naver.com

@calmh
Copy link
Member

calmh commented Aug 1, 2020

This sounds to me like if you're using any custom build and it crashes we will report your username etc, which is not the case. I'd say something about the fact that the binary includes information about who built it, and that this is essential to interpreting the crash report in context.

@AudriusButkevicius
Copy link
Member

I think this should clarify that those things get embedded in the version, and the version gets reported as part of the crash report

@tomasz1986
Copy link
Member Author

I think that I have included all the requested changes in the note. Is it fine now?

main.syncthingMain(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x49651b4, 0x1, 0x0, 0x0, ...)
/buildagent/work/github.com/syncthing/syncthing/cmd/syncthing/main.go:873 +0x1bc5

Note that when using a custom compiled build, the names of the domain,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/when using a custom compiled build,// ?

included in the log as part of the version string. This information is
essential for the developers to interpret the crash log in context. If
you compile Synching locally and want to prevent your build from having
such data embedded, set the ``COMPUTERNAME``, ``USERDOMAIN``, and
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure where these variables come from but they don't appear to be what we actually look at

https://github.com/syncthing/syncthing/blob/a85bc1c3a64e33f1c42fe6e1dbeb19a953d01431/build.go#L999

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be instructions on tweaking the compiled in metadata on the build page, and we should link to that from here rather than duplicating, I think

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can refer to https://docs.syncthing.net/dev/building.html#version-tagging by

:ref:`versiontagging`

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variables come from https://forum.syncthing.net/t/15417/7. I must admit though that I have not tested them myself, but rather just believed the word 😯.

I will try to make all the changes shortly, but let me first actually compile and test everything myself just to make sure that there are no further similar flops on my part.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have simplified and rewritten the note to match the terminology used in https://docs.syncthing.net/dev/building.html#version-tagging. I have also tested the compilation, and indeed the variables listed by @calmh are the right ones, while the other ones do not do anything.

Add a note explaining the inclusion of information such as the user's
computer, domain, and user name in the crash logs. Also, provide a
solution on how not to include those when building Syncthing locally.

Signed-off-by: Tomasz Wilczyński <twilczynski@naver.com>
Signed-off-by: Tomasz Wilczyński <twilczynski@naver.com>
Signed-off-by: Tomasz Wilczyński <twilczynski@naver.com>
Signed-off-by: Tomasz Wilczyński <twilczynski@naver.com>
Signed-off-by: Tomasz Wilczyński <twilczynski@naver.com>
@tomasz1986 tomasz1986 force-pushed the tomasz86-crashrep-localbuild branch from 3ea015f to a7e43f0 Compare August 1, 2020 11:27
@calmh calmh merged commit f683b10 into syncthing:main Aug 1, 2020
@tomasz1986 tomasz1986 deleted the tomasz86-crashrep-localbuild branch August 2, 2020 04:12
@syncthing syncthing locked and limited conversation to collaborators Aug 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants