#66098 closed defect (fixed)

pyxplot segfaults immediately in Ventura

Reported by: tstoltzfus Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: ventura Cc: Dave-Allured (Dave Allured)
Port: pyxplot

Description

I re-installed pyxplot (and all my other macports software) after upgrading my M1 Macbook Pro to Ventura. The build completed, but when I attempt to run pyxplot it fails immediately with "zsh: segmentation fault pyxplot".

The Macports pyxplot install ran fine under Monterey.

Change History (9)

comment:1 Changed 18 months ago by jmroot (Joshua Root)

Keywords: ventura added; Ventura segmentation fault removed
Owner: set to Schamschula
Status: newassigned

comment:2 Changed 18 months ago by Schamschula (Marius Schamschula)

I have been able to verify this issue.

Note: Pyxplot has been unsupported upstream for more than 10 years. It was bound to break at some point.

comment:3 Changed 18 months ago by Schamschula (Marius Schamschula)

Running pyxxplot under lldb gives the following

Process 85037 launched: '/opt/local/bin/pyxplot' (x86_64)
Process 85037 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x00007ff81643174f libsystem_platform.dylib`_platform_strcpy + 15
libsystem_platform.dylib`:
->  0x7ff81643174f <+15>: pcmpeqb (%rsi), %xmm0
    0x7ff816431753 <+19>: pmovmskb %xmm0, %eax
    0x7ff816431757 <+23>: andq   $0xf, %rcx
    0x7ff81643175b <+27>: orq    $-0x1, %rdx
Target 0: (pyxplot) stopped.

comment:4 Changed 18 months ago by Dave-Allured (Dave Allured)

Pyxplot has a "new" github page from the original developer. There are a few minor code updates from 2021 January. There are no releases or tags, "yet".

https://github.com/dcf21/pyxplot9

comment:5 Changed 18 months ago by Schamschula (Marius Schamschula)

Unfortunately, this version also segfaults on Ventura.

comment:6 Changed 18 months ago by Dave-Allured (Dave Allured)

Yes. I think the 2021 changes were mainly focused on build system, not core code. Well, I filed a github issue referring to this seg fault. Let's see if the developer responds.

comment:7 Changed 18 months ago by Dave-Allured (Dave Allured)

Cc: Dave-Allured added

comment:8 Changed 16 months ago by kencu (Ken)

comment:9 Changed 16 months ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed

In 9ae306bba3fb1caab30a9cd407f94195deca2d24/macports-ports (master):

pyxplot: avoid strcpy crash on Ventura

the function ppl_unixGetHomeDir is not returning
a full path to the users home dir, it is instead
returning null it appears, on Ventura at least

the function should be fixed, but for now checking
the return value and substituting something reasonable
seems to avoid the crash

closes: #66098

Note: See TracTickets for help on using tickets.