Coder Social home page Coder Social logo

compile and run issue about dbx1000 HOT 8 CLOSED

egg-west avatar egg-west commented on September 4, 2024
compile and run issue

from dbx1000.

Comments (8)

yxymit avatar yxymit commented on September 4, 2024

Did you change the configuration file? If so, can you send me the config file you used?

Thanks

from dbx1000.

egg-west avatar egg-west commented on September 4, 2024

I think I did not change the configuration.

from dbx1000.

yxymit avatar yxymit commented on September 4, 2024

Did you 1) checkout the repo, 2) run 'make', and 3) run './rundb'? Also, can you try running the program with a debugger (e.g., gdb) and let me know which line causes the trouble? Right now I don't have enough information to understand what the issue is.

from dbx1000.

egg-west avatar egg-west commented on September 4, 2024

I did nothing except editing the test.py to make it work in python 3.6. Then I run the './rundb', the results is like
mem_allocator initialized!
Segmentation fault (core dumped)

And I will try to find out which line caused this.
Thank you.

from dbx1000.

egg-west avatar egg-west commented on September 4, 2024

I got the results below in gdb:

(gdb) continue
Continuing.
[New Thread 0x7ffff63ff700 (LWP 5250)]
[New Thread 0x7ffff5bfe700 (LWP 5251)]
[New Thread 0x7ffff53fd700 (LWP 5252)]
Thread 3 "rundb" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff5bfe700 (LWP 5251)]
table_t::get_new_row (this=0x0, row=@0x7ffff5bfde68: 0x0, part_id=part_id@entry=0, row_id=@0x7ffff5bfde70: 0)
at storage/table.cpp:22
22 cur_tab_size ++;

(gdb) continue
Continuing.
[Thread 0x7ffff53fd700 (LWP 5252) exited]
[Thread 0x7ffff5bfe700 (LWP 5251) exited]
[Thread 0x7ffff63ff700 (LWP 5250) exited]
Thread 2 received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff63ff700 (LWP 5250)]
Cannot remove breakpoints because program is no longer writable.
Further execution is probably impossible.

from dbx1000.

egg-west avatar egg-west commented on September 4, 2024

I guess the problem is caused after and close to main.cpp:44

from dbx1000.

yxymit avatar yxymit commented on September 4, 2024

Do you have GRAPHITE_HOME defined in your system? If so, this is a very rare bug triggered by some legacy code. I have just pushed some changes to the repo. Specifically,

--- a/benchmarks/ycsb_wl.cpp
+++ b/benchmarks/ycsb_wl.cpp
@@ -21,14 +21,7 @@ int ycsb_wl::next_tid;
 RC ycsb_wl::init() {
        workload::init();
        next_tid = 0;
-       char * cpath = getenv("GRAPHITE_HOME");
-       string path;
-       if (cpath == NULL)
-               path = "./benchmarks/YCSB_schema.txt";
-       else {
-               path = string(cpath);
-               path += "/tests/apps/dbms/YCSB_schema.txt";
-       }
+       string path = "./benchmarks/YCSB_schema.txt";
        init_schema( path );

Let me know if this works.

from dbx1000.

egg-west avatar egg-west commented on September 4, 2024

It works now.
I am not sure about GRAPHITE_HOME.

Thank you sincerely.

from dbx1000.

Related Issues (20)

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.