Opened 5 months ago

Last modified 4 months ago

#68843 assigned defect

p5-mac-pasteboard @0.103.0 (perl): trace trap death

Reported by: mikecappella (MrC) Owned by: mikecappella (MrC)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: p5-mac-pasteboard

Description

Mac::Pasteboard's paste() is dying due to a trace trap. The issue is recent, and may be a Sonoma issue. It occurs on both Intel and Apple Silicon.

I don't know if the issue started after I updated my Intel Mac to Sonoma, or after any recent Sonoma update(s).

use Mac::Pasteboard;

my $clip = Mac::Pasteboard->new;
$clip->paste('public.utf8-plain-text');

---

$ perl test.pl
zsh: trace trap  /opt/local/bin/perl test.pl
main::(test.pl:3):	my $clip = Mac::Pasteboard->new;
  DB<26> n
main::(test.pl:4):	$clip->paste('public.utf8-plain-text');
  DB<26> s
Mac::Pasteboard::paste(/opt/local/lib/perl5/vendor_perl/5.34/darwin-thread-multi-2level/Mac/Pasteboard.pm:261):
261:	    my ($self, $flavor) = @_;
262:	    defined $flavor
263:		and $flavor ne ''
  DB<26> s
Mac::Pasteboard::paste(/opt/local/lib/perl5/vendor_perl/5.34/darwin-thread-multi-2level/Mac/Pasteboard.pm:264):
264:		or $flavor = $self->{default_flavor};
265:	    my ($status, $data, $flags) = xs_pbl_paste (
  DB<26> l 264,270
264==>		or $flavor = $self->{default_flavor};
265 	    my ($status, $data, $flags) = xs_pbl_paste (
266:		$self->{pbref}, $self->{id}, $flavor );
267:	    $self->_check ($status);
268:	    $data = $self->_xlate( decode => $data, $flavor );
269:	    return wantarray ? ($data, $flags) : $data;
270 	}
  DB<27> s
Mac::Pasteboard::paste(/opt/local/lib/perl5/vendor_perl/5.34/darwin-thread-multi-2level/Mac/Pasteboard.pm:266):
266:		$self->{pbref}, $self->{id}, $flavor );
  DB<27> s
zsh: trace trap  /opt/local/bin/perl -d test.pl

Attachments (1)

perl5.34-2023-12-05-123631.ips (16.3 KB) - added by mikecappella (MrC) 5 months ago.
Trace trap crash

Download all attachments as: .zip

Change History (7)

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

Unfortunately this port has no maintainer currently. You could try reporting the issue upstream: https://rt.cpan.org/Public/Dist/Display.html?Name=Mac-Pasteboard

If there was a crash log generated (look in /Library/Logs/DiagnosticReports or ~/Library/Logs/DiagnosticReports), that would be helpful to include.

Changed 5 months ago by mikecappella (MrC)

Trace trap crash

comment:2 Changed 5 months ago by mikecappella (MrC)

Thanks. I saw there was no maintainer, and had already reported the issue upstream.

Crash log attached.

comment:3 Changed 5 months ago by mikecappella (MrC)

Upstream has made a fix for the issue, and I've verified the patch. It will be available soon.

The crash in the XS binary was due to changes in Xcode 15.

comment:4 Changed 5 months ago by mikecappella (MrC)

Version 0.104 is now available on CPAN and it includes the fix.

Thanks: T. R. Wyant

comment:5 Changed 4 months ago by mikecappella (MrC)

Owner: set to mikecappella
Status: newassigned

comment:6 Changed 4 months ago by mikecappella (MrC)

This can be closed, is it is resolved. Apparently I can't do it.

Note: See TracTickets for help on using tickets.