Thread: RE: [Arsperl-users] ars_CreateEntry crashing perl
Brought to you by:
jeffmurphy
|
From: Stapff, T. <thi...@ma...> - 2005-09-23 07:32:52
|
My current hypothesis about this is that the memory problem occurs always at
the end of the script (if it occurs at all), when some objects are
destroyed, irrespective of the number of tickets created.
Could you test this (perhaps by wrapping the ars_CreateEntry calls in a
loop)?
Thanks in advance.
Thilo
-----Original Message-----
From: Sam Vanderhyden [mailto:sa...@si...]
Sent: Friday, September 23, 2005 2:43 AM
To: ars...@ar...
Subject: [Arsperl-users] ars_CreateEntry crashing perl
I am using activestate perl 5.8.3 build 809 on Windows 2k, with
ARSystem 6.03.00. I have installed ARSPerl-1.84 windows binary
distribution available on the site.
I am trying to insert multiple entries into a form in using the
following code:
my $c = ars_Login("ohio", "Demo", "", undef, undef, 6777, 0); %f =
ars_GetFieldTable($c, "HPD:HelpDesk"); my $id = ars_CreateEntry($c,
"HPD:HelpDesk",
$f{'Summary'}, "Perl Test ticket #1",
$f{'Description'}, "his is the description",
$f{'Category'},"Software",
$f{'Type'}, "Other",
$f{'Item'}, "Drivers",
$f{'Case Type'}, "Incident",
$f{'Priority'}, "Low",
$f{'Requester Login Name+'}, "Demo",
$f{'Requester Name+'}, "Demo",
$f{'Source'}, "Phone");
print "TICKET ID: $id\r\n";
$id = ars_CreateEntry($c, "HPD:HelpDesk",
$f{'Summary'}, "Perl Test ticket #2",
$f{'Description'}, "his is the description",
$f{'Category'},"Software",
$f{'Type'}, "Other",
$f{'Item'}, "Drivers",
$f{'Case Type'}, "Incident",
$f{'Priority'}, "Low",
$f{'Requester Login Name+'}, "Demo",
$f{'Requester Name+'}, "Demo",
$f{'Source'}, "Phone");
print "TICKET ID: $id\r\n";
When I run the above script, I get an application error dialog for
perl.exe which states "The instruction "0x77fcb861" referenced memory
at "0x015cd4a0". The memory cannot be "written"." The dialog comes up
after the two IDs are printed out, and if I use Remedy User to view the
tickets, they are indeed created. If I remove the code to create the
second ticket, the whole thing works fine.
Does ARSPerl work under activestate perl? Is there something I can do
to get around this problem?
-Sam
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Arsperl-users mailing list
Ars...@ar...
https://lists.sourceforge.net/lists/listinfo/arsperl-users
|
|
From: Mark V. <Mar...@ev...> - 2005-09-26 19:08:15
|
Sam, Do you receive any values in $ars_errstr and %ars_errhash? Mark Vaughan Programmer III =20 Direct: +1 303 802 2426 Cell: +1 303 601 4434 Fax: +1 303 802 1420 mar...@ev... Evolving Systems, Inc.=20 9777 Pyramid Court, Suite 100, Englewood, CO USA 80112 www.evolving.com -----Original Message----- From: ars...@ar... [mailto:ars...@ar...] On Behalf Of Sam Vanderhyden Sent: Thursday, September 22, 2005 6:43 PM To: ars...@ar... Subject: [Arsperl-users] ars_CreateEntry crashing perl I am using activestate perl 5.8.3 build 809 on Windows 2k, with=20 ARSystem 6.03.00. I have installed ARSPerl-1.84 windows binary=20 distribution available on the site. I am trying to insert multiple entries into a form in using the=20 following code: my $c =3D ars_Login("ohio", "Demo", "", undef, undef, 6777, 0); %f =3D ars_GetFieldTable($c, "HPD:HelpDesk"); my $id =3D ars_CreateEntry($c, "HPD:HelpDesk", $f{'Summary'}, "Perl Test ticket #1",=09 $f{'Description'}, "his is the description", $f{'Category'},"Software", $f{'Type'}, "Other", $f{'Item'}, "Drivers", $f{'Case Type'}, "Incident", $f{'Priority'}, "Low", $f{'Requester Login Name+'}, "Demo", $f{'Requester Name+'}, "Demo", $f{'Source'}, "Phone"); print "TICKET ID: $id\r\n"; $id =3D ars_CreateEntry($c, "HPD:HelpDesk", $f{'Summary'}, "Perl Test ticket #2", $f{'Description'}, "his is the description", $f{'Category'},"Software", $f{'Type'}, "Other", $f{'Item'}, "Drivers", $f{'Case Type'}, "Incident", $f{'Priority'}, "Low", $f{'Requester Login Name+'}, "Demo", $f{'Requester Name+'}, "Demo", $f{'Source'}, "Phone"); print "TICKET ID: $id\r\n"; When I run the above script, I get an application error dialog for=20 perl.exe which states "The instruction "0x77fcb861" referenced memory=20 at "0x015cd4a0". The memory cannot be "written"." The dialog comes up=20 after the two IDs are printed out, and if I use Remedy User to view the=20= tickets, they are indeed created. If I remove the code to create the=20 second ticket, the whole thing works fine. Does ARSPerl work under activestate perl? Is there something I can do=20 to get around this problem? -Sam ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server.=20 Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Arsperl-users mailing list Ars...@ar... https://lists.sourceforge.net/lists/listinfo/arsperl-users This e-mail and any attachments may be confidential and/or legally privil= eged. If you have received this e-mail and you are not a named addressee,= please inform Evolving Systems TIS at ti...@ev... and then delete t= he e-mail from your system. If you are not a named addressee you must not= use, disclose, distribute, copy, print or rely on this e-mail. To ensure= regulatory compliance and for the protection of our clients and business= , Evolving Systems may monitor and read e-mails sent to and from its serv= ers. Although Evolving Systems routinely screens for viruses, addressees = should scan this e-mail and any attachments for viruses. Evolving Systems= makes no representation or warranty as to the absence of viruses in this= e-mail or any attachments.=20 Registered Office: 9777 Mt. Pyramid Ct Suite 100, Englewood, CO 80112 |
|
From: Sam V. <sa...@si...> - 2005-09-26 20:48:54
|
$ars_errstr contains the following after the second call: [OK] (Support-Software has been notified of the assignment.) (ARERR #42108) %ars_errhash has only one entry: numItems -> 1 messagenum -> 42108 messageType -> 0 messageText -> (Support-Software has been notified of the assignment.) Other things I've been trying: I uninstalled the ARSystem server from my dev machine and installed only Remedy User. I then ran the original script and it worked fine connecting to a remote ARSystem and creating two tickets. I thought that the problem was with the local ARSystem server, but then I tried creating more than two tickets in the script, and it crashed perl with the same message on the attempt to create the third ticket (the third ticket was not created). -Sam. On Sep 26, 2005, at 12:09 PM, Mark Vaughan wrote: > Sam, > Do you receive any values in $ars_errstr and %ars_errhash? > > Mark Vaughan > > Programmer III > > > > Direct: +1 303 802 2426 > > Cell: +1 303 601 4434 > > Fax: +1 303 802 1420 > > mar...@ev... > > Evolving Systems, Inc. > > 9777 Pyramid Court, Suite 100, Englewood, CO USA 80112 > > www.evolving.com > > > -----Original Message----- > From: ars...@ar... > [mailto:ars...@ar...] On Behalf Of Sam Vanderhyden > Sent: Thursday, September 22, 2005 6:43 PM > To: ars...@ar... > Subject: [Arsperl-users] ars_CreateEntry crashing perl > > I am using activestate perl 5.8.3 build 809 on Windows 2k, with > ARSystem 6.03.00. I have installed ARSPerl-1.84 windows binary > distribution available on the site. > I am trying to insert multiple entries into a form in using the > following code: > > my $c = ars_Login("ohio", "Demo", "", undef, undef, 6777, 0); > %f = ars_GetFieldTable($c, "HPD:HelpDesk"); > my $id = ars_CreateEntry($c, "HPD:HelpDesk", > $f{'Summary'}, "Perl Test ticket #1", > $f{'Description'}, "his is the description", > $f{'Category'},"Software", > $f{'Type'}, "Other", > $f{'Item'}, "Drivers", > $f{'Case Type'}, "Incident", > $f{'Priority'}, "Low", > $f{'Requester Login Name+'}, "Demo", > $f{'Requester Name+'}, "Demo", > $f{'Source'}, "Phone"); > print "TICKET ID: $id\r\n"; > $id = ars_CreateEntry($c, "HPD:HelpDesk", > $f{'Summary'}, "Perl Test ticket #2", > $f{'Description'}, "his is the description", > $f{'Category'},"Software", > $f{'Type'}, "Other", > $f{'Item'}, "Drivers", > $f{'Case Type'}, "Incident", > $f{'Priority'}, "Low", > $f{'Requester Login Name+'}, "Demo", > $f{'Requester Name+'}, "Demo", > $f{'Source'}, "Phone"); > print "TICKET ID: $id\r\n"; > > When I run the above script, I get an application error dialog for > perl.exe which states "The instruction "0x77fcb861" referenced memory > at "0x015cd4a0". The memory cannot be "written"." The dialog comes up > after the two IDs are printed out, and if I use Remedy User to view the > tickets, they are indeed created. If I remove the code to create the > second ticket, the whole thing works fine. > Does ARSPerl work under activestate perl? Is there something I can do > to get around this problem? > -Sam > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download it for free - -and be entered to win a 42" plasma tv or your > very > own Sony(tm)PSP. Click here to play: > http://sourceforge.net/geronimo.php > _______________________________________________ > Arsperl-users mailing list > Ars...@ar... > https://lists.sourceforge.net/lists/listinfo/arsperl-users > This e-mail and any attachments may be confidential and/or legally > privileged. If you have received this e-mail and you are not a named > addressee, please inform Evolving Systems TIS at ti...@ev... and > then delete the e-mail from your system. If you are not a named > addressee you must not use, disclose, distribute, copy, print or rely > on this e-mail. To ensure regulatory compliance and for the protection > of our clients and business, Evolving Systems may monitor and read > e-mails sent to and from its servers. Although Evolving Systems > routinely screens for viruses, addressees should scan this e-mail and > any attachments for viruses. Evolving Systems makes no representation > or warranty as to the absence of viruses in this e-mail or any > attachments. > > Registered Office: 9777 Mt. Pyramid Ct Suite 100, Englewood, CO 80112 > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download it for free - -and be entered to win a 42" plasma tv or your > very > own Sony(tm)PSP. Click here to play: > http://sourceforge.net/geronimo.php > _______________________________________________ > Arsperl-users mailing list > Ars...@ar... > https://lists.sourceforge.net/lists/listinfo/arsperl-users |
|
From: Matt.Reinfeldt <Mat...@en...> - 2005-09-26 21:16:56
|
Sam,
Have you tried encapsulating each createEntry call in a while loop?
Something like:
my $cnt =3D 0;
while ($cnt <=3D 1) {
... your create entry code here
$cnt +=3D 1;
}
I use that methodology and create thousands of tickets successfully. I
don't know why one way would work over the other... further testing
would be needed to track that down.
Let us know if that works for you.
Matt Reinfeldt
Senior Production Support Specialist
Entuition Inc.
Phone: 608-848-9071
Cell#: 920.791.0083
Email: mat...@en...
=20
-----Original Message-----
From: ars...@ar...
[mailto:ars...@ar...] On Behalf Of Sam Vanderhyden
Sent: Monday, September 26, 2005 3:47 PM
To: ars...@ar...
Subject: Re: [Arsperl-users] ars_CreateEntry crashing perl
$ars_errstr contains the following after the second call:
[OK] (Support-Software has been notified of the assignment.) (ARERR=20
#42108)
%ars_errhash has only one entry:
numItems -> 1
messagenum -> 42108
messageType -> 0
messageText -> (Support-Software has been notified of the
assignment.)
Other things I've been trying:
I uninstalled the ARSystem server from my dev machine and installed=20
only Remedy User. I then ran the original script and it worked fine=20
connecting to a remote ARSystem and creating two tickets. I thought =20
that the problem was with the local ARSystem server, but then I tried=20
creating more than two tickets in the script, and it crashed perl with=20
the same message on the attempt to create the third ticket (the third=20
ticket was not created).
-Sam.
On Sep 26, 2005, at 12:09 PM, Mark Vaughan wrote:
> Sam,
> Do you receive any values in $ars_errstr and %ars_errhash?
>
> Mark Vaughan
>
> Programmer III
>
>
>
> Direct: +1 303 802 2426
>
> Cell: +1 303 601 4434
>
> Fax: +1 303 802 1420
>
> mar...@ev...
>
> Evolving Systems, Inc.
>
> 9777 Pyramid Court, Suite 100, Englewood, CO USA 80112
>
> www.evolving.com
>
>
> -----Original Message-----
> From: ars...@ar...
> [mailto:ars...@ar...] On Behalf Of Sam Vanderhyden
> Sent: Thursday, September 22, 2005 6:43 PM
> To: ars...@ar...
> Subject: [Arsperl-users] ars_CreateEntry crashing perl
>
> I am using activestate perl 5.8.3 build 809 on Windows 2k, with
> ARSystem 6.03.00. I have installed ARSPerl-1.84 windows binary
> distribution available on the site.
> I am trying to insert multiple entries into a form in using the
> following code:
>
> my $c =3D ars_Login("ohio", "Demo", "", undef, undef, 6777, 0);
> %f =3D ars_GetFieldTable($c, "HPD:HelpDesk");
> my $id =3D ars_CreateEntry($c, "HPD:HelpDesk",
> $f{'Summary'}, "Perl Test ticket #1",=09
> $f{'Description'}, "his is the description",
> $f{'Category'},"Software",
> $f{'Type'}, "Other",
> $f{'Item'}, "Drivers",
> $f{'Case Type'}, "Incident",
> $f{'Priority'}, "Low",
> $f{'Requester Login Name+'}, "Demo",
> $f{'Requester Name+'}, "Demo",
> $f{'Source'}, "Phone");
> print "TICKET ID: $id\r\n";
> $id =3D ars_CreateEntry($c, "HPD:HelpDesk",
> $f{'Summary'}, "Perl Test ticket #2",
> $f{'Description'}, "his is the description",
> $f{'Category'},"Software",
> $f{'Type'}, "Other",
> $f{'Item'}, "Drivers",
> $f{'Case Type'}, "Incident",
> $f{'Priority'}, "Low",
> $f{'Requester Login Name+'}, "Demo",
> $f{'Requester Name+'}, "Demo",
> $f{'Source'}, "Phone");
> print "TICKET ID: $id\r\n";
>
> When I run the above script, I get an application error dialog for
> perl.exe which states "The instruction "0x77fcb861" referenced memory
> at "0x015cd4a0". The memory cannot be "written"." The dialog comes up
> after the two IDs are printed out, and if I use Remedy User to view
the
> tickets, they are indeed created. If I remove the code to create the
> second ticket, the whole thing works fine.
> Does ARSPerl work under activestate perl? Is there something I can do
> to get around this problem?
> -Sam
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
> Download it for free - -and be entered to win a 42" plasma tv or your
> very
> own Sony(tm)PSP. Click here to play:
> http://sourceforge.net/geronimo.php
> _______________________________________________
> Arsperl-users mailing list
> Ars...@ar...
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
> This e-mail and any attachments may be confidential and/or legally=20
> privileged. If you have received this e-mail and you are not a named=20
> addressee, please inform Evolving Systems TIS at ti...@ev... and=20
> then delete the e-mail from your system. If you are not a named=20
> addressee you must not use, disclose, distribute, copy, print or rely=20
> on this e-mail. To ensure regulatory compliance and for the protection
> of our clients and business, Evolving Systems may monitor and read=20
> e-mails sent to and from its servers. Although Evolving Systems=20
> routinely screens for viruses, addressees should scan this e-mail and=20
> any attachments for viruses. Evolving Systems makes no representation=20
> or warranty as to the absence of viruses in this e-mail or any=20
> attachments.
>
> Registered Office: 9777 Mt. Pyramid Ct Suite 100, Englewood, CO 80112
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
> Download it for free - -and be entered to win a 42" plasma tv or your=20
> very
> own Sony(tm)PSP. Click here to play:=20
> http://sourceforge.net/geronimo.php
> _______________________________________________
> Arsperl-users mailing list
> Ars...@ar...
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.=20
Download it for free - -and be entered to win a 42" plasma tv or your
very
own Sony(tm)PSP. Click here to play:
http://sourceforge.net/geronimo.php
_______________________________________________
Arsperl-users mailing list
Ars...@ar...
https://lists.sourceforge.net/lists/listinfo/arsperl-users
|
|
From: Sam V. <sa...@si...> - 2005-09-26 21:28:00
|
Matt,
I've tried using for and while loops. perl.exe crashes on the third
call to ars_createEntry in both cases.
Thanks for the help.
-Sam.
On Sep 26, 2005, at 2:15 PM, Matt.Reinfeldt wrote:
> Sam,
>
> Have you tried encapsulating each createEntry call in a while loop?
>
> Something like:
>
> my $cnt = 0;
> while ($cnt <= 1) {
> ... your create entry code here
> $cnt += 1;
> }
>
> I use that methodology and create thousands of tickets successfully. I
> don't know why one way would work over the other... further testing
> would be needed to track that down.
>
> Let us know if that works for you.
>
> Matt Reinfeldt
> Senior Production Support Specialist
> Entuition Inc.
> Phone: 608-848-9071
> Cell#: 920.791.0083
> Email: mat...@en...
>
> -----Original Message-----
> From: ars...@ar...
> [mailto:ars...@ar...] On Behalf Of Sam Vanderhyden
> Sent: Monday, September 26, 2005 3:47 PM
> To: ars...@ar...
> Subject: Re: [Arsperl-users] ars_CreateEntry crashing perl
>
> $ars_errstr contains the following after the second call:
> [OK] (Support-Software has been notified of the assignment.) (ARERR
> #42108)
> %ars_errhash has only one entry:
> numItems -> 1
> messagenum -> 42108
> messageType -> 0
> messageText -> (Support-Software has been notified of the
> assignment.)
>
> Other things I've been trying:
> I uninstalled the ARSystem server from my dev machine and installed
> only Remedy User. I then ran the original script and it worked fine
> connecting to a remote ARSystem and creating two tickets. I thought
> that the problem was with the local ARSystem server, but then I tried
> creating more than two tickets in the script, and it crashed perl with
> the same message on the attempt to create the third ticket (the third
> ticket was not created).
>
> -Sam.
>
>
> On Sep 26, 2005, at 12:09 PM, Mark Vaughan wrote:
>
>> Sam,
>> Do you receive any values in $ars_errstr and %ars_errhash?
>>
>> Mark Vaughan
>>
>> Programmer III
>>
>>
>>
>> Direct: +1 303 802 2426
>>
>> Cell: +1 303 601 4434
>>
>> Fax: +1 303 802 1420
>>
>> mar...@ev...
>>
>> Evolving Systems, Inc.
>>
>> 9777 Pyramid Court, Suite 100, Englewood, CO USA 80112
>>
>> www.evolving.com
>>
>>
>> -----Original Message-----
>> From: ars...@ar...
>> [mailto:ars...@ar...] On Behalf Of Sam Vanderhyden
>> Sent: Thursday, September 22, 2005 6:43 PM
>> To: ars...@ar...
>> Subject: [Arsperl-users] ars_CreateEntry crashing perl
>>
>> I am using activestate perl 5.8.3 build 809 on Windows 2k, with
>> ARSystem 6.03.00. I have installed ARSPerl-1.84 windows binary
>> distribution available on the site.
>> I am trying to insert multiple entries into a form in using the
>> following code:
>>
>> my $c = ars_Login("ohio", "Demo", "", undef, undef, 6777, 0);
>> %f = ars_GetFieldTable($c, "HPD:HelpDesk");
>> my $id = ars_CreateEntry($c, "HPD:HelpDesk",
>> $f{'Summary'}, "Perl Test ticket #1",
>> $f{'Description'}, "his is the description",
>> $f{'Category'},"Software",
>> $f{'Type'}, "Other",
>> $f{'Item'}, "Drivers",
>> $f{'Case Type'}, "Incident",
>> $f{'Priority'}, "Low",
>> $f{'Requester Login Name+'}, "Demo",
>> $f{'Requester Name+'}, "Demo",
>> $f{'Source'}, "Phone");
>> print "TICKET ID: $id\r\n";
>> $id = ars_CreateEntry($c, "HPD:HelpDesk",
>> $f{'Summary'}, "Perl Test ticket #2",
>> $f{'Description'}, "his is the description",
>> $f{'Category'},"Software",
>> $f{'Type'}, "Other",
>> $f{'Item'}, "Drivers",
>> $f{'Case Type'}, "Incident",
>> $f{'Priority'}, "Low",
>> $f{'Requester Login Name+'}, "Demo",
>> $f{'Requester Name+'}, "Demo",
>> $f{'Source'}, "Phone");
>> print "TICKET ID: $id\r\n";
>>
>> When I run the above script, I get an application error dialog for
>> perl.exe which states "The instruction "0x77fcb861" referenced memory
>> at "0x015cd4a0". The memory cannot be "written"." The dialog comes up
>> after the two IDs are printed out, and if I use Remedy User to view
> the
>> tickets, they are indeed created. If I remove the code to create the
>> second ticket, the whole thing works fine.
>> Does ARSPerl work under activestate perl? Is there something I can do
>> to get around this problem?
>> -Sam
>>
>>
>>
>> -------------------------------------------------------
>> SF.Net email is sponsored by:
>> Tame your development challenges with Apache's Geronimo App Server.
>> Download it for free - -and be entered to win a 42" plasma tv or your
>> very
>> own Sony(tm)PSP. Click here to play:
>> http://sourceforge.net/geronimo.php
>> _______________________________________________
>> Arsperl-users mailing list
>> Ars...@ar...
>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>> This e-mail and any attachments may be confidential and/or legally
>> privileged. If you have received this e-mail and you are not a named
>> addressee, please inform Evolving Systems TIS at ti...@ev... and
>> then delete the e-mail from your system. If you are not a named
>> addressee you must not use, disclose, distribute, copy, print or rely
>> on this e-mail. To ensure regulatory compliance and for the protection
>
>> of our clients and business, Evolving Systems may monitor and read
>> e-mails sent to and from its servers. Although Evolving Systems
>> routinely screens for viruses, addressees should scan this e-mail and
>> any attachments for viruses. Evolving Systems makes no representation
>> or warranty as to the absence of viruses in this e-mail or any
>> attachments.
>>
>> Registered Office: 9777 Mt. Pyramid Ct Suite 100, Englewood, CO 80112
>>
>>
>>
>> -------------------------------------------------------
>> SF.Net email is sponsored by:
>> Tame your development challenges with Apache's Geronimo App Server.
>> Download it for free - -and be entered to win a 42" plasma tv or your
>> very
>> own Sony(tm)PSP. Click here to play:
>> http://sourceforge.net/geronimo.php
>> _______________________________________________
>> Arsperl-users mailing list
>> Ars...@ar...
>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
> Download it for free - -and be entered to win a 42" plasma tv or your
> very
> own Sony(tm)PSP. Click here to play:
> http://sourceforge.net/geronimo.php
> _______________________________________________
> Arsperl-users mailing list
> Ars...@ar...
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
> Download it for free - -and be entered to win a 42" plasma tv or your
> very
> own Sony(tm)PSP. Click here to play:
> http://sourceforge.net/geronimo.php
> _______________________________________________
> Arsperl-users mailing list
> Ars...@ar...
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
|
|
From: Matt.Reinfeldt <Mat...@en...> - 2005-09-26 21:32:55
|
The only other thing is have you tried 'undef'ing your variables before
the 2nd, 3rd, etc createEntry calls?
undef $id;
undef %f;
etc...
Matt Reinfeldt
Senior Production Support Specialist
Entuition Inc.
Phone: 608-848-9071
Cell#: 920.791.0083
Email: mat...@en...
=20
-----Original Message-----
From: ars...@ar...
[mailto:ars...@ar...] On Behalf Of Sam Vanderhyden
Sent: Monday, September 26, 2005 4:27 PM
To: ars...@ar...
Subject: Re: [Arsperl-users] ars_CreateEntry crashing perl
Matt,
I've tried using for and while loops. perl.exe crashes on the third=20
call to ars_createEntry in both cases.
Thanks for the help.
-Sam.
On Sep 26, 2005, at 2:15 PM, Matt.Reinfeldt wrote:
> Sam,
>
> Have you tried encapsulating each createEntry call in a while loop?
>
> Something like:
>
> my $cnt =3D 0;
> while ($cnt <=3D 1) {
> ... your create entry code here
> $cnt +=3D 1;
> }
>
> I use that methodology and create thousands of tickets successfully.
I
> don't know why one way would work over the other... further testing
> would be needed to track that down.
>
> Let us know if that works for you.
>
> Matt Reinfeldt
> Senior Production Support Specialist
> Entuition Inc.
> Phone: 608-848-9071
> Cell#: 920.791.0083
> Email: mat...@en...
>
> -----Original Message-----
> From: ars...@ar...
> [mailto:ars...@ar...] On Behalf Of Sam Vanderhyden
> Sent: Monday, September 26, 2005 3:47 PM
> To: ars...@ar...
> Subject: Re: [Arsperl-users] ars_CreateEntry crashing perl
>
> $ars_errstr contains the following after the second call:
> [OK] (Support-Software has been notified of the assignment.) (ARERR
> #42108)
> %ars_errhash has only one entry:
> numItems -> 1
> messagenum -> 42108
> messageType -> 0
> messageText -> (Support-Software has been notified of the
> assignment.)
>
> Other things I've been trying:
> I uninstalled the ARSystem server from my dev machine and installed
> only Remedy User. I then ran the original script and it worked fine
> connecting to a remote ARSystem and creating two tickets. I thought
> that the problem was with the local ARSystem server, but then I tried
> creating more than two tickets in the script, and it crashed perl with
> the same message on the attempt to create the third ticket (the third
> ticket was not created).
>
> -Sam.
>
>
> On Sep 26, 2005, at 12:09 PM, Mark Vaughan wrote:
>
>> Sam,
>> Do you receive any values in $ars_errstr and %ars_errhash?
>>
>> Mark Vaughan
>>
>> Programmer III
>>
>>
>>
>> Direct: +1 303 802 2426
>>
>> Cell: +1 303 601 4434
>>
>> Fax: +1 303 802 1420
>>
>> mar...@ev...
>>
>> Evolving Systems, Inc.
>>
>> 9777 Pyramid Court, Suite 100, Englewood, CO USA 80112
>>
>> www.evolving.com
>>
>>
>> -----Original Message-----
>> From: ars...@ar...
>> [mailto:ars...@ar...] On Behalf Of Sam Vanderhyden
>> Sent: Thursday, September 22, 2005 6:43 PM
>> To: ars...@ar...
>> Subject: [Arsperl-users] ars_CreateEntry crashing perl
>>
>> I am using activestate perl 5.8.3 build 809 on Windows 2k, with
>> ARSystem 6.03.00. I have installed ARSPerl-1.84 windows binary
>> distribution available on the site.
>> I am trying to insert multiple entries into a form in using the
>> following code:
>>
>> my $c =3D ars_Login("ohio", "Demo", "", undef, undef, 6777, 0);
>> %f =3D ars_GetFieldTable($c, "HPD:HelpDesk");
>> my $id =3D ars_CreateEntry($c, "HPD:HelpDesk",
>> $f{'Summary'}, "Perl Test ticket #1",=09
>> $f{'Description'}, "his is the description",
>> $f{'Category'},"Software",
>> $f{'Type'}, "Other",
>> $f{'Item'}, "Drivers",
>> $f{'Case Type'}, "Incident",
>> $f{'Priority'}, "Low",
>> $f{'Requester Login Name+'}, "Demo",
>> $f{'Requester Name+'}, "Demo",
>> $f{'Source'}, "Phone");
>> print "TICKET ID: $id\r\n";
>> $id =3D ars_CreateEntry($c, "HPD:HelpDesk",
>> $f{'Summary'}, "Perl Test ticket #2",
>> $f{'Description'}, "his is the description",
>> $f{'Category'},"Software",
>> $f{'Type'}, "Other",
>> $f{'Item'}, "Drivers",
>> $f{'Case Type'}, "Incident",
>> $f{'Priority'}, "Low",
>> $f{'Requester Login Name+'}, "Demo",
>> $f{'Requester Name+'}, "Demo",
>> $f{'Source'}, "Phone");
>> print "TICKET ID: $id\r\n";
>>
>> When I run the above script, I get an application error dialog for
>> perl.exe which states "The instruction "0x77fcb861" referenced memory
>> at "0x015cd4a0". The memory cannot be "written"." The dialog comes up
>> after the two IDs are printed out, and if I use Remedy User to view
> the
>> tickets, they are indeed created. If I remove the code to create the
>> second ticket, the whole thing works fine.
>> Does ARSPerl work under activestate perl? Is there something I can do
>> to get around this problem?
>> -Sam
>>
>>
>>
>> -------------------------------------------------------
>> SF.Net email is sponsored by:
>> Tame your development challenges with Apache's Geronimo App Server.
>> Download it for free - -and be entered to win a 42" plasma tv or your
>> very
>> own Sony(tm)PSP. Click here to play:
>> http://sourceforge.net/geronimo.php
>> _______________________________________________
>> Arsperl-users mailing list
>> Ars...@ar...
>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>> This e-mail and any attachments may be confidential and/or legally
>> privileged. If you have received this e-mail and you are not a named
>> addressee, please inform Evolving Systems TIS at ti...@ev... and
>> then delete the e-mail from your system. If you are not a named
>> addressee you must not use, disclose, distribute, copy, print or rely
>> on this e-mail. To ensure regulatory compliance and for the
protection
>
>> of our clients and business, Evolving Systems may monitor and read
>> e-mails sent to and from its servers. Although Evolving Systems
>> routinely screens for viruses, addressees should scan this e-mail and
>> any attachments for viruses. Evolving Systems makes no representation
>> or warranty as to the absence of viruses in this e-mail or any
>> attachments.
>>
>> Registered Office: 9777 Mt. Pyramid Ct Suite 100, Englewood, CO 80112
>>
>>
>>
>> -------------------------------------------------------
>> SF.Net email is sponsored by:
>> Tame your development challenges with Apache's Geronimo App Server.
>> Download it for free - -and be entered to win a 42" plasma tv or your
>> very
>> own Sony(tm)PSP. Click here to play:
>> http://sourceforge.net/geronimo.php
>> _______________________________________________
>> Arsperl-users mailing list
>> Ars...@ar...
>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
> Download it for free - -and be entered to win a 42" plasma tv or your
> very
> own Sony(tm)PSP. Click here to play:
> http://sourceforge.net/geronimo.php
> _______________________________________________
> Arsperl-users mailing list
> Ars...@ar...
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
> Download it for free - -and be entered to win a 42" plasma tv or your=20
> very
> own Sony(tm)PSP. Click here to play:=20
> http://sourceforge.net/geronimo.php
> _______________________________________________
> Arsperl-users mailing list
> Ars...@ar...
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.=20
Download it for free - -and be entered to win a 42" plasma tv or your
very
own Sony(tm)PSP. Click here to play:
http://sourceforge.net/geronimo.php
_______________________________________________
Arsperl-users mailing list
Ars...@ar...
https://lists.sourceforge.net/lists/listinfo/arsperl-users
|
|
From: Sam V. <sa...@si...> - 2005-09-26 21:49:58
|
I just tried undefing all my vars in between calls, and it still
crashes. I also tried logging off (using ars_Logoff($c) ) and then
logging in again in between calls and that still crashes on the third
call.
-Sam.
On Sep 26, 2005, at 2:31 PM, Matt.Reinfeldt wrote:
> The only other thing is have you tried 'undef'ing your variables before
> the 2nd, 3rd, etc createEntry calls?
>
> undef $id;
> undef %f;
>
> etc...
>
> Matt Reinfeldt
> Senior Production Support Specialist
> Entuition Inc.
> Phone: 608-848-9071
> Cell#: 920.791.0083
> Email: mat...@en...
>
>
> -----Original Message-----
> From: ars...@ar...
> [mailto:ars...@ar...] On Behalf Of Sam Vanderhyden
> Sent: Monday, September 26, 2005 4:27 PM
> To: ars...@ar...
> Subject: Re: [Arsperl-users] ars_CreateEntry crashing perl
>
> Matt,
> I've tried using for and while loops. perl.exe crashes on the third
> call to ars_createEntry in both cases.
>
> Thanks for the help.
> -Sam.
>
> On Sep 26, 2005, at 2:15 PM, Matt.Reinfeldt wrote:
>
>> Sam,
>>
>> Have you tried encapsulating each createEntry call in a while loop?
>>
>> Something like:
>>
>> my $cnt = 0;
>> while ($cnt <= 1) {
>> ... your create entry code here
>> $cnt += 1;
>> }
>>
>> I use that methodology and create thousands of tickets successfully.
> I
>> don't know why one way would work over the other... further testing
>> would be needed to track that down.
>>
>> Let us know if that works for you.
>>
>> Matt Reinfeldt
>> Senior Production Support Specialist
>> Entuition Inc.
>> Phone: 608-848-9071
>> Cell#: 920.791.0083
>> Email: mat...@en...
>>
>> -----Original Message-----
>> From: ars...@ar...
>> [mailto:ars...@ar...] On Behalf Of Sam Vanderhyden
>> Sent: Monday, September 26, 2005 3:47 PM
>> To: ars...@ar...
>> Subject: Re: [Arsperl-users] ars_CreateEntry crashing perl
>>
>> $ars_errstr contains the following after the second call:
>> [OK] (Support-Software has been notified of the assignment.) (ARERR
>> #42108)
>> %ars_errhash has only one entry:
>> numItems -> 1
>> messagenum -> 42108
>> messageType -> 0
>> messageText -> (Support-Software has been notified of the
>> assignment.)
>>
>> Other things I've been trying:
>> I uninstalled the ARSystem server from my dev machine and installed
>> only Remedy User. I then ran the original script and it worked fine
>> connecting to a remote ARSystem and creating two tickets. I thought
>> that the problem was with the local ARSystem server, but then I tried
>> creating more than two tickets in the script, and it crashed perl with
>> the same message on the attempt to create the third ticket (the third
>> ticket was not created).
>>
>> -Sam.
>>
>>
>> On Sep 26, 2005, at 12:09 PM, Mark Vaughan wrote:
>>
>>> Sam,
>>> Do you receive any values in $ars_errstr and %ars_errhash?
>>>
>>> Mark Vaughan
>>>
>>> Programmer III
>>>
>>>
>>>
>>> Direct: +1 303 802 2426
>>>
>>> Cell: +1 303 601 4434
>>>
>>> Fax: +1 303 802 1420
>>>
>>> mar...@ev...
>>>
>>> Evolving Systems, Inc.
>>>
>>> 9777 Pyramid Court, Suite 100, Englewood, CO USA 80112
>>>
>>> www.evolving.com
>>>
>>>
>>> -----Original Message-----
>>> From: ars...@ar...
>>> [mailto:ars...@ar...] On Behalf Of Sam Vanderhyden
>>> Sent: Thursday, September 22, 2005 6:43 PM
>>> To: ars...@ar...
>>> Subject: [Arsperl-users] ars_CreateEntry crashing perl
>>>
>>> I am using activestate perl 5.8.3 build 809 on Windows 2k, with
>>> ARSystem 6.03.00. I have installed ARSPerl-1.84 windows binary
>>> distribution available on the site.
>>> I am trying to insert multiple entries into a form in using the
>>> following code:
>>>
>>> my $c = ars_Login("ohio", "Demo", "", undef, undef, 6777, 0);
>>> %f = ars_GetFieldTable($c, "HPD:HelpDesk");
>>> my $id = ars_CreateEntry($c, "HPD:HelpDesk",
>>> $f{'Summary'}, "Perl Test ticket #1",
>>> $f{'Description'}, "his is the description",
>>> $f{'Category'},"Software",
>>> $f{'Type'}, "Other",
>>> $f{'Item'}, "Drivers",
>>> $f{'Case Type'}, "Incident",
>>> $f{'Priority'}, "Low",
>>> $f{'Requester Login Name+'}, "Demo",
>>> $f{'Requester Name+'}, "Demo",
>>> $f{'Source'}, "Phone");
>>> print "TICKET ID: $id\r\n";
>>> $id = ars_CreateEntry($c, "HPD:HelpDesk",
>>> $f{'Summary'}, "Perl Test ticket #2",
>>> $f{'Description'}, "his is the description",
>>> $f{'Category'},"Software",
>>> $f{'Type'}, "Other",
>>> $f{'Item'}, "Drivers",
>>> $f{'Case Type'}, "Incident",
>>> $f{'Priority'}, "Low",
>>> $f{'Requester Login Name+'}, "Demo",
>>> $f{'Requester Name+'}, "Demo",
>>> $f{'Source'}, "Phone");
>>> print "TICKET ID: $id\r\n";
>>>
>>> When I run the above script, I get an application error dialog for
>>> perl.exe which states "The instruction "0x77fcb861" referenced memory
>>> at "0x015cd4a0". The memory cannot be "written"." The dialog comes up
>>> after the two IDs are printed out, and if I use Remedy User to view
>> the
>>> tickets, they are indeed created. If I remove the code to create the
>>> second ticket, the whole thing works fine.
>>> Does ARSPerl work under activestate perl? Is there something I can do
>>> to get around this problem?
>>> -Sam
>>>
>>>
>>>
>>> -------------------------------------------------------
>>> SF.Net email is sponsored by:
>>> Tame your development challenges with Apache's Geronimo App Server.
>>> Download it for free - -and be entered to win a 42" plasma tv or your
>>> very
>>> own Sony(tm)PSP. Click here to play:
>>> http://sourceforge.net/geronimo.php
>>> _______________________________________________
>>> Arsperl-users mailing list
>>> Ars...@ar...
>>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>>> This e-mail and any attachments may be confidential and/or legally
>>> privileged. If you have received this e-mail and you are not a named
>>> addressee, please inform Evolving Systems TIS at ti...@ev... and
>>> then delete the e-mail from your system. If you are not a named
>>> addressee you must not use, disclose, distribute, copy, print or rely
>>> on this e-mail. To ensure regulatory compliance and for the
> protection
>>
>>> of our clients and business, Evolving Systems may monitor and read
>>> e-mails sent to and from its servers. Although Evolving Systems
>>> routinely screens for viruses, addressees should scan this e-mail and
>>> any attachments for viruses. Evolving Systems makes no representation
>>> or warranty as to the absence of viruses in this e-mail or any
>>> attachments.
>>>
>>> Registered Office: 9777 Mt. Pyramid Ct Suite 100, Englewood, CO 80112
>>>
>>>
>>>
>>> -------------------------------------------------------
>>> SF.Net email is sponsored by:
>>> Tame your development challenges with Apache's Geronimo App Server.
>>> Download it for free - -and be entered to win a 42" plasma tv or your
>>> very
>>> own Sony(tm)PSP. Click here to play:
>>> http://sourceforge.net/geronimo.php
>>> _______________________________________________
>>> Arsperl-users mailing list
>>> Ars...@ar...
>>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>>
>>
>>
>> -------------------------------------------------------
>> SF.Net email is sponsored by:
>> Tame your development challenges with Apache's Geronimo App Server.
>> Download it for free - -and be entered to win a 42" plasma tv or your
>> very
>> own Sony(tm)PSP. Click here to play:
>> http://sourceforge.net/geronimo.php
>> _______________________________________________
>> Arsperl-users mailing list
>> Ars...@ar...
>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>>
>>
>>
>>
>> -------------------------------------------------------
>> SF.Net email is sponsored by:
>> Tame your development challenges with Apache's Geronimo App Server.
>> Download it for free - -and be entered to win a 42" plasma tv or your
>> very
>> own Sony(tm)PSP. Click here to play:
>> http://sourceforge.net/geronimo.php
>> _______________________________________________
>> Arsperl-users mailing list
>> Ars...@ar...
>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
> Download it for free - -and be entered to win a 42" plasma tv or your
> very
> own Sony(tm)PSP. Click here to play:
> http://sourceforge.net/geronimo.php
> _______________________________________________
> Arsperl-users mailing list
> Ars...@ar...
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
> Download it for free - -and be entered to win a 42" plasma tv or your
> very
> own Sony(tm)PSP. Click here to play:
> http://sourceforge.net/geronimo.php
> _______________________________________________
> Arsperl-users mailing list
> Ars...@ar...
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
|
|
From: Sam V. <sa...@si...> - 2005-09-28 00:22:00
|
I had some time today to do a bit more systematic testing of this
problem, so here is what I did:
I created a form called UTest in the ARSystem server. This form has two
required fields, and both are of type character.
I wrote the following script to insert entries into this form:
use ARS;
print("loggin in \r\n");
my $c = ars_Login("ohio", "Demo", "", undef, undef, 6777, 0);
my $cnt = 0;
while($cnt<5){
print("inserting ticket\r\n");
my $id = ars_CreateEntry($c, "UTest",
2, "Perl Test ticket $cnt",
8,"Testing this is a test");
print "TICKET ID: $id\r\n";
$cnt++;
}
I tried to make the script as simple as possible, using the static
field IDs instead of using the ars_getFieldTable sub.
I then tested this script on four different versions of windows (all
completely fresh installs):
Windows 2000 pro
Windows 2000 Server
Windows XP pro
Windows 2003 Server
I installed Remedy User 6.3, ActivePerl 5.8.3 build 809, and ARSPerl
1.84_63 windows binary on all 4 machines.
I then ran the script on all 4 systems. On windows 2000 pro and server,
it crashed perl.exe with the same memory error as before on the second
call to ars_CreateEntry. On windows XP, it completed all 5 inserts and
then crashed. I played around with inserting as many as 100 tickets in
the loop, and indeed on windows xp it inserted all 100 and then
crashed, with nothing in $ars_errstr (so it always crashed after the
last call to ars_CreateEntry). On windows 2003 Server the script worked
fine, without crashing, no matter how many tickets I inserted.
Anyone have any ideas?
Thanks,
-Sam.
On Sep 26, 2005, at 2:48 PM, Sam Vanderhyden wrote:
> I just tried undefing all my vars in between calls, and it still
> crashes. I also tried logging off (using ars_Logoff($c) ) and then
> logging in again in between calls and that still crashes on the third
> call.
>
> -Sam.
>
> On Sep 26, 2005, at 2:31 PM, Matt.Reinfeldt wrote:
>
>> The only other thing is have you tried 'undef'ing your variables
>> before
>> the 2nd, 3rd, etc createEntry calls?
>>
>> undef $id;
>> undef %f;
>>
>> etc...
>>
>> Matt Reinfeldt
>> Senior Production Support Specialist
>> Entuition Inc.
>> Phone: 608-848-9071
>> Cell#: 920.791.0083
>> Email: mat...@en...
>>
>>
>> -----Original Message-----
>> From: ars...@ar...
>> [mailto:ars...@ar...] On Behalf Of Sam Vanderhyden
>> Sent: Monday, September 26, 2005 4:27 PM
>> To: ars...@ar...
>> Subject: Re: [Arsperl-users] ars_CreateEntry crashing perl
>>
>> Matt,
>> I've tried using for and while loops. perl.exe crashes on the third
>> call to ars_createEntry in both cases.
>>
>> Thanks for the help.
>> -Sam.
>>
>> On Sep 26, 2005, at 2:15 PM, Matt.Reinfeldt wrote:
>>
>>> Sam,
>>>
>>> Have you tried encapsulating each createEntry call in a while loop?
>>>
>>> Something like:
>>>
>>> my $cnt = 0;
>>> while ($cnt <= 1) {
>>> ... your create entry code here
>>> $cnt += 1;
>>> }
>>>
>>> I use that methodology and create thousands of tickets successfully.
>> I
>>> don't know why one way would work over the other... further testing
>>> would be needed to track that down.
>>>
>>> Let us know if that works for you.
>>>
>>> Matt Reinfeldt
>>> Senior Production Support Specialist
>>> Entuition Inc.
>>> Phone: 608-848-9071
>>> Cell#: 920.791.0083
>>> Email: mat...@en...
>>>
>>> -----Original Message-----
>>> From: ars...@ar...
>>> [mailto:ars...@ar...] On Behalf Of Sam Vanderhyden
>>> Sent: Monday, September 26, 2005 3:47 PM
>>> To: ars...@ar...
>>> Subject: Re: [Arsperl-users] ars_CreateEntry crashing perl
>>>
>>> $ars_errstr contains the following after the second call:
>>> [OK] (Support-Software has been notified of the assignment.) (ARERR
>>> #42108)
>>> %ars_errhash has only one entry:
>>> numItems -> 1
>>> messagenum -> 42108
>>> messageType -> 0
>>> messageText -> (Support-Software has been notified of the
>>> assignment.)
>>>
>>> Other things I've been trying:
>>> I uninstalled the ARSystem server from my dev machine and installed
>>> only Remedy User. I then ran the original script and it worked fine
>>> connecting to a remote ARSystem and creating two tickets. I thought
>>> that the problem was with the local ARSystem server, but then I tried
>>> creating more than two tickets in the script, and it crashed perl
>>> with
>>> the same message on the attempt to create the third ticket (the third
>>> ticket was not created).
>>>
>>> -Sam.
>>>
>>>
>>> On Sep 26, 2005, at 12:09 PM, Mark Vaughan wrote:
>>>
>>>> Sam,
>>>> Do you receive any values in $ars_errstr and %ars_errhash?
>>>>
>>>> Mark Vaughan
>>>>
>>>> Programmer III
>>>>
>>>>
>>>>
>>>> Direct: +1 303 802 2426
>>>>
>>>> Cell: +1 303 601 4434
>>>>
>>>> Fax: +1 303 802 1420
>>>>
>>>> mar...@ev...
>>>>
>>>> Evolving Systems, Inc.
>>>>
>>>> 9777 Pyramid Court, Suite 100, Englewood, CO USA 80112
>>>>
>>>> www.evolving.com
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: ars...@ar...
>>>> [mailto:ars...@ar...] On Behalf Of Sam
>>>> Vanderhyden
>>>> Sent: Thursday, September 22, 2005 6:43 PM
>>>> To: ars...@ar...
>>>> Subject: [Arsperl-users] ars_CreateEntry crashing perl
>>>>
>>>> I am using activestate perl 5.8.3 build 809 on Windows 2k, with
>>>> ARSystem 6.03.00. I have installed ARSPerl-1.84 windows binary
>>>> distribution available on the site.
>>>> I am trying to insert multiple entries into a form in using the
>>>> following code:
>>>>
>>>> my $c = ars_Login("ohio", "Demo", "", undef, undef, 6777, 0);
>>>> %f = ars_GetFieldTable($c, "HPD:HelpDesk");
>>>> my $id = ars_CreateEntry($c, "HPD:HelpDesk",
>>>> $f{'Summary'}, "Perl Test ticket #1",
>>>> $f{'Description'}, "his is the description",
>>>> $f{'Category'},"Software",
>>>> $f{'Type'}, "Other",
>>>> $f{'Item'}, "Drivers",
>>>> $f{'Case Type'}, "Incident",
>>>> $f{'Priority'}, "Low",
>>>> $f{'Requester Login Name+'}, "Demo",
>>>> $f{'Requester Name+'}, "Demo",
>>>> $f{'Source'}, "Phone");
>>>> print "TICKET ID: $id\r\n";
>>>> $id = ars_CreateEntry($c, "HPD:HelpDesk",
>>>> $f{'Summary'}, "Perl Test ticket #2",
>>>> $f{'Description'}, "his is the description",
>>>> $f{'Category'},"Software",
>>>> $f{'Type'}, "Other",
>>>> $f{'Item'}, "Drivers",
>>>> $f{'Case Type'}, "Incident",
>>>> $f{'Priority'}, "Low",
>>>> $f{'Requester Login Name+'}, "Demo",
>>>> $f{'Requester Name+'}, "Demo",
>>>> $f{'Source'}, "Phone");
>>>> print "TICKET ID: $id\r\n";
>>>>
>>>> When I run the above script, I get an application error dialog for
>>>> perl.exe which states "The instruction "0x77fcb861" referenced
>>>> memory
>>>> at "0x015cd4a0". The memory cannot be "written"." The dialog comes
>>>> up
>>>> after the two IDs are printed out, and if I use Remedy User to view
>>> the
>>>> tickets, they are indeed created. If I remove the code to create the
>>>> second ticket, the whole thing works fine.
>>>> Does ARSPerl work under activestate perl? Is there something I can
>>>> do
>>>> to get around this problem?
>>>> -Sam
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------
>>>> SF.Net email is sponsored by:
>>>> Tame your development challenges with Apache's Geronimo App Server.
>>>> Download it for free - -and be entered to win a 42" plasma tv or
>>>> your
>>>> very
>>>> own Sony(tm)PSP. Click here to play:
>>>> http://sourceforge.net/geronimo.php
>>>> _______________________________________________
>>>> Arsperl-users mailing list
>>>> Ars...@ar...
>>>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>>>> This e-mail and any attachments may be confidential and/or legally
>>>> privileged. If you have received this e-mail and you are not a named
>>>> addressee, please inform Evolving Systems TIS at ti...@ev...
>>>> and
>>>> then delete the e-mail from your system. If you are not a named
>>>> addressee you must not use, disclose, distribute, copy, print or
>>>> rely
>>>> on this e-mail. To ensure regulatory compliance and for the
>> protection
>>>
>>>> of our clients and business, Evolving Systems may monitor and read
>>>> e-mails sent to and from its servers. Although Evolving Systems
>>>> routinely screens for viruses, addressees should scan this e-mail
>>>> and
>>>> any attachments for viruses. Evolving Systems makes no
>>>> representation
>>>> or warranty as to the absence of viruses in this e-mail or any
>>>> attachments.
>>>>
>>>> Registered Office: 9777 Mt. Pyramid Ct Suite 100, Englewood, CO
>>>> 80112
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------
>>>> SF.Net email is sponsored by:
>>>> Tame your development challenges with Apache's Geronimo App Server.
>>>> Download it for free - -and be entered to win a 42" plasma tv or
>>>> your
>>>> very
>>>> own Sony(tm)PSP. Click here to play:
>>>> http://sourceforge.net/geronimo.php
>>>> _______________________________________________
>>>> Arsperl-users mailing list
>>>> Ars...@ar...
>>>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>>>
>>>
>>>
>>> -------------------------------------------------------
>>> SF.Net email is sponsored by:
>>> Tame your development challenges with Apache's Geronimo App Server.
>>> Download it for free - -and be entered to win a 42" plasma tv or your
>>> very
>>> own Sony(tm)PSP. Click here to play:
>>> http://sourceforge.net/geronimo.php
>>> _______________________________________________
>>> Arsperl-users mailing list
>>> Ars...@ar...
>>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>>>
>>>
>>>
>>>
>>> -------------------------------------------------------
>>> SF.Net email is sponsored by:
>>> Tame your development challenges with Apache's Geronimo App Server.
>>> Download it for free - -and be entered to win a 42" plasma tv or your
>>> very
>>> own Sony(tm)PSP. Click here to play:
>>> http://sourceforge.net/geronimo.php
>>> _______________________________________________
>>> Arsperl-users mailing list
>>> Ars...@ar...
>>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>>
>>
>>
>> -------------------------------------------------------
>> SF.Net email is sponsored by:
>> Tame your development challenges with Apache's Geronimo App Server.
>> Download it for free - -and be entered to win a 42" plasma tv or your
>> very
>> own Sony(tm)PSP. Click here to play:
>> http://sourceforge.net/geronimo.php
>> _______________________________________________
>> Arsperl-users mailing list
>> Ars...@ar...
>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>>
>>
>>
>>
>> -------------------------------------------------------
>> SF.Net email is sponsored by:
>> Tame your development challenges with Apache's Geronimo App Server.
>> Download it for free - -and be entered to win a 42" plasma tv or your
>> very
>> own Sony(tm)PSP. Click here to play:
>> http://sourceforge.net/geronimo.php
>> _______________________________________________
>> Arsperl-users mailing list
>> Ars...@ar...
>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
> Download it for free - -and be entered to win a 42" plasma tv or your
> very
> own Sony(tm)PSP. Click here to play:
> http://sourceforge.net/geronimo.php
> _______________________________________________
> Arsperl-users mailing list
> Ars...@ar...
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
|
|
From: Stapff, T. <thi...@ma...> - 2005-09-27 07:14:56
|
Very strange problem indeed. I installed ActiveState build 809 and the 1.84
binary (on Windows XP and with a really old version of HPD:HelpDesk), but
could not reproduce the problem.
One thing that caught my eye: the fields "Priority", "Source" and "Case
Type" are of data type enum, so the value should be submitted as an integer,
e.g. "$f{'Priority'} => 0" or whatever the corresponding value for "Low" is.
I don't really expect this to solve the problem but it might be worth a try.
I'd try also to eliminate the ars_GetFieldTable call, if only to isolate the
error.
Thilo
-----Original Message-----
From: Sam Vanderhyden [mailto:sa...@si...]
Sent: Monday, September 26, 2005 11:48 PM
To: ars...@ar...
Subject: Re: [Arsperl-users] ars_CreateEntry crashing perl
I just tried undefing all my vars in between calls, and it still
crashes. I also tried logging off (using ars_Logoff($c) ) and then
logging in again in between calls and that still crashes on the third
call.
-Sam.
On Sep 26, 2005, at 2:31 PM, Matt.Reinfeldt wrote:
> The only other thing is have you tried 'undef'ing your variables
> before the 2nd, 3rd, etc createEntry calls?
>
> undef $id;
> undef %f;
>
> etc...
>
> Matt Reinfeldt
> Senior Production Support Specialist
> Entuition Inc.
> Phone: 608-848-9071
> Cell#: 920.791.0083
> Email: mat...@en...
>
>
> -----Original Message-----
> From: ars...@ar...
> [mailto:ars...@ar...] On Behalf Of Sam Vanderhyden
> Sent: Monday, September 26, 2005 4:27 PM
> To: ars...@ar...
> Subject: Re: [Arsperl-users] ars_CreateEntry crashing perl
>
> Matt,
> I've tried using for and while loops. perl.exe crashes on the third
> call to ars_createEntry in both cases.
>
> Thanks for the help.
> -Sam.
>
> On Sep 26, 2005, at 2:15 PM, Matt.Reinfeldt wrote:
>
>> Sam,
>>
>> Have you tried encapsulating each createEntry call in a while loop?
>>
>> Something like:
>>
>> my $cnt = 0;
>> while ($cnt <= 1) {
>> ... your create entry code here
>> $cnt += 1;
>> }
>>
>> I use that methodology and create thousands of tickets successfully.
> I
>> don't know why one way would work over the other... further testing
>> would be needed to track that down.
>>
>> Let us know if that works for you.
>>
>> Matt Reinfeldt
>> Senior Production Support Specialist
>> Entuition Inc.
>> Phone: 608-848-9071
>> Cell#: 920.791.0083
>> Email: mat...@en...
>>
>> -----Original Message-----
>> From: ars...@ar...
>> [mailto:ars...@ar...] On Behalf Of Sam Vanderhyden
>> Sent: Monday, September 26, 2005 3:47 PM
>> To: ars...@ar...
>> Subject: Re: [Arsperl-users] ars_CreateEntry crashing perl
>>
>> $ars_errstr contains the following after the second call: [OK]
>> (Support-Software has been notified of the assignment.) (ARERR
>> #42108)
>> %ars_errhash has only one entry:
>> numItems -> 1
>> messagenum -> 42108
>> messageType -> 0
>> messageText -> (Support-Software has been notified of the
>> assignment.)
>>
>> Other things I've been trying:
>> I uninstalled the ARSystem server from my dev machine and installed
>> only Remedy User. I then ran the original script and it worked fine
>> connecting to a remote ARSystem and creating two tickets. I thought
>> that the problem was with the local ARSystem server, but then I tried
>> creating more than two tickets in the script, and it crashed perl
>> with the same message on the attempt to create the third ticket (the
>> third ticket was not created).
>>
>> -Sam.
>>
>>
>> On Sep 26, 2005, at 12:09 PM, Mark Vaughan wrote:
>>
>>> Sam,
>>> Do you receive any values in $ars_errstr and %ars_errhash?
>>>
>>> Mark Vaughan
>>>
>>> Programmer III
>>>
>>>
>>>
>>> Direct: +1 303 802 2426
>>>
>>> Cell: +1 303 601 4434
>>>
>>> Fax: +1 303 802 1420
>>>
>>> mar...@ev...
>>>
>>> Evolving Systems, Inc.
>>>
>>> 9777 Pyramid Court, Suite 100, Englewood, CO USA 80112
>>>
>>> www.evolving.com
>>>
>>>
>>> -----Original Message-----
>>> From: ars...@ar...
>>> [mailto:ars...@ar...] On Behalf Of Sam
>>> Vanderhyden
>>> Sent: Thursday, September 22, 2005 6:43 PM
>>> To: ars...@ar...
>>> Subject: [Arsperl-users] ars_CreateEntry crashing perl
>>>
>>> I am using activestate perl 5.8.3 build 809 on Windows 2k, with
>>> ARSystem 6.03.00. I have installed ARSPerl-1.84 windows binary
>>> distribution available on the site. I am trying to insert multiple
>>> entries into a form in using the following code:
>>>
>>> my $c = ars_Login("ohio", "Demo", "", undef, undef, 6777, 0); %f =
>>> ars_GetFieldTable($c, "HPD:HelpDesk"); my $id = ars_CreateEntry($c,
>>> "HPD:HelpDesk",
>>> $f{'Summary'}, "Perl Test ticket #1",
>>> $f{'Description'}, "his is the description",
>>> $f{'Category'},"Software",
>>> $f{'Type'}, "Other",
>>> $f{'Item'}, "Drivers",
>>> $f{'Case Type'}, "Incident",
>>> $f{'Priority'}, "Low",
>>> $f{'Requester Login Name+'}, "Demo",
>>> $f{'Requester Name+'}, "Demo",
>>> $f{'Source'}, "Phone");
>>> print "TICKET ID: $id\r\n";
>>> $id = ars_CreateEntry($c, "HPD:HelpDesk",
>>> $f{'Summary'}, "Perl Test ticket #2",
>>> $f{'Description'}, "his is the description",
>>> $f{'Category'},"Software",
>>> $f{'Type'}, "Other",
>>> $f{'Item'}, "Drivers",
>>> $f{'Case Type'}, "Incident",
>>> $f{'Priority'}, "Low",
>>> $f{'Requester Login Name+'}, "Demo",
>>> $f{'Requester Name+'}, "Demo",
>>> $f{'Source'}, "Phone");
>>> print "TICKET ID: $id\r\n";
>>>
>>> When I run the above script, I get an application error dialog for
>>> perl.exe which states "The instruction "0x77fcb861" referenced
>>> memory at "0x015cd4a0". The memory cannot be "written"." The dialog
>>> comes up after the two IDs are printed out, and if I use Remedy User
>>> to view
>> the
>>> tickets, they are indeed created. If I remove the code to create the
>>> second ticket, the whole thing works fine. Does ARSPerl work under
>>> activestate perl? Is there something I can do to get around this
>>> problem? -Sam
>>>
>>>
>>>
>>> -------------------------------------------------------
>>> SF.Net email is sponsored by:
>>> Tame your development challenges with Apache's Geronimo App Server.
>>> Download it for free - -and be entered to win a 42" plasma tv or
>>> your very own Sony(tm)PSP. Click here to play:
>>> http://sourceforge.net/geronimo.php
>>> _______________________________________________
>>> Arsperl-users mailing list
>>> Ars...@ar...
>>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>>> This e-mail and any attachments may be confidential and/or legally
>>> privileged. If you have received this e-mail and you are not a named
>>> addressee, please inform Evolving Systems TIS at ti...@ev... and
>>> then delete the e-mail from your system. If you are not a named
>>> addressee you must not use, disclose, distribute, copy, print or rely
>>> on this e-mail. To ensure regulatory compliance and for the
> protection
>>
>>> of our clients and business, Evolving Systems may monitor and read
>>> e-mails sent to and from its servers. Although Evolving Systems
>>> routinely screens for viruses, addressees should scan this e-mail
>>> and any attachments for viruses. Evolving Systems makes no
>>> representation or warranty as to the absence of viruses in this
>>> e-mail or any attachments.
>>>
>>> Registered Office: 9777 Mt. Pyramid Ct Suite 100, Englewood, CO
>>> 80112
>>>
>>>
>>>
>>> -------------------------------------------------------
>>> SF.Net email is sponsored by:
>>> Tame your development challenges with Apache's Geronimo App Server.
>>> Download it for free - -and be entered to win a 42" plasma tv or
>>> your very own Sony(tm)PSP. Click here to play:
>>> http://sourceforge.net/geronimo.php
>>> _______________________________________________
>>> Arsperl-users mailing list
>>> Ars...@ar...
>>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>>
>>
>>
>> -------------------------------------------------------
>> SF.Net email is sponsored by:
>> Tame your development challenges with Apache's Geronimo App Server.
>> Download it for free - -and be entered to win a 42" plasma tv or your
>> very own Sony(tm)PSP. Click here to play:
>> http://sourceforge.net/geronimo.php
>> _______________________________________________
>> Arsperl-users mailing list
>> Ars...@ar...
>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>>
>>
>>
>>
>> -------------------------------------------------------
>> SF.Net email is sponsored by:
>> Tame your development challenges with Apache's Geronimo App Server.
>> Download it for free - -and be entered to win a 42" plasma tv or your
>> very own Sony(tm)PSP. Click here to play:
>> http://sourceforge.net/geronimo.php
>> _______________________________________________
>> Arsperl-users mailing list
>> Ars...@ar...
>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
> Download it for free - -and be entered to win a 42" plasma tv or your
> very own Sony(tm)PSP. Click here to play:
> http://sourceforge.net/geronimo.php
> _______________________________________________
> Arsperl-users mailing list
> Ars...@ar...
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
> Download it for free - -and be entered to win a 42" plasma tv or your
> very own Sony(tm)PSP. Click here to play:
> http://sourceforge.net/geronimo.php
> _______________________________________________
> Arsperl-users mailing list
> Ars...@ar...
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Arsperl-users mailing list
Ars...@ar...
https://lists.sourceforge.net/lists/listinfo/arsperl-users
|
|
From: Matt.Reinfeldt <Mat...@en...> - 2005-09-28 00:34:01
|
Has anyone tested this behavior on a unix machine? Just curious. :)
Matt Reinfeldt
Senior Production Support Specialist
Entuition Inc.
Phone: 608-848-9071
Cell#: 920.791.0083
Email: mat...@en...
=20
-----Original Message-----
From: ars...@ar...
[mailto:ars...@ar...] On Behalf Of Sam Vanderhyden
Sent: Tuesday, September 27, 2005 7:20 PM
To: ars...@ar...
Subject: Re: [Arsperl-users] ars_CreateEntry crashing perl
I had some time today to do a bit more systematic testing of this=20
problem, so here is what I did:
I created a form called UTest in the ARSystem server. This form has two=20
required fields, and both are of type character.
I wrote the following script to insert entries into this form:
use ARS;
print("loggin in \r\n");
my $c =3D ars_Login("ohio", "Demo", "", undef, undef, 6777, 0);
my $cnt =3D 0;
while($cnt<5){
print("inserting ticket\r\n");
my $id =3D ars_CreateEntry($c, "UTest",
2, "Perl Test ticket $cnt",
8,"Testing this is a test");
print "TICKET ID: $id\r\n";
$cnt++;
}
I tried to make the script as simple as possible, using the static=20
field IDs instead of using the ars_getFieldTable sub.
I then tested this script on four different versions of windows (all=20
completely fresh installs):
Windows 2000 pro
Windows 2000 Server
Windows XP pro
Windows 2003 Server
I installed Remedy User 6.3, ActivePerl 5.8.3 build 809, and ARSPerl=20
1.84_63 windows binary on all 4 machines.
I then ran the script on all 4 systems. On windows 2000 pro and server,=20
it crashed perl.exe with the same memory error as before on the second=20
call to ars_CreateEntry. On windows XP, it completed all 5 inserts and=20
then crashed. I played around with inserting as many as 100 tickets in=20
the loop, and indeed on windows xp it inserted all 100 and then=20
crashed, with nothing in $ars_errstr (so it always crashed after the=20
last call to ars_CreateEntry). On windows 2003 Server the script worked=20
fine, without crashing, no matter how many tickets I inserted.
Anyone have any ideas?
Thanks,
-Sam.
On Sep 26, 2005, at 2:48 PM, Sam Vanderhyden wrote:
> I just tried undefing all my vars in between calls, and it still=20
> crashes. I also tried logging off (using ars_Logoff($c) ) and then=20
> logging in again in between calls and that still crashes on the third=20
> call.
>
> -Sam.
>
> On Sep 26, 2005, at 2:31 PM, Matt.Reinfeldt wrote:
>
>> The only other thing is have you tried 'undef'ing your variables=20
>> before
>> the 2nd, 3rd, etc createEntry calls?
>>
>> undef $id;
>> undef %f;
>>
>> etc...
>>
>> Matt Reinfeldt
>> Senior Production Support Specialist
>> Entuition Inc.
>> Phone: 608-848-9071
>> Cell#: 920.791.0083
>> Email: mat...@en...
>>
>>
>> -----Original Message-----
>> From: ars...@ar...
>> [mailto:ars...@ar...] On Behalf Of Sam Vanderhyden
>> Sent: Monday, September 26, 2005 4:27 PM
>> To: ars...@ar...
>> Subject: Re: [Arsperl-users] ars_CreateEntry crashing perl
>>
>> Matt,
>> I've tried using for and while loops. perl.exe crashes on the third
>> call to ars_createEntry in both cases.
>>
>> Thanks for the help.
>> -Sam.
>>
>> On Sep 26, 2005, at 2:15 PM, Matt.Reinfeldt wrote:
>>
>>> Sam,
>>>
>>> Have you tried encapsulating each createEntry call in a while loop?
>>>
>>> Something like:
>>>
>>> my $cnt =3D 0;
>>> while ($cnt <=3D 1) {
>>> ... your create entry code here
>>> $cnt +=3D 1;
>>> }
>>>
>>> I use that methodology and create thousands of tickets successfully.
>> I
>>> don't know why one way would work over the other... further testing
>>> would be needed to track that down.
>>>
>>> Let us know if that works for you.
>>>
>>> Matt Reinfeldt
>>> Senior Production Support Specialist
>>> Entuition Inc.
>>> Phone: 608-848-9071
>>> Cell#: 920.791.0083
>>> Email: mat...@en...
>>>
>>> -----Original Message-----
>>> From: ars...@ar...
>>> [mailto:ars...@ar...] On Behalf Of Sam
Vanderhyden
>>> Sent: Monday, September 26, 2005 3:47 PM
>>> To: ars...@ar...
>>> Subject: Re: [Arsperl-users] ars_CreateEntry crashing perl
>>>
>>> $ars_errstr contains the following after the second call:
>>> [OK] (Support-Software has been notified of the assignment.) (ARERR
>>> #42108)
>>> %ars_errhash has only one entry:
>>> numItems -> 1
>>> messagenum -> 42108
>>> messageType -> 0
>>> messageText -> (Support-Software has been notified of the
>>> assignment.)
>>>
>>> Other things I've been trying:
>>> I uninstalled the ARSystem server from my dev machine and installed
>>> only Remedy User. I then ran the original script and it worked fine
>>> connecting to a remote ARSystem and creating two tickets. I thought
>>> that the problem was with the local ARSystem server, but then I
tried
>>> creating more than two tickets in the script, and it crashed perl=20
>>> with
>>> the same message on the attempt to create the third ticket (the
third
>>> ticket was not created).
>>>
>>> -Sam.
>>>
>>>
>>> On Sep 26, 2005, at 12:09 PM, Mark Vaughan wrote:
>>>
>>>> Sam,
>>>> Do you receive any values in $ars_errstr and %ars_errhash?
>>>>
>>>> Mark Vaughan
>>>>
>>>> Programmer III
>>>>
>>>>
>>>>
>>>> Direct: +1 303 802 2426
>>>>
>>>> Cell: +1 303 601 4434
>>>>
>>>> Fax: +1 303 802 1420
>>>>
>>>> mar...@ev...
>>>>
>>>> Evolving Systems, Inc.
>>>>
>>>> 9777 Pyramid Court, Suite 100, Englewood, CO USA 80112
>>>>
>>>> www.evolving.com
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: ars...@ar...
>>>> [mailto:ars...@ar...] On Behalf Of Sam=20
>>>> Vanderhyden
>>>> Sent: Thursday, September 22, 2005 6:43 PM
>>>> To: ars...@ar...
>>>> Subject: [Arsperl-users] ars_CreateEntry crashing perl
>>>>
>>>> I am using activestate perl 5.8.3 build 809 on Windows 2k, with
>>>> ARSystem 6.03.00. I have installed ARSPerl-1.84 windows binary
>>>> distribution available on the site.
>>>> I am trying to insert multiple entries into a form in using the
>>>> following code:
>>>>
>>>> my $c =3D ars_Login("ohio", "Demo", "", undef, undef, 6777, 0);
>>>> %f =3D ars_GetFieldTable($c, "HPD:HelpDesk");
>>>> my $id =3D ars_CreateEntry($c, "HPD:HelpDesk",
>>>> $f{'Summary'}, "Perl Test ticket #1",=09
>>>> $f{'Description'}, "his is the description",
>>>> $f{'Category'},"Software",
>>>> $f{'Type'}, "Other",
>>>> $f{'Item'}, "Drivers",
>>>> $f{'Case Type'}, "Incident",
>>>> $f{'Priority'}, "Low",
>>>> $f{'Requester Login Name+'}, "Demo",
>>>> $f{'Requester Name+'}, "Demo",
>>>> $f{'Source'}, "Phone");
>>>> print "TICKET ID: $id\r\n";
>>>> $id =3D ars_CreateEntry($c, "HPD:HelpDesk",
>>>> $f{'Summary'}, "Perl Test ticket #2",
>>>> $f{'Description'}, "his is the description",
>>>> $f{'Category'},"Software",
>>>> $f{'Type'}, "Other",
>>>> $f{'Item'}, "Drivers",
>>>> $f{'Case Type'}, "Incident",
>>>> $f{'Priority'}, "Low",
>>>> $f{'Requester Login Name+'}, "Demo",
>>>> $f{'Requester Name+'}, "Demo",
>>>> $f{'Source'}, "Phone");
>>>> print "TICKET ID: $id\r\n";
>>>>
>>>> When I run the above script, I get an application error dialog for
>>>> perl.exe which states "The instruction "0x77fcb861" referenced=20
>>>> memory
>>>> at "0x015cd4a0". The memory cannot be "written"." The dialog comes=20
>>>> up
>>>> after the two IDs are printed out, and if I use Remedy User to view
>>> the
>>>> tickets, they are indeed created. If I remove the code to create
the
>>>> second ticket, the whole thing works fine.
>>>> Does ARSPerl work under activestate perl? Is there something I can=20
>>>> do
>>>> to get around this problem?
>>>> -Sam
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------
>>>> SF.Net email is sponsored by:
>>>> Tame your development challenges with Apache's Geronimo App Server.
>>>> Download it for free - -and be entered to win a 42" plasma tv or=20
>>>> your
>>>> very
>>>> own Sony(tm)PSP. Click here to play:
>>>> http://sourceforge.net/geronimo.php
>>>> _______________________________________________
>>>> Arsperl-users mailing list
>>>> Ars...@ar...
>>>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>>>> This e-mail and any attachments may be confidential and/or legally
>>>> privileged. If you have received this e-mail and you are not a
named
>>>> addressee, please inform Evolving Systems TIS at ti...@ev...=20
>>>> and
>>>> then delete the e-mail from your system. If you are not a named
>>>> addressee you must not use, disclose, distribute, copy, print or=20
>>>> rely
>>>> on this e-mail. To ensure regulatory compliance and for the
>> protection
>>>
>>>> of our clients and business, Evolving Systems may monitor and read
>>>> e-mails sent to and from its servers. Although Evolving Systems
>>>> routinely screens for viruses, addressees should scan this e-mail=20
>>>> and
>>>> any attachments for viruses. Evolving Systems makes no=20
>>>> representation
>>>> or warranty as to the absence of viruses in this e-mail or any
>>>> attachments.
>>>>
>>>> Registered Office: 9777 Mt. Pyramid Ct Suite 100, Englewood, CO=20
>>>> 80112
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------
>>>> SF.Net email is sponsored by:
>>>> Tame your development challenges with Apache's Geronimo App Server.
>>>> Download it for free - -and be entered to win a 42" plasma tv or=20
>>>> your
>>>> very
>>>> own Sony(tm)PSP. Click here to play:
>>>> http://sourceforge.net/geronimo.php
>>>> _______________________________________________
>>>> Arsperl-users mailing list
>>>> Ars...@ar...
>>>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>>>
>>>
>>>
>>> -------------------------------------------------------
>>> SF.Net email is sponsored by:
>>> Tame your development challenges with Apache's Geronimo App Server.
>>> Download it for free - -and be entered to win a 42" plasma tv or
your
>>> very
>>> own Sony(tm)PSP. Click here to play:
>>> http://sourceforge.net/geronimo.php
>>> _______________________________________________
>>> Arsperl-users mailing list
>>> Ars...@ar...
>>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>>>
>>>
>>>
>>>
>>> -------------------------------------------------------
>>> SF.Net email is sponsored by:
>>> Tame your development challenges with Apache's Geronimo App Server.
>>> Download it for free - -and be entered to win a 42" plasma tv or
your
>>> very
>>> own Sony(tm)PSP. Click here to play:
>>> http://sourceforge.net/geronimo.php
>>> _______________________________________________
>>> Arsperl-users mailing list
>>> Ars...@ar...
>>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>>
>>
>>
>> -------------------------------------------------------
>> SF.Net email is sponsored by:
>> Tame your development challenges with Apache's Geronimo App Server.
>> Download it for free - -and be entered to win a 42" plasma tv or your
>> very
>> own Sony(tm)PSP. Click here to play:
>> http://sourceforge.net/geronimo.php
>> _______________________________________________
>> Arsperl-users mailing list
>> Ars...@ar...
>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>>
>>
>>
>>
>> -------------------------------------------------------
>> SF.Net email is sponsored by:
>> Tame your development challenges with Apache's Geronimo App Server.
>> Download it for free - -and be entered to win a 42" plasma tv or your
>> very
>> own Sony(tm)PSP. Click here to play:=20
>> http://sourceforge.net/geronimo.php
>> _______________________________________________
>> Arsperl-users mailing list
>> Ars...@ar...
>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.=20
> Download it for free - -and be entered to win a 42" plasma tv or your=20
> very
> own Sony(tm)PSP. Click here to play:=20
> http://sourceforge.net/geronimo.php
> _______________________________________________
> Arsperl-users mailing list
> Ars...@ar...
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads,
discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Arsperl-users mailing list
Ars...@ar...
https://lists.sourceforge.net/lists/listinfo/arsperl-users
|
|
From: John U. <joh...@cr...> - 2007-06-14 11:25:11
|
This crash is caused because the memory management is incorrect. Memory =
is
allocated for the field values by
AMALLOCNN(fieldList.fieldValueList,c,ARFieldValueStruct);
and released by a call to
FreeARFieldValueList(&fieldList, FALSE);
These used to be=20
Newz(777,fieldList.fieldValueList,c,ARFieldValueStruct);
and=20
safefree(fieldList.fieldValueList);
I believe that the safefree() was changed to FreeARFieldValueList() =
because
otherwise any memory allocated to the values was never freed. But the =
change
from Newz to ALLOCNN has caused a memory corruption.
AMALLOCNN uses the Perl memory allocation routines and allocates memory =
from
the Perl memory pool. FreeARFieldValueList uses the OS free() function.
Since the memory was not allocated using the OS malloc() a memory =
corruption
occurs, the free'd blocks are added to the OS memory list and then and =
used
by both Perl and the platform. A crash will probably occur soon =
afterwards.
The fix is to put back the Newz or to change AMALLOCNN to use Newz.
Newz() maps onto the OS malloc() and safefree() maps onto the OS free().
Other functions are affected in a similar way to ars_CreateEntry().
|
|
From: John U. <joh...@cr...> - 2007-06-20 14:25:43
|
Apologies got that wrong. If Perl is compiled to use Perl memory =
allocation
it seems to pick up all memory related functions. So Newz and safefree =
are
also using the Perl memory pool.
I guess that you already knew that!
-----Original Message-----
From: ars...@ar...
[mailto:ars...@ar...] On Behalf Of John Unsworth
Sent: 14 June 2007 12:25
To: ars...@ar...
Subject: Re: [Arsperl-users] ars_CreateEntry crashing perl
This crash is caused because the memory management is incorrect. Memory =
is
allocated for the field values by
AMALLOCNN(fieldList.fieldValueList,c,ARFieldValueStruct);
and released by a call to
FreeARFieldValueList(&fieldList, FALSE);
These used to be=20
Newz(777,fieldList.fieldValueList,c,ARFieldValueStruct);
and=20
safefree(fieldList.fieldValueList);
I believe that the safefree() was changed to FreeARFieldValueList() =
because
otherwise any memory allocated to the values was never freed. But the =
change
from Newz to ALLOCNN has caused a memory corruption.
AMALLOCNN uses the Perl memory allocation routines and allocates memory =
from
the Perl memory pool. FreeARFieldValueList uses the OS free() function.
Since the memory was not allocated using the OS malloc() a memory =
corruption
occurs, the free'd blocks are added to the OS memory list and then and =
used
by both Perl and the platform. A crash will probably occur soon =
afterwards.
The fix is to put back the Newz or to change AMALLOCNN to use Newz.
Newz() maps onto the OS malloc() and safefree() maps onto the OS free().
Other functions are affected in a similar way to ars_CreateEntry().
|
|
From: John U. <joh...@cr...> - 2007-06-24 20:27:16
|
We have fixed this by the following change to mallocnn in support.c.
/* malloc that will never return null */
void *
mallocnn(int s)
{
#ifdef malloc
#undef malloc
#endif
void *m =3D malloc(s ? s : 1);
if (!m)
croak("can't malloc");
memset(m, 0, s ? s : 1);
return m;
}
The Perl malloc macro is undefined and so the platform malloc() is used
instead. All memory allocation for the structures then uses the platform
memory manager and the call to FreeARFieldValueList() works correctly.
-----Original Message-----
From: ars...@ar...
[mailto:ars...@ar...] On Behalf Of John Unsworth
Sent: 20 June 2007 15:25
To: 'ARSperl User Discussion'
Subject: Re: [Arsperl-users] ars_CreateEntry crashing perl
Apologies got that wrong. If Perl is compiled to use Perl memory =
allocation
it seems to pick up all memory related functions. So Newz and safefree =
are
also using the Perl memory pool.
I guess that you already knew that!
-----Original Message-----
From: ars...@ar...
[mailto:ars...@ar...] On Behalf Of John Unsworth
Sent: 14 June 2007 12:25
To: ars...@ar...
Subject: Re: [Arsperl-users] ars_CreateEntry crashing perl
This crash is caused because the memory management is incorrect. Memory =
is
allocated for the field values by
AMALLOCNN(fieldList.fieldValueList,c,ARFieldValueStruct);
and released by a call to
FreeARFieldValueList(&fieldList, FALSE);
These used to be=20
Newz(777,fieldList.fieldValueList,c,ARFieldValueStruct);
and=20
safefree(fieldList.fieldValueList);
I believe that the safefree() was changed to FreeARFieldValueList() =
because
otherwise any memory allocated to the values was never freed. But the =
change
from Newz to ALLOCNN has caused a memory corruption.
AMALLOCNN uses the Perl memory allocation routines and allocates memory =
from
the Perl memory pool. FreeARFieldValueList uses the OS free() function.
Since the memory was not allocated using the OS malloc() a memory =
corruption
occurs, the free'd blocks are added to the OS memory list and then and =
used
by both Perl and the platform. A crash will probably occur soon =
afterwards.
The fix is to put back the Newz or to change AMALLOCNN to use Newz.
Newz() maps onto the OS malloc() and safefree() maps onto the OS free().
Other functions are affected in a similar way to ars_CreateEntry().
-------------------------------------------------------------------------=
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take =
control of
your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Arsperl-users mailing list
Ars...@ar...
https://lists.sourceforge.net/lists/listinfo/arsperl-users
|
|
From: John U. <joh...@cr...> - 2007-07-17 21:44:58
|
Hello,
Can someone explain what happens now? Do we get notified of an official =
fix?
Regards,
John.
-----Original Message-----
From: ars...@ar...
[mailto:ars...@ar...] On Behalf Of John Unsworth
Sent: 24 June 2007 21:27
To: 'ARSperl User Discussion'
Subject: Re: [Arsperl-users] ars_CreateEntry crashing on Windows
We have fixed this by the following change to mallocnn in support.c.
/* malloc that will never return null */
void *
mallocnn(int s)
{
#ifdef malloc
#undef malloc
#endif
void *m =3D malloc(s ? s : 1);
if (!m)
croak("can't malloc");
memset(m, 0, s ? s : 1);
return m;
}
The Perl malloc macro is undefined and so the platform malloc() is used
instead. All memory allocation for the structures then uses the platform
memory manager and the call to FreeARFieldValueList() works correctly.
|
|
From: Jeff M. <jcm...@je...> - 2007-07-20 19:41:42
|
John Unsworth wrote:
> Hello,
>
> Can someone explain what happens now? Do we get notified of an official fix?
>
I added this patch to the CVS tree. Since the discussion centered around
the bug affecting Windows, I modified the suggested fix to be:
> /* malloc that will never return null */
> void *
> mallocnn(int s)
> {
>
> #if defined(malloc) && defined(_WIN32)
> #undef malloc
> #endif
>
> void *m = malloc(s ? s : 1);
>
> if (!m)
> croak("can't malloc");
>
> memset(m, 0, s ? s : 1);
>
> return m;
> }
>
|
|
From: John U. <joh...@cr...> - 2007-07-22 16:48:09
|
Thanks.
However that is still dangerous. Someone could build perl to use perl =
memory
manager even if the platform isn't windows - it's just a perl build =
option.
I would respectfully suggest that the #ifdef malloc by itself is =
sufficient.
'malloc' will only be defined in the case where perl has been built to =
use
its own memory manager. That is the important point, not what the =
platform
actually is, because perl can be built that way on any platform.=20
Regards,
John.
-----Original Message-----
From: ars...@ar...
[mailto:ars...@ar...] On Behalf Of Jeff Murphy
Sent: 20 July 2007 20:42
To: ARSperl User Discussion
Subject: Re: [Arsperl-users] ars_CreateEntry crashing on Windows
John Unsworth wrote:
> Hello,
>=20
> Can someone explain what happens now? Do we get notified of an=20
> official fix?
>=20
I added this patch to the CVS tree. Since the discussion centered around =
the
bug affecting Windows, I modified the suggested fix to be:
> /* malloc that will never return null */
> void *
> mallocnn(int s)
> {
>=20
> #if defined(malloc) && defined(_WIN32)
> #undef malloc
> #endif
>=20
> void *m =3D malloc(s ? s : 1);
>=20
> if (!m)
> croak("can't malloc");
>=20
> memset(m, 0, s ? s : 1);
>=20
> return m;
> }
>=20
-------------------------------------------------------------------------=
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Arsperl-users mailing list
Ars...@ar...
https://lists.sourceforge.net/lists/listinfo/arsperl-users
|
|
From: Jeff M. <jcm...@je...> - 2007-07-23 20:09:50
|
John Unsworth wrote: > Thanks. > > However that is still dangerous. Someone could build perl to use perl memory > manager even if the platform isn't windows Yes, which is something I've always done without ill-effect. The perl dist that comes with the distribution that I run has PERL_MALLOC enabled, and that hasn't been a problem for me. I'd rather avoid mixing the two mallocs unless there really is a problem -- and so far I'm only hearing that there's a demonstrable problem on Windows. jeff |
|
From: Sam V. <sa...@si...> - 2005-09-23 16:16:01
|
I have tried creating more than two tickets, but, interestingly enough,=20=
it always crashes after the second one is created. Also, if I open the=20=
form using the OO layer, I can create exactly one ticket, then when I=20
try to create the second it crashes before it gets created.
Thanks for the help.
-Sam.
On Sep 23, 2005, at 12:31 AM, Stapff, Thilo wrote:
> My current hypothesis about this is that the memory problem occurs=20
> always at the end of the script (if it occurs at all), when some=20
> objects are destroyed, irrespective of the number of tickets created.
>
> Could you test this (perhaps by wrapping the ars_CreateEntry calls in=20=
> a loop)?
>
> Thanks in advance.
> Thilo
>
>
> -----Original Message-----
> From: Sam Vanderhyden [mailto:sa...@si...]
> Sent: Friday, September 23, 2005 2:43 AM
> To: ars...@ar...
> Subject: [Arsperl-users] ars_CreateEntry crashing perl
>
>
> I am using activestate perl 5.8.3 build 809 on Windows 2k, with
> ARSystem 6.03.00. I have installed ARSPerl-1.84 windows binary
> distribution available on the site.
> I am trying to insert multiple entries into a form in using the
> following code:
>
> my $c =3D ars_Login("ohio", "Demo", "", undef, undef, 6777, 0); %f =3D=20=
> ars_GetFieldTable($c, "HPD:HelpDesk"); my $id =3D ars_CreateEntry($c,=20=
> "HPD:HelpDesk",
>
> =A0=A0=A0=A0=A0=A0=A0 $f{'Summary'}, "Perl Test ticket #1",=A0=A0
> =A0=A0=A0=A0=A0=A0=A0 $f{'Description'}, "his is the description",
> =A0=A0=A0=A0=A0=A0=A0 $f{'Category'},"Software",
> =A0=A0=A0=A0=A0=A0=A0 $f{'Type'}, "Other",
> =A0=A0=A0=A0=A0=A0=A0=A0=A0 $f{'Item'}, "Drivers",
> =A0=A0=A0=A0=A0=A0=A0=A0=A0 $f{'Case Type'}, "Incident",
> =A0=A0=A0=A0=A0=A0=A0=A0=A0 $f{'Priority'}, "Low",
> =A0=A0=A0=A0=A0=A0=A0=A0=A0 $f{'Requester Login Name+'}, "Demo",
> =A0=A0=A0=A0=A0=A0=A0=A0=A0 $f{'Requester Name+'}, "Demo",
> =A0=A0=A0=A0=A0=A0=A0=A0=A0 $f{'Source'}, "Phone");
> =A0 print "TICKET ID: $id\r\n";
> =A0 $id =3D ars_CreateEntry($c, "HPD:HelpDesk",
> =A0=A0=A0=A0=A0=A0=A0 $f{'Summary'}, "Perl Test ticket #2",
> =A0=A0=A0=A0=A0=A0=A0 $f{'Description'}, "his is the description",
> =A0=A0=A0=A0=A0=A0=A0=A0=A0 $f{'Category'},"Software",
> =A0=A0=A0=A0=A0=A0=A0=A0=A0 $f{'Type'}, "Other",
> =A0=A0=A0=A0=A0=A0=A0=A0=A0 $f{'Item'}, "Drivers",
> =A0=A0=A0=A0=A0=A0=A0=A0=A0 $f{'Case Type'}, "Incident",
> =A0=A0=A0=A0=A0=A0=A0=A0=A0 $f{'Priority'}, "Low",
> =A0=A0=A0=A0=A0=A0=A0=A0=A0 $f{'Requester Login Name+'}, "Demo",
> =A0=A0=A0=A0=A0=A0=A0=A0=A0 $f{'Requester Name+'}, "Demo",
> =A0=A0=A0=A0=A0=A0=A0=A0=A0 $f{'Source'}, "Phone");
> =A0=A0=A0 print "TICKET ID: $id\r\n";
>
> When I run the above script, I get an application error dialog for
> perl.exe which states "The instruction "0x77fcb861" referenced memory
> at "0x015cd4a0". The memory cannot be "written"." The dialog comes up
> after the two IDs are printed out, and if I use Remedy User to view =
the
> tickets, they are indeed created. If I remove the code to create the
> second ticket, the whole thing works fine.
> Does ARSPerl work under activestate perl? Is there something I can do
> to get around this problem?
> -Sam
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
> Download it for free - -and be entered to win a 42" plasma tv or your=20=
> very own Sony(tm)PSP.=A0 Click here to play:=20
> http://sourceforge.net/geronimo.php
>
> _______________________________________________
> Arsperl-users mailing list
> Ars...@ar...=20
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
|