jayduhon / inferno-os

Automatically exported from code.google.com/p/inferno-os
2 stars 0 forks source link

inm crash, /include/bio.h missing #pragma varargck, multiple "format mismatch" warnings #237

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Attachments:

GoogleCodeExporter commented 9 years ago
committed changeset 447:c295bd591866

Original comment by Charles....@gmail.com on 22 Jul 2010 at 10:56