LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-24-2015, 05:20 AM   #1
rsgsrinivasan
LQ Newbie
 
Registered: Nov 2015
Posts: 1

Rep: Reputation: Disabled
Question ERROR: ld.so: object 'libhugetlbfs.so' from LD_PRELOAD cannot be preloaded: ignored


i'm trying run a simple malloc program to see whether my hugepage environment has been properly setup. the libhugetlbfs is installed in the default system directory only /usr/local. OS is RHEL 6.7. I checked that the libhugetlbfs.so is ther in /usr/lib64 folder. When i run i code with
HUGETLB_MORECORE=yes LD_PRELOAD=libhugetlbfs.so

the code

PHP Code:
#include<stdio.h>
#include<stdlib.h>
int main()
{
   
double *x;
   
int y,i;
   
15000000;
   
= (double *)malloc(y*sizeof(double));
   if (
!= NULL)
   {
       
printf("\nmalloc successful\n");
   }
   else
   {
      
printf("malloc unsuccesfull");
   }

 } 
output gives

PHP Code:
ERRORld.soobject 'libhugetlbfs.so' from LD_PRELOAD cannot be preloadedignored.
malloc successful 
its clear that the malloc dint happen using hugepage. I checked all environment variables.. not able to find problem.. any help???
 
Old 11-24-2015, 07:16 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,687

Rep: Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274
use full path instead of just simple filename
LD_PRELOAD=libhugetlbfs.so
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How can I solve Proxychains error "LD_PRELOAD cannot be preloaded" ? hack3rcon Debian 5 04-21-2020 06:19 AM
Error ld.so object '/system/lib/libNimsWrap.so' from LD_PRELOAD cannot be preload Hanzla Linux - Mobile 0 09-20-2015 12:44 AM
ERROR: ld.so: object '/lib/libcwait.so' from /etc/ld.so.preload cannot be preloaded: saleh.elhabet@gmail.com Linux - Newbie 3 08-26-2014 09:55 AM
ERROR: ld.so: LD_PRELOAD cannot be preloaded xombboxer Linux - Newbie 2 05-12-2011 11:16 AM
What dERROR: ld.so: object 'libavfs.so' from LD_PRELOAD cannot be preloaded: ignored. arubin Slackware 1 05-01-2006 09:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration