Skip to Content.
Sympa Menu

svadev - [svadev] Fwd: Re: KERN_INVALID_ADDRESS at address: 0x0000000000000016

svadev AT lists.siebelschool.illinois.edu

Subject: Svadev mailing list

List archive

[svadev] Fwd: Re: KERN_INVALID_ADDRESS at address: 0x0000000000000016


Chronological Thread 
  • From: John Criswell <criswell AT illinois.edu>
  • To: "svadev AT cs.uiuc.edu" <svadev AT cs.uiuc.edu>
  • Subject: [svadev] Fwd: Re: KERN_INVALID_ADDRESS at address: 0x0000000000000016
  • Date: Wed, 10 Oct 2012 14:16:49 -0500
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/svadev/>
  • List-id: <svadev.cs.uiuc.edu>
  • Organization: University of Illinois

Forgot to CC the svadev list.

-- John T.


-------- Original Message -------- Subject: Re: [svadev] KERN_INVALID_ADDRESS at address: 0x0000000000000016 Date: Wed, 10 Oct 2012 14:16:23 -0500 From: John Criswell <criswell AT illinois.edu> Organization: University of Illinois To: Daniel Aquino <mr.danielaquino AT gmail.com>

On 10/10/12 2:41 AM, Daniel Aquino wrote:
> I'm having this crash in a program at random points as I modify the
> source code and always with the same 16 address.

Are you using SAFECode with LLVM 3.0?  On what platform are you using 
SAFECode?  I'm guessing Mac OS X.
>
> This only happens when I try to use -flto option.

This is either happening because there's a bug in the program or a bug 
in SAFECode.  I'm guessing it's a bug in the SAFECode runtime since 
you're seeing the "Fault!" message.

Can you do the following:

1) Edit runtime/DebugRuntime/PoolAllocatorBitMask.cpp and comment out 
the code that calls sigaction().  This will disable the runtime's 
catching of signals.

2) Recompile the library, reinstall it (if you used "make install"), and 
recompile your program with SAFECode.

3) Use gdb to run your program.  When it crashes, can you send me the 
stack trace?

-- John T.

>
> Thanks!
>
>
>
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000016
> 0x00007fff860a8065 in mcount ()
>
>
>
> SAFECode: Fault!
> SAFECode:Violation Type 0x9 when accessing  0x16 at IP=0x7fff860a8065
>
> =======+++++++    SAFECODE RUNTIME ALERT +++++++=======
> = Error type                            :	Uninitialized/NULL Pointer Error
> = CWE ID                                :	120
> = Faulting pointer                      :	0x16
> = Program counter                       :	0x7fff860a8065
> = Fault PC Source                       :	UNKNOWN:0
> SAFECode: Fault!
> SAFECode:Violation Type 0x9 when accessing  0x16 at IP=0x7fff860a8065
>
> =======+++++++    SAFECODE RUNTIME ALERT +++++++=======
> = Error type                            :	Uninitialized/NULL Pointer Error
> = CWE ID                                :	120
> = Faulting pointer                      :	0x16
> = Program counter                       :	0x7fff860a8065
> = Fault PC Source                       :	UNKNOWN:0
> SAFECode: Fault!
> SAFECode:Violation Type 0x9 when accessing  0x16 at IP=0x7fff860a8065
>
> =======+++++++    SAFECODE RUNTIME ALERT +++++++=======
> = Error type                            :	Uninitialized/NULL Pointer Error
> = CWE ID                                :	120
> = Faulting pointer                      :	0x16
> = Program counter                       :	0x7fff860a8065
> = Fault PC Source                       :	UNKNOWN:0
> SAFECode: Fault!
> SAFECode:Violation Type 0x9 when accessing  0x16 at IP=0x7fff860a8065
>
> =======+++++++    SAFECODE RUNTIME ALERT +++++++=======
> = Error type                            :	Uninitialized/NULL Pointer Error
> = CWE ID                                :	120
> = Faulting pointer                      :	0x16
> = Program counter                       :	0x7fff860a8065
> = Fault PC Source                       :	UNKNOWN:0
> SAFECode: Fault!
> SAFECode:Violation Type 0x9 when accessing  0x16 at IP=0x7fff860a8065
>
> =======+++++++    SAFECODE RUNTIME ALERT +++++++=======
> = Error type                            :	Uninitialized/NULL Pointer Error
> = CWE ID                                :	120
> = Faulting pointer                      :	0x16
> = Program counter                       :	0x7fff860a8065
> = Fault PC Source                       :	UNKNOWN:0
> SAFECode: Fault!
> SAFECode:Violation Type 0x9 when accessing  0x16 at IP=0x7fff860a8065
>
> =======+++++++    SAFECODE RUNTIME ALERT +++++++=======
> = Error type                            :	Uninitialized/NULL Pointer Error
> = CWE ID                                :	120
> = Faulting pointer                      :	0x16
> = Program counter                       :	0x7fff860a8065
> = Fault PC Source                       :	UNKNOWN:0
> SAFECode: Fault!
> SAFECode:Violation Type 0x9 when accessing  0x16 at IP=0x7fff860a8065
>
> =======+++++++    SAFECODE RUNTIME ALERT +++++++=======
> = Error type                            :	Uninitialized/NULL Pointer Error
> = CWE ID                                :	120
> = Faulting pointer                      :	0x16
> = Program counter                       :	0x7fff860a8065
> = Fault PC Source                       :	UNKNOWN:0
> SAFECode: Fault!
> SAFECode:Violation Type 0x9 when accessing  0x16 at IP=0x7fff860a8065
>
> =======+++++++    SAFECODE RUNTIME ALERT +++++++=======
> = Error type                            :	Uninitialized/NULL Pointer Error
> = CWE ID                                :	120
> = Faulting pointer                      :	0x16
> = Program counter                       :	0x7fff860a8065
> = Fault PC Source                       :	UNKNOWN:0
> SAFECode: Fault!
> SAFECode:Violation Type 0x9 when accessing  0x16 at IP=0x7fff860a8065
>
> =======+++++++    SAFECODE RUNTIME ALERT +++++++=======
> = Error type                            :	Uninitialized/NULL Pointer Error
> = CWE ID                                :	120
> = Faulting pointer                      :	0x16
> = Program counter                       :	0x7fff860a8065
> = Fault PC Source                       :	UNKNOWN:0
> SAFECode: Fault!
> SAFECode:Violation Type 0x9 when accessing  0x16 at IP=0x7fff860a8065
>
> =======+++++++    SAFECODE RUNTIME ALERT +++++++=======
> = Error type                            :	Uninitialized/NULL Pointer Error
> = CWE ID                                :	120
> = Faulting pointer                      :	0x16
> = Program counter                       :	0x7fff860a8065
> = Fault PC Source                       :	UNKNOWN:0
> SAFECode: Fault!
> SAFECode:Violation Type 0x9 when accessing  0x16 at IP=0x7fff860a8065
>
> =======+++++++    SAFECODE RUNTIME ALERT +++++++=======
> = Error type                            :	Uninitialized/NULL Pointer Error
> = CWE ID                                :	120
> = Faulting pointer                      :	0x16
> = Program counter                       :	0x7fff860a8065
> = Fault PC Source                       :	UNKNOWN:0
> SAFECode: Fault!
> SAFECode:Violation Type 0x9 when accessing  0x16 at IP=0x7fff860a8065
>
> =======+++++++    SAFECODE RUNTIME ALERT +++++++=======
> = Error type                            :	Uninitialized/NULL Pointer Error
> = CWE ID                                :	120
> = Faulting pointer                      :	0x16
> = Program counter                       :	0x7fff860a8065
> = Fault PC Source                       :	UNKNOWN:0
> SAFECode: Fault!
> SAFECode:Violation Type 0x9 when accessing  0x16 at IP=0x7fff860a8065
>
> =======+++++++    SAFECODE RUNTIME ALERT +++++++=======
> = Error type                            :	Uninitialized/NULL Pointer Error
> = CWE ID                                :	120
> = Faulting pointer                      :	0x16
> = Program counter                       :	0x7fff860a8065
> = Fault PC Source                       :	UNKNOWN:0
> SAFECode: Fault!
> SAFECode:Violation Type 0x9 when accessing  0x16 at IP=0x7fff860a8065
>
> =======+++++++    SAFECODE RUNTIME ALERT +++++++=======
> = Error type                            :	Uninitialized/NULL Pointer Error
> = CWE ID                                :	120
> = Faulting pointer                      :	0x16
> = Program counter                       :	0x7fff860a8065
> = Fault PC Source                       :	UNKNOWN:0
> SAFECode: Fault!
> SAFECode:Violation Type 0x9 when accessing  0x16 at IP=0x7fff860a8065
>
> =======+++++++    SAFECODE RUNTIME ALERT +++++++=======
> = Error type                            :	Uninitialized/NULL Pointer Error
> = CWE ID                                :	120
> = Faulting pointer                      :	0x16
> = Program counter                       :	0x7fff860a8065
> = Fault PC Source                       :	UNKNOWN:0
> SAFECode: Fault!
> SAFECode:Violation Type 0x9 when accessing  0x16 at IP=0x7fff860a8065
>
> =======+++++++    SAFECODE RUNTIME ALERT +++++++=======
> = Error type                            :	Uninitialized/NULL Pointer Error
> = CWE ID                                :	120
> = Faulting pointer                      :	0x16
> = Program counter                       :	0x7fff860a8065
> = Fault PC Source                       :	UNKNOWN:0
> SAFECode: Fault!
> SAFECode:Violation Type 0x9 when accessing  0x16 at IP=0x7fff860a8065
>
> =======+++++++    SAFECODE RUNTIME ALERT +++++++=======
> = Error type                            :	Uninitialized/NULL Pointer Error
> = CWE ID                                :	120
> = Faulting pointer                      :	0x16
> = Program counter                       :	0x7fff860a8065
> = Fault PC Source                       :	UNKNOWN:0
> SAFECode: Fault!
> SAFECode:Violation Type 0x9 when accessing  0x16 at IP=0x7fff860a8065
>
> =======+++++++    SAFECODE RUNTIME ALERT +++++++=======
> = Error type                            :	Uninitialized/NULL Pointer Error
> = CWE ID                                :	120
> = Faulting pointer                      :	0x16
> = Program counter                       :	0x7fff860a8065
> = Fault PC Source                       :	UNKNOWN:0
> SAFECode: Fault!
> SAFECode:Violation Type 0x9 when accessing  0x16 at IP=0x7fff860a8065
>
> =======+++++++    SAFECODE RUNTIME ALERT +++++++=======
> = Error type                            :	Uninitialized/NULL Pointer Error
> = CWE ID                                :	120
> = Faulting pointer                      :	0x16
> = Program counter                       :	0x7fff860a8065
> = Fault PC Source                       :	UNKNOWN:0
> SAFECode: Fault!
> SAFECode:Violation Type 0x9 when accessing  0x16 at IP=0x7fff860a8065
>
> =======+++++++    SAFECODE RUNTIME ALERT +++++++=======
> = Error type                            :	Uninitialized/NULL Pointer Error
> = CWE ID                                :	120
> = Faulting pointer                      :	0x16
> = Program counter                       :	0x7fff860a8065
> = Fault PC Source                       :	UNKNOWN:0
> Abort trap: 6
> _______________________________________________
> svadev mailing list
> svadev AT cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/svadev







Archive powered by MHonArc 2.6.16.

Top of Page