Jump to content


Photo

Buffer overflow (ubuntu karmic)


  • Please log in to reply
5 replies to this topic

#1 Anarchid

Anarchid

    Squaddie

  • Forum Members
  • PipPip
  • 3 posts

Posted 01 November 2009 - 12:03 PM

I managed to successfully compile ufo2k on my karmic amd64. But when i try to run it, i get this:

anarchid@komponent:~/Games/ufo2000/trunk$ ./ufo2000
Invalid translation for 'Unable to delete temporary file %s!' in the language file /usr/share/games/ufo2000/translations/ufo2000-deu.po
Invalid translation for 'Remote player has the following %d maps that can be used for network game:\n' in the language file /usr/share/games/ufo2000/translations/ufo2000-pol.po
ALSA lib rawmidi_hw.c:233:(snd_rawmidi_hw_open) open /dev/snd/midiC0D0 failed: No such file or directory
*** buffer overflow detected ***: ./ufo2000 terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x37)[0x7f0e9db005f7]
/lib/libc.so.6[0x7f0e9daff5a0]
/lib/libc.so.6[0x7f0e9dafea09]
/lib/libc.so.6(_IO_default_xsputn+0x98)[0x7f0e9da7d448]
/lib/libc.so.6(_IO_vfprintf+0x5a5)[0x7f0e9da4e345]
/lib/libc.so.6(__vsprintf_chk+0x99)[0x7f0e9dafeaa9]
/lib/libc.so.6(__sprintf_chk+0x7f)[0x7f0e9dafe9ef]
./ufo2000[0x485be9]
./ufo2000[0x429549]
/usr/lib/liballeg.so.4.2(for_each_file+0x10f)[0x7f0e9e78f43f]
./ufo2000[0x430b6e]
./ufo2000[0x431c53]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7f0e9da27abd]
./ufo2000[0x40c699]
======= Memory map: ========
00400000-00507000 r-xp 00000000 08:01 9314534 /home/anarchid/Games/ufo2000/trunk/ufo2000
00706000-00707000 r--p 00106000 08:01 9314534 /home/anarchid/Games/ufo2000/trunk/ufo2000
00707000-0070c000 rw-p 00107000 08:01 9314534 /home/anarchid/Games/ufo2000/trunk/ufo2000
0070c000-0074e000 rw-p 00000000 00:00 0
01e80000-024eb000 rw-p 00000000 00:00 0 [heap]
7f0e8d8d5000-7f0e8d8d6000 ---p 00000000 00:00 0
7f0e8d8d6000-7f0e8e0d6000 rwxp 00000000 00:00 0
7f0e8e0d6000-7f0e8e0d7000 ---p 00000000 00:00 0
7f0e8e0d7000-7f0e8e8d7000 rwxp 00000000 00:00 0
7f0e8e8d7000-7f0e928d8000 rw-s 00000000 00:11 2804365 /dev/shm/pulse-shm-592625917
7f0e928d8000-7f0e928dd000 r-xp 00000000 08:01 5152826 /usr/lib/alsa-lib/libasound_module_ctl_pulse.so
7f0e928dd000-7f0e92adc000 ---p 00005000 08:01 5152826 /usr/lib/alsa-lib/libasound_module_ctl_pulse.so
7f0e92adc000-7f0e92add000 r--p 00004000 08:01 5152826 /usr/lib/alsa-lib/libasound_module_ctl_pulse.so
7f0e92add000-7f0e92ade000 rw-p 00005000 08:01 5152826 /usr/lib/alsa-lib/libasound_module_ctl_pulse.so
7f0e92ade000-7f0e92ae3000 r-xp 00000000 08:01 4761309 /usr/lib/libogg.so.0.6.0
7f0e92ae3000-7f0e92ce2000 ---p 00005000 08:01 4761309 /usr/lib/libogg.so.0.6.0
7f0e92ce2000-7f0e92ce3000 r--p 00004000 08:01 4761309 /usr/lib/libogg.so.0.6.0
7f0e92ce3000-7f0e92ce4000 rw-p 00005000 08:01 4761309 /usr/lib/libogg.so.0.6.0
7f0e92ce4000-7f0e92d03000 r-xp 00000000 08:01 4761597 /usr/lib/libvorbis.so.0.4.0
7f0e92d03000-7f0e92f02000 ---p 0001f000 08:01 4761597 /usr/lib/libvorbis.so.0.4.0
7f0e92f02000-7f0e92f03000 r--p 0001e000 08:01 4761597 /usr/lib/libvorbis.so.0.4.0
7f0e92f03000-7f0e92f11000 rw-p 0001f000 08:01 4761597 /usr/lib/libvorbis.so.0.4.0
7f0e92f11000-7f0e92f2b000 r-xp 00000000 08:01 4761561 /usr/lib/libvorbisenc.so.2.0.3
7f0e92f2b000-7f0e9312a000 ---p 0001a000 08:01 4761561 /usr/lib/libvorbisenc.so.2.0.3
7f0e9312a000-7f0e9312b000 r--p 00019000 08:01 4761561 /usr/lib/libvorbisenc.so.2.0.3
7f0e9312b000-7f0e932ea000 rw-p 0001a000 08:01 4761561 /usr/lib/libvorbisenc.so.2.0.3
7f0e932ea000-7f0e93333000 r-xp 00000000 08:01 4761366 /usr/lib/libFLAC.so.8.2.0
7f0e93333000-7f0e93533000 ---p 00049000 08:01 4761366 /usr/lib/libFLAC.so.8.2.0
7f0e93533000-7f0e93534000 r--p 00049000 08:01 4761366 /usr/lib/libFLAC.so.8.2.0
7f0e93534000-7f0e93535000 rw-p 0004a000 08:01 4761366 /usr/lib/libFLAC.so.8.2.0
7f0e93535000-7f0e9354b000 r-xp 00000000 08:01 9046396 /lib/libnsl-2.10.1.so
7f0e9354b000-7f0e9374b000 ---p 00016000 08:01 9046396 /lib/libnsl-2.10.1.so
7f0e9374b000-7f0e9374c000 r--p 00016000 08:01 9046396 /lib/libnsl-2.10.1.so
7f0e9374c000-7f0e9374d000 rw-p 00017000 08:01 9046396 /lib/libnsl-2.10.1.so
7f0e9374d000-7f0e9374f000 rw-p 00000000 00:00 0
7f0e9374f000-7f0e93752000 r-xp 00000000 08:01 9045154 /lib/libuuid.so.1.3.0
7f0e93752000-7f0e93952000 ---p 00003000 08:01 9045154 /lib/libuuid.so.1.3.0
7f0e93952000-7f0e93953000 r--p 00003000 08:01 9045154 /lib/libuuid.so.1.3.0
7f0e93953000-7f0e93954000 rw-p 00004000 08:01 9045154 /lib/libuuid.so.1.3.0
7f0e93954000-7f0e93991000 r-xp 00000000 08:01 9044002 /lib/libdbus-1.so.3.4.0
7f0e93991000-7f0e93b91000 ---p 0003d000 08:01 9044002 /lib/libdbus-1.so.3.4.0
7f0e93b91000-7f0e93b92000 r--p 0003d000 08:01 9044002 /lib/libdbus-1.so.3.4.0
7f0e93b92000-7f0e93b93000 rw-p 0003e000 08:01 9044002 /lib/libdbus-1.so.3.4.0
7f0e93b93000-7f0e93bef000 r-xp 00000000 08:01 4761699 /usr/lib/libsndfile.so.1.0.20
7f0e93bef000-7f0e93dee000 ---p 0005c000 08:01 4761699 /usr/lib/libsndfile.so.1.0.20
7f0e93dee000-7f0e93df0000 r--p 0005b000 08:01 4761699 /usr/lib/libsndfile.so.1.0.20
7f0e93df0000-7f0e93df1000 rw-p 0005d000 08:01 4761699 /usr/lib/libsndfile.so.1.0.20
7f0e93df1000-7f0e93df5000 rw-p 00000000 00:00 0
7f0e93df5000-7f0e93dfe000 r-xp 00000000 08:01 9044121 /lib/libwrap.so.0.7.6
7f0e93dfe000-7f0e93ffd000 ---p 00009000 08:01 9044121 /lib/libwrap.so.0.7.6
7f0e93ffd000-7f0e93ffe000 r--p 00008000 08:01 9044121 /lib/libwrap.so.0.7.6
7f0e93ffe000-7f0e93fff000 rw-p 00009000 08:01 9044121 /lib/libwrap.so.0.7.6
7f0e93fff000-7f0e94000000 rw-p 00000000 00:00 0
7f0e94000000-7f0e94059000 rw-p 00000000 00:00 0
7f0e94059000-7f0e98000000 ---p 00000000 00:00 0
7f0e9802e000-7f0e98033000 r-xp 00000000 08:01 4761064 /usr/lib/libXtst.so.6.1.0
7f0e98033000-7f0e98233000 ---p 00005000 08:01 4761064 /usr/lib/libXtst.so.6.1.0
7f0e98233000-7f0e98234000 r--p 00005000 08:01 4761064 /usr/lib/libXtst.so.6.1.0
7f0e98234000-7f0e98235000 rw-p 00006000 08:01 4761064 /usr/lib/libXtst.so.6.1.0
7f0e98235000-7f0e9823d000 r-xp 00000000 08:01 4759684 /usr/lib/libSM.so.6.0.0
7f0e9823d000-7f0e9843c000 ---p 00008000 08:01 4759684 /usr/lib/libSM.so.6.0.0
7f0e9843c000-7f0e9843d000 r--p 00007000 08:01 4759684 /usr/lib/libSM.so.6.0.0
7f0e9843d000-7f0e9843e000 rw-p 00008000 08:01 4759684 /usr/lib/libSM.so.6.0.0
7f0e9843e000-7f0e98455000 r-xp 00000000 08:01 4759554 /usr/lib/libICE.so.6.3.0Shutting down Allegro due to signal #6
Aborted (core dumped)


This happens in both 'beta', 'stable' and anything i can pull from svn.

Any ideas?

#2 Kratos

Kratos

    UFO2000 Staff

  • Moderators
  • PipPipPipPipPip
  • 4,113 posts

Posted 01 November 2009 - 07:56 PM

Something is wrong with your sound. Did you try turning off DUMBogg while compiling?

#3 Anarchid

Anarchid

    Squaddie

  • Forum Members
  • PipPip
  • 3 posts

Posted 02 November 2009 - 01:09 AM

Yes, i tried it with no_dumbogg=1 on all versions - same thing. :/

Edited by Anarchid, 02 November 2009 - 01:11 AM.


#4 Anarchid

Anarchid

    Squaddie

  • Forum Members
  • PipPip
  • 3 posts

Posted 02 November 2009 - 04:19 AM

Workaround'ed this with the brutal force of sudo apt-get remove pulseaudio. That doesn't mean it's not a bug, though - amputating a leg doesn't cure it, even if it lets the greater system work better.

#5 Kratos

Kratos

    UFO2000 Staff

  • Moderators
  • PipPipPipPipPip
  • 4,113 posts

Posted 02 November 2009 - 12:37 PM

Maybe you downloaded too many audio libraries. Happened to me before when I started using Ubuntu...I didn't know what I was doing then. DLing more isn't always better.

#6 Serge

Serge

    Project Leader: UFO 2000

  • Xenocide Programming Department
  • 785 posts

Posted 14 November 2009 - 02:24 PM

Thanks for the report. I managed to reproduce the problem.

It should be fixed in SVN now (revision 1106).
ufo2000 development team
http://ufo2000.sourceforge.net