GithubHelp home page GithubHelp logo

sslab-gatech / apollo Goto Github PK

View Code? Open in Web Editor NEW
68.0 10.0 13.0 90.47 MB

A toolchain for automatically detecting, reporting, and diagnosing performance bugs in DBMSs.

Shell 0.03% Perl 1.18% Makefile 0.05% Python 3.25% Roff 0.02% PLpgSQL 0.12% TSQL 0.31% M4 0.02% C++ 2.41% XSLT 0.04% C 0.09% HCL 92.36% CMake 0.13%

apollo's Issues

[Question] Which SQL generator is used in evaluation?

The paper says:

We develop SQLFUZZ based on SQLSmith and Random Query Generator (RQG) [20].

And also it says:

Third, SQLFUZZ supports two types of query generators to address query dialect problem: a
SQLSmith-based generator [26] for SQLite and PostgreSQL systems, and a RQG-based random query generator [20] for MySQL and MariaDB systems.

So, what is the generator used in the evaluation part? What is used as the default generator in the current SQLFuzz?

[Question] How to show fuzzing data?

Hi,

SQLFuzz was executed for 24 hours, but I found nothing under the out folder. I also didn't see coverage report in the verbose info printed in the console.

Is there any commandline args that should report fuzzing result?

Custom interestingness tests

I looked into using SQLMin to reduce SQLite test cases. Most existing reducers like C-Reduce or Delta accept an "interestingness test", which essentially captures whether the reducer maintains a specific property as specified in a script. While for APOLLO, this is obviously the performance regression, I think it would be highly useful to also allow other interestingness tests (e.g., whether a logic bug is still reproduced). Judging from the source code and options, there is currently no way to specify other interestingness tests. Would it be possible to implement such an option?

configure: error: Could not find a version of the Boost::Regex library!

Hi, I still cannot compile the code. I've run the scripts and installed the packages with apt:

....
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking whether the Boost::Regex library is available... yes
configure: error: Could not find a version of the Boost::Regex library!
make: *** No targets specified and no makefile found.  Stop.
configure.ac:19: installing './compile'
configure.ac:4: installing './install-sh'
configure.ac:4: installing './missing'
Makefile.am: installing './depcomp'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking whether g++ supports C++11 features by default... no
checking whether g++ supports C++11 features with -std=c++11... yes
checking for pg_config... /usr/bin/pg_config
checking for PostgreSQL libraries... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBPQXX... yes
checking for MONETDB_MAPI... no
checking for boostlib >= 1.20.0... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking whether the Boost::Regex library is available... yes
configure: error: Could not find a version of the Boost::Regex library!
make: *** No targets specified and no makefile found.  Stop.
ln: failed to create symbolic link 'src/sqlfuzz/sqlsmith': File exists
ln: failed to create symbolic link 'src/sqlfuzz/sqlsmith-prob': File exists
ln: failed to create symbolic link 'src/sqlmin/sqlparse/sqlparse': File exists
ln: failed to create symbolic link 'src/sqlmin/pg_format': File exists
apollo@8c0ed6dc05f4:/$ sudo apt install libboost-regex-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libboost-regex-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.

Could I know which version you are using?

Missing Python Dependencies

Hi,

Could you please provide the Python version and also dependent packages (requirements.txt)? I get a lot of missing dependencies when trying to run fuzz.py. I think the Python 2 is used but I'm not sure.

Could you please provide Dockerfile?

Hi all,

I read the install-deps.sh file, and I think it would be better to build the tool inside a container. For example, libboost-regex-dev will make compilation of original header files unstable (from my experience). And also testing the sqlite3 from apt version will make the database unusable and unstable. For me I will only install the required headers for sqlite3 with apt and build the database separately.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.