Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Signal handling strangeness on ppc970

 
   Soft32 Home -> Linux -> Power PC RSS
Next:  UBUNTU 7.10 SERVER FOR PPC??  
Author Message
Matthew Clark

External


Since: Nov 06, 2007
Posts: 1



(Msg. 1) Posted: Tue Nov 06, 2007 2:58 pm
Post subject: Signal handling strangeness on ppc970
Archived from groups: comp>os>linux>powerpc (more info?)

I'm trying to test some basic signal handling on a ppc970, but I'm
running into some strange Segmentation Faults.

I'm trying to run the code in "Listing 7" from the following page at
ibm.

http://www.ibm.com/developerworks/linux/library/l-sigdebug.html?ca=dgr...xw09Sig

The code runs as advertised on any 32-bit ppc, such as my 7447A. But
attempting to run it on my ppc970 gives me Segmentation Faults when
the code tries to de-reference any under:

((&(sc->uc_mcontext))->regs)

I looked at asm/ptrace.h and asm/sigcontext.h (I'm running 2.6.21-7
and verified it's using powerpc64 definitions) and everything seems
ok, but

obiwan:~/Code/Signal# ./sih

sn 4,
si.si_signo = 4095
si.si_errno = -5999992
si.si_code = 4095 (Unknown SI Code)
sc->uc_flags: 0xffa46e90

Op-Code [nip - 5] = 0l at address = 0xfffffa46c9c
Op-Code [nip - 4] = 4095l at address = 0xfffffa46ca0
Op-Code [nip - 3] = 4288966400l at address = 0xfffffa46ca4
Op-Code [nip - 2] = 1024l at address = 0xfffffa46ca8
Op-Code [nip - 1] = 154864l at address = 0xfffffa46cac
Failed Op-code = 0 at address = 0xfffffa46cb0
Op-Code [nip + 1] = 0x0 at address = 0xfffffa46cb4
&sc->uc_mcontext = 0xfffffa46d98
((&(sc->uc_mcontext))->regs) = 0xfffffa44cf9

Is there something esoteric I'm missing?

Thanks,

Matt
Back to top
Login to vote
Display posts from previous:   
Related Topics:
procmail strangeness - Hi All. I'm having some fun with procmail. Occasionally, an email slips through that I'd expect to have been binned b...

[gentoo-user] udev Strangeness - Hi, I've managed to get my usbdrive to appear in its own fixed /dev entry but I cannot get the same to happen for my..

[gentoo-user] Routing strangeness - Hi, I'm facing something quite bizar, i have a static route on my firewall and with a tracepath i see that this..

[gentoo-user] alsa strangeness... - Hi, I have just given up on a strange thing with alsa. basically I can plug something into the proper port and hear..

[gentoo-user] strangeness on my Gateway - Hi list, I am having a real strange problem on my gateway/firewall; I am using it sharing internet with iptables...

[gentoo-user] Php strangeness - Hi, Could someone please tell me how to solve the following: golem portage # emerge -uDp world These are the package...
       Soft32 Home -> Linux -> Power PC All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]