Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of uninitialized value in subroutine entry #33

Open
chandog opened this issue Apr 14, 2020 · 7 comments
Open

Use of uninitialized value in subroutine entry #33

chandog opened this issue Apr 14, 2020 · 7 comments
Labels
bug Something isn't working question Further information is requested

Comments

@chandog
Copy link

chandog commented Apr 14, 2020

Am getting below message in taranis. Kindly assist/advise

Use of uninitialized value in subroutine entry at /home/taranis/taranis-3.6.2/perl5/Taranis/DB.pm line 207

Regards

@markov2
Copy link
Contributor

markov2 commented Apr 14, 2020

  • Can you reproduce the error message? Does it show often or only once? Did any functionality break?
  • Did you experience this message is a fresh installation, or in a set-up which already runs for some time?
  • What is your PostgreSQL version? (It uses a plugin which has changed over time)

@markov2 markov2 added bug Something isn't working question Further information is requested labels Apr 14, 2020
@chandog
Copy link
Author

chandog commented Apr 14, 2020

We get the error often
Please note we have been running the system with no error until last Friday.
PostgreSQL version is 9.5.19

@markov2
Copy link
Contributor

markov2 commented Apr 14, 2020

Can you try to add this to /home/taranis/taranis-3.6.2/perl5/Taranis/DB.pm line 207

	my $lobj_fd  = $dbh->func($oid, $dbh->{pg_INV_WRITE}, 'lo_open' );
use Carp 'cluck';
defined $lobj_fd && defined $_[1] or cluck "addBlob(): $lobj_fd#";
	my $size     = $dbh->func($lobj_fd, $_[1], length $_[1], 'lo_write');

This will show a stack-trace. Probably addBlob is called with an "undef", but there are few of places where it is used: let's try to find where the empty blob is not caught.

@ScorpionKing34
Copy link

ScorpionKing34 commented Apr 17, 2020

We have same problem with our production server, I send my problem to taranis support mail.
Use of uninitialized value in subroutine entry at /opt/taranis/taranis-3.6.2/perl5/Taranis/DB.pm line 207
my $size = $dbh->func($lobj_fd, $[1], length $[1], 'lo_write');

@markov2
Copy link
Contributor

markov2 commented Apr 17, 2020

To avoid slow response you can better directly send it to me at mark@overmeer.net

@sosgasm
Copy link

sosgasm commented Jul 6, 2022

Was this problem ever solved? Same problem here under version 3.7.4.

It used to work.
Error: Use of uninitialized value in subroutine entry at /home/taranis/taranis-3.7.4/perl5/Taranis/DB.pm line 207.

@markov2
Copy link
Contributor

markov2 commented Jul 7, 2022

Was this problem ever solved? Same problem here under version 3.7.4.

The issue did not get resolved, because I did not get the additional information I needed to make a good fix. See my response on April 14 2020. When people do not help me study the issue on their platform, I cannot fix it until it shows up on my own systems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants