Hi!

On Tue, 2018-05-22 at 08:50:19 +0200, Sven Joachim wrote:
> Package: libbsd0
> Version: 0.9.0-1
> Severity: serious

> Today I have received a mail from the daily cron job, and to my
> surprise /usr/bin/mail (pointing to bsd-mailx) crashed when it accessed
> it.  Downgrading libbsd0 to version 0.8.7-1.1 fixed that, here is a
> backtrace:

Thanks for the backtrace!

> ,----
> | % gdb =mail
[…]
> | #1  0xf7f9bae9 in istrsenvisxl (mbdstp=mbdstp@entry=0xffff3080, 
> dlen=dlen@entry=0xffff3084, 
> |     mbsrc=mbsrc@entry=0x2000 <error: Cannot access memory at address 
> 0x2000>, flags=96, mbextra=0xf7f9d9be "", 
> |     cerr_ptr=0x0) at vis.c:583
> | No locals.
> | #2  0xf7f9be2c in strnvis (mbdst=<optimized out>, dlen=<optimized out>, 
> |     mbsrc=0x2000 <error: Cannot access memory at address 0x2000>, flags=96) 
> at vis.c:707
> | No locals.
[…]
> `----

> Please clone/reassign to bsd-mailx if necessary, I haven't investigated
> the issue more closely.

And ugh, the NetBSD vis functions had a different signature for strnvis()
and strnunvis() WRT the pre-existing FreeBSD implementations. :( And I
didn't notice when importing them. I'll quickly revert those signatures
for now, and probably provide the alternative NetBSD via different symbol
versions in 0.9.2 or so.

Thanks,
Guillem

Reply via email to