On NetBSD-current/amd64, I'm trying to debug a program which does

                if (ioctl(fdcrypt, CIOCCRYPT, &crypt_cb) == -1)
                        err(1, "CIOCCRYPT");

and returns

openzip: CIOCCRYPT: Cannot allocate memory

So, I tried

gdb rump_server
run -s -v -lrumpnet -lrumpvfs -lrumpkern_crypto -lrumpkern_z -lrumpdev 
-lrumpdev_opencrypto unix:///tmp/sock
...
(gdb) break cryptof_ioctl
Breakpoint 1 at 0x7f7ff500de4f: file 
/usr/src/sys/rump/dev/lib/libopencrypto/../../../../opencrypto/cryptodev.c, 
line 223.
(gdb) break ocryptof_ioctl
Breakpoint 2 at 0x7f7ff500d87c: file 
/usr/src/sys/rump/dev/lib/libopencrypto/../../../../opencrypto/ocryptodev.c, 
line 112.

and in another xterm

export RUMP_SERVER=unix:///tmp/sock
export LD_PRELOAD=/usr/lib/librumphijack.so
export RUMPHIJACK_RETRYCONNECT=inftime

$ ls /rump/dev
crypto null   zero

so things look promising.

When I run the program however, the breakpoints aren't hit, and I just
get the ENOMEM.

What am I missing?

Cheers,

Patrick

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
rumpkernel-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rumpkernel-users

Reply via email to