Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Debian PowerPC - trouble backgrounding a process
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Kevin Zedrick  
View profile  
 More options Feb 12 2012, 10:41 am
Newsgroups: comp.os.linux.powerpc
From: Kevin Zedrick <kevin.zedr...@gmail.com>
Date: Sun, 12 Feb 2012 07:41:37 -0800 (PST)
Local: Sun, Feb 12 2012 10:41 am
Subject: Debian PowerPC - trouble backgrounding a process
I'm porting an application from ARM architecture to PowerPC, which is
going quite well. I've encountered an odd problem with some open
source code I'm using - a daemon process won't background as it
should. After comparing the process's system calls, it looks like the
PowerPC binary is not calling clone() after a MSG_NOSIGNAL. Also,
comparing the strings from the binaries (both identical code
revisions), I notice that the ARM binary links with /lib/ld-linux.so.
3, whereas the PPC one uses /lib/ld.so.1 (however, both of these
symlink to ld-2.11.3.so) .  A few of the pthread strings in the
binaries also differ, such as  pthread_mutexattr_destroy and
pthread_cond_signal. So, I think I've found roughly where the problem
is occurring, however I know very little about pthreads and signals.

Recompiling this software is a pain (30 or so dependencies that aren't
stable), although I am preparing to do it. What I'm wondering is if
anyone has had similar experiences, and what particular fix they used.
Also, I'll be happy to submit patches upstream since the package
maintainer doesn't seem to know/care about PPC Linux. Thanks for any
help, and BTW Debian PPC distro is excellent!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Zedrick  
View profile  
 More options Feb 12 2012, 11:03 am
Newsgroups: comp.os.linux.powerpc
From: Kevin Zedrick <kevin.zedr...@gmail.com>
Date: Sun, 12 Feb 2012 08:03:50 -0800 (PST)
Local: Sun, Feb 12 2012 11:03 am
Subject: Re: Debian PowerPC - trouble backgrounding a process

> <strike> After comparing the process's system calls, it looks like the</strike>
> <strike>PowerPC binary is not calling clone() after a MSG_NOSIGNAL.</strike>

PowerPC is calling clone() albeit with different signals:

clone(child_stack=0x4883bfd0,flags=CLONE_VM|CLONE_FS|CLONE_FILES|
CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|
CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x4883c4d8,
tls=0x48843910, child_tidptr=0x4883c4d8) = 1745
clone(child_stack=0x4903bfd0,flags=CLONE_VM|CLONE_FS|CLONE_FILES|
CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|
CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x4903c4d8,
tls=0x49043910, child_tidptr=0x4903c4d8) = 1746

(looks like it continues silently after trying twice)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »