Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Valgrind warning with the last incoming repo #6953

Closed
jeremyletang opened this issue Jun 5, 2013 · 1 comment
Closed

Valgrind warning with the last incoming repo #6953

jeremyletang opened this issue Jun 5, 2013 · 1 comment

Comments

@jeremyletang
Copy link
Contributor

Hi,

I have a strange message with the latest version of the compiler from the incoming repo. This message is provided by valgrind with only a simple main.

This is the message :

Warning: client switching stacks?  SP change: 0x7fefff9e0 --> 0x7fedca738
==17001==          to suppress, use: --max-stackframe=2314920 or greater
==17001== Syscall param read(buf) points to unaddressable byte(s)
==17001==    at 0x4018877: read (syscall-template.S:81)
==17001==    by 0x4005FDC: open_verify (dl-load.c:2093)
==17001==    by 0x4006406: open_path (dl-load.c:2210)
==17001==    by 0x4008E88: _dl_map_object (dl-load.c:2418)
==17001==    by 0x400CD61: openaux (dl-deps.c:63)
==17001==    by 0x400F705: _dl_catch_error (dl-error.c:177)
==17001==    by 0x400D438: _dl_map_object_deps (dl-deps.c:256)
==17001==    by 0x40036AA: dl_main (rtld.c:1744)
==17001==    by 0x401678D: _dl_sysdep_start (dl-sysdep.c:241)
==17001==    by 0x4005227: _dl_start (rtld.c:337)
==17001==    by 0x4001657: ??? (in /lib/x86_64-linux-gnu/ld-2.17.so)
==17001==  Address 0x7fedca750 is on thread 1's stack
==17001== 
==17001== Warning: client switching stacks?  SP change: 0x7fedca740 --> 0x7fefffa18
==17001==          to suppress, use: --max-stackframe=2314968 or greater

I just compile the program like this :

> rustc main.rs

And i use no flag with valgrind.

@Aatch
Copy link
Contributor

Aatch commented Jun 5, 2013

Rust uses green threads, so we do switch stacks. This is expected behaviour.

There is a suppression file in src/etc if you wish to turn it off.

@Aatch Aatch closed this as completed Jun 5, 2013
flip1995 pushed a commit to flip1995/rust that referenced this issue Apr 8, 2021
Add MSRV options to `unnested_or_patterns`

changelog: [`unnested_or_patterns`] can now be configured with the `msrv` config/attribute.

Fixes rust-lang#6953
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants