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

Mull crashed with incorrect regex passed to --include-path #845

Closed
ligurio opened this issue Mar 23, 2021 · 0 comments · Fixed by #918
Closed

Mull crashed with incorrect regex passed to --include-path #845

ligurio opened this issue Mar 23, 2021 · 0 comments · Fixed by #918

Comments

@ligurio
Copy link
Contributor

ligurio commented Mar 23, 2021

How-to reproduce

sergeyb@pony:~/sources/mull_testing$ mull-cxx --include-path=*func1.c ./main
[info] Extracting bitcode from executable (threads: 1)
       [################################] 1/1. Finished in 1ms
[info] Loading bitcode files (threads: 3)
       [################################] 3/3. Finished in 12msterminate called after throwing an instance of 'std::regex_error'
  what():  regex_error
Aborted (core dumped)

With gdb:

(gdb) run --include-path=*func1.c ./main
Starting program: /usr/bin/mull-cxx --include-path=*func1.c ./main
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[info] Extracting bitcode from executable (threads: 1)
       [################################] 1/1. Finished in 1ms[New Thread 0x7ffff5a2b700 (LWP 2445803)]
[New Thread 0x7fffeffff700 (LWP 2445804)]
[New Thread 0x7ffff522a700 (LWP 2445805)]

[info] Loading bitcode files (threads: 3)
[New Thread 0x7ffff4a29700 (LWP 2445806)]
       [#####################-----------] 2/3[Thread 0x7fffeffff700 (LWP 2445804) exited]
[Thread 0x7ffff5a2b700 (LWP 2445803) exited]
[Thread 0x7ffff522a700 (LWP 2445805) exited]
       [################################] 3/3. Finished in 11ms[Thread 0x7ffff4a29700 (LWP 2445806) exited]
terminate called after throwing an instance of 'std::regex_error'
  what():  regex_error

Thread 1 "mull-cxx" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50      ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb)

Version

Mull: LLVM-based mutation testing
https://github.com/mull-project/mull
Version: 0.10.0-trunk1
Commit: eed5960
Date: 22 Mar 2021
LLVM: 11.0.0

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

Successfully merging a pull request may close this issue.

1 participant