Hi again: I've become frustrated with trying to install a recent
pango/cairo under CentOS 5.8--too many dependencies.
So, in trying to debug the segfault, I've found that:
./x01c -dev pngcairo -o foo.png
finally dies beyond tracing (in the plplot code, anyway) at:
line 289 of plcore:
289 ( *plsc->dispatch_table->pl_esc )( (struct PLStream_struct *) plsc, op, ptr
);
(see attached stack trace).
The function pointer called was in cairo code (I think):
(gdb) p *plsc->dispatch_table->pl_esc
$20 = {void (struct PLStream_struct *, PLINT, void *)} 0x2aaaabd71087
<plD_esc_cairo>
The program was just in the process of drawing an axis label (the number
'1') deep within plbox.
Any ideas what I can do here short of upgrading my entire OS?
Thanks,
Doug
dh...@ucar.edu
Software Engineer
UCAR - COSMIC, Tel. (303) 497-2611
On Thu, 17 May 2012, Doug Hunt wrote:
Hi all: I'm just now upgrading to plplot 5.9.9 in my CentOS 5.8
environment. This OS features old pango/cairo versions:
pango-1.14.9-8.el5.centos.3
pango-devel-1.14.9-8.el5.centos.3
cairo-1.2.4-5.el5
cairo-devel-1.2.4-5.el5
When I run example 1 with any of the cairo devices, I get a segfault:
[rpmbuild@fox c]$ ./x01c -dev pngcairo -o foo.png
PLplot library version: 5.9.9
Segmentation fault
Other device drivers work fine.
Has anyone seen this? If not, I'll start debugging and/or trying to
upgrade to a more recent pango/cairo.
Regards,
Doug
dh...@ucar.edu
Software Engineer
UCAR - COSMIC, Tel. (303) 497-2611
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel
(gdb) where
#0 plP_esc (op=31, ptr=0x7fffffffd520) at
/home/rpmbuild/rpm/SOURCES/plplot-5.9.9/src/plcore.c:289
#1 0x00002aaaaacec029 in plP_text (base=0, just=0, xform=0x7fffffffd6d0,
x=3244, y=22548, refx=3244, refy=22548, string=0x2aaaaaf42620 "1")
at /home/rpmbuild/rpm/SOURCES/plplot-5.9.9/src/plcore.c:1106
#2 0x00002aaaaad1b40b in c_plmtex (side=0x2aaaaad3801c "t", disp=0, pos=0,
just=0, text=0x2aaaaaf42620 "1")
at /home/rpmbuild/rpm/SOURCES/plplot-5.9.9/src/plsym.c:691
#3 0x00002aaaaad1ca24 in plstrl (string=0x2aaaaaf42620 "1") at
/home/rpmbuild/rpm/SOURCES/plplot-5.9.9/src/plsym.c:968
#4 0x00002aaaaad1b294 in c_plmtex (side=0x2aaaaad31150 "b", disp=1.5,
pos=0.15254932189491802, just=0.5, text=0x2aaaaaf42620 "1")
at /home/rpmbuild/rpm/SOURCES/plplot-5.9.9/src/plsym.c:677
#5 0x00002aaaaace02c5 in label_box (xopt=0x2aaaaad38424 "bcnst", xtick1=1,
yopt=0x2aaaaad3841d "bcnstv", ytick1=10)
at /home/rpmbuild/rpm/SOURCES/plplot-5.9.9/src/plbox.c:1475
#6 0x00002aaaaacda8ff in c_plaxes (x0=0, y0=0, xopt=0x2aaaaad38424 "bcnst",
xtick=0, nxsub=0, yopt=0x2aaaaad3841d "bcnstv", ytick=0, nysub=0)
at /home/rpmbuild/rpm/SOURCES/plplot-5.9.9/src/plbox.c:570
#7 0x00002aaaaacd83c8 in c_plbox (xopt=0x2aaaaad38424 "bcnst", xtick=0,
nxsub=0, yopt=0x2aaaaad3841d "bcnstv", ytick=0, nysub=0)
at /home/rpmbuild/rpm/SOURCES/plplot-5.9.9/src/plbox.c:82
#8 0x00002aaaaad21f1a in c_plenvi (xmin=0.10000000000000001, xmax=6,
ymin=0.010000000000000002, ymax=36, just=0, axis=0, old=1)
at /home/rpmbuild/rpm/SOURCES/plplot-5.9.9/src/plvpor.c:201
#9 0x00002aaaaad21636 in c_plenv (xmin=0.10000000000000001, xmax=6,
ymin=0.010000000000000002, ymax=36, just=0, axis=0)
at /home/rpmbuild/rpm/SOURCES/plplot-5.9.9/src/plvpor.c:94
#10 0x000000000040150b in plot1 (do_test=0) at x01c.c:254
#11 0x0000000000401183 in main (argc=1, argv=0x7fffffffe248) at x01c.c:152
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel