Leopard: Installer crash
Leopard: Installer crash
- Subject: Leopard: Installer crash
- From: "Umasankar Mukkara" <email@hidden>
- Date: Thu, 14 Feb 2008 12:54:55 -0700
Hello,
If I run the installer from command line it succeeds with no issues
installer -pkg /Users/admin/tun_kext.pkg -target /
However if I do this programmatically from inside a C program from a child process, I get a malloc failure and the installer crashes.
char buf[ 512 ] = "installer -pkg /Users/admin/tun_kext.pkg -target /";
system(buf);
This results in a crash inside installer.
installer[38389]: installer(38389,0xb01a7000) malloc: *** mmap(size=3976200192) failed (error code=12)\n*** error: can't allocate region\n*** set a breakpoint in malloc_error_break to debug
ReportCrash[38394]: Formulating crash report for process installer[38389]
ReportCrash[38394]: Saved crashreport to /Library/Logs/CrashReporter/installer_2008-02-14-102221_umasankar-mukkaras-mac-mini.crash using uid: 0 gid: 0, euid: 0 egid: 0
kernel[0]: if_detach_ifa: Attempted to detach IFA that was not attached!
And the crash report is:
Thread 5 Crashed:
0 libSystem.B.dylib 0x91b2067e __semwait_signal_nocancel + 10
1 libSystem.B.dylib 0x91b12547 usleep$NOCANCEL$UNIX2003 + 61
2 libSystem.B.dylib 0x91b33d4b abort + 85
3 libxar.1.dylib 0x000259d2 xar_gzip_fromheap_in + 343
4 libxar.1.dylib 0x00023341 xar_attrcopy_from_heap + 1166
5 libxar.1.dylib 0x000207d7 xar_data_extract + 370
6 libxar.1.dylib 0x0001ed52 xar_arcmod_extract + 69
7 libxar.1.dylib 0x0001d439 xar_extract_tobuffer + 141
8 com.apple.installframework 0x00165ce9 -[IFXARArchive extractEntry:toBuffer:withError:] + 153
9 com.apple.installframework 0x001a099a -[FFPackage(PackageInfoLoading) _readPackageInfoWithName:] + 137
10 com.apple.installframework 0x0019f67c -[FFPackage initWithURL:error:] + 339
11 com.apple.installframework 0x001507a3 -[PFPackage initWithModule:forLocation:error:] + 116
12 com.apple.installframework 0x001505aa +[PFPackage packageWithURL:error:] + 522
13 com.apple.installframework 0x00150079 -[IFPackageController initWithPackageRep:error:] + 222
14 com.apple.installframework 0x0014fd4a -[IFSession(IFSessionQueue) _makePackageControllersFromIFDPackageReps:installOptions:] + 510
15 com.apple.installframework 0x0014d215 -[IFSession(IFSessionQueue) installJobWithItems:installOptions:inSession:] + 312
16 com.apple.installframework 0x0014cefd -[IFSession installPackages:withOptions:inSession:] + 516
17 com.apple.installframework 0x0014c8f7 -[IFDInstallController(InstallController) installPackages:withOptions:] + 715
18 com.apple.installframework 0x0014b548 -[IFDInstallController(Private) _installNextPackage] + 1906
19 com.apple.installframework 0x00148572 -[IFDInstallController(Private) _install] + 1678
20 com.apple.Foundation 0x94c2c04d -[NSThread main] + 45
21 com.apple.Foundation 0x94c2bbf4 __NSThread__main__ + 308
22 libSystem.B.dylib 0x91a70075 _pthread_start + 321
23 libSystem.B.dylib 0x91a6ff32 thread_start + 34
Thread 5 crashed with X86 Thread State (32-bit):
eax: 0x0000003c ebx: 0x91b201cf ecx: 0xb01a5fbc edx: 0x91b2067e
edi: 0x767fffe0 esi: 0xb01a6018 ebp: 0xb01a5ff8 esp: 0xb01a5fbc
ss: 0x0000001f efl: 0x00000247 eip: 0x91b2067e cs: 0x00000007
ds: 0x0000001f es: 0x0000001f fs: 0x0000001f gs: 0x00000037
cr2: 0xa012b4b0
Is this a bug in installer on leopard? or do I need to run Installer with any other specific parameters?
Please direct me to another mailing list, if I am not at the right place.
Regards,
Uma.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden