gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-dev] set_display_viewport error?


From: Low Yu Siang
Subject: Re: [Gnash-dev] set_display_viewport error?
Date: Mon, 2 Jun 2008 13:40:47 +0100 (BST)

>>Program received signal SIGSEGV, Segmentation fault.
>> [Switching to Thread -1208740144 (LWP 23159)]
>> 0x00ac72b8 in
gnash::movie_root::set_display_viewport
>> (this=0x83e6858, x0=0, y0=0, w=176, h=144) at
>> /usr/include/boost/intrusive_ptr.hpp:120
>> 120             return p_;
>> 
>> I am using version 0.8.2. Any idea where should I
>> start looking for this bug?  Thank you.
>You might be missing to keep the created movie
>by intrusive_ptr. Try valgrind, which would tell you
>as soon as a read is attempted to illegal memory,
>and what was last action on the memory (like
>what deleted it).

The below is what I getting from valgrind, still have
no idea how to solve that...

==989== Invalid read of size 4
==989==    at 0x46CF2B8:
gnash::movie_root::set_display_viewport(int, int, int,
int) (intrusive_ptr.hpp:120)
==989==    by 0x804EC12: FlashPlayer::Run()
(FlashPlayer.cpp:140)
==989==    by 0x804EDE3: FlashPlayer::Start()
(FlashPlayer.cpp:84)
==989==    by 0x804E7C3: main (flashstreamer.cpp:30)
==989==  Address 0x178 is not stack'd, malloc'd or
(recently) free'd
==989==
==989== Process terminating with default action of
signal 11 (SIGSEGV)
==989==  Access not within mapped region at address
0x178
==989==    at 0x46CF2B8:
gnash::movie_root::set_display_viewport(int, int, int,
int) (intrusive_ptr.hpp:120)
==989==    by 0x804EC12: FlashPlayer::Run()
(FlashPlayer.cpp:140)
==989==    by 0x804EDE3: FlashPlayer::Start()
(FlashPlayer.cpp:84)
==989==    by 0x804E7C3: main (flashstreamer.cpp:30)
==989==
==989== Thread 3:
==989== Invalid free() / delete / delete[]
==989==    at 0x4004FDA: free
(vg_replace_malloc.c:233)
==989==    by 0x59F35D: free_mem (in /lib/libc-2.5.so)
==989==    by 0x59EEF6: __libc_freeres (in
/lib/libc-2.5.so)
==989==    by 0x40011E6: _vgnU_freeres
(vg_preloaded.c:60)
==989==    by 0x5E492D: __lll_mutex_lock_wait (in
/lib/libpthread-2.5.so)
==989==    by 0x220AF4: boost::mutex::do_lock() (in
/usr/lib/libboost_thread.so.1.33.1)
==989==    by 0x47EC1B7:
gnash::MovieLoader::isSelfThread() const (lock.hpp:38)
==989==    by 0x47ED098:
gnash::movie_def_impl::read_all_swf()
(movie_def_impl.cpp:701)
==989==    by 0x47EDC6C:
gnash::MovieLoader::execute(gnash::movie_def_impl*)
(movie_def_impl.cpp:119)
==989==    by 0x47F2AD0:
boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<void,
void (*)(gnash::movie_def_impl*),
boost::_bi::list1<boost::_bi::value<gnash::movie_def_impl*>
> >,
void>::invoke(boost::detail::function::any_pointer)
(bind.hpp:230)
==989==    by 0x22287B: boost::function0<void,
std::allocator<boost::function_base> >::operator()()
const (in /usr/lib/libboost_thread.so.1.33.1)
==989==    by 0x222381: (within
/usr/lib/libboost_thread.so.1.33.1)
==989==  Address 0x498A930 is not stack'd, malloc'd or
(recently) free'd
==989==
==989== ERROR SUMMARY: 3 errors from 3 contexts
(suppressed: 77 from 1)
==989== malloc/free: in use at exit: 587,694 bytes in
2,960 blocks.
==989== malloc/free: 3,545 allocs, 586 frees, 609,154
bytes allocated.
==989== For counts of detected errors, rerun with: -v
==989== searching for pointers to 2,960 not-freed
blocks.
==989== checked 22,974,060 bytes.


      __________________________________________________________
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html




reply via email to

[Prev in Thread] Current Thread [Next in Thread]