LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-11-2008, 11:47 PM   #1
bobwall
Member
 
Registered: Jul 2004
Location: Milpitas, California
Distribution: 1/2 Debian 1/2 my own
Posts: 189

Rep: Reputation: 30
programs compiled in chroot hang system


I've set up a chroot system to automatically build the latest versions of software. I just made a mirror copy of my root file system and removed unneeded packages for this setup. Then I do chroot /mnt3/buildfs and proceed to build Qt4 and kde4 as root. After it completes successfully, I can run the programs in the chroot, but once I copy them outside to where I want them (same relative prefix), running them hangs the computer (I suspect a deadlock because some programs can never finish after you run one of those qt4 programs).

Does anyone have any idea what's causing this?
 
Old 01-13-2008, 05:11 PM   #2
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
Run the program under strace. This will show you where it is getting stuck and may help identify the deadlock.
 
Old 01-13-2008, 09:44 PM   #3
bobwall
Member
 
Registered: Jul 2004
Location: Milpitas, California
Distribution: 1/2 Debian 1/2 my own
Posts: 189

Original Poster
Rep: Reputation: 30
I'm pretty sure I've found the problem. I recompiled kde4 without being in a chroot and the problem still happens. Obviously, user programs should never crash the system - so there must be something wrong with the OS (which in this case is most likely the C runtime library - I'm using glibc 2.7 which probably has compatibility issues. I also remember cinelerra having problem when it uses glibc 2.7. Guess I'll have to wait until they fix these regressions.

Here's the tail of strace

read(3, 0x66fd00, 2048) = -1 EAGAIN (Resource temporarily unavailable)
brk(0x69f000) = 0x69f000
brk(0x697000) = 0x697000
writev(3, [{"l\1\0\1\24\0\0\0\6\0\0\0\177\0\0\0\1\1o\0\25\0\0\0/org"..., 144}, {"\17\0\0\0org.kde.dolphin\0", 20}], 2) = 164
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 25000) = 1
read(3, "l\2\1\1\t\0\0\0\7\0\0\0=\0\0\0\6\1s\0\4\0\0\0:1.3\0\0\0"..., 2048) = 89
read(3, 0x66fd00, 2048) = -1 EAGAIN (Resource temporarily unavailable)
writev(3, [{"l\1\0\1\0\0\0\0\7\0\0\0{\0\0\0\1\1o\0\20\0\0\0/MainApp"..., 144}, {"", 0}], 2) = 144
poll(

[{fd=3, events=POLLIN}], 1, 25000) = 0
poll([{fd=3, events=POLLIN}], 1, 0) = 0
poll([{fd=3, events=POLLIN}], 1, 0) = 0
poll([{fd=3, events=POLLIN}], 1, 0) = 0
poll([{fd=3, events=POLLIN}], 1, 0) = 0
poll([{fd=3, events=POLLIN}], 1, 0) = 0
poll([{fd=3, events=POLLIN}], 1, 0) = 0
poll([{fd=3, events=POLLIN}], 1, 0) = 0
write(2, "<unknown program name>(2241)/: C"..., 371<unknown program name>(2241)/: Communication problem with "dolphin" , it probably crashed.
Error message was: "org.freedesktop.DBus.Error.NoReply" : " "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken." "

) = 371
exit_group(255) = ?
Process 2241 detached
 
  


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
chroot to run hd-installed distro's programs from chroot in live distro? silencestone Linux - Software 0 10-12-2007 06:29 AM
How do you uninstall compiled programs? AriciU Slackware 5 07-07-2007 04:15 PM
uninstalling compiled programs anwar Slackware 15 03-16-2007 05:36 AM
Running graphical programs from chroot 1veedo Linux - Software 4 07-27-2006 08:16 PM
why ./ is used to run C++ compiled programs legend1079 Red Hat 4 03-23-2004 06:32 AM

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

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