linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: xine, ppc and illegal instructions
@ 2001-03-30  5:26 Henry Worth
  2001-03-31 20:16 ` Bill Fink
  0 siblings, 1 reply; 20+ messages in thread
From: Henry Worth @ 2001-03-30  5:26 UTC (permalink / raw)
  To: linuxppc-dev, billfink


Bill Fink wrote:
>
>A theory why xine 0.4.01 would work on Henry's system but not on mine
>was that Henry was running with a newer glibc (2.2.something).  I was

Actually, I'm at 2.1.3 and 2.95.3 compiler, but the common
denominator for those failing seems to be Debian distributions,
whereas I'm LPPC Q4.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: xine, ppc and illegal instructions
@ 2001-03-30  5:20 Henry Worth
  2001-03-30  5:29 ` David Edelsohn
  0 siblings, 1 reply; 20+ messages in thread
From: Henry Worth @ 2001-03-30  5:20 UTC (permalink / raw)
  To: Franz.Sirl-kernel; +Cc: linuxppc-dev, billfink


Franz Sirl wrote:
>>At 07:30 27.03.2001, Bill Fink wrote:
>>         *  In configure, there's a case check for"powerpc-*-linux*)".
>>            This should be changed to "powerpc-*-linux* | ppc-*-linux*)".

>This isn't correct, it's always powerpc-*-linux*, the other one is
>superflous. This usually happens if people didn't update their configure
>scripts for a _long_ time and your patch is just papering over that.
>
>Franz.


No, LinuxPPC 2000 Q4 is ppc-*, what version of the
config scripts, I don't know, and don't care. A
lot of packages break because of it, allow both
and save a lot of grief!

Henry

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: xine, ppc and illegal instructions
@ 2001-03-27  5:30 Bill Fink
  0 siblings, 0 replies; 20+ messages in thread
From: Bill Fink @ 2001-03-27  5:30 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: billfink


Yup, I got the same illegal instructions in xine 0.4.01, and it would
sorta work running under gdb.  It seems to be dying in dlopen, which
is part of /lib/libdl.so.2.  On my system:

gwiz% rpm -q -f /lib/libdl.so.2
glibc-2.1.3-15f

A theory why xine 0.4.01 would work on Henry's system but not on mine
was that Henry was running with a newer glibc (2.2.something).  I was
going to try upgrading my glibc, but that turned out it was going to
require updating in excess of 60 RPMs to satisfy all the dependencies,
so I've temporarily shelved that idea.  YDL 2.0 is supposed to be
released RSN, which includes a 2.2 glibc, so I'll be upgrading to
that once it's available to see if it makes a difference (I may even
try using the 2.0 beta RPMs in advance of the official release).

If you want to try the stable 0.3.7 version of xine, I have a patch
to build it for PPC, and the 0.3.7 version doesn't encounter the
illegal instruction problem.  See my message from March 8 on the
xine-user e-mail archive for the patch (start at http://xine.sourceforge.net/).

There are two minor changes to that patch.

	*  In audio_out/audio_oss_out.c, the patch changed the constant
	   90000 to 88200.  It has since been pointed out to me that
	   this was incorrect and the constant should be left as 90000.

	*  In configure, there's a case check for "powerpc-*-linux*)".
	   This should be changed to "powerpc-*-linux* | ppc-*-linux*)".

Of course I really want to get to use 0.4.01 for its new functionality
such as audio/video synchronization and reported performance improvements,
but I'm stuck for the moment until I can upgrade to YDL 2.0.

						-Bill



> On Sat, 24 Mar 2001, Henry Worth wrote:
>
> > Stefan Berndtsson <stefan@nocrew.org> wrote:
>
> > I'll wait for the new patches and see if that changes >anything though.
>
> Nothing in the patches for this problem, which is
> quite recreatable, Bill Fink was looking into
> this. If the esd daemon is running (just disabling desktop sounds is not enough, kill the
> daemon) and
> you run without -A esd, you will get ill. instr.
> on ppc, unless running in gdb. ESD is useless
> for this anyway, no hope of syncing A/V, at
> least till they fix the esd_get_latency() call
> which just hangs on both PPC and x86.
>
> BTW - the xine user maillists would be a better
> forum for this - <http://xine.sourceforge.net/>
> I'm mailing you the cummalative patch.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: xine, ppc and illegal instructions
@ 2001-03-24 19:17 Henry Worth
  0 siblings, 0 replies; 20+ messages in thread
From: Henry Worth @ 2001-03-24 19:17 UTC (permalink / raw)
  To: linuxppc-dev


Stefan Berndtsson <stefan@nocrew.org> wrote:

Henry Worth <haworth@ncal.verio.com> writes:

> Shutdown esd (best) or use the -A esd option.

>I'm afraid that doesn't help at all. It still produces >the illegal instruction.
>Hmm.. running it using strace, I can sometimes make it >get past the plugin-
>check and show the box. This nearly never happens with >all the plugins
>available, but gets easier if I remove some of them.

>I'll wait for the new patches and see if that changes >anything though.

Nothing in the patches for this problem, which is
quite recreatable, Bill Fink was looking into
this. If the esd daemon is running (just disabling desktop sounds is not enough, kill the
daemon) and
you run without -A esd, you will get ill. instr.
on ppc, unless running in gdb. ESD is useless
for this anyway, no hope of syncing A/V, at
least till they fix the esd_get_latency() call
which just hangs on both PPC and x86.

BTW - the xine user maillists would be a better
forum for this - <http://xine.sourceforge.net/>
I'm mailing you the cummalative patch.

Henry

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: xine, ppc and illegal instructions
@ 2001-03-24  6:13 Henry Worth
  0 siblings, 0 replies; 20+ messages in thread
From: Henry Worth @ 2001-03-24  6:13 UTC (permalink / raw)
  To: linuxppc-dev


BTW, a change in 0.4.01 that doesn't seem
to be documented anywere. To play DVD's and
VCD's, you will need to create links to the
dvd and/or cdrom /dev/* devices for
/dev/dvd and /dev/vcd.

Also, if you don't have a disk loaded, don't
hit the dvd or vcd playlist scan buttons and
if the playlist has a DVD/VCD "MRL" -- don't
select play, <<, >>, or anything else that
might result in an I/O. And to eject, select
stop and give the drive a chance to spin-down
before selecting eject. There is virtually no
status or error checking for the IOCTLS and
other I/O functions. This results in requests
for functions that are not valid for the drive's current state and result in long
bus-reset/retry recovery sequences, often with focus grabbed,
giving the appearance of a hung machine (part
of this may be driver problems).

I've uploaded some more patches to
ftp.linuxppc.org's incoming, they fix a nasty
rogue threads problem and some more queuing
problems that are responsible for a lot of the
hangs during playback. Hopefully, they will
get moved to contrib/unpackaged in a few days.

Henry

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: xine, ppc and illegal instructions
@ 2001-03-24  4:58 Henry Worth
  2001-03-24 10:57 ` Stefan Berndtsson
  0 siblings, 1 reply; 20+ messages in thread
From: Henry Worth @ 2001-03-24  4:58 UTC (permalink / raw)
  To: linuxppc-dev


Shutdown esd (best) or use the -A esd option.

Henry

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 20+ messages in thread
* xine, ppc and illegal instructions
@ 2001-03-23 23:53 Stefan Berndtsson
  2001-03-24  0:09 ` Gregorio Gervasio Jr.
  0 siblings, 1 reply; 20+ messages in thread
From: Stefan Berndtsson @ 2001-03-23 23:53 UTC (permalink / raw)
  To: linuxppc-dev


I tried compiling xine-0.4.01 with the ppc-patches by Henry Worth.
Compiling went fine.

When running the resulting binary, I end up with an Illegal instruction.
It doesn't seem to matter what mpegfile I try to use it on, so I assume
it dies before messing with the mpeg.

An strace of the program gives this at the end:

open("/usr/local/lib/xine/plugins/input_net.so", O_RDONLY) = 9
read(9, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\0\v"..., 1024) = 1024
SYS_197(0x9, 0x7fffec40, 0x7fffec40, 0x101f3170, 0) = 0
mmap(0xf993000, 71456, PROT_READ|PROT_EXEC, MAP_PRIVATE, 9, 0) = 0xf993000
mprotect(0xf995000, 63264, PROT_NONE)   = 0
mmap(0xf9a3000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 9,
0) = 0xf9a3000
close(9)                                = 0
mprotect(0xf993000, 8192, PROT_READ|PROT_WRITE) = 0
mprotect(0xf993000, 8192, PROT_READ|PROT_EXEC) = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++


Kernel version is 2.4.0, with some dmasound-patches applied.
Distribution is Debian (reasonably fresh).
Glibc 2.2.2-1

The binary has been compiled both with and without optimisations, with no
appearent difference.

The above could hint that input_net.so was a problem, so I removed that one,
and then just the next input showed up with a more or less identical trace.
Is this a libc problem? Is it something else? I have no idea where to look.
Since I can't even get a coredump to look in, I guess this isn't really in
the binary.

/Stefan

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2001-04-02 11:50 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <Pine.LNX.4.21.0103262330001.19578-100000@gwiz.nasa.atd.net >
2001-03-27 13:41 ` xine, ppc and illegal instructions Franz Sirl
2001-04-01 17:51   ` Bill Fink
2001-04-01 19:39     ` Michel Dänzer
2001-04-01 21:08       ` Bill Fink
2001-04-01 20:02     ` Kevin B. Hendricks
2001-04-01 20:12       ` Benjamin Herrenschmidt
2001-04-01 21:24       ` Bill Fink
2001-04-02 11:50         ` Kevin B. Hendricks
2001-03-30  5:26 Henry Worth
2001-03-31 20:16 ` Bill Fink
  -- strict thread matches above, loose matches on Subject: below --
2001-03-30  5:20 Henry Worth
2001-03-30  5:29 ` David Edelsohn
2001-03-30 14:59   ` Henry Worth
2001-03-27  5:30 Bill Fink
2001-03-24 19:17 Henry Worth
2001-03-24  6:13 Henry Worth
2001-03-24  4:58 Henry Worth
2001-03-24 10:57 ` Stefan Berndtsson
2001-03-23 23:53 Stefan Berndtsson
2001-03-24  0:09 ` Gregorio Gervasio Jr.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).