Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vm.game.type 0 leads to "IPC: Socket closed by remote end" on regular installation #502

Closed
Viech opened this issue Dec 18, 2014 · 3 comments
Labels
A-Build When the code doesn't compile, or worse, compiles wrong OS-Linux T-Bug

Comments

@Viech
Copy link
Member

Viech commented Dec 18, 2014

In a "regular" user environment (see file listing below) running current master of c5bb4b5, the new default value for vm.game.type (set from TYPE_NATIVE_EXE to TYPE_NACL in 2433590, closing #403) causes local map load to fail with the (nondescript) message IPC: Socket closed by remote end.

The Unvanquished installation in question provides the following files:

/etc/
/etc/conf.d/
/etc/conf.d/unvanquished.conf
/etc/unvanquished/
/etc/unvanquished/maprotation.cfg
/etc/unvanquished/server.cfg
/usr/
/usr/
/usr/bin/
/usr/bin/unvanquished
/usr/bin/unvanquished-tty
/usr/lib/
/usr/lib/systemd/
/usr/lib/systemd/system/
/usr/lib/systemd/system/unvanquished.service
/usr/lib/unvanquished/
/usr/lib/unvanquished/cgame-qvm-native.so
/usr/lib/unvanquished/daemon
/usr/lib/unvanquished/daemonded
/usr/lib/unvanquished/daemon-tty
/usr/lib/unvanquished/game-nacl-native-exe
/usr/lib/unvanquished/irt_core-x86_64.nexe
/usr/lib/unvanquished/nacl_helper_bootstrap
/usr/lib/unvanquished/sel_ldr
/usr/share/
/usr/share/
/usr/share/applications/
/usr/share/applications/unvanquished.desktop
/usr/share/icons/
/usr/share/icons/hicolor/
/usr/share/icons/hicolor/128x128/
/usr/share/icons/hicolor/128x128/apps/
/usr/share/icons/hicolor/128x128/apps/unvanquished.png
/usr/share/licenses/
/usr/share/licenses/unvanquished/
/usr/share/licenses/unvanquished/COPYING.txt
/usr/share/unvanquished/
/usr/share/unvanquished/
/usr/share/unvanquished/pkg/
/usr/share/unvanquished/pkg/
/usr/share/unvanquished/pkg/map-antares_a03+1.pk3
/usr/share/unvanquished/pkg/map-chasm_b1+2.pk3
/usr/share/unvanquished/pkg/map-forlorn_a9+1.pk3
/usr/share/unvanquished/pkg/map-parpax_d03a+1.pk3
/usr/share/unvanquished/pkg/map-perseus_b5a+1.pk3
/usr/share/unvanquished/pkg/map-plat23_b13+1.pk3
/usr/share/unvanquished/pkg/map-spacetracks_1.0+1.pk3
/usr/share/unvanquished/pkg/map-station15_1.0.pk3
/usr/share/unvanquished/pkg/map-thunder_b3+2.pk3
/usr/share/unvanquished/pkg/map-yocto_b2c+1.pk3
/usr/share/unvanquished/pkg/md5sums0.34
/usr/share/unvanquished/pkg/tex-all_1.0.pk3
/usr/share/unvanquished/pkg/tex-common_2.0.pk3
/usr/share/unvanquished/pkg/tex-ex_1.0.pk3
/usr/share/unvanquished/pkg/tex-exm_1.0.pk3
/usr/share/unvanquished/pkg/tex-pk01_1.0.pk3
/usr/share/unvanquished/pkg/tex-pk02_1.0.pk3
/usr/share/unvanquished/pkg/tex-space_1.0.pk3
/usr/share/unvanquished/pkg/tex-tech_1.0.pk3
/usr/share/unvanquished/pkg/tex-trak5_1.0.pk3
/usr/share/unvanquished/pkg/unvanquished_0.25.0.pk3
/usr/share/unvanquished/pkg/unvanquished_0.26.0.pk3
/usr/share/unvanquished/pkg/unvanquished_0.27.0.pk3
/usr/share/unvanquished/pkg/unvanquished_0.28.0.pk3
/usr/share/unvanquished/pkg/unvanquished_0.29.0.pk3
/usr/share/unvanquished/pkg/unvanquished_0.30.0.pk3
/usr/share/unvanquished/pkg/unvanquished_0.31.0.pk3
/usr/share/unvanquished/pkg/unvanquished_0.32.0.pk3
/usr/share/unvanquished/pkg/unvanquished_0.33.0.pk3
/usr/share/unvanquished/pkg/unvanquished_0.34.0.pk3
/var/
/var/lib/
/var/lib/unvanquished-server/
/var/lib/unvanquished-server/config/
/var/lib/unvanquished-server/config/server.cfg
/var/lib/unvanquished-server/game/
/var/lib/unvanquished-server/game/maprotation.cfg
@Viech
Copy link
Member Author

Viech commented Dec 18, 2014

On request by @Amanieu, I ran unvanquished with +nocurses +set vm.game.debugLoader 1 +devmap plat23, producing the following snippet:

Loading pak '/usr/share/unvanquished/pkg/tex-pk02_1.0.pk3'... 
Loading pak '/usr/share/unvanquished/pkg/tex-space_1.0.pk3'... 
Loading VM module game-x86_64.nexe... 
Using loader args:  /usr/lib/unvanquished/nacl_helper_bootstrap /usr/lib/unvanquished/sel_ldr --r_debug=0xXXXXXXXXXXXXXXXX --reserved_at_zero=0xXXXXXXXXXXXXXXXX -v -B /usr/lib/unvanquished/irt_core-x86_64.nexe -e -i 100:32 -- /home/eris/.unvanquished/game-x86_64.nexe 100 
Loading pak '/usr/share/unvanquished/pkg/unvanquished_0.34.0.pk3'... 
Loading pak '/usr/share/unvanquished/pkg/unvanquished_0.33.0.pk3'... 

Also:

% cat ~/.unvanquished/game.sel_ldr.log
sel_ldr argument list:
/usr/lib/unvanquished/sel_ldr --r_debug=0x0000000000213000 --reserved_at_zero=0x0000000000000000 -v -B /usr/lib/unvanquished/irt_core-x86_64.nexe -e -i 100:32 -- /home/eris/.unvanquished/game-x86_64.nexe 100
[4080,917354304:15:33:36.110026] NaClPerfCounterInterval(SelMain __start__:SnapshotBlob): 344 microsecs
[4080,917354304:15:33:36.110084] NaClPerfCounterInterval(NaClAppLoadFile __start__:PreAllocAddrSpace): 14 microsecs
[4080,917354304:15:33:36.110156] Native Client module will be loaded at base address 0x000065f800000000
[4080,917354304:15:33:36.110163] NaClPerfCounterInterval(NaClAppLoadFile PreAllocAddrSpace:*AllocAddrSpace): 79 microsecs
[4080,917354304:15:33:36.110973] NaClPerfCounterInterval(NaClAppLoadFile *AllocAddrSpace:*MakeDynText): 808 microsecs
[4080,917354304:15:33:36.130432] NaClPerfCounterInterval(NaClAppLoadFile *MakeDynText:*ValidateImg): 19460 microsecs
[4080,917354304:15:33:36.130560] NaClPerfCounterInterval(NaClAppLoadFile __start__:EndLoadFile): 20489 microsecs
[4080,917354304:15:33:36.130569] NaClPerfCounterInterval(SelMain SnapshotBlob:AppLoadEnd): 20543 microsecs
[4080,917354304:15:33:36.133057] NaClPerfCounterInterval(NaClTextDyncodeCreate __start__:*DynRegionValidate): 2393 microsecs
[4080,917354304:15:33:36.133292] NaClPerfCounterInterval(SelMain AppLoadEnd:BlobLoaded): 2724 microsecs
[4080,917354304:15:33:36.133317] NACL: Application output follows
[4080,917354304:15:33:36.133746] NaClPerfCounterInterval(SelMain BlobLoaded:CreateMainThread): 453 microsecs

** Signal 11 from untrusted code: pc=65f80ffd4baa

@Amanieu
Copy link
Contributor

Amanieu commented Dec 18, 2014

I can't reproduce this error. Starting a server works fine for me.

@Viech
Copy link
Member Author

Viech commented Dec 18, 2014

@Amanieu found out that Arch Linux' makepkg tool stripped binaries when packaging Unvanquished, which broke one related to NaCl (irt_core-x86_64.nexe). I'll upload new PKGBUILDs that disable stripping to the AUR soon.

@Viech Viech closed this as completed Dec 18, 2014
@Viech Viech added OS-Linux A-Build When the code doesn't compile, or worse, compiles wrong and removed A-Engine labels Dec 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Build When the code doesn't compile, or worse, compiles wrong OS-Linux T-Bug
Projects
None yet
Development

No branches or pull requests

2 participants