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

HPX(out_of_memory) on including <hpx/hpx.hpp> #1192

Closed
Finomnis opened this issue Jul 12, 2014 · 1 comment
Closed

HPX(out_of_memory) on including <hpx/hpx.hpp> #1192

Finomnis opened this issue Jul 12, 2014 · 1 comment
Milestone

Comments

@Finomnis
Copy link
Contributor

This works:

#include <iostream>
#include <hpx/hpx_init.hpp>

int hpx_main(int argc, char** argv)
{

    std::cout << "test" << std::endl;

    return hpx::finalize();
}


int main(int argc, char** argv)
{
    return hpx::init(argc, argv);
}

This doesn't:

#include <iostream>
#include <hpx/hpx.hpp>
#include <hpx/hpx_init.hpp>

int hpx_main(int argc, char** argv)
{

    std::cout << "test" << std::endl;

    return hpx::finalize();
}


int main(int argc, char** argv)
{
    return hpx::init(argc, argv);
}

It gives me this error:

{env}: 29 entries:
COLORFGBG=15;default;0
COLORTERM=rxvt-xpm
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-mUvMRvTvjW,guid=2be7d6056f029c810d2b8aa353c1a15a
DESKTOP_SESSION=awesome
DESKTOP_STARTUP_ID=awesome/x-terminal-emulator/1396-5-z800_TIME2686322
DISPLAY=:0
DM_CONTROL=/var/run/xdmctl
HOME=/home/mstumpf
LANG=en_US.UTF-8
LOGNAME=mstumpf
OLDPWD=/home/mstumpf/ctest/hpx_future_test/repo
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
PWD=/home/mstumpf/ctest/hpx_future_test
SHELL=/bin/bash
SHLVL=1
SSH_AGENT_PID=1446
SSH_AUTH_SOCK=/tmp/ssh-EQCixQ0vUJi2/agent.1396
TERM=rxvt-unicode
USER=mstumpf
WINDOWID=35651590
WINDOWPATH=7
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SESSION_COOKIE=33e30018dbf1a0c89f21d77d5399b252-1405198681.458390-147194101
XDG_SESSION_ID=1
XDG_VTNR=7
XDM_MANAGED=method=classic
_=./build/bin/simple_component
_JAVA_AWT_WM_NONREPARENTING=1
{locality-id}: 0
{hostname}: 127.0.0.1:0
{process-id}: 20542
{function}: new_handler
{file}: /home/mstumpf/hpx/repo/src/runtime.cpp
{line}: 120
{os-thread}: 0, worker-thread#0
{thread-id}: 00007febddc28100
{thread-description}: primary_namespace_bulk_service_action
{config}:
HPX_HAVE_NATIVE_TLS=ON
HPX_HAVE_STACKTRACES=ON
HPX_HAVE_COMPRESSION_BZIP2=OFF
HPX_HAVE_COMPRESSION_SNAPPY=OFF
HPX_HAVE_COMPRESSION_ZLIB=OFF
HPX_HAVE_PARCEL_COALESCING=ON
HPX_HAVE_PARCELPORT_IPC=OFF
HPX_HAVE_PARCELPORT_IBVERBS=OFF
HPX_HAVE_VERIFY_LOCKS=ON
HPX_HAVE_HWLOC=ON
HPX_HAVE_ITTNOTIFY=OFF
HPX_LIMIT=5
HPX_ACTION_ARGUMENT_LIMIT=5
HPX_COMPONENT_CREATE_ARGUMENT_LIMIT=5
HPX_FUNCTION_ARGUMENT_LIMIT=8
HPX_LOCK_LIMIT=5
HPX_TUPLE_LIMIT=8
HPX_WAIT_ARGUMENT_LIMIT=5
HPX_PARCEL_MAX_CONNECTIONS=512
HPX_PARCEL_MAX_CONNECTIONS_PER_LOCALITY=4
HPX_INITIAL_AGAS_LOCAL_CACHE_SIZE=256
HPX_AGAS_LOCAL_CACHE_SIZE_PER_THREAD=32
HPX_PREFIX=/home/mstumpf/hpx/build:/usr/local
{version}: V0.9.9-trunk (AGAS: V3.0), Git: 260acd015464b04337ba8cc49d6d141dac120a99
{boost}: V1.55.0
{build-type}: debug
{date}: Jul 12 2014 18:22:01
{platform}: linux
{compiler}: Clang version 3.4.1 (tags/RELEASE_34/dot1-final)
{stdlib}: GNU libstdc++ version 20140616
{what}: new allocator failed to allocate memory: HPX(out_of_memory)

Aborted

Wanted behaviour or bug?

@Finomnis
Copy link
Contributor Author

Well ... you should probably build both hpx and your project with the same compiler ...

@hkaiser hkaiser added this to the 0.9.9 milestone Jul 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants