Re: [Arsperl-users] Solaris compile problems with 1.90 * GetEntryBLOB core dumps
Brought to you by:
jeffmurphy
|
From: Allan Y. <AY...@si...> - 2007-12-21 21:49:04
|
Great! The strdup fixed the core dump problem (I was using
AR_LOC_FILENAME).
Now I am getting SQL errors retrieving large attachments. A 4M
attachment comes across fine, but a 65M one returns an SQL error.
Anybody run into this before?
PR00002953,86008,"spiff.logs.tar.gz"
PR00002955,412393,"libmaint.PDE-tcl.target_a23733.log.Z"
PR00002983,3323556,"dsc.20010219143011-PDE"
PR00002983,3888804,"dsc.20010215113512-error"
PR00003005,1039,"root.Regression-TraceOff.log"
PR00003005,574,"root.Regression-TraceOff.command_a25659.log"
PR00003005,406,"root.Regression-TraceOff.cmd_ctl_a11326.log"
PR00003007,26820,"root.ServiceTest-TestLarge.ddsapi.log"
PR00003007,11300,"root.ServiceTest-TestLarge.log"
PR00003007,52817,"root.ServiceTest-TestLarge.source_a06706.log"
PR00003034,9003,"rtpbuild.SIRTools-EnvTransfer_ENV2.ddsapi.log"
PR00003034,1814,"rtpbuild.SIRTools-EnvTransfer_ENV2.log"
PR00003034,65574175,"rtpbuild.SIRTools-EnvTransfer_ENV2.target_a26263.lo
g"
ars_GetEntryBLOB(
PR_Problem Report, PR00003034, 536870917 ): [ERROR] Failure during SQL
operation to the database () (ARERR #552)
From:
$att =3D ars_GetEntryBLOB($ctrl_car, $schema_sr, $srid,
$attfid[$attnum], ARS::AR_LOC_FILENAME, $file );
die "ars_GetEntryBLOB($schema_sr, $srid, $attfid[$attnum] ):
$ars_errstr\n" if $ars_errstr;
Thanks,
Allan.
-----Original Message-----
From: ars...@ar...
[mailto:ars...@ar...] On Behalf Of Thilo Stapff
Sent: Wednesday, December 19, 2007 2:15 PM
To: ARSperl User Discussion
Subject: Re: [Arsperl-users] Solaris compile problems with 1.90 *
GetEntryBLOB core dumps
ARSperl 1.90 doesn't support ARS 4.0 any more.
Concerning the core dump, do you call ars_GetEntryBLOB with=20
AR_LOC_BUFFER or AR_LOC_FILENAME? Does the core dump occur with both of=20
those variants?
If it occurs only with AR_LOC_FILENAME, it might help to change line 756
of the file "ARS.xs" from
loc.u.filename =3D locFile;
to
loc.u.filename =3D strdup(locFile);
and compile again. (The line number refers to ARS.xs in version 1.90 and
might be different in 1.85)
Regards,
Thilo Stapff
Allan Yates wrote:
> I have a Solaris server:
> =20
> # uname -a
> SunOS ottqa05 5.6 Generic_105181-35 sun4u sparc
> I can compile ARSperl 1.8001, 1.81, 1.82, and 1.85 successfully.
However=20
> 1.90 fails. ARS version is 4.0.
> =20
> The reason I am trying to get a new version working, is that=20
> ars_GetEntryBLOB is intermittentantly core dumping and I was hoping a=20
> new version of the API might fix that. If I retrieve attachments in a=20
> given field order on a service request then it core dumps every time,
if=20
> I reverse the order then it succeeds each time.
> =20
> Any ideas on the compile problem (or the core dump)?
> =20
> =20
> Thanks,
> =20
> Allan.
|