Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: lsof problem
is a discussion within theNative iPhone / iPod Touch App Discussion
forums, a part of the3rd Party Apps For iPhone | iPod Touch
section;I'm sorry if I put this in the wrong thread. I am trying to use lsof on my ipad and ipod touch however I get the following error every time
...-
07-29-2010, 05:54 PM #1
lsof problem
I'm sorry if I put this in the wrong thread. I am trying to use lsof on my ipad and ipod touch however I get the following error every time I try to run it.
can anyone tell me how to make lsof work? thanks in advanceCode:lsof: PID 3206 information error: Cannot allocate memory lsof: PID 3203 information error: Cannot allocate memory lsof: PID 3202 information error: Cannot allocate memory lsof: PID 3201 information error: Cannot allocate memory lsof: PID 3200 information error: Cannot allocate memory lsof: PID 3199 information error: Cannot allocate memory lsof: PID 2319 information error: Cannot allocate memory lsof: PID 2259 information error: Cannot allocate memory lsof: PID 454 information error: Cannot allocate memory lsof: PID 100 information error: Cannot allocate memory lsof: PID 85 information error: Cannot allocate memory lsof: PID 39 information error: Cannot allocate memory lsof: PID 37 information error: Cannot allocate memory lsof: PID 36 information error: Cannot allocate memory lsof: PID 32 information error: Cannot allocate memory lsof: PID 29 information error: Cannot allocate memory lsof: PID 26 information error: Cannot allocate memory lsof: PID 25 information error: Cannot allocate memory lsof: PID 21 information error: Cannot allocate memory lsof: PID 19 information error: Cannot allocate memory lsof: PID 17 information error: Cannot allocate memory lsof: PID 15 information error: Cannot allocate memory lsof: PID 14 information error: Cannot allocate memory lsof: PID 13 information error: Cannot allocate memory lsof: PID 12 information error: Cannot allocate memory lsof: PID 1 information error: Cannot allocate memory
Last edited by linuxmac09; 07-29-2010 at 06:41 PM.
-
08-18-2010, 09:04 AM #2
Same Problem w/ lsof
I'm getting exactly the same problem.
I tried restarting the device to attempt to free as much memory as possible for the lsof command, but no luck. I'm issuing the command via SSH from my laptop over wifi. This is on an old iPhone 3G running iOS 4.0.1
I tired it again on my iPhone 4 running iOS 4.0.1 with 300 MB free memory directly from MobileTerminal (426). Same deal.
Anyone have any idea what lsof is complaining about? I'm using lsof to try to figure out where the "No Service" icon is stored in the file structure so that I can change it -- this 3G will just be an iPod Touch for my brother from now on.
Thanks.
-
08-21-2010, 10:57 PM #3
Bump
-
09-29-2010, 05:09 AM #4
I'm trying to run lsof too and having the exact same problem.
-
01-19-2011, 11:17 PM #5
I am using iOS 4.2.1 on an iPhone 4.
I am getting the same error:
Code:lsof: PID 39 information error: Cannot allocate memory lsof: PID 35 information error: Cannot allocate memory lsof: PID 31 information error: Cannot allocate memory lsof: PID 28 information error: Cannot allocate memory lsof: PID 19 information error: Cannot allocate memory lsof: PID 17 information error: Cannot allocate memory lsof: PID 15 information error: Cannot allocate memory lsof: PID 14 information error: Cannot allocate memory lsof: PID 13 information error: Cannot allocate memory lsof: PID 12 information error: Cannot allocate memory lsof: PID 1 information error: Cannot allocate memory
-
01-31-2011, 12:53 PM #6
Anyone know where I can get more assistance in getting this command to work? I have tried compiling it myself without much luck.
-
01-31-2011, 03:33 PM #7MMI's Official Devil Dog
- Join Date
- Mar 2009
- Location
- SC California
- Posts
- 616
- Thanks
- 5
- Thanked 45 Times in 37 Posts
lsof should be located in /usr/sbin Try navigating to that directory and see what the permissions are set to.
Good Luck !!!
-
02-12-2011, 08:20 AM #8
You can try this new lsof build for iphone 4 & iOS 4.2.1
http://pupil.io8.org/pub/iphone/misc...of-arm7-iOS4.2
-
-
02-21-2011, 05:19 PM #9
(Removed) Guy knows what he is talking about.
Last edited by Oen386; 02-24-2011 at 05:15 PM.
-
02-21-2011, 07:17 PM #10
-
-
02-21-2011, 07:24 PM #11
ROFL, sorry won't lie thought it was a trick.

Thanks for the response!
I will see if I can get it to work. Do you remember what files exactly?
-
06-21-2012, 08:39 PM #12
I've been trying this. Can you elaborate on the 'trick'? I've compiled okay (with warnings), but when linking, I get:
I got this from elsewhere, so there is extra crap contained, but this is my link command:Code:Undefined symbols for architecture armv7: "_process_dev_stat", referenced from: _ck_file_arg in arg.o _enter_dir in arg.o "_write$UNIX2003", referenced from: _doinchild in misc.o "_stat$INODE64", referenced from: _main in main.o _dostat in misc.o _printuid in print.o "_Pof_tab", referenced from: _print_fflags in proc.o [... etc] ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Also... When I try your compiled binary on my iPhone4 running 5.1.1, I only get:Code:clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -L lib -L /usr/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/usr/lib -L /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1\ \(9B176\)/Symbols/usr/lib -filelist linklist -dead_strip -miphoneos-version-min=5.1 -framework SystemConfiguration -framework UIKit -framework Foundation -framework CoreGraphics -o mylsofx
Update: This is related to code signing. I used ldid and the binary works great!Code:Killed: 9
Any pointers on compiling would be appreciated, thanks...Last edited by egregious; 06-21-2012 at 09:35 PM.
-
12-06-2012, 02:51 PM #13
How were you able to ldid that binary? When I downloaded it and put it in /usr/sbin and updated permissions I got util/ldid.cpp(660): _assert(78:signature != NULL)
You used the binary from here right? http://pupil.io8.org/pub/iphone/misc...of-arm7-iOS4.2
I'm also on iOS 5.1.1
-
01-07-2013, 11:36 AM #14
Does anyone have an update on this? The binary above gives me a Killed: 9 error and I have been unable to compile from source successfully. Any help would be much appreciated.




LinkBack URL
About LinkBacks
Reply With Quote

