[Mono-bugs] [Bug 345972] FileVersionInfo doesn't work

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jan 8 05:54:56 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=345972

User rkvinge at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=345972#c9


Rolf Bjarne Kvinge <rkvinge at novell.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
             Status|RESOLVED                                        |REOPENED
         Resolution|FIXED                                           |




--- Comment #9 from Rolf Bjarne Kvinge <rkvinge at novell.com>  2008-01-08 03:54:55 MST ---
vbnc is still crashing...

Repro:
wget
http://anonsvn.mono-project.com/viewcvs/*checkout*/trunk/mono-basic/class/lib/bootstrap/
cd bootstrap
mono vbnc.exe

Result:
(same crash as above, found here too:
http://mono.ximian.com/monobuild/builds/HEAD/sles-9-ppc/mono-basic/92409/logs/build.log)

I logged into the monobuild machine, and debugged a bit with gdb, here is the
output:

(gdb) run
Starting program: /tmp/monobuild/build/BUILD/mono-92429/mono/mini/mono vbnc.exe
[Thread debugging using libthread_db enabled]
[New Thread 805436480 (LWP 25385)]
[New Thread 805456672 (LWP 25390)]
[New Thread 816491296 (LWP 25391)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 805436480 (LWP 25385)]
scan_resource_dir (root=0x30abd000, nt_headers=0x30cef080, file_map=0x30cef000,
entry=0x2, level=0, res_id=16, lang_id=0, size=0x7f9e9bcc) at versioninfo.c:128
128                     *size = GUINT32_FROM_LE (data_entry->Size);
(gdb) bt
#0  scan_resource_dir (root=0x30abd000, nt_headers=0x30cef080,
file_map=0x30cef000, entry=0x2, level=0, res_id=16, lang_id=0, size=0x7f9e9bcc)
at versioninfo.c:128
#1  0x10153530 in scan_resource_dir (root=0x30abd000, nt_headers=0x30cef080,
file_map=0x30cef000, entry=0x2, level=0, res_id=16, lang_id=0, size=0x7f9e9bcc)
at versioninfo.c:73
#2  0x10153a54 in GetFileVersionInfoSize (filename=0x30abd000,
handle=0x30cef080) at versioninfo.c:315
#3  0x10130910 in process_get_fileversion (filever=0x30c9eee0, filename=0x0) at
process.c:250
#4  0x10130e98 in
ves_icall_System_Diagnostics_FileVersionInfo_GetVersionInfo_internal
(this=0x30c9eee0, filename=0x30c719c0) at process.c:429
#5  0x30ce5558 in ?? ()
(gdb) print data_entry->Size
Cannot access memory at address 0x31264306
(gdb) print data_entry
$1 = (WapiImageResourceDataEntry *) 0x31264302
(gdb) print *data_entry
Cannot access memory at address 0x31264302
(gdb) print root
$2 = (WapiImageResourceDirectory *) 0x30abd000
(gdb) print *root
$3 = {Characteristics = 3036741642, TimeDateStamp = 1874198784, MajorVersion =
2617, MinorVersion = 1792, NumberOfNamedEntries = 0, NumberOfIdEntries = 5901}
(gdb) print data_offset
$4 = 8024834
(gdb) print entry
$5 = (WapiImageResourceDirectoryEntry *) 0x2
(gdb) print *entry
Cannot access memory at address 0x2
(gdb) up
#1  0x10153530 in scan_resource_dir (root=0x30abd000, nt_headers=0x30cef080,
file_map=0x30cef000, entry=0x2, level=0, res_id=16, lang_id=0, size=0x7f9e9bcc)
at versioninfo.c:73
73      {
(gdb) info locals
is_string = 0
is_dir = 0
name_offset = 0
dir_offset = 8024834
data_offset = 8024834
(gdb) up
#2  0x10153a54 in GetFileVersionInfoSize (filename=0x30abd000,
handle=0x30cef080) at versioninfo.c:315
315             versioninfo = find_pe_file_resources (file_map, map_size,
RT_VERSION,
(gdb) info locals
file_map = 0x30abd000
versioninfo = 0x0
map_size = 272964128
size = 805687044
(gdb) down
#1  0x10153530 in scan_resource_dir (root=0x30abd000, nt_headers=0x30cef080,
file_map=0x30cef000, entry=0x2, level=0, res_id=16, lang_id=0, size=0x7f9e9bcc)
at versioninfo.c:73
73      {
(gdb) print resource_dir
No symbol "resource_dir" in current context.
(gdb) print *root
$6 = {Characteristics = 3036741642, TimeDateStamp = 1874198784, MajorVersion =
2617, MinorVersion = 1792, NumberOfNamedEntries = 0, NumberOfIdEntries = 5901}
(gdb) q
The program is running.  Exit anyway? (y or n) y


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list