I tried that, it did not help either, same error. What do you use for dev
OS, IDE etc.
Do you think switching on ubuntu should help? I will try that anyway. I am
out of
ideas at this point if switching OS does not work either.

gdb) b master.cpp:2481
Cannot access memory at address 0x714d40


On Thu, Jun 2, 2016 at 1:56 PM, Gilbert Song <[email protected]> wrote:

> Vinit,
>
> Seems like your question is similar to this one:
>
> https://mail-archives.apache.org/mod_mbox/mesos-dev/201507.mbox/%3CCAOs_uxyyeJNF+CtceOd7zZabSMJTneC=yyqcpwbz-gjyesp...@mail.gmail.com%3E
>
> Could you verify if James' reply would help for your case?
>
> https://mail-archives.apache.org/mod_mbox/mesos-dev/201507.mbox/%[email protected]%3E
>
> Gilbert
>
> On Thu, Jun 2, 2016 at 11:24 AM, Vinit Mahedia <[email protected]>
> wrote:
>
> > Hi Gilbert,
> >
> > Thank you for replying.
> >
> > Yes, I did that.
> >
> >
> >    1.  ./configure --enable-debug --disable-java --disable-python
> >    2.  make
> >    3. ./bin/gdb-mesos-master.sh --ip=127.0.0.1 --work_dir=.
> >
> > Although even after setting source directory, I can not set breakpoint I
> > get warning like this
> >
> > (gdb) break master.cpp:2481
> > Cannot access memory at address 0x714d40
> >
> >
> > I also tried few things, passing "static" flag to libtool, passing
> >  "--enable-static"
> >
> > Although I got linker error, where I saw libtool was not using --static
> > flag and I do
> > not know if doing that will fix it. I forgot to mention that am building
> > this on Mac OS.
> >
> > Thank you.
> >
> >
> >
> > On Thu, Jun 2, 2016 at 12:33 PM, Gilbert Song <[email protected]>
> > wrote:
> >
> > > Hi Vinit,
> > >
> > > Did you configure with debug mode (e.g., ../confugure --enable-debug)?
> > >
> > > Assuming you have the gdb installed, you should be able to debug mesos
> > > master
> > > in gbd:
> > >
> > > ./bin/gdb-mesos-master.sh --ip=127.0.0.1 --work_dir=/var/lib/mesos
> > >
> > >
> > > Gilbert
> > >
> > > On Thu, Jun 2, 2016 at 9:30 AM, Vinit Mahedia <[email protected]>
> > > wrote:
> > >
> > > > I have been trying to debug mesos-master using gdb-mesos-master.sh
> > > although
> > > > it does not load symbols or sources. I tried to set those paths as
> well
> > > but
> > > > since it thinks mesos-master, libtool script, is the main binary.
> > > >
> > > > I just want to set the dev environment and try to fix a very stupid
> bug
> > > to
> > > > learn the work flow of test/debug/commit.
> > > >
> > > > If I can get it working, I can help to write if such documentation
> does
> > > not
> > > > exist. I also tried to set it up on eclipse CDT but it can't handle
> > > libtool
> > > > scripts.
> > > >
> > > > Thank you.
> > > >
> > >
> >
>

Reply via email to