Bug 11492

Summary: Bus error (SIGBUS recived)
Product: swfdec Reporter: YangH <gnomecn>
Component: libraryAssignee: swfdec ml <swfdec>
Status: RESOLVED FIXED QA Contact: swfdec ml <swfdec>
Severity: critical    
Priority: medium CC: otte
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: don't do unaligned accesses

Description YangH 2007-07-07 02:57:18 UTC
Platfor: MIPSEL (godson2e cpu from china)

swfdec 0.45
swfdec-mozilla 0.45

$> gdb swfplayer

(gdb) r ~/weeks-demo.swf
Starting program: /root/swfdec-0.4.5/player/.libs/swfplay ~/weeks-demo.swf
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 14282)]

Program received signal SIGBUS, Bus error.
[Switching to Thread 16384 (LWP 14282)]
swfdec_bits_get_float (b=0x7f047920) at swfdec_bits.c:316
warning: Source file is more recent than executable.
316     }
(gdb) bt
#0  swfdec_bits_get_float (b=0x7f047920) at swfdec_bits.c:316
#1  0x2ab94900 in swfdec_action_push (cx=0x46a800, action=<value optimized out>,
    data=<value optimized out>, len=<value optimized out>) at swfdec_script.c:582
#2  0x2ab9a264 in swfdec_script_interpret (script=0x48be10, cx=0x46a800, rval=0x7f047a24)
    at swfdec_script.c:3002
#3  0x2ab9a8dc in swfdec_script_execute (script=0x48be10, scriptable=0x47f060)
    at swfdec_script.c:3145
#4  0x2ab8c1a0 in swfdec_player_perform_actions (player=0x46b058) at swfdec_player.c:281
#5  0x2ab7c230 in swfdec_loader_parse (loader=0x467e60) at swfdec_loader.c:392
#6  0x00402980 in main (argc=2, argv=0x7f047cb4) at swfplay.c:137
(gdb) q
Comment 1 Benjamin Otte 2007-07-11 07:34:00 UTC
Uh yeah, at some point I seem to have stopped caring about unaligned accesses. Try the attached patch.
Comment 2 Benjamin Otte 2007-07-11 07:34:39 UTC
Created attachment 10668 [details] [review]
don't do unaligned accesses
Comment 3 Benjamin Close 2008-01-11 02:39:02 UTC
Bugzilla Upgrade Mass Bug Change

NEEDSINFO state was removed in Bugzilla 3.x, reopening any bugs previously listed as NEEDSINFO.

  - benjsc
    fd.o Wrangler
Comment 4 Benjamin Otte 2008-01-28 02:40:08 UTC
Should be fixed as Swfdec has been tested on unaligned access arm now.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.