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

Regex error #8

Open
matthiasbeyer opened this issue May 14, 2016 · 12 comments
Open

Regex error #8

matthiasbeyer opened this issue May 14, 2016 · 12 comments

Comments

@matthiasbeyer
Copy link

cargo profiler crashes for me:

Profiling imag-counter with cachegrind...
error: regex error -- please file a bug.
third party subcommand `cargo-profiler` exited unsuccessfully

How to investigate?

@kernelmachine
Copy link
Collaborator

hey there,

Cool, you'll be the guinea pig here in this type of bug fix :) There's probably something in your cachegrind output that's screwing up the regex. We'll just have to improve the regex.

We're gonna have to dig into the original cachegrind output to figure out what's going on. Could you send me the cachegrind-out-file from valgrind itself? I can investigate.

$ valgrind --tool=cachegrind --cachegrind-out-file=cachegrind.txt

@kernelmachine
Copy link
Collaborator

As an aside, I wonder how to improve the error message so that it's easier to investigate this type of stuff. Something to think about.

@matthiasbeyer
Copy link
Author

Here is the paste: http://pastebin.com/NaZs4BCg

It's 8k lines so I pasted it on pastebin.

@kernelmachine
Copy link
Collaborator

sounds good, thanks.

@kernelmachine
Copy link
Collaborator

hm, this is pretty weird. a sample of your cachegrind output:

:do_lookup_x   24 38,621   742   235 18,455    41     8  ???
:_dl_relocate_object,101 3,003 2,861  8,630 1,852 1,827  ???
:__GI_memset    5  4,590     1     0 17,285   552   506  ???
:je_arena_tcache_fill_small 25     0  3,704   132   128  ???
:__memcpy_sse2_unaligned   107    89 15,036 1,097   704  ???
:strcmp  146   54 10,884   299   106      0     0     0  ???
:_IO_vfscanf   53 14,422    10     6  6,838     7     0  ???
:_dl_lookup_symbol_x,009   192   118  4,945    34     9  ???
:check_match    6 15,106   428   168  7,013    23     3  ???
:raw_vec::RawVec$LT$T$GT$.Drop::drop::h14124021383039242148ome/m/archive/development/rust/imag/imag-counter/src/liballoc/raw_vec.rs
:____strtoul_l_internal2    12     8  1,128     2     0  ???
:raw_vec::RawVec$LT$T$GT$::unsafe_no_drop_flag_needs_drop::h1846786809691398471pment/rust/imag/imag-counter/src/liballoc/raw_vec.rs

I'm not entirely sure what's going on here. It seems like metrics are being overwritten by function names...and function names are at the beginning of the line, instead of their usual place at the end. More complicated issue than I originally had thought.

I'll probably do more research to try to figure out why this might be happening, but it's very strange. Hopefully this isn't a consistent issue.

@regexident
Copy link
Contributor

regexident commented May 19, 2016

Here's one from me, in case that helps: http://pastebin.com/xUTH1E2Y
(using valgrind installed via brew install valgrind on OS X 10.11.4)

@russellb23
Copy link

russellb23 commented Jun 18, 2019

Same issue:
`

cargo profiler callgrind -n 10

Compiling problem2 in debug mode...

Profiling problem2 with callgrind...
error: Regex error -- please file a bug. In bug report, please include the original output file from profiler, e.g. from valgrind --tool=cachegrind --cachegrind-out-file=cachegrind.txt`

callgrind.txt

@JAicewizard
Copy link

Installed valgrind from arch linux repos 3.15.0.1 and having the same issues.
https://pastebin.com/X562yamL

@JAicewizard
Copy link

@svenstaro
you're the new maintainer, I don't know if you get notifications for threads you didn't subscribe to.

@svenstaro
Copy link
Owner

Oh crap, you're right. I didn't . I'll take a look, sorry!

@PsychoInferno
Copy link

Another regex error: pastebin

@fabracht
Copy link

I'm having the same issue. Has this been solved?

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

8 participants