LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-22-2017, 09:27 AM   #1
wl
LQ Newbie
 
Registered: Jan 2017
Posts: 22

Rep: Reputation: Disabled
invalid pointer error


OS: Linux redhat 6.8
Software version using: Open R 3.2.2
Error about: error while running job in batch mode using command "R CMD BATCH test.R"

I am using open source software called "open R". while running one R script "test.R" in batch mode - receiving below error about invalid pointer,

*** glibc detected *** /usr/lib/rstudio-server/bin/rsession: free(): invalid pointer: 0x00000000025d3d20 ***

I believe this is OS level error as same script running fine from one of R tool,

any suggestion?
 
Old 03-22-2017, 10:24 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: MA, USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 7,997
Blog Entries: 13

Rep: Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445
Your system could have run out of memory and the logic of the code didn't pay attention to an allocation return error, but eventually when it went to free memory, it found that the pointer was invalid.
 
Old 03-22-2017, 11:00 AM   #3
wl
LQ Newbie
 
Registered: Jan 2017
Posts: 22

Original Poster
Rep: Reputation: Disabled
Thanks for your note,

infect I was monitoring server activities and there was no sign of max memory or max cpu utilization or anything else - server was normal at all time,,,
 
Old 03-22-2017, 11:14 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: MA, USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 7,997
Blog Entries: 13

Rep: Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445
Do you have the source for Open R 3.2.2? Seems as if you'll need to debug the code.

Where exactly did you see this error report? In the system log, on the console?

Is rstudio related to open R? The error has occurred in rstudio by the way.
 
Old 03-22-2017, 01:29 PM   #5
wl
LQ Newbie
 
Registered: Jan 2017
Posts: 22

Original Poster
Rep: Reputation: Disabled
rstudio (gui) is a web R tool,

We have same code running fine in rstudio - error we are getting is from command line when we try running job in batch mode,
 
Old 03-22-2017, 01:34 PM   #6
rtmistler
Moderator
 
Registered: Mar 2011
Location: MA, USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 7,997
Blog Entries: 13

Rep: Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445
Well besides trial and error to discern the similarities and differences between method A and B as to how you run this and learn something from that, the only other option for me would be to build the code with a debug flag and run it on a debugger.
 
Old 03-22-2017, 01:39 PM   #7
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 12,990

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
I do not know what do you mean by OS level error. I would rather say this is a problem with the binary executable itself - or a library (.so) used by that.
Remember scripts themselves are not running, they are always executed by another app, usually an interpreter or similar.
debugging can be a good idea to catch it, or probably there is a coredump to analyse. Maybe you can construct a bug report too, if it was reproducible.
 
  


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
invalid pointer error rahulvishwakarma Linux - Enterprise 2 08-06-2010 10:18 AM
error : glibc detected invalid pointer rahulvishwakarma Programming 4 08-05-2010 10:58 AM
Error : glibc invalid pointer error gpfdez83 Programming 3 11-04-2009 02:48 PM
glibc detected : Invalid Pointer Error DragonM15 Linux - Software 3 06-01-2007 12:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration