After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 651302 - SIGILL raised in orc_process_int16_clamp
SIGILL raised in orc_process_int16_clamp
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
0.10.34
Other Linux
: Normal normal
: NONE
Assigned To: David Schleef
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-05-28 00:35 UTC by Kip
Modified: 2012-10-17 10:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kip 2011-05-28 00:35:58 UTC
While using Pidgin under Ubuntu Maverick on amd64, I am experiencing a random crash that sometimes occurs unattended.

Details and stack trace are provided here:
http://developer.pidgin.im/ticket/14185
Comment 1 David Schleef 2011-05-28 06:19:45 UTC
Could you attach the output of orc-bugreport?  (Or paste it if it's short.)
Comment 2 Kip 2011-05-28 22:00:23 UTC
Hey David. Can you tell me a bit about what I need to do to get the output of orc-bugreport? I took a look in my package manager and couldn't find any such package containing orc-bugreport. I couldn't dig anything up on Google either.
Comment 3 David Schleef 2011-05-28 22:30:06 UTC
On Ubuntu, liborc-0.4-dev.
Comment 4 Kip 2011-05-30 00:43:48 UTC
Thanks Dave. I installed the package, but I'm not sure how to use orc-bugreport with Pidgin and GStreamer to get the information you requested?
Comment 5 Sebastian Dröge (slomo) 2011-05-30 06:21:43 UTC
Just run it from a terminal and attach the output to this bug
Comment 6 Kip 2011-05-30 06:49:19 UTC
Thanks Sebastian.

$ orc-bugreport
Orc 0.4.14 - integrated testing tool
Active backend: sse
L1 cache: 32768
L2 cache: 3145728
L3 cache: 0
Family/Model/Stepping: 6/23/10
CPU name: Intel(R) Core(TM)2 Quad  CPU   Q9000  @ 2.00GHz
Compiler options: sse2 sse3 ssse3 sse41 64bit 
Opcode test:
No errors detected.
Comment 7 David Schleef 2011-05-30 22:17:31 UTC
This is currently filed in my brain as "things that can't happen".

What is probably happening is that this function is called successfully many times, and then one time (randomly) it fails with an illegal instruction.  Although it is possible for Orc to generate illegal instructions, it would fail the first (and every) time, not randomly.  Best I can guess is that the code memory is getting corrupted somehow.  I shall think about it.
Comment 8 Kip 2011-05-31 03:33:47 UTC
Thanks David. Let me know if I can reasonably be of assistance. Worst case is I just have to re-open Pidgin following a crash every couple of hours.
Comment 9 Kip 2011-07-29 05:06:47 UTC
Hey David. Not to pester you, but a brief update: Nothing much new to report, other than the same habitual crash several times a day. I noticed it frequently happens when someone on my contact list signs on (e.g. a message alert is played).
Comment 10 David Schleef 2011-07-29 06:03:07 UTC
Grrr, sorry about that.  To work around the problem, you can set "ORC_CODE=backup" in the environment and run pidgin.  That will use C backup code, which is unlikely to crash.
Comment 11 Kip 2011-07-29 06:17:54 UTC
Thanks David, no problem. I'll give that a shot and that should keep it chugging along until we figure out what's making it segfault.
Comment 12 Vincent Penquerc'h 2011-08-17 09:35:23 UTC
As a debug tool, maybe mprotecting write away from the pages with orc generated code could help determine if something (and what) is scribbling over them without having to use valgrind, which sounds unusable on a 'normal' use of Pidgin.
Comment 13 Tim-Philipp Müller 2012-09-08 21:43:23 UTC
Does it make sense to keep this bug open, there doesn't seem to be much to go on, other than "something" must be writing into the memory where orc generated some code into, but we don't know if it's GStreamer or pidgin or some other library...

Why is valgrind unusable for a normal use of pidgin ?
Comment 14 Tim-Philipp Müller 2012-10-17 10:55:01 UTC
Let's close this then. It doesn't look like there's much to go on unfortunatly. If there's a bug in orc or GStreamer, it will pop up in other - hopefully easier to debug - contexts as well.