Opened 2 years ago

Closed 2 years ago

#66299 closed defect (fixed)

octave: install infinite loop info:destroot

Reported by: wcvinyard (Bill) Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: ventura Cc: SpikeLightfoot, ryandesign (Ryan Carsten Schmidt)
Port: octave

Description (last modified by wcvinyard (Bill))

macbook pro 16 late 2021 M1 Max
macOS Ventura 13.0

xcodebuild -version
Xcode 14.1
Build version 14B47b

Attempted to install octave. Install hanged at python27 dependency install. Attempted clean then install of python27 only. Same issue, python install hanged.

Tried sudo port clean python27 and attempted install python27 again using:

Used sudo port -v install python27 and also watched tail -f main.log

Following is final line of port -v install python27 where the install stopped:

0:03:52 load avg: 1.11 [303/400] test_socket -- test_smtpnet skipped (resource denied)
Unhandled exception in thread started by <bound method NetworkConnectionAttributesTest.clientRun of <test.test_socket.NetworkConnectionAttributesTest testMethod=testSourceAddress>>
Traceback (most recent call last):
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python27/python27/work/Python-2.7.18/Lib/test/test_socket.py", line 163, in clientRun
    self.clientTearDown()
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python27/python27/work/Python-2.7.18/Lib/test/test_socket.py", line 1404, in clientTearDown
    self.cli.close()
AttributeError: 'NetworkConnectionAttributesTest' object has no attribute 'cli'

After disconnecting from VPN, above issue resolved and python27 installed.

However, octave install appeared to be stuck in endless loop; see ticket modify comment below

Attachments (2)

python27_hang.txt (7.2 KB) - added by wcvinyard (Bill) 2 years ago.
search for "fail" or "error" in _opt...python27...main.log
octave_main_log_20221119.txt (6.0 MB) - added by wcvinyard (Bill) 2 years ago.
octave install main.log file

Change History (17)

Changed 2 years ago by wcvinyard (Bill)

Attachment: python27_hang.txt added

search for "fail" or "error" in _opt...python27...main.log

comment:1 Changed 2 years ago by wcvinyard (Bill)

On a whim, I turned off my VPN and tried again. . .after a reboot. . .and python27 installed successfully.

comment:2 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: ventura arm64 added
Owner: set to jmroot
Status: newassigned
Summary: macOS Ventura M1 Max python27 install hangspython27: install hangs when vpn is enabled

comment:3 Changed 2 years ago by jmroot (Joshua Root)

I'm not in a position to reproduce this issue, and Python 2.7 is of course no longer being updated upstream. If someone comes up with a reasonable patch that prevents this, I can add it.

comment:4 Changed 2 years ago by wcvinyard (Bill)

Description: modified (diff)
Port: octave added; python27 removed
Summary: python27: install hangs when vpn is enabledoctave: install infinite loop info:destroot

Changed summary title from python27 to octave.

The following is the last line of the infinite loop followed by output after I entered Cntrl+C to terminate the command:

sudo port install octave

I was watching the install using tail -f /opt/local/var/.../octave/main.log

and saw following line repeating endlessly:

:info:destroot Use of uninitialized value $_ in pattern match (m//) at ./doc/interpreter/mk-qthelp.pl line 30, <$HTML> line 831.

I entered Ctrl+c to terminate the install command and the following is termination output:

:info:destroot Use of uninitialized value $_ in pattern match (m//) at ./doc/interpreter/mk-qthelp.pl line 30, <$HTML> line 831.
:info:destroot make[2]: *** [doc/interpreter/octave_interpreter.qhc] Interrupt: 2
:info:destroot make[1]: *** [install-recursive] Interrupt: 2
:info:destroot make: *** [install] Interrupt: 2
:info:destroot Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_octave/octave/work/octave-7.3.0" && /usr/bin/make -w install DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_octave/octave/work/destroot 
:info:destroot Killed by signal: 2
:debug:destroot process_cmd aborted: interrupted by signal
:debug:destroot     while executing
:debug:destroot "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:destroot     invoked from within
:debug:destroot "catch {system {*}$notty {*}$callback {*}$nice $fullcmdstring} result"
:debug:destroot     (procedure "command_exec" line 106)
:debug:destroot     invoked from within
:debug:destroot "command_exec -callback portprogress::target_progress_callback destroot"
:debug:destroot     (procedure "portdestroot::destroot_main" line 2)
:debug:destroot     invoked from within
:debug:destroot "$procedure $targetname"
:debug:destroot     invoked from within
:debug:destroot "catch {$procedure $targetname} errstr"
:debug:destroot     (procedure "target_run" line 172)
:debug:destroot     invoked from within
:debug:destroot "{*}$handler $ditem"
:debug:destroot     invoked from within
:debug:destroot "catch {{*}$handler $ditem} result"
:debug:destroot     (procedure "dlist_eval" line 33)
:debug:destroot     invoked from within
:debug:destroot "dlist_eval $dlist "" target_run"
:debug:destroot     (procedure "eval_targets" line 41)
:debug:destroot     invoked from within
:debug:destroot "eval_targets activate"
:debug:destroot     invoked from within
:debug:destroot "$workername eval "eval_targets $target""
:debug:destroot     (procedure "mportexec" line 152)
:debug:destroot     invoked from within
:debug:destroot "mportexec $workername $target"
:debug:destroot     invoked from within
:debug:destroot "catch {mportexec $workername $target} result"
:debug:destroot     ("uplevel" body line 99)
:debug:destroot     invoked from within
:debug:destroot "uplevel 1 $block"
:debug:destroot     (procedure "foreachport" line 24)
:debug:destroot     invoked from within
:debug:destroot "foreachport $portlist {
:debug:destroot         array unset portinfo
:debug:destroot         # If we have a url, use that, since it's most specific
:debug:destroot         # otherwise try to map the..."
:debug:destroot     (procedure "action_target" line 10)
:debug:destroot     invoked from within
:debug:destroot "$action_proc $action $portlist [array get global_options]"
:debug:destroot     (procedure "process_cmd" line 110)
:debug:destroot     invoked from within
:debug:destroot "process_cmd $remaining_args"
:debug:destroot     ("try" body line 3)
:error:destroot Aborted: SIGINT received.
Last edited 2 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

Changed 2 years ago by wcvinyard (Bill)

octave install main.log file

comment:5 Changed 2 years ago by wcvinyard (Bill)

attached octave main.log file starting line 25075 may be where the looping started.

comment:6 Changed 2 years ago by SpikeLightfoot

Cc: SpikeLightfoot added

comment:7 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: arm64 removed
Owner: changed from jmroot to MarcusCalhoun-Lopez

Has duplicate #66300.

comment:8 Changed 2 years ago by kencu (Ken)

I ran into this today too. Crashed my Ventura system overnight.

Installing octave -docs works fine, though:

 % port -v installed octave
The following ports are currently installed:
  octave @7.3.0_0+app+gfortran+graphicsmagick+openblas+qt5+sound+sundials (active) requested_variants='-docs' platform='darwin 22' archs='x86_64' date='2022-12-06T11:05:47-0800'

comment:9 Changed 2 years ago by kencu (Ken)

as per the other ticket, the issue is discussed and worked on here <https://savannah.gnu.org/bugs/?62648>.

comment:10 in reply to:  9 Changed 2 years ago by SpikeLightfoot

I'd like to know how to implement that solution, but I need some hand-holding.

Replying to kencu:

as per the other ticket, the issue is discussed and worked on here <https://savannah.gnu.org/bugs/?62648>.

comment:11 Changed 2 years ago by gjolleyrogers (Garry Jolley-Rogers)

+1 also need some hand holding

comment:12 Changed 2 years ago by wcvinyard (Bill)

FWIW -- while we're waiting for all the packages to mature in the new apple chip environment. . .

Like Ken,

sudo port install octave -docs

installs without error.

The gui "Documentation" tab does indeed have documentation.

You can also use the online documentation for 7.3.0 at:

https://docs.octave.org/v7.3.0/index.html

Last edited 2 years ago by wcvinyard (Bill) (previous) (diff)

comment:13 Changed 2 years ago by gjolleyrogers (Garry Jolley-Rogers)

Thanks. I have Octave installed on my M1 studio. This problem came when I updated my NON-M1 MacBook Pro to Ventura. But, I take your point

comment:14 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign added

comment:15 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

In 1323b4b4b50db914d99dbc35eff7318e55544f56/macports-ports (master):

octave: Fix build with texinfo >= 7

Closes: #66299

Note: See TracTickets for help on using tickets.