• Strange behaviour with PERL.

    From Fabio Bizzi@2:335/364.1 to Michael Dukelsky on Wed Apr 28 15:32:26 2021
    Hello Michael, Stas!

    Well, I've modified the filter.pl like suggested by Stas:

    8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--

    #!/usr/bin/perl
    #
    use lib '/home/husky/bin';
    #
    use warnings;
    #
    use pingpong;
    #
    require "/home/husky/bin/netcheck.pl";
    require "/home/husky/bin/netpoint.pl";
    #
    sub filter{
    w_log( "CheckPoint 1" );
    w_log( "$config{name}" );
    w_log( "CheckPoint 2" );
    w_log( "$config{sysop}" );
    w_log( "CheckPoint 3" );
    w_log( "$config{origin}" );
    w_log( "CheckPoint 4" );
    w_log( "$hpt_version" );
    w_log( "CheckPoint 5" );
    w_log( "$links{'2:221/6'}{'name'}" );
    w_log( "CheckPoint 6" );
    w_log( "$links{'2:221/6'}{'password'}" );
    w_log( "CheckPoint 7" );
    if ( !defined( $area ) ) {
    ping_pong( $fromname, $fromaddr, $toname, $toaddr, $subject, $text, $PVT+$K_S, 100 );
    }
    #
    &netcheck;
    &netpoint;
    }
    #
    sub route{
    return route_to();
    }

    8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--

    I've also cloned by the GIT Repository the husky environment and I've compiled and installed the required versions and libraries, now is all up to date.

    But the behaviour is the same :(

    8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--

    ---------- Wed 28 Apr 2021, hpt/lnx 1.9.0-cur 2021-04-26
    1 09:39:00 Start
    1 09:39:00 Start tossing...
    7 09:39:00 pkt: /home/husky/in.sec/83f727bd.tos [2:335/364.1]
    6 09:39:00 CheckPoint 1
    6 09:39:00 ]\/[imac Rebirth
    6 09:39:00 CheckPoint 2
    6 09:39:00 e riservate
    6 09:39:00 CheckPoint 3
    6 09:39:00 ]\/[imac Rebirth
    6 09:39:00 CheckPoint 4
    6 09:39:00 hpt/lnx 1.9.0-cur 2021-04-26
    6 09:39:00 CheckPoint 5
    6 09:39:00 Tommy Koivula
    6 09:39:00 CheckPoint 6
    6 09:39:00 6 09:39:00 CheckPoint 7
    6 09:39:00 Ping message detected.
    6 09:39:00 Perl(): Make PONG to PING reqiest: area=netmail; toname=PING; toaddr=2:335/364 fromname=Fabio Bizzi; fromaddr=2:335/364.1
    4 09:39:01 Statistics:
    4 09:39:01 arc: 0 netMail: 1 echoMail: 0 CC: 1 4 09:39:01 pkt's: 1 dupe: 0 passthru: 0 exported: 0 4 09:39:01 msgs: 1 bad: 0 saved: 0 empty: 0 4 09:39:01 Input: 0.75 mails/sec Output: 0.00 mails/sec
    4 09:39:01 0.26 kb/sec
    4 09:39:01 0.35 kb total, processed in 1.335 seconds
    4 09:39:01 Areas summary:
    4 09:39:01 netmail area NetMailArea - 1 msgs
    4 09:39:01 netmail area NetArchive - 1 msgs
    1 09:39:01 End tossing
    C 09:39:01 Start areafix...
    C 09:39:01 Scanning NetMailArea
    C 09:39:01 End areafix...
    1 09:39:01 End

    8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--

    As you can see the $links{'2:221/6'}{'password'} and $config{sysop} report garbage instead the proper content (checkpoint 2 and 6).

    And the %Links in the PING answer is obviusly empty (you can check sending a ping to 2:335/364)

    Maybe some strange occours in the HPT's perl API with 64bit environment?

    Where I can dig more into it?

    Manu thanks for your help. :)

    Ciao!
    Fabio

    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: ]\/[imac Rebirth Boss Point (2:335/364.1)
  • From Michael Dukelsky@2:5020/1042 to Fabio Bizzi on Wed Apr 28 20:59:22 2021
    Hello Fabio,

    Wednesday April 28 2021, Fabio Bizzi wrote to Michael Dukelsky:

    As you can see the $links{'2:221/6'}{'password'} and $config{sysop}
    report garbage instead the proper content (checkpoint 2 and 6).

    And the %Links in the PING answer is obviusly empty (you can check
    sending a ping to 2:335/364)

    Maybe some strange occours in the HPT's perl API with 64bit
    environment?

    Where I can dig more into it?

    If you want to dig into it, set DEBUG=1 in your huskymac.cfg, rebuild everything and run it in the debugger.

    Michael

    ... node (at) f1042 (dot) ru
    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: Moscow, Russia (2:5020/1042)
  • From Fabio Bizzi@2:335/364.1 to Michael Dukelsky on Thu Apr 29 07:56:46 2021
    Hello Michael!

    28 Apr 21 20:59, you wrote to me:

    Maybe some strange occours in the HPT's perl API with 64bit
    environment?

    Where I can dig more into it?

    If you want to dig into it, set DEBUG=1 in your huskymac.cfg, rebuild everything and run it in the debugger.

    Thank you Michael, if you're refeering to gdb, well I'm a lot rusted with it and with developing in general too... :)

    I'll try to understand but I suppose that your help in this case is needed.

    Do you have any clue or can you imagine what it can be?

    Ciao!
    Fabio

    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: ]\/[imac Rebirth Boss Point (2:335/364.1)
  • From Michael Dukelsky@2:5020/1042 to Fabio Bizzi on Thu Apr 29 10:17:12 2021
    Hello Fabio,

    Thursday April 29 2021, Fabio Bizzi wrote to Michael Dukelsky:

    Maybe some strange occours in the HPT's perl API with 64bit
    environment?

    Where I can dig more into it?

    If you want to dig into it, set DEBUG=1 in your huskymac.cfg,
    rebuild everything and run it in the debugger.

    Thank you Michael, if you're refeering to gdb, well I'm a lot rusted
    with it and with developing in general too... :)

    I'll try to understand but I suppose that your help in this case is needed.

    Do you have any clue or can you imagine what it can be?

    No, I have not. As a first step it is better to try to minimize the configuration causing the error in order to free it from the factors that do not influence the error but can obscure the problem. This step may help you to get some understanding where the problem can be.

    Michael

    ... node (at) f1042 (dot) ru
    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: Moscow, Russia (2:5020/1042)
  • From Brother Rabbit@2:460/58.10 to Fabio Bizzi on Thu Apr 29 10:24:30 2021
    Hi, Fabio!

    28 апр 21 15:32, Fabio Bizzi -> Michael Dukelsky:

    sub filter{

    Try to remove the quotes ...
    w_log( "CheckPoint 1" );
    w_log( $config{name} );
    w_log( "CheckPoint 2" );
    w_log( $config{sysop} );
    w_log( "CheckPoint 3" );
    w_log( $config{origin} );
    w_log( "CheckPoint 4" );
    w_log( $hpt_version );
    w_log( "CheckPoint 5" );
    w_log( $links{'2:221/6'}{name} );
    w_log( "CheckPoint 6" );
    w_log( $links{'2:221/6'}{password} );
    w_log( "CheckPoint 7" );

    I've also cloned by the GIT Repository the husky environment and I've compiled and installed the required versions and libraries, now is all
    up to date.

    I have an feeling that the ears of the old configuration are sticking out somewhere.

    But the behaviour is the same :(

    8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8< --

    ---------- Wed 28 Apr 2021, hpt/lnx 1.9.0-cur 2021-04-26
    1 09:39:00 Start
    1 09:39:00 Start tossing...
    7 09:39:00 pkt: /home/husky/in.sec/83f727bd.tos [2:335/364.1]
    6 09:39:00 CheckPoint 1
    6 09:39:00 ]\/[imac Rebirth
    6 09:39:00 CheckPoint 2
    6 09:39:00 e riservate

    And what do you have in the configuration file written about this?

    6 09:39:00 CheckPoint 3
    6 09:39:00 ]\/[imac Rebirth
    6 09:39:00 CheckPoint 4
    6 09:39:00 hpt/lnx 1.9.0-cur 2021-04-26
    6 09:39:00 CheckPoint 5
    6 09:39:00 Tommy Koivula
    6 09:39:00 CheckPoint 6
    6 09:39:00 6 09:39:00 CheckPoint 7

    w_log behaves like this when given an undef instead of a line to write to the log.

    6 09:39:00 Ping message detected.

    Ok.

    6 09:39:00 Perl(): Make PONG to PING reqiest: area=netmail;
    toname=PING;
    toaddr=2:335/364 fromname=Fabio Bizzi; fromaddr=2:335/364.1

    My Ping does not write this to the log. But in Pong.pl there is such a line. Are you sure that you have it not connected anywhere?

    As you can see the $links{'2:221/6'}{'password'} and $config{sysop}
    report garbage instead the proper content (checkpoint 2 and 6).

    It's strange.

    And the %Links in the PING answer is obviusly empty (you can check
    sending a ping to 2:335/364)

    Maybe some strange occours in the HPT's perl API with 64bit environment?

    No. My node runs under x64 linux. All is good.

    Where I can dig more into it?

    Manu thanks for your help. :)

    It's too early to thank. ;)

    Have nice nights.
    Brother Rabbit.

    --- Если ложка не стоит в сметане, очевидно, виновата не ложка!
    * Origin: Lame Users Breeding. Simferopol, Crimea. (2:460/58.10)
  • From Brother Rabbit@2:460/58.10 to Michael Dukelsky on Thu Apr 29 10:43:42 2021
    Hi, Michael!

    28 апр 21 20:59, Michael Dukelsky -> Fabio Bizzi:

    Where I can dig more into it?

    If you want to dig into it, set DEBUG=1 in your huskymac.cfg, rebuild everything and run it in the debugger.

    I think the devil is in the configs. ;)

    Have nice nights.
    Brother Rabbit.

    --- не откладывай пьянку на завтра, а секс на старость.
    * Origin: Lame Users Breeding. Simferopol, Crimea. (2:460/58.10)
  • From Brother Rabbit@2:460/58.10 to Michael Dukelsky on Thu Apr 29 11:06:08 2021
    Hi, Michael!

    29 апр 21 10:17, Michael Dukelsky -> Fabio Bizzi:

    No, I have not. As a first step it is better to try to minimize the configuration causing the error in order to free it from the factors
    that do not influence the error but can obscure the problem. This step
    may help you to get some understanding where the problem can be.

    It seems to me that in this case it is easier to start with "useradd -m fido" and set up everything from scratch.

    Have nice nights.
    Brother Rabbit.

    --- не откладывай пьянку на завтра, а секс на старость.
    * Origin: Lame Users Breeding. Simferopol, Crimea. (2:460/58.10)
  • From Fabio Bizzi@2:335/364.1 to Brother Rabbit on Thu Apr 29 11:16:44 2021
    Hello Brother!

    29 Apr 21 10:24, you wrote to me:

    Try to remove the quotes ...
    [...]
    Done, no changes. :(

    6 09:39:00 CheckPoint 2
    6 09:39:00 e riservate

    And what do you have in the configuration file written about this?

    Yes, its in one of the config file included in the main config file:

    # Echoaree Internazionali
    include /home/husky/etc/fido/config.echo.int

    The first row in config.echo.int is:
    SysOp e riservate

    OK!!!! First issue found!!!! GREAT Stas!!!
    Ther's a missing "#" in front of SysOP.
    Now corrected.

    6 11:22:48 CheckPoint 2
    6 11:22:48 Fabio Bizzi

    [...]
    6 09:39:00 CheckPoint 6
    6 09:39:00 6 09:39:00 CheckPoint 7

    w_log behaves like this when given an undef instead of a line to write
    to the log.

    Ok, I have to check deeply all the config files.

    [...]

    6 09:39:00 Ping message detected.

    Ok.

    6 09:39:00 Perl(): Make PONG to PING reqiest: area=netmail;
    toname=PING;
    toaddr=2:335/364 fromname=Fabio Bizzi; fromaddr=2:335/364.1

    My Ping does not write this to the log. But in Pong.pl there is such a line. Are you sure that you have it not connected anywhere?

    I've added the line that writes it from Pong.pl to your code, now I'll comment it out.

    As you can see the $links{'2:221/6'}{'password'} and
    $config{sysop} report garbage instead the proper content
    (checkpoint 2 and 6).

    It's strange.

    Yes. :)

    No. My node runs under x64 linux. All is good.

    Ok, so I think that's could be monsters in the configuration, I'll try to check them more deeply.

    It's too early to thank. ;)

    No, It isn't. ;) You're spendind time on my issue, that's enough for a thank!

    I'll try to check again the configuration files.

    Ciao!
    Fabio

    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: ]\/[imac Rebirth Boss Point (2:335/364.1)
  • From Fabio Bizzi@2:335/364.1 to Brother Rabbit on Thu Apr 29 11:29:36 2021
    Hello Brother!

    29 Apr 21 10:43, you wrote to Michael Dukelsky:

    If you want to dig into it, set DEBUG=1 in your huskymac.cfg,
    rebuild everything and run it in the debugger.

    I think the devil is in the configs. ;)

    I think you're right. :)

    Ciao!
    Fabio

    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: ]\/[imac Rebirth Boss Point (2:335/364.1)
  • From Fabio Bizzi@2:335/364.1 to Brother Rabbit on Thu Apr 29 11:58:32 2021
    Hello Brother!

    29 Apr 21 10:43, you wrote to Michael Dukelsky:

    I think the devil is in the configs. ;)

    The devil in in my old, tired, stupid BRAIN! :(

    The "password" field of the Links isn't defined, because I only have areafix and filefix passwords defined for each link, but not the generic passord because I don't have any link with packet password, so I didn't configured the field "password".

    That's why the w_log reported garbage when asked to print the password field.

    So it looks like that I can't use the Routed option. :(

    I beg your pardon Stas and Michael, my mind is vanishing! :)

    Really thank you for your time Stas and Michael!

    Ciao!
    Fabio

    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: ]\/[imac Rebirth Boss Point (2:335/364.1)
  • From Oli@2:280/464.47 to Fabio Bizzi on Fri Apr 30 06:16:26 2021
    Fabio wrote (2021-04-29):

    The "password" field of the Links isn't defined, because I only have areafix and filefix passwords defined for each link, but not the generic passord because I don't have any link with packet password, so I didn't configured the field "password".

    That's why the w_log reported garbage when asked to print the password field.

    But an empty password shouldn't return garbage, should it?

    ---
    * Origin: . (2:280/464.47)
  • From Fabio Bizzi@2:335/364.1 to Oli on Fri Apr 30 08:21:54 2021
    Hello Oli!

    30 Apr 21 06:16, you wrote to me:

    But an empty password shouldn't return garbage, should it?

    If the field isn't initialized, it could. :)
    I don't know how works the Husky API for PERL, but if the variables are not initalized by default, the reference could point to a random memory zone.

    But I think that Michael could answer to this question much better than me. :)

    Ciao!
    Fabio

    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: ]\/[imac Rebirth Boss Point (2:335/364.1)
  • From Oli@2:280/464.47 to Fabio Bizzi on Fri Apr 30 07:52:38 2021
    Fabio wrote (2021-04-30):

    30 Apr 21 06:16, you wrote to me:

    But an empty password shouldn't return garbage, should it?

    If the field isn't initialized, it could. :)
    I don't know how works the Husky API for PERL, but if the variables are not initalized by default, the reference could point to a random memory zone.

    How would one distinguish between random memory and a configured password?

    ---
    * Origin: . (2:280/464.47)
  • From Michael Dukelsky@2:5020/1042 to Oli on Fri Apr 30 12:44:12 2021
    Hello Oli,

    Friday April 30 2021, Oli wrote to Fabio Bizzi:

    The "password" field of the Links isn't defined, because I only
    have areafix and filefix passwords defined for each link, but not
    the generic passord because I don't have any link with packet
    password, so I didn't configured the field "password".

    That's why the w_log reported garbage when asked to print the
    password field.

    But an empty password shouldn't return garbage, should it?

    Of course not, it is a bug.

    Michael

    ... node (at) f1042 (dot) ru
    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: Moscow, Russia (2:5020/1042)
  • From Fabio Bizzi@2:335/364.1 to Oli on Fri Apr 30 15:20:12 2021
    Hello Oli!

    30 Apr 21 07:52, you wrote to me:

    How would one distinguish between random memory and a configured
    password?

    Oh, It's simple, the first is a DaftPunk song! :P

    Ciao!
    Fabio

    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: ]\/[imac Rebirth Boss Point (2:335/364.1)
  • From Michael Dukelsky@2:5020/1042 to Fabio Bizzi on Fri Apr 30 17:13:40 2021
    Hello Fabio,

    Wednesday April 28 2021, Fabio Bizzi wrote to Michael Dukelsky:

    As you can see the $links{'2:221/6'}{'password'} and $config{sysop}
    report garbage instead the proper content (checkpoint 2 and 6).

    Could you please send me a config with which you can reproduce the error?

    Michael

    ... node (at) f1042 (dot) ru
    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: Moscow, Russia (2:5020/1042)
  • From Fabio Bizzi@2:335/364.1 to Michael Dukelsky on Fri Apr 30 16:22:26 2021
    Hello Michael!

    30 Apr 21 17:13, you wrote to me:

    As you can see the $links{'2:221/6'}{'password'} and
    $config{sysop} report garbage instead the proper content
    (checkpoint 2 and 6).

    Could you please send me a config with which you can reproduce the
    error?

    The $config{sysop} reported the correct value, there was this comment in a config file:

    "#SysOp e riservate"

    that was missin the front "#", so the sysop variable was correctly set to:

    "e riservate". :)

    For $links{'2:221/6'}{'password'}, it's simple, I don't have a "password" field in any of my Links.
    If you like I can and send you my config.links file, if it could be useful for your investigation.

    Many Thanks! :)

    Ciao!
    Fabio

    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: ]\/[imac Rebirth Boss Point (2:335/364.1)
  • From Michael Dukelsky@2:5020/1042 to Fabio Bizzi on Fri Apr 30 17:39:26 2021
    Hello Fabio,

    Friday April 30 2021, Fabio Bizzi wrote to Michael Dukelsky:

    For $links{'2:221/6'}{'password'}, it's simple, I don't have a
    "password" field in any of my Links.

    Yes, I tried such a config but did not get any garbage instead of password. I got just an empty string.

    If you like I can and send you my
    config.links file, if it could be useful for your investigation.

    In that case I'll have to invent the rest of the config and I'll not see the error again. So please send me your full config. Or you may find some minimal config which still produces the error and send me that minimal config.

    Michael

    ... node (at) f1042 (dot) ru
    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: Moscow, Russia (2:5020/1042)
  • From Brother Rabbit@2:460/58.10 to Fabio Bizzi on Fri Apr 30 12:44:42 2021
    Hi, Fabio!

    29 апр 21 11:58, Fabio Bizzi -> Brother Rabbit:

    I think the devil is in the configs. ;)

    The devil in in my old, tired, stupid BRAIN! :(

    The "password" field of the Links isn't defined, because I only have areafix and filefix passwords defined for each link, but not the generic passord because I don't have any link with packet password, so I didn't configured the field "password".

    You may well write a password, but at the same time enter an empty pktpvd next.

    Link SysOp
    AKA 1:2/3
    password 12345678
    pktpwd
    level 100

    That's why the w_log reported garbage when asked to print the password field.

    So it looks like that I can't use the Routed option. :(

    I beg your pardon Stas and Michael, my mind is vanishing! :)

    In the next version, I will take into account the possibility of the absence of a password in the config.

    Really thank you for your time Stas and Michael!

    Have nice nights.
    Brother Rabbit.

    --- Свободная баба должна показывать сиськи. Замужняя не должна,но тоже вправе
    * Origin: Lame Users Breeding. Simferopol, Crimea. (2:460/58.10)
  • From Brother Rabbit@2:460/58.10 to Oli on Fri Apr 30 12:51:46 2021
    Hi, Oli!

    30 апр 21 06:16, Oli -> Fabio Bizzi:

    But an empty password shouldn't return garbage, should it?

    And it does not return the garbage. It returns undef.

    Have nice nights.
    Brother Rabbit.

    --- Мат, конечно, не украшает мою речь, но делает мои просьбы более понятными.
    * Origin: Lame Users Breeding. Simferopol, Crimea. (2:460/58.10)
  • From Michael Dukelsky@2:5020/1042 to Fabio Bizzi on Sun May 2 21:25:46 2021
    Hello Fabio,

    Friday April 30 2021, Fabio Bizzi wrote to Michael Dukelsky:

    For $links{'2:221/6'}{'password'}, it's simple, I don't have a
    "password" field in any of my Links. If you like I can and send you my config.links file, if it could be useful for your investigation.

    Thank you for the config you sent me. I fixed the bug. Please check it.

    Michael

    ... node (at) f1042 (dot) ru
    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: Moscow, Russia (2:5020/1042)
  • From Fabio Bizzi@2:335/364.1 to Michael Dukelsky on Mon May 3 07:54:54 2021
    Hello Michael!

    02 May 21 21:25, you wrote to me:

    Thank you for the config you sent me. I fixed the bug. Please check
    it.

    Many thanks Michael! :)

    Ciao!
    Fabio

    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: ]\/[imac Rebirth Boss Point (2:335/364.1)