segmentation fault when execute als in toolkit?

118 views
Skip to first unread message

Nan Zhu

unread,
Nov 28, 2013, 11:25:32 AM11/28/13
to graph...@googlegroups.com
Hi, 

I have two macbook pro, both with Mac OS X 10.9

I compiled the graphlab with ./configure --no_mpi --no_jvm to make it run in a multi-core machine 

when I execute als, in one of the laptops, it produced a segmentation fault 

What can  be the reason?

Thank you

Nan

Danny Bickson

unread,
Nov 28, 2013, 11:30:51 AM11/28/13
to graph...@googlegroups.com
One reason could be issues with tcmalloc but we can not know until you will send us additional information.

Please compile under debug/toolkits/collaborative_filtering"
> cd  debug/toolkits/collaborative_filtering
> make
> gdb als
> run <using all the command line you used>
> when the program segfaults send us the gdb trace.

Best,

Danny Bickson
Co-Founder
GraphLab Inc.


--
You received this message because you are subscribed to the Google Groups "GraphLab API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to graphlabapi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Nan Zhu

unread,
Nov 28, 2013, 10:25:50 PM11/28/13
to graph...@googlegroups.com
Hi Danny,

Thank you for giving me suggestion.

Here is the gdb trace result:

(gdb) run –matrix ./smallnetflix/ –max_iter=5 –ncpus=1 –predictions=out_file

Starting program: /my_path/als –matrix ./smallnetflix/ –max_iter=5 –ncpus=1 –predictions=out_file

Program received signal SIGSEGV, Segmentation fault.

0x0000000100bb2254 in ?? ()

Thanks,
Nan

Danny Bickson

unread,
Nov 29, 2013, 12:18:45 AM11/29/13
to graph...@googlegroups.com
We need to full execution trace and not just the last line.

Thanks

Danny Bickson
Co-Founder
GraphLab Inc.


Danny Bickson

unread,
Nov 29, 2013, 2:03:20 AM11/29/13
to Nan Zhu, graph...@googlegroups.com
I am almost certain something is wrong with your system setup.
Can you try and compile the hello world example? http://docs.graphlab.org/using_graphlab_empty_app.html
Let us know if it runs.

Thanks

Danny Bickson
Co-Founder
GraphLab Inc.


On Fri, Nov 29, 2013 at 8:49 AM, Nan Zhu <zhunan...@gmail.com> wrote:
Hi Danny,

This is all information as below, when running: gdb als

GNU gdb (GDB) 7.6.1

Copyright (C) 2013 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.  Type "show copying"

and "show warranty" for details.

This GDB was configured as "x86_64-apple-darwin13.0.0".

For bug reporting instructions, please see:

<http://www.gnu.org/software/gdb/bugs/>...

Reading symbols from /my_path/graphlab/debug/toolkits/collaborative_filtering/als...done.

(gdb) run –matrix ./smallnetflix/ –max_iter=5 –ncpus=1 –predictions=out_file

Starting program: /my_path/graphlab/debug/toolkits/collaborative_filtering/als –matrix ./smallnetflix/ –max_iter=5 –ncpus=1 –predictions=out_file


Program received signal SIGSEGV, Segmentation fault.

0x0000000100bb2254 in ?? ()

(gdb) where

#0  0x0000000100bb2254 in ?? ()

Cannot access memory at address 0x7fff5f3fff50

(gdb) bt

#0  0x0000000100bb2254 in ?? ()

Cannot access memory at address 0x7fff5f3fff50

Danny Bickson

unread,
Nov 29, 2013, 11:51:02 PM11/29/13
to Nan Zhu, graph...@googlegroups.com
I suspect tcmalloc does not work on your machine, please try to disable it
as instructed above and let us know if it works for you.


Danny Bickson
Co-Founder
GraphLab Inc.


On Sat, Nov 30, 2013 at 5:05 AM, Nan Zhu <zhunan...@gmail.com> wrote:
no, I can't run hello world example.
I follow the instruction on the link, but when running, it gives error information as below: 

Segmentation fault: 11

Thanks,
Nan

Danny Bickson

unread,
Dec 2, 2013, 12:29:17 AM12/2/13
to Nan Zhu, graph...@googlegroups.com
Thanks for the update! I am glad it works for you.

Best,

Danny Bickson
Co-Founder
GraphLab Inc.


On Mon, Dec 2, 2013 at 7:21 AM, Nan Zhu <zhunan...@gmail.com> wrote:
Thanks Danny.

After update CMakeLists.txt, "hello world" app runs correctly.

Thanks,
Nan
Reply all
Reply to author
Forward
0 new messages