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

Not reading ini file properly #667

Closed
aduchene opened this issue Jan 16, 2013 · 0 comments
Closed

Not reading ini file properly #667

aduchene opened this issue Jan 16, 2013 · 0 comments

Comments

@aduchene
Copy link
Member

I'm using the counter example in the hpxc project.
When I use command line options to disable guard pages, it works. But when I use a ini file, it crashes. I've confirmed that the config file is read in below.

Sample output:

Using the following .hpx.ini
hpx.stacks.use_guard_pages=0

I get the following error
[14:48:42]:xand@deneb:/home/xand/stellar/hpxc/aduchene_build/bin:134:$ ./counter --hpx:dump-config

Configuration after runtime start:

[application]
[hpx]
'cmd_line' : './counter --hpx:dump-config'

[stacks]
'huge_size' : '0x2000000'
'large_size' : '0x0200000'
'medium_size' : '0x0020000'
'small_size' : '0x10000'
'use_guard_pages' : '0'

{what}: mmap() failed to allocate thread stack due to insufficient resources, /proc/sys/vm/max_map_count may be too low: HPX(unhandled_exception)
{version}: V0.9.5-trunk (AGAS: V2.1), Git: 3864ff6
{boost}: V1.50.0
{build-type}: debug
{date}: Jan 16 2013 12:32:11
{platform}: linux
{compiler}: GNU C++ version 4.6.2
{stdlib}: GNU libstdc++ version 20120120

With command line option:
[14:48:47]:xand@deneb:/home/xand/stellar/hpxc/aduchene_build/bin:134:$ ./counter --hpx:ini hpx.stacks.use_guard_pages=0
finished: counter=100000
I don't see any meaningful differences in the dumped config options.

@ghost ghost assigned hkaiser Jan 17, 2013
hkaiser added a commit that referenced this issue Jan 18, 2013
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