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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-22-2017, 10:27 AM
|
#1
|
LQ Newbie
Registered: Jan 2017
Posts: 22
Rep:
|
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?
|
|
|
03-22-2017, 11:24 AM
|
#2
|
Moderator
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,915
|
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.
|
|
|
03-22-2017, 12:00 PM
|
#3
|
LQ Newbie
Registered: Jan 2017
Posts: 22
Original Poster
Rep:
|
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,,,
|
|
|
03-22-2017, 12:14 PM
|
#4
|
Moderator
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,915
|
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.
|
|
|
03-22-2017, 02:29 PM
|
#5
|
LQ Newbie
Registered: Jan 2017
Posts: 22
Original Poster
Rep:
|
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,
|
|
|
03-22-2017, 02:34 PM
|
#6
|
Moderator
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,915
|
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.
|
|
|
03-22-2017, 02:39 PM
|
#7
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,274
|
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.
|
|
|
All times are GMT -5. The time now is 07:41 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|