LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-14-2013, 03:40 AM   #1
tomtforever
LQ Newbie
 
Registered: Apr 2006
Distribution: debian
Posts: 7

Rep: Reputation: 0
gvim hangs in squeeze release(debian) with root account, but not with common account.


below is output by strace.

Code:
     0.000047 mmap2(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0xac593000
     0.000069 mprotect(0xac593000, 4096, PROT_NONE) = 0
     0.000049 clone(child_stack=0xacd93404, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0xacd93bd8, {entry_number:6, base_addr:0xacd93b70, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}, child_tidptr=0xacd93bd8) = 5351
     0.000083 fcntl64(12, F_GETFL)      = 0x2 (flags O_RDWR)
     0.000041 fcntl64(12, F_SETFL, O_RDWR|O_NONBLOCK) = 0
     0.000106 send(11, "\0\0\0\0\0\0\0\0007\0\0\0\0\0\0\0\0\0\0\0\2\0\0\0\1\0\0\0\0\0\0\0"..., 55, 0) = 55
     0.000111 clock_gettime(CLOCK_MONOTONIC, {56325, 363265233}) = 0
     0.000120 mmap2(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0xabd92000
     0.000060 mprotect(0xabd92000, 4096, PROT_NONE) = 0
     0.000045 clone(child_stack=0xac592404, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0xac592bd8, {entry_number:6, base_addr:0xac592b70, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}, child_tidptr=0xac592bd8) = 5352
     0.000144 futex(0x98a250c, FUTEX_WAIT_PRIVATE, 1, NULL) = 0
     5.010217 futex(0x988a420, FUTEX_LOCK_PI_PRIVATE, 1) = 0
     0.000356 futex(0x988a420, FUTEX_UNLOCK_PI_PRIVATE, -1229393932) = 0
     0.000061 send(9, "W", 1, MSG_NOSIGNAL) = -1 ENOTSOCK (Socket operation on non-socket)
     0.000037 write(9, "W", 1)          = 1
     0.000037 futex(0x988a420, FUTEX_UNLOCK_PI_PRIVATE, -1229393932) = 0
     0.000080 munmap(0xacd94000, 67112960) = 0
     0.000047 unlink("/dev/shm/pulse-shm-1410255676") = 0
     0.000116 close(8)                  = 0
     0.000030 close(9)                  = 0
     0.000083 munmap(0xb10af000, 26420) = 0

Last edited by tomtforever; 04-14-2013 at 03:48 AM. Reason: add code tag
 
Old 04-18-2013, 05:01 AM   #2
greenleaf
Member
 
Registered: Feb 2004
Location: Chester, UK
Distribution: Linux From Scratch. 64 bit. Kernel 5.8.3. Fluxbox.
Posts: 53

Rep: Reputation: 22
I do not run Debian. However it might be an idea to check that both root and common account get the same libraries loaded for gvim. Login as one of these ids, find out which version of gvim that id uses (perhaps via which gvim), and then check the libraries that will be used via ldd. So you could do something like
which gvim
For me this gives /usr/bin/gvim
Then
ldd /usr/bin/gvim (or whatever you got from which) > file1
You then need to strip off the load addresses from the resultant file.

To make this process a bit easier you could use ldd, which and sed (stream editor) together in order to get just the library names with one operation. That would look like this:
ldd `which gvim` | sed -e 's/ (.*//' > filex
where x is 1 or 2, depending on whether you are running the command as user root or as user common account. Note that getting all the characters right for this command is important, so it might be best to do it via copy and paste.

You would have to do this for both accounts, and then compare file1 and file2, looking for differences in library paths (not addresses), via
diff file1 file2

If you see something other than a null result from this difference calculation, then it suggests that you have multiple versions of the same library, and a little housekeeping may be called for. If the result is null then its probably not a problem associated with different versions of the same library.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] SSH - How can I only allow a key pair login for my user account not root account? shanekelly Linux - Security 5 01-25-2013 09:45 AM
I got a root account only but no user account hitmen Linux - Newbie 2 08-27-2012 02:38 AM
howto log usage of shared account (root account) after `sudo su -` drManhattan Linux - Server 5 09-30-2011 07:48 AM
Why is my common account can't open Terminal in XFCE4 but root account? notsay Slackware 4 08-18-2007 11:29 PM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:53 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