What steps will reproduce the problem?
try running inm on a kernel, on openbsd/386 or linux/amd64 (with 32 bit). inm
crashes in a call to Bprint. (see attached file inm-crash.txt)
/include/bio.h has no varargck pragma for Bprint, so no format mismatch
warnings are generated. if this pragma is added, and inferno is built on plan
9 (where the compilers know #pragma varargck), warnings for other files (than
inm's nm.c) are generated too (see bprint-format-mismatch.txt). these need
investation/fixing too. i could look into those if that helps.
What is the expected output? What do you see instead?
seeing a crash, no warnings when compiling. want to see no crash, and warnings
when compiling.
Which operating system are you using?
latest inferno from googlecode.
Please provide any additional information below.
attached:
- a diff for the specific inm problem.
- a diff to add #pragma varargck to /include/bio.h.
- "format mismatch" snippets of a build log for a build of the latest inferno
on plan 9, with #pragma varargck added to /include/bio.h.
- a gdb backtrace for the crash of inm.
Original issue reported on code.google.com by mechiel@ueber.net on 21 Jul 2010 at 10:08
Original issue reported on code.google.com by
mechiel@ueber.net
on 21 Jul 2010 at 10:08Attachments: