Re: Debugging problem with gtk applications



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dehua Zhao <dzhao cs uno edu> writes:

Thanks for your response. The platform I work on is SunFire V800z,
Solaris. Actually I use gdk_pixbuf library too. The "Bus Error"
happens when I run the code in GDB environment. I set breakpoints at
the very beginning of the code. It just reports the message and
stops.

Is the SIGBUS sent to the program being debugged, or to gdb itself?
Does the problem still happen when you don't set the breakpoints?  Can
you get a backtrace after the signal is caught?

The only time I've seen a SIGBUS on Solaris was when porting a Linux
application.  This was due to miscasting a pointer which caused a
memory alignment problem.  I didn't see the problem on Linux, even
though it was a genuine bug.  I've also seen subtle bugs that only
shown up in the debugger, but these have thankfully been a rarity.


Regards,
Roger

- -- 
Roger Leigh
                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                Debian GNU/Linux        http://www.debian.org/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQFB8sw7VcFcaSW/uEgRApS2AKDhvCVcwZyLMk5Hsa0vl/lCJBItmgCgnPJ8
5nrAkB2TDgsJwoUJOSJtRL4=
=+sjF
-----END PGP SIGNATURE-----



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