Page MenuHomePhabricator

rsundahl (Roy Sundahl)
User

Projects

User does not belong to any projects.

User Details

User Since
Mar 30 2022, 12:35 PM (61 w, 3 d)

Recent Activity

Wed, May 31

rsundahl updated subscribers of D57279: NFC: Reduce presence of "template <typename AddressSpaceView>".

I am curious if LocalAddressSpaceView stuff is in use, maybe it's abandoned and can be removed?

I'm not familiar with AddressSpaceView @vitalybuka but @yln or @kubamracek may have better perspective. Would applying this patch internally to see if we have explicit dependencies be useful? I can certainly do that as a black-box test, otherwise I'd have to dig in a bit to be of much help.

Wed, May 31, 8:59 PM · Restricted Project
rsundahl accepted D151846: [Sanitizers][Darwin][ASanABI] Fix architecture config for ASan Abi.

Tested this diff on both x86_64 and arm64. LGTM @thetruestblue. Thank you!

Wed, May 31, 4:42 PM · Restricted Project, Restricted Project

Thu, May 25

rsundahl committed rG6f026ff02985: Discussion: Darwin Sanitizers Stable ABI (authored by rsundahl).
Discussion: Darwin Sanitizers Stable ABI
Thu, May 25, 8:58 AM · Restricted Project, Restricted Project, Restricted Project
rsundahl closed D143675: Discussion: Darwin Sanitizers Stable ABI.
Thu, May 25, 8:58 AM · Restricted Project, Restricted Project, Restricted Project
rsundahl added a comment to D143675: Discussion: Darwin Sanitizers Stable ABI.

Thanks for your time and guidance getting this landed.

Thu, May 25, 8:48 AM · Restricted Project, Restricted Project, Restricted Project
rsundahl updated the diff for D143675: Discussion: Darwin Sanitizers Stable ABI.

Apply proper backticks quotes to options. Remove redundant ellipses.

Thu, May 25, 8:44 AM · Restricted Project, Restricted Project, Restricted Project

Mon, May 22

rsundahl added a comment to D143675: Discussion: Darwin Sanitizers Stable ABI.

Hello Egenii,

Mon, May 22, 12:39 PM · Restricted Project, Restricted Project, Restricted Project

Thu, May 18

rsundahl updated the diff for D143675: Discussion: Darwin Sanitizers Stable ABI.

Implement suggestions from latest review.

Thu, May 18, 9:32 AM · Restricted Project, Restricted Project, Restricted Project
rsundahl added inline comments to D143675: Discussion: Darwin Sanitizers Stable ABI.
Thu, May 18, 8:44 AM · Restricted Project, Restricted Project, Restricted Project

Wed, May 17

rsundahl added a comment to D143675: Discussion: Darwin Sanitizers Stable ABI.

Ping @kcc , @yln and @kubamracek

Wed, May 17, 6:41 PM · Restricted Project, Restricted Project, Restricted Project
rsundahl added a comment to D143675: Discussion: Darwin Sanitizers Stable ABI.

@MaskRay, thank you for your approval. @eugenis, you were added as a blocking reviewer by @vitalybuka. If you are still without objection, can we get your approval and merge? Thank you all for your input.

Wed, May 17, 6:39 PM · Restricted Project, Restricted Project, Restricted Project

Tue, May 16

rsundahl updated the diff for D143675: Discussion: Darwin Sanitizers Stable ABI.

Renamed darwin_exclude_symbols.inc asan_abi_tbd.txt.

Tue, May 16, 6:46 AM · Restricted Project, Restricted Project, Restricted Project

Mon, May 15

rsundahl updated the diff for D143675: Discussion: Darwin Sanitizers Stable ABI.

Missed one file in revert of combined -mllvm= change.

Mon, May 15, 11:31 PM · Restricted Project, Restricted Project, Restricted Project
rsundahl added a comment to D143675: Discussion: Darwin Sanitizers Stable ABI.

Suggestions for compiler-rt/docs/asan_abi.md are captured in the successor file compiler-rt/docs/ASanABI.rst and marked complete.

Mon, May 15, 9:02 PM · Restricted Project, Restricted Project, Restricted Project
rsundahl added a comment to D143675: Discussion: Darwin Sanitizers Stable ABI.

Suggestions for compiler-rt/docs/asan_abi.md are captured in the successor file compiler-rt/docs/ASanABI.rst and marked complete.

Mon, May 15, 9:00 PM · Restricted Project, Restricted Project, Restricted Project
rsundahl added a comment to D143675: Discussion: Darwin Sanitizers Stable ABI.

Thank you for your review and thoughtful input @eugenis, @MaskRay and @vitalybuka. I think we're close to having everything incorporated. (@MaskRay, the doc files went from .md to .rst and I implemented all of your suggestions there.

Mon, May 15, 8:44 PM · Restricted Project, Restricted Project, Restricted Project
rsundahl updated the diff for D143675: Discussion: Darwin Sanitizers Stable ABI.

Applied suggestions from reviewers

Mon, May 15, 8:20 PM · Restricted Project, Restricted Project, Restricted Project

Thu, May 11

rsundahl added a comment to D143675: Discussion: Darwin Sanitizers Stable ABI.

I'm fine with it in general. Is asan_abi.cpp meant as a temporary stub? It's not even link anywhere in the current version.

Thu, May 11, 3:59 PM · Restricted Project, Restricted Project, Restricted Project
rsundahl updated the diff for D143675: Discussion: Darwin Sanitizers Stable ABI.

Fixed nits (missing newlines at end of files)

Thu, May 11, 3:43 PM · Restricted Project, Restricted Project, Restricted Project
rsundahl updated the diff for D143675: Discussion: Darwin Sanitizers Stable ABI.

Added testing. Removed asan_abi_shim.h.

Thu, May 11, 3:34 PM · Restricted Project, Restricted Project, Restricted Project

Wed, May 10

rsundahl added a comment to D143675: Discussion: Darwin Sanitizers Stable ABI.

Small insignificant note from me: When this lands, please be sure to add me as co-author.
https://github.blog/2018-01-29-commit-together-with-co-authors/

Wed, May 10, 10:54 AM · Restricted Project, Restricted Project, Restricted Project
rsundahl added a comment to D143675: Discussion: Darwin Sanitizers Stable ABI.

I'm fine with it in general. Is asan_abi.cpp meant as a temporary stub? It's not even link anywhere in the current version.

Wed, May 10, 10:50 AM · Restricted Project, Restricted Project, Restricted Project

May 1 2023

rsundahl added a comment to D143675: Discussion: Darwin Sanitizers Stable ABI.

@kcc @eugenis @MaskRay @vitalybuka Ok to go with this? All new functionality is under the added flag so not expecting any surprises. Rename asabi->asan_abi as suggested.

May 1 2023, 1:52 PM · Restricted Project, Restricted Project, Restricted Project
rsundahl updated the summary of D143675: Discussion: Darwin Sanitizers Stable ABI.
May 1 2023, 1:45 PM · Restricted Project, Restricted Project, Restricted Project
rsundahl updated the summary of D143675: Discussion: Darwin Sanitizers Stable ABI.
May 1 2023, 1:43 PM · Restricted Project, Restricted Project, Restricted Project
rsundahl updated the diff for D143675: Discussion: Darwin Sanitizers Stable ABI.

Rename asabi->asan_abi

May 1 2023, 1:40 PM · Restricted Project, Restricted Project, Restricted Project

Apr 20 2023

rsundahl added inline comments to D143675: Discussion: Darwin Sanitizers Stable ABI.
Apr 20 2023, 8:24 PM · Restricted Project, Restricted Project, Restricted Project
rsundahl added inline comments to D143675: Discussion: Darwin Sanitizers Stable ABI.
Apr 20 2023, 8:11 PM · Restricted Project, Restricted Project, Restricted Project
rsundahl updated the diff for D143675: Discussion: Darwin Sanitizers Stable ABI.

Rename fsanitize_address_stable_abi to fsanitize_stable_abi

Apr 20 2023, 7:09 PM · Restricted Project, Restricted Project, Restricted Project
rsundahl committed rGb62c39f9ef2a: [fuzzer][test] Disable big-file-copy.test for everything but macOS (authored by rsundahl).
[fuzzer][test] Disable big-file-copy.test for everything but macOS
Apr 20 2023, 12:20 PM · Restricted Project, Restricted Project
rsundahl closed D148727: [fuzzer][test] Disable big-file-copy.test for everything but macOS.
Apr 20 2023, 12:19 PM · Restricted Project, Restricted Project
rsundahl added a comment to D148727: [fuzzer][test] Disable big-file-copy.test for everything but macOS.

@yln @wrotki @thetruestblue please review/approve so we can unblock CI.

Apr 20 2023, 10:29 AM · Restricted Project, Restricted Project
rsundahl updated the diff for D148727: [fuzzer][test] Disable big-file-copy.test for everything but macOS.

Slightly more readable way to describe the situation

Apr 20 2023, 10:24 AM · Restricted Project, Restricted Project

Apr 19 2023

rsundahl added a comment to D143675: Discussion: Darwin Sanitizers Stable ABI.

@kcc @eugenis @MaskRay @vitalybuka Ok to go with this? All new functionality is under the added flag so not expecting any surprises.

Apr 19 2023, 2:38 PM · Restricted Project, Restricted Project, Restricted Project
rsundahl added reviewers for D148727: [fuzzer][test] Disable big-file-copy.test for everything but macOS: yln, thetruestblue, wrotki.
Apr 19 2023, 9:48 AM · Restricted Project, Restricted Project
rsundahl requested review of D148727: [fuzzer][test] Disable big-file-copy.test for everything but macOS.
Apr 19 2023, 9:47 AM · Restricted Project, Restricted Project
rsundahl accepted D148669: [Sanitizers][Darwin][Minversion] Bump DEFAULT_SANITIZER_MIN_OSX_VERSION to 10.13.

This looks good to me. The build fails appear to be a handful of unrelated ORC examples tests.

Apr 19 2023, 8:44 AM · Restricted Project, Restricted Project

Apr 5 2023

rsundahl committed rG5f17ba1a3832: [sanitizers] Simplify Explainer about dyld and weak overrides on Darwin. (NFC) (authored by rsundahl).
[sanitizers] Simplify Explainer about dyld and weak overrides on Darwin. (NFC)
Apr 5 2023, 10:04 AM · Restricted Project, Restricted Project
rsundahl closed D147526: [sanitizers] Simplify Explainer about dyld and weak overrides on Darwin. (NFC).
Apr 5 2023, 10:04 AM · Restricted Project, Restricted Project

Apr 4 2023

rsundahl updated the diff for D147526: [sanitizers] Simplify Explainer about dyld and weak overrides on Darwin. (NFC).

Added some suggested comments

Apr 4 2023, 12:04 PM · Restricted Project, Restricted Project
rsundahl committed rG5c950a3127da: [fuzzer][test] Avoid big-file-copy.test on memory constrained devices (authored by rsundahl).
[fuzzer][test] Avoid big-file-copy.test on memory constrained devices
Apr 4 2023, 11:03 AM · Restricted Project, Restricted Project
rsundahl closed D147502: [fuzzer][test] Avoid big-file-copy.test on memory constrained devices.
Apr 4 2023, 11:03 AM · Restricted Project, Restricted Project
rsundahl added inline comments to D147502: [fuzzer][test] Avoid big-file-copy.test on memory constrained devices.
Apr 4 2023, 9:04 AM · Restricted Project, Restricted Project
rsundahl updated the diff for D147502: [fuzzer][test] Avoid big-file-copy.test on memory constrained devices.

ios->tvos

Apr 4 2023, 9:03 AM · Restricted Project, Restricted Project
rsundahl added inline comments to D147502: [fuzzer][test] Avoid big-file-copy.test on memory constrained devices.
Apr 4 2023, 8:42 AM · Restricted Project, Restricted Project
rsundahl added a comment to D146745: [sanitizers] Explainer about dyld and weak overrides on Darwin. (NFC).

Unresolved issues from this differential are resolved in D147526.

Apr 4 2023, 6:27 AM · Restricted Project, Restricted Project
rsundahl added reviewers for D147526: [sanitizers] Simplify Explainer about dyld and weak overrides on Darwin. (NFC): yln, thetruestblue, wrotki.
Apr 4 2023, 6:25 AM · Restricted Project, Restricted Project
rsundahl requested review of D147526: [sanitizers] Simplify Explainer about dyld and weak overrides on Darwin. (NFC).
Apr 4 2023, 6:24 AM · Restricted Project, Restricted Project
rsundahl updated the summary of D147502: [fuzzer][test] Avoid big-file-copy.test on memory constrained devices.
Apr 4 2023, 5:50 AM · Restricted Project, Restricted Project
rsundahl retitled D147502: [fuzzer][test] Avoid big-file-copy.test on memory constrained devices from [sanitizer][test] Fix big-file-copy.test on device. to [fuzzer][test] Avoid big-file-copy.test on memory constrained devices.
Apr 4 2023, 5:49 AM · Restricted Project, Restricted Project
rsundahl updated the diff for D147502: [fuzzer][test] Avoid big-file-copy.test on memory constrained devices.

Change to improve title and summary.

Apr 4 2023, 5:45 AM · Restricted Project, Restricted Project

Apr 3 2023

rsundahl added reviewers for D147502: [fuzzer][test] Avoid big-file-copy.test on memory constrained devices: yln, thetruestblue, wrotki.
Apr 3 2023, 10:23 PM · Restricted Project, Restricted Project
rsundahl retitled D147502: [fuzzer][test] Avoid big-file-copy.test on memory constrained devices from [sanitizer][test] Fix big-file-copy.test on devices. Disable test on tvOS to [sanitizer][test] Fix big-file-copy.test on device..
Apr 3 2023, 10:21 PM · Restricted Project, Restricted Project
rsundahl updated the diff for D147502: [fuzzer][test] Avoid big-file-copy.test on memory constrained devices.

Update title and add Radar reference.

Apr 3 2023, 10:18 PM · Restricted Project, Restricted Project
rsundahl requested review of D147502: [fuzzer][test] Avoid big-file-copy.test on memory constrained devices.
Apr 3 2023, 10:15 PM · Restricted Project, Restricted Project

Mar 31 2023

rsundahl committed rGf1c5c84ae1a8: [sanitizers] Explainer about dyld and weak overrides on Darwin. (NFC) (authored by rsundahl).
[sanitizers] Explainer about dyld and weak overrides on Darwin. (NFC)
Mar 31 2023, 8:56 AM · Restricted Project, Restricted Project
rsundahl closed D146745: [sanitizers] Explainer about dyld and weak overrides on Darwin. (NFC).
Mar 31 2023, 8:56 AM · Restricted Project, Restricted Project
rsundahl committed rGca3313dade7e: [utils] Give git a dummy email address when cherry picking. (authored by rsundahl).
[utils] Give git a dummy email address when cherry picking.
Mar 31 2023, 8:52 AM · Restricted Project, Restricted Project
rsundahl closed D146728: [utils] Give git a dummy email address when cherry picking..
Mar 31 2023, 8:52 AM · Restricted Project, Restricted Project
rsundahl added a comment to D146728: [utils] Give git a dummy email address when cherry picking..

Why we need a dummy address? Did you met any issues?

Yes. The cherry pick failed because git wanted an email address for the commit. Since the commit is an anonymous commit in a container, I chose to provide an anonymous email address.

Can you just do

git cherry-pick -n

aka no commit? shouldn't require an email?

It's true that adding -n will avoid the commit, but doing so would be a functional change (leaving uncommitted changes in the working directory). This might not matter but it's more appropriate to anonymize the email address (since it's an owner-less docker image) and keeping the functionality as it is.

Mar 31 2023, 8:51 AM · Restricted Project, Restricted Project

Mar 30 2023

rsundahl added a comment to D146728: [utils] Give git a dummy email address when cherry picking..

This is fine... feels a little off.
Is there a script to run the docker container? Couldn't we bring it in there or when we build it?

I don't know use case for docker here. Just for tests? Or are we actually using these scripts for a dev environment we might push? Because in that case this feels wrong.

Mar 30 2023, 3:39 PM · Restricted Project, Restricted Project
rsundahl added a comment to D146745: [sanitizers] Explainer about dyld and weak overrides on Darwin. (NFC).

Ping - Thank you.

Mar 30 2023, 3:27 PM · Restricted Project, Restricted Project
rsundahl retitled D146745: [sanitizers] Explainer about dyld and weak overrides on Darwin. (NFC) from [sanitizers] Explainer about dyld and weak overrides on Darwin. to [sanitizers] Explainer about dyld and weak overrides on Darwin. (NFC).
Mar 30 2023, 3:27 PM · Restricted Project, Restricted Project

Mar 28 2023

rsundahl committed rG4c55fd974b9f: [fuzzer] Limit big-file-copy.test to darwin only (authored by rsundahl).
[fuzzer] Limit big-file-copy.test to darwin only
Mar 28 2023, 5:23 PM · Restricted Project, Restricted Project
rsundahl closed D147094: [fuzzer] Limit big-file-copy.test to darwin only.
Mar 28 2023, 5:23 PM · Restricted Project, Restricted Project
rsundahl added a reviewer for D147094: [fuzzer] Limit big-file-copy.test to darwin only: dergachev.a.
Mar 28 2023, 5:09 PM · Restricted Project, Restricted Project
rsundahl added reviewers for D147094: [fuzzer] Limit big-file-copy.test to darwin only: yln, thetruestblue, wrotki.
Mar 28 2023, 4:15 PM · Restricted Project, Restricted Project
rsundahl closed D146189: [fuzzer] Use puts() rather than printf() in CopyFileToErr().

Opening a new revision to limit the scope of the test to Darwin only. (https://reviews.llvm.org/D147094)

Mar 28 2023, 4:13 PM · Restricted Project, Restricted Project
rsundahl requested review of D147094: [fuzzer] Limit big-file-copy.test to darwin only.
Mar 28 2023, 4:12 PM · Restricted Project, Restricted Project
rsundahl reopened D146189: [fuzzer] Use puts() rather than printf() in CopyFileToErr().

Looks like I'll have to enable this test only on Darwin.

Mar 28 2023, 3:19 PM · Restricted Project, Restricted Project
rsundahl committed rG90b4d1bcb201: [fuzzer] Use puts() rather than printf() in CopyFileToErr() (authored by rsundahl).
[fuzzer] Use puts() rather than printf() in CopyFileToErr()
Mar 28 2023, 2:20 PM · Restricted Project, Restricted Project
rsundahl closed D146189: [fuzzer] Use puts() rather than printf() in CopyFileToErr().
Mar 28 2023, 2:19 PM · Restricted Project, Restricted Project
rsundahl updated the diff for D146189: [fuzzer] Use puts() rather than printf() in CopyFileToErr().

Rebased

Mar 28 2023, 2:10 PM · Restricted Project, Restricted Project
rsundahl accepted D146189: [fuzzer] Use puts() rather than printf() in CopyFileToErr().
Mar 28 2023, 2:09 PM · Restricted Project, Restricted Project
rsundahl added a comment to D146189: [fuzzer] Use puts() rather than printf() in CopyFileToErr().

I've tested this on linux and it now links (and passes). I am going to land it again and watch it closely.

Mar 28 2023, 1:58 PM · Restricted Project, Restricted Project

Mar 24 2023

rsundahl added a comment to D146745: [sanitizers] Explainer about dyld and weak overrides on Darwin. (NFC).

I have reworded with your suggestions in mind @yln. Thank you for the input. I didn't add any minimum version information since the guidance is benign going backward and good hygiene moving forward.

Mar 24 2023, 12:35 PM · Restricted Project, Restricted Project
rsundahl updated the diff for D146745: [sanitizers] Explainer about dyld and weak overrides on Darwin. (NFC).

Changed order of examples to meet narrative.

Mar 24 2023, 12:23 PM · Restricted Project, Restricted Project
rsundahl updated the diff for D146745: [sanitizers] Explainer about dyld and weak overrides on Darwin. (NFC).

Reword for consistency.

Mar 24 2023, 12:18 PM · Restricted Project, Restricted Project

Mar 23 2023

rsundahl updated the summary of D146745: [sanitizers] Explainer about dyld and weak overrides on Darwin. (NFC).
Mar 23 2023, 11:06 AM · Restricted Project, Restricted Project
rsundahl updated the diff for D146745: [sanitizers] Explainer about dyld and weak overrides on Darwin. (NFC).

Include a better summary

Mar 23 2023, 11:05 AM · Restricted Project, Restricted Project
rsundahl requested review of D146745: [sanitizers] Explainer about dyld and weak overrides on Darwin. (NFC).
Mar 23 2023, 10:54 AM · Restricted Project, Restricted Project
rsundahl updated the summary of D146728: [utils] Give git a dummy email address when cherry picking..
Mar 23 2023, 8:59 AM · Restricted Project, Restricted Project
rsundahl requested review of D146728: [utils] Give git a dummy email address when cherry picking..
Mar 23 2023, 8:52 AM · Restricted Project, Restricted Project

Mar 21 2023

rsundahl added a comment to D146471: [test][tsan] Remove weak, they are from headers now.

@rsundahl Do you thing it's going to work with D146469 ?

Thanks for including me @vitalybuka... To understand why these tests have the conditional code making the overrides "weak" please see https://reviews.llvm.org/D127929 (show older changes) for the discussion. To summarize here though:
The idea of a "strong" overriding "weak" symbols is reasonably well understood and iirc is specified by the standard(s) but only in the context of static linking. The problem is complicated with dynamic linking. For a worst case thought experience, think about what should happen to weakly bound symbols when an application calls dlopen() on a dll that contains possible overrides or additional weak symbols. dyld uses two-level name space linking which essentially precludes a strong symbol in a different module from ever replacing a weak symbol, but it has a slight variation on this behavior in that during this "weak-def coalescing", it does consider any other modules containing weak definitions. The weak attributes on the "overrides" in the tests above are there only to cause the module (the test program) to be considered during weak-def coalescing at which time the weak symbol in the test program overrides the weak symbol reference from the dll. Yes, in this case it's a weak overriding a weak but with dyld the way to think of it is that if a symbol is marked weak, then all definitions of that symbol are treated as weak during weak-def coalescing. It would be just as effective to define a dummy unused weak symbol in the test program:

__attribute__((weak)) int foo;

This too would mark the dll as having a weak symbol and so then all the symbols in the test program would be seen during weak-def coalescing.

Mar 21 2023, 9:45 AM · Restricted Project, Restricted Project
rsundahl added a reviewer for D146471: [test][tsan] Remove weak, they are from headers now: thetruestblue.

@rsundahl Do you thing it's going to work with D146469 ?

I'm not sure exactly what you're asking vis-a-vis https://reviews.llvm.org/D146469 @vitalybuka but I think it's a subtlety. Could you elaborate? I'm adding @thetruestblue as she has been working recently on these interceptors and may spot something that I don't.

Mar 21 2023, 9:25 AM · Restricted Project, Restricted Project
rsundahl added a comment to D146471: [test][tsan] Remove weak, they are from headers now.

@rsundahl Do you thing it's going to work with D146469 ?

Thanks for including me @vitalybuka... To understand why these tests have the conditional code making the overrides "weak" please see https://reviews.llvm.org/D127929 (show older changes) for the discussion. To summarize here though:
The idea of a "strong" overriding "weak" symbols is reasonably well understood and iirc is specified by the standard(s) but only in the context of static linking. The problem is complicated with dynamic linking. For a worst case thought experience, think about what should happen to weakly bound symbols when an application calls dlopen() on a dll that contains possible overrides or additional weak symbols. dyld uses two-level name space linking which essentially precludes a strong symbol in a different module from ever replacing a weak symbol, but it has a slight variation on this behavior in that during this "weak-def coalescing", it does consider any other modules containing weak definitions. The weak attributes on the "overrides" in the tests above are there only to cause the module (the test program) to be considered during weak-def coalescing at which time the weak symbol in the test program overrides the weak symbol reference from the dll. Yes, in this case it's a weak overriding a weak but with dyld the way to think of it is that if a symbol is marked weak, then all definitions of that symbol are treated as weak during weak-def coalescing. It would be just as effective to define a dummy unused weak symbol in the test program:

__attribute__((weak)) int foo;

This too would mark the dll as having a weak symbol and so then all the symbols in the test program would be seen during weak-def coalescing.

Mar 21 2023, 9:19 AM · Restricted Project, Restricted Project

Mar 20 2023

rsundahl updated subscribers of D146189: [fuzzer] Use puts() rather than printf() in CopyFileToErr().

cc: @dyung and @ormris - I have modified the test to use the canonical fuzzer entry point

int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size)

rather than

int main(int argc, char *argv[])

which was causing the duplicated symbol on Debian. It's interesting that it worked for us but not for Debian but this is the correct form in any case. Thanks for your input and for the revert. (I'm going to look into how I can get a build on the failed bot before I land this time.)

Mar 20 2023, 7:08 PM · Restricted Project, Restricted Project
rsundahl updated the diff for D146189: [fuzzer] Use puts() rather than printf() in CopyFileToErr().

Don't use main() for testing body (error on Debian).

Mar 20 2023, 6:58 PM · Restricted Project, Restricted Project
rsundahl reopened D146189: [fuzzer] Use puts() rather than printf() in CopyFileToErr().

Reopening to push changes for Debian test error (multiple main()'s).

Mar 20 2023, 6:54 PM · Restricted Project, Restricted Project
rsundahl added a comment to D146189: [fuzzer] Use puts() rather than printf() in CopyFileToErr().

@rsundahl the test you added big-file-copy.test is failing on a buildbot, can you take a look?

https://lab.llvm.org/buildbot/#/builders/247/builds/2653

Oh, interesting... Second copy of main() on a different platform. Thanks for the heads up.

Mar 20 2023, 8:45 AM · Restricted Project, Restricted Project

Mar 17 2023

rsundahl committed rG03aa02adb03c: [fuzzer] Use puts() rather than printf() in CopyFileToErr() (authored by rsundahl).
[fuzzer] Use puts() rather than printf() in CopyFileToErr()
Mar 17 2023, 9:09 AM · Restricted Project, Restricted Project
rsundahl closed D146189: [fuzzer] Use puts() rather than printf() in CopyFileToErr().
Mar 17 2023, 9:08 AM · Restricted Project, Restricted Project
rsundahl added a comment to D146189: [fuzzer] Use puts() rather than printf() in CopyFileToErr().

Thanks @yln!

when a crashed worker has generated >2Gb of output.

Are we fine with printing >2GB of output? That sounds like it could lead to trouble elsewhere. Since the output is coming from a file I would hope that there is a way to get to it (even for remote CI?)

The use case here is that a worker that has accumulated >2Gb of output (over what may be days or weeks) crashes before it can append its log to stderr and in crashing, doesn't do a clean exit so more data is potentially lost. I agree though, we should convey that log file to the parent some other way and I think you're right in suspecting that this large amount of output may bite us further downstream simply because we now succeed at generating it.

Do you think it would be worth investigating (as a separate follow-up) to truncate the output?

That's a good idea. Truncate the output or just don't use stderr as a pipe for large files. (Although it's Unix, right? K&R would be probably approve of a fix that removes a limit to the amount of data going through a pipe. lol)

Mar 17 2023, 8:59 AM · Restricted Project, Restricted Project
rsundahl updated the diff for D146189: [fuzzer] Use puts() rather than printf() in CopyFileToErr().

Linting

Mar 17 2023, 8:16 AM · Restricted Project, Restricted Project

Mar 15 2023

rsundahl added reviewers for D146189: [fuzzer] Use puts() rather than printf() in CopyFileToErr(): kcc, yln, thetruestblue, wrotki.
Mar 15 2023, 8:32 PM · Restricted Project, Restricted Project
rsundahl updated the diff for D146189: [fuzzer] Use puts() rather than printf() in CopyFileToErr().

Removed extraneous blank line.

Mar 15 2023, 8:25 PM · Restricted Project, Restricted Project
rsundahl retitled D146189: [fuzzer] Use puts() rather than printf() in CopyFileToErr() from [fuzzer] Use puts rather than printf in CopyFileToErr() to [fuzzer] Use puts() rather than printf() in CopyFileToErr().
Mar 15 2023, 8:20 PM · Restricted Project, Restricted Project
rsundahl updated the diff for D146189: [fuzzer] Use puts() rather than printf() in CopyFileToErr().

Clean up some wording and the title.

Mar 15 2023, 8:15 PM · Restricted Project, Restricted Project
rsundahl requested review of D146189: [fuzzer] Use puts() rather than printf() in CopyFileToErr().
Mar 15 2023, 8:09 PM · Restricted Project, Restricted Project

Mar 10 2023

rsundahl added a comment to D144830: [asan darwin] Allow clients to implement `__sanitizer_report_error_summary`.

usama/rsundahl how do I run an iOS test? I can't do arm, but x86_64 should be equivalent for a dyld problem? Also is there a waterfall for these types of breakages that I don't know about?

Not a waterfall, just a test failure due to an issue best read here: https://reviews.llvm.org/D127929 (show older changes). You can't test on iOS but you could test on macOS but even then your minimum deployment target has to be pretty high to see the issue manifest. In other words, you unsurprisingly couldn't anticipate this w/o better documentation and evangelization of the issue.

Mar 10 2023, 5:21 PM · Restricted Project, Restricted Project, Restricted Project