Segmentation fault
Michael_E_Brown at Dell.com
Michael_E_Brown at Dell.com
Mon Jun 12 14:52:55 CDT 2006
Adrian,
I cannot find the followup on this. Did we get this resolved?
If not, I just posted a new version of libsmbios where I suspect
this might be fixed. I found what strongly appears to be a bug in GCC
when using the -Os optimization parameter. I found a test case to
reliably reproduce this, and I have switched back to -O2 which has fixed
the problem for me.
--
Michael
> -----Original Message-----
> From: libsmbios-devel-bounces at lists.us.dell.com
> [mailto:libsmbios-devel-bounces at lists.us.dell.com] On Behalf
> Of Michael_E_Brown at dell.com
> Sent: Wednesday, March 29, 2006 11:52 AM
> To: adrianf at preworx.com; libsmbios-devel at lists.us.dell.com
> Subject: RE: Segmentation fault
>
> I have not ever seen a segfault on a correclty installed
> production version of libsmbios. The only segfault I have
> seen is when you run a binary against a mismatched version of
> the library.
>
> Can you do two things?
>
> 1) enable core dumps and send me the backtrace
>
> 2) post the {memdump,cmos.}dat files from createUnitTestFiles
> as well as the output of getSystemID to a website somewhere
> that I can download.
> (please don't email them, if possible, my mailbox is full enough
> already)
>
> Then, you should be able to reproduce the issue in
> dumpSmbios_IPS by using the "-m memdump.dat". This will run
> the dump against the memory dump and should allow me to also
> reproduce the crash and figure out what is going on.
> --
> Michael
>
>
> > -----Original Message-----
> > From: libsmbios-devel-bounces at lists.us.dell.com
> > [mailto:libsmbios-devel-bounces at lists.us.dell.com] On
> Behalf Of Adrian
> > Freemantle
> > Sent: Wednesday, March 29, 2006 3:59 AM
> > To: libsmbios-devel at lists.us.dell.com
> > Subject: Segmentation fault
> >
> > Hi thanks for all the help so far. I have been looking at
> the code for
> > dumpSmbios_IPS to determine how to export the smbios
> information to a
> > XML format. When I run the application it prints some
> information to
> > the terminal before a "Segmentation fault" message is
> printed to the
> > screen.
> > Is this a known problem and if so what causes it? I would
> like to know
> > for sure so that I can avoid the same problem in my code.
> The output
> > is shown below:
> >
> > linux:/home/Development/libsmbios-0.11.3/bins/output #
> > ./dumpSmbios_IPS --xml <?xml-stylesheet type="text/xsl"
> > version="1.0" encoding="UTF-8"?> <SMBIOS> <BIOS_Information>
> > <Type>
> > <raw_data>0x00</raw_data>
> > </Type>
> > <Length>
> > <raw_data>0x14</raw_data>
> > </Length>
> > <Handle>
> > <raw_data>0x0000</raw_data>
> > </Handle>
> > <Vendor>
> > <raw_data>Phoenix Technologies LTD</raw_data>
> > </Vendor>
> > <BIOS_Version>
> > <raw_data>6.00</raw_data>
> > </BIOS_Version>
> > <BIOS_Starting_Address_Segment>
> > <raw_data>0xe7c9</raw_data>
> > </BIOS_Starting_Address_Segment>
> > <BIOS_Release_Date>
> > <raw_data>07/29/2005</raw_data>
> > </BIOS_Release_Date>
> > <<>
> > <raw_data>0x00</raw_data>
> > </</>OM_Size
> > <BIOS_Characteristics>
> > <raw_data>0x0000000000005f90</raw_data>
> > <<>
> > <DisabledBit>Reserved0/DisabledBit>
> > <DisabledBit>Reserved1/DisabledBit>
> > <DisabledBit>Unknown/DisabledBit>
> > <DisabledBit>BIOS Characteristics Not
> > Supported/DisabledBit>
> > <EnabledBit>ISA is supported/EnabledBit>
> > <DisabledBit>MCA is supported/DisabledBit>
> > <DisabledBit>EISA is supported/DisabledBit>
> > <EnabledBit>PCI is supported/EnabledBit>
> > <EnabledBit>PC Card (PCMCIA) is supported/EnabledBit>
> > <EnabledBit>Plug and Play is supported/EnabledBit>
> > <EnabledBit>APM is supported/EnabledBit>
> > <EnabledBit>BIOS is Upgradeable (Flash)/EnabledBit>
> > <EnabledBit>BIOS shadowing is allowed/EnabledBit>
> > <DisabledBit>VL-VESA is supported/DisabledBit>
> > <EnabledBit>ESCD support is available/EnabledBit>
> > <DisabledBit>Boot from CD is supported/DisabledBit>
> > <DisabledBit>Selectable Boot is supported/DisabledBit>
> > <DisabledBit>BIOS ROM is socketed/DisabledBit>
> > <DisabledBit>Boot from PC Card (PCMCI) is
> > supported/DisabledBit>
> > <DisabledBit>EDD (Enhanced Disk Drive) Specification is
> > supported/DisabledBit>
> > <DisabledBit>Int 13h - Japanese Floppy for NEC
> 9800 1.2mb
> > (3.5", 1k Bytes/Sector, 360 RPM) is supported/DisabledBit>
> > <DisabledBit>Int 13h - Japanese Floppy for
> Toshiba 1.2mb
> > (3.5", 360 RPM) is supported/DisabledBit>
> > <DisabledBit>Int 13h - 5.25" / 360 KB Floppy
> Services are
> > supported/DisabledBit>
> > <DisabledBit>Int 13h - 5.25" / 1.2 MB Floppy
> Services are
> > supported/DisabledBit>
> > <DisabledBit>Int 13h - 3.5" / 720KB Floppy Services are
> > supported/DisabledBit>
> > <DisabledBit>Int 13h - 3.5" / 2.88 MB Floppy
> Services are
> > supported/DisabledBit>
> > <DisabledBit>Int 5h, Print Screen Service is
> > supported/DisabledBit>
> > <DisabledBit>Int 9h, 8042 keyboard services are
> > supported/DisabledBit>
> > <DisabledBit>Int 14h, Serial Serices are
> > supported/DisabledBit>
> > <DisabledBit>Int 17h, Printer Services are
> > supported/DisabledBit>
> > <DisabledBit>Int 10h, CGA/Mono Video Services are
> > supported/DisabledBit>
> > <DisabledBit>NEC PC-98/DisabledBit>
> > <MultiBits>0x0</MultiBits>
> > <MultiBits>0x0</MultiBits>
> > </</>reted_data
> > </BIOS_Characteristics>
> > <BIOS_Characteristics_Extension_Byte_1>
> > <raw_data>0x82</raw_data>
> > <<>
> > <DisabledBit>ACPI supported/DisabledBit>
> > <EnabledBit>USB Legacy is supported/EnabledBit>
> > <DisabledBit>AGP is supported/DisabledBit>
> > <DisabledBit>I20 boot is supported/DisabledBit>
> > <DisabledBit>LS-120 boot is supported/DisabledBit>
> > <DisabledBit>ATAPI ZIP Drive boot is
> > supported/DisabledBit>
> > <DisabledBit>1394 boot is supported/DisabledBit>
> > <EnabledBit>Smart Battery is supported/EnabledBit>
> > </</>reted_data
> > </BIOS_Characteristics_Extension_Byte_1>
> > Segmentation fault
> >
> >
> > _______________________________________________
> > libsmbios-devel mailing list
> > libsmbios-devel at lists.us.dell.com
> > http://lists.us.dell.com/mailman/listinfo/libsmbios-devel
> >
>
> _______________________________________________
> libsmbios-devel mailing list
> libsmbios-devel at lists.us.dell.com
> http://lists.us.dell.com/mailman/listinfo/libsmbios-devel
>
More information about the libsmbios-devel
mailing list