Re: [Plplot-devel] xcairo problems on PPC OS-X
Hezekiah M. Carty wrote: Hazen, Is there any way you could get a backtrace on this from gdb or otherwise? I do not have access to a PPC Mac to test on at this time and a search on Google for cairo bus error gives lots of OSX-related results but no answer that seems obvious to me. Does example 20 work with other Cairo devices on your PPC OSX system? plimage/plimagefr + any Cairo device uses a similar offscreen rendering method to rasterize the plotted image. That code has been in Subversion since late May and has no specific ties to X or xcairo. Hez Thanks for your help with gdb. Here is the backtrace: (gdb) run -dev xcairo Starting program: /Users/hbabcock/Documents/OpenSource/PLplot/plplot-CBS-1/examples/c/x01c -dev xcairo Reading symbols for shared libraries ..+. done PLplot library version: 5.9.4 Reading symbols for shared libraries . done Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x 0x90131280 in memcmp () (gdb) bt #0 0x90131280 in memcmp () #1 0x907f4640 in __CFInitialize () #2 0x8fe155e0 in __dyld__ZN16ImageLoaderMachO16doInitializationERKN11ImageLoader11LinkContextE () #3 0x8fe0babc in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextE () #4 0x8fe0ba4c in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextE () #5 0x8fe0ba4c in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextE () #6 0x8fe0ba4c in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextE () #7 0x8fe0ba4c in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextE () #8 0x8fe0ba4c in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextE () #9 0x8fe0ba4c in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextE () #10 0x8fe0dcdc in __dyld__ZN11ImageLoader4linkERKNS_11LinkContextENS_15BindingLazinessENS_18InitializerRunningEj () #11 0x8fe04070 in __dyld__ZN4dyld4linkEP11ImageLoaderNS0_15BindingLazinessENS0_18InitializerRunningE () #12 0x8fe09b00 in __dyld_dlopen () #13 0x90030cf4 in dlopen () #14 0x960c2318 in sys_dl_open () #15 0x960c2d90 in tryall_dlopen () #16 0x960c6100 in try_dlopen () #17 0x960c64e0 in lt_dlopenext () #18 0x0008c6d8 in plLoadDriver () #19 0x0008b318 in pllib_devinit () #20 0x0008958c in c_plinit () #21 0x00089448 in c_plstar () #22 0x3a7c in main () Looks like another dynamic libraries problem? -Hazen -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel
Re: [Plplot-devel] xcairo problems on PPC OS-X
On 2009-09-05 19:05-0700 Alan W. Irwin wrote: If you have any further questions about how to use gdb, don't hesitate to ask for help on this list. Also, you might want to try one of the gdb tutorials you can find with a google search. One of those I just looked at (for the first time) is http://www.unknownroad.com/rtfm/gdbtut/gdbtoc.html. It looks pretty good and seems to cover everything I said and a bit more without being overwhelming. Alan __ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __ Linux-powered Science __ -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel
Re: [Plplot-devel] xcairo problems on PPC OS-X
Hezekiah M. Carty wrote: On Sun, Aug 30, 2009 at 11:23 AM, Hazen Babcockhbabc...@mac.com wrote: In the process of investigating cmap issues Alan and Werner were discussing I have found that the xcairo driver no longer works on my PowerPC OS-X box, and instead fails with a Bus error. The other cairo drivers such as the ps and png drivers work fine. I just updated to Cairo 1.8.8 and that did not seem to rectify things. Maybe I have too old a version of X11? Perhaps it has something to do with the off-screen rendering changes? pkg-config --modversion cairo 1.8.8 uname -a Darwin hazen-babcocks-imac-g5.local 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc X11 1.1.3 - XFree86 4.4.0 Hazen, Is there any way you could get a backtrace on this from gdb or otherwise? I do not have access to a PPC Mac to test on at this time and a search on Google for cairo bus error gives lots of OSX-related results but no answer that seems obvious to me. Does example 20 work with other Cairo devices on your PPC OSX system? plimage/plimagefr + any Cairo device uses a similar offscreen rendering method to rasterize the plotted image. That code has been in Subversion since late May and has no specific ties to X or xcairo. So, it turns out it is has nothing to do with your recent changes. I've seen this problem before on OS-X but since I don't use my mac much these days for dev work I had forgotten about it. Basically, with some drivers, if you try and specify them at the command prompt with ./example/x -dev driverx then they will give a bus error. However, if you just run ./example/x and the choose the driver from the list everything works. Since this issue has been around for years and I'm the only one who seems to struggle with it I'm not inclined to delay the release until it gets sorted out. -Hazen -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel
Re: [Plplot-devel] xcairo problems on PPC OS-X
Hi, It sounds like you have discovered (or rediscovered) an issue in the command-line parsing code on your OS X platform. Could you remind us again of exactly what hardware that is (32-bit or 64-bit, PowerPC or Intel)? PowerPC, 32 bit AFAIR. That's also a problem for valgrind, since according due http://valgrind.org/ is there only a valgrind port for Intel/Darwin available. I don't see such problems on Mac OS X 10.5, Intel. Is gdb of any help? Regards, Werner I looked up bus error at http://en.wikipedia.org/wiki/Bus_error, and it appears to have two general causes. The first of those seems closely related to segfaults and memory management and the second of these has to do with memory alignment (which might be screwed up in the command-line parsing code for big-endian architectures like PowerPC, but not little-endian architectures like Intel). Generally with all such errors I suggest you use valgrind to help figure things out. So do you get valgrind error reports for all command-line options or just -dev.? If just -dev, is it for all devices or just the ones that produce bus errors? Alan __ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __ Linux-powered Science __ -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel -- Dr. Werner Smekal Institut fuer Allgemeine Physik Technische Universitaet Wien Wiedner Hauptstr 8-10 A-1040 Wien Austria DVR-Nr: 0005886 email: sme...@iap.tuwien.ac.at web: http://www.iap.tuwien.ac.at/~smekal phone: +43-(0)1-58801-13463 (office) +43-(0)1-58801-13469 (laboratory) fax: +43-(0)1-58801-13499 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel
Re: [Plplot-devel] xcairo problems on PPC OS-X
On Sun, Aug 30, 2009 at 11:23 AM, Hazen Babcockhbabc...@mac.com wrote: In the process of investigating cmap issues Alan and Werner were discussing I have found that the xcairo driver no longer works on my PowerPC OS-X box, and instead fails with a Bus error. The other cairo drivers such as the ps and png drivers work fine. I just updated to Cairo 1.8.8 and that did not seem to rectify things. Maybe I have too old a version of X11? Perhaps it has something to do with the off-screen rendering changes? pkg-config --modversion cairo 1.8.8 uname -a Darwin hazen-babcocks-imac-g5.local 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc X11 1.1.3 - XFree86 4.4.0 Hazen, Is there any way you could get a backtrace on this from gdb or otherwise? I do not have access to a PPC Mac to test on at this time and a search on Google for cairo bus error gives lots of OSX-related results but no answer that seems obvious to me. Does example 20 work with other Cairo devices on your PPC OSX system? plimage/plimagefr + any Cairo device uses a similar offscreen rendering method to rasterize the plotted image. That code has been in Subversion since late May and has no specific ties to X or xcairo. Hez -- Hezekiah M. Carty Graduate Research Assistant University of Maryland Department of Atmospheric and Oceanic Science -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel
[Plplot-devel] xcairo problems on PPC OS-X
In the process of investigating cmap issues Alan and Werner were discussing I have found that the xcairo driver no longer works on my PowerPC OS-X box, and instead fails with a Bus error. The other cairo drivers such as the ps and png drivers work fine. I just updated to Cairo 1.8.8 and that did not seem to rectify things. Maybe I have too old a version of X11? Perhaps it has something to do with the off-screen rendering changes? pkg-config --modversion cairo 1.8.8 uname -a Darwin hazen-babcocks-imac-g5.local 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc X11 1.1.3 - XFree86 4.4.0 -Hazen -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel