On Sun, Jan 31, 2016 at 11:23:40PM +0300, Andre S wrote: > Core dumped when used switch "set Password" (-p) > > 7z a -p test.7z test.txt > > Abort trap (core dumped) > is a missing pledge "tty" for readpassphrase(3), but it's probably easier for you to figure out where it should go and where it should be dropped.
here's the backtrace (gdb) bt #0 0x000017c8b172936a in ioctl () at <stdin>:2 #1 0x000017c8b16de96e in *_libc_readpassphrase (prompt=0x17c5e8a752ec "", buf=0x17c8b1b75da0 "", bufsiz=Variable "bufsiz" is not available. ) at /usr/src/lib/libc/gen/readpassphrase.c:80 #2 0x000017c5e89604a5 in GetPassword () from /usr/ports/pobj/p7zip-15.09/p7zip_15.09/bin/7z #3 0x000017c5e895e903 in CUpdateCallbackConsole::CryptoGetTextPassword2 () from /usr/ports/pobj/p7zip-15.09/p7zip_15.09/bin/7z #4 0x000017c5e894c3e2 in CArchiveUpdateCallback::CryptoGetTextPassword2 () from /usr/ports/pobj/p7zip-15.09/p7zip_15.09/bin/7z #5 0x000017c8946ef96a in NArchive::N7z::CHandler::UpdateItems () from bin/7z.so #6 0x000017c5e8947d4f in Compress () from /usr/ports/pobj/p7zip-15.09/p7zip_15.09/bin/7z #7 0x000017c5e8949e31 in UpdateArchive () from /usr/ports/pobj/p7zip-15.09/p7zip_15.09/bin/7z #8 0x000017c5e895ae69 in Main2 () from /usr/ports/pobj/p7zip-15.09/p7zip_15.09/bin/7z #9 0x000017c5e895d5f2 in main () from /usr/ports/pobj/p7zip-15.09/p7zip_15.09/bin/7z Current language: auto; currently asm (gdb)