I've been struggling to make it work for a few months after an upgrade from VirtualBox 4.1 to 4.2. No matter what I do, switch on and off full screen mode, remove and reinstall guest addition... Auto-resize Guest Display simpy doesn't work. Today I stumbled on this web site: http://ubuntuforums.org/showthread.php?t=1903264 and found my answer.

All I need to do is:

VBoxManage setextradata global GUI/MaxGuestResolution any

Reboot my guest OS and voila :)

 Today, while I'm trying to debug the kernel for the Samsung Galaxy S2 USB OTG with a USB hub and a usb mouse. I enabled "USB verbose debug messages" and got this error:

[code]

/mnt/tok/projects/s2kernel/samsung-kernel-galaxysii
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  GEN     usr/initramfs_data.cpio
  AS      usr/initramfs_data.o
  LD      usr/built-in.o
  CC      drivers/usb/core/usb.o
  CC      drivers/usb/core/hub.o
  CC      drivers/usb/core/hcd.o
  CC      drivers/usb/host/ehci-hcd.o
  CC      drivers/usb/core/urb.o
In file included from drivers/usb/host/ehci-hcd.c:116:
drivers/usb/host/ehci-dbg.c: In function 'dbg_hcc_params':
drivers/usb/host/ehci-dbg.c:93: warning: format '%d' expects type 'int', but argument 6 has type 'char * const'
drivers/usb/host/ehci-dbg.c:93: warning: too few arguments for format
drivers/usb/host/ehci-dbg.c: In function 'debug_lpm_write':
drivers/usb/host/ehci-dbg.c:993: error: implicit declaration of function 'copy_from_user'
  CC      drivers/usb/core/message.o
In file included from drivers/usb/host/ehci-hcd.c:1198:
drivers/usb/host/ehci-s5pv210.c: At top level:
drivers/usb/host/ehci-s5pv210.c:332: warning: initialization from incompatible pointer type
drivers/usb/host/ehci-s5pv210.c: In function 'create_ehci_sys_file':
drivers/usb/host/ehci-s5pv210.c:425: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
make[3]: *** [drivers/usb/host/ehci-hcd.o] Error 1
make[2]: *** [drivers/usb/host] Error 2
make[2]: *** Waiting for unfinished jobs....
  CC      drivers/usb/core/driver.o
  CC      drivers/usb/core/config.o
  CC      drivers/usb/core/file.o
  CC      drivers/usb/core/buffer.o
  CC      drivers/usb/core/sysfs.o
  CC      drivers/usb/core/endpoint.o
  CC      drivers/usb/core/devio.o
  CC      drivers/usb/core/notify.o
  CC      drivers/usb/core/generic.o
  CC      drivers/usb/core/quirks.o
  CC      drivers/usb/core/devices.o
  CC      drivers/usb/core/inode.o
  LD      drivers/usb/core/usbcore.o
  LD      drivers/usb/core/built-in.o
make[1]: *** [drivers/usb] Error 2
make: *** [drivers] Error 2
[/code]

The kernel is from here: https://github.com/GalaxySII/samsung-kernel-galaxysii.git

The problem is ehci-dbg.c does not include asm/uaccess.h, so to solve this, just add

[code]

#include <asm/uaccess.h>

 [/code]

to drivers/usb/host/ehci-dbg.c and you are good to go.

 

My ArchLinux in my office has failed to build guayadeque 0.3.5-1 many times recently with the following message:

[code]guayadeque 0.3.5-1
( Unsupported package: Potentially dangerous ! )
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> n

==> guayadeque dependencies:
 - taglib>=1.5-1 (already installed)
 - curl>=7.19.5-2 (already installed)
 - glib2>=2.12.0 (already installed)
 - gstreamer0.10 (already installed)
 - gstreamer0.10-base-plugins (already installed)
 - gstreamer0.10-good-plugins (already installed)
 - libxml2 (already installed)
 - sqlite3>=3.6.10 (already installed)
 - wxgtk>=2.8.9.1 (already installed)
 - flac>=1.2.1-1 (already installed)
 - dbus-core>=1.2.16-1 (already installed)
 - wxpython>=2.8.11 (already installed)
 - libgpod (already installed)
 - autoconf (already installed)
 - automake (already installed)
 - gcc (already installed)
 - make (already installed)
 - cmake (already installed)
 - pkgconfig (already installed)
 - subversion (already installed)


==> Continue building guayadeque ? [Y/n]
==> ------------------------------------
==>
==> Building and installing package
==> WARNING: Building package as root is dangerous.
 Please run yaourt as a non-privileged user.
==> Making package: guayadeque 0.3.5-1 (Thu Mar  1 09:12:28 SGT 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Downloading guayadeque-0.3.5.tar.bz2...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   426    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100 1475k  100 1475k    0     0   330k      0  0:00:04  0:00:04 --:--:--  672k
==> Validating source files with md5sums...
    guayadeque-0.3.5.tar.bz2 ... Passed
==> Extracting Sources...
  -> Extracting guayadeque-0.3.5.tar.bz2 with bsdtar
==> Starting build()...
==> Starting make...
rm: cannot remove `CMakeCache.txt': No such file or directory
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Using install prefix /usr ...
-- Found wxWidgets: TRUE
-- checking for module 'gstreamer-0.10'
--   found gstreamer-0.10, version 0.10.35
-- checking for module 'sqlite3'
--   found sqlite3, version 3.7.10
-- checking for module 'libcurl'
--   found libcurl, version 7.24.0
-- checking for module 'taglib>=1.6.1'
--   found taglib, version 1.7.0
-- checking for module 'dbus-1'
--   found dbus-1, version 1.4.16
-- checking for module 'flac'
--   found flac, version 1.2.1
-- checking for module 'gio-2.0'
--   found gio-2.0, version 2.30.2
-- checking for module 'libgpod-1.0'
--   found libgpod-1.0, version 0.8.2
-- checking for module 'indicate'
--   package 'indicate' not found
 libindicate library not found! No sound menu support!!
-- checking for module 'appindicator-0.1'
--   package 'appindicator-0.1' not found
-- Found Gettext: /usr/bin/msgmerge
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/yaourt-tmp-root/aur-guayadeque/src/guayadeque-0.3.5
Scanning dependencies of target guayadeque
[  0%] Building CXX object src/CMakeFiles/guayadeque.dir/AlListBox.o
[  1%] Building CXX object src/CMakeFiles/guayadeque.dir/ArListBox.o
[  2%] Building CXX object src/CMakeFiles/guayadeque.dir/ArrayStringArray.o
[  2%] Building CXX object src/CMakeFiles/guayadeque.dir/AudioScrobble.o
[  3%] Building CXX object src/CMakeFiles/guayadeque.dir/Config.o
[  4%] Building CXX object src/CMakeFiles/guayadeque.dir/ConfirmExit.o
[  5%] Building CXX object src/CMakeFiles/guayadeque.dir/CoverEdit.o
[  5%] Building CXX object src/CMakeFiles/guayadeque.dir/CoverFrame.o
[  6%] Building CXX object src/CMakeFiles/guayadeque.dir/Db.o
[  7%] Building CXX object src/CMakeFiles/guayadeque.dir/DbLibrary.o
[  8%] Building CXX object src/CMakeFiles/guayadeque.dir/DbRadios.o
[  8%] Building CXX object src/CMakeFiles/guayadeque.dir/DbCache.o
[  9%] Building CXX object src/CMakeFiles/guayadeque.dir/AutoPulseGauge.o
[ 10%] Building CXX object src/CMakeFiles/guayadeque.dir/GeListBox.o
[ 11%] Building CXX object src/CMakeFiles/guayadeque.dir/Images.o
[ 11%] Building CXX object src/CMakeFiles/guayadeque.dir/ItemListBox.o
[ 12%] Building CXX object src/CMakeFiles/guayadeque.dir/LabelEditor.o
[ 13%] Building CXX object src/CMakeFiles/guayadeque.dir/LastFM.o
[ 13%] Building CXX object src/CMakeFiles/guayadeque.dir/LastFMPanel.o
[ 14%] Building CXX object src/CMakeFiles/guayadeque.dir/LibPanel.o
[ 15%] Building CXX object src/CMakeFiles/guayadeque.dir/LyricsPanel.o
[ 16%] Building CXX object src/CMakeFiles/guayadeque.dir/MainApp.o
[ 16%] Building CXX object src/CMakeFiles/guayadeque.dir/MainFrame.o
[ 17%] Building CXX object src/CMakeFiles/guayadeque.dir/MD5.o
[ 18%] Building CXX object src/CMakeFiles/guayadeque.dir/MediaCtrl.o
[ 19%] Building CXX object src/CMakeFiles/guayadeque.dir/PlayerPanel.o
[ 19%] Building CXX object src/CMakeFiles/guayadeque.dir/PlayList.o
[ 20%] Building CXX object src/CMakeFiles/guayadeque.dir/Preferences.o
[ 21%] Building CXX object src/CMakeFiles/guayadeque.dir/RadioGenreEditor.o
[ 22%] Building CXX object src/CMakeFiles/guayadeque.dir/RadioPanel.o
[ 22%] Building CXX object src/CMakeFiles/guayadeque.dir/Shoutcast.o
[ 23%] Building CXX object src/CMakeFiles/guayadeque.dir/SoListBox.o
[ 24%] Building CXX object src/CMakeFiles/guayadeque.dir/SplashWin.o
[ 25%] Building CXX object src/CMakeFiles/guayadeque.dir/StatusBar.o
[ 25%] Building CXX object src/CMakeFiles/guayadeque.dir/TagInfo.o
[ 26%] Building CXX object src/CMakeFiles/guayadeque.dir/TaListBox.o
[ 27%] Building CXX object src/CMakeFiles/guayadeque.dir/TaskBar.o
[ 27%] Building CXX object src/CMakeFiles/guayadeque.dir/TrackEdit.o
[ 28%] Building CXX object src/CMakeFiles/guayadeque.dir/Utils.o
[ 29%] Building CXX object src/CMakeFiles/guayadeque.dir/VolumeFrame.o
[ 30%] Building CXX object src/CMakeFiles/guayadeque.dir/OnlineLinks.o
[ 30%] Building CXX object src/CMakeFiles/guayadeque.dir/LibUpdate.o
[ 31%] Building CXX object src/CMakeFiles/guayadeque.dir/CoverFetcher.o
[ 32%] Building CXX object src/CMakeFiles/guayadeque.dir/Google.o
[ 33%] Building CXX object src/CMakeFiles/guayadeque.dir/Amazon.o
[ 33%] Building CXX object src/CMakeFiles/guayadeque.dir/RatingCtrl.o
[ 34%] Building CXX object src/CMakeFiles/guayadeque.dir/PlayListPanel.o
[ 35%] Building CXX object src/CMakeFiles/guayadeque.dir/DynamicPlayList.o
[ 36%] Building CXX object src/CMakeFiles/guayadeque.dir/ListView.o
[ 36%] Building CXX object src/CMakeFiles/guayadeque.dir/PLSoListBox.o
[ 37%] Building CXX object src/CMakeFiles/guayadeque.dir/Base64.o
[ 38%] Building CXX object src/CMakeFiles/guayadeque.dir/ApeTag.o
/tmp/yaourt-tmp-root/aur-guayadeque/src/guayadeque-0.3.5/src/ApeTag.cpp:115:13: warning: ‘void WriteLittleEndianUint32(char*, wxUint32)’ defined but not used [-Wunused-function]
[ 38%] Building CXX object src/CMakeFiles/guayadeque.dir/Discogs.o
[ 39%] Building CXX object src/CMakeFiles/guayadeque.dir/MusicDns.o
[ 40%] Building CXX object src/CMakeFiles/guayadeque.dir/MusicBrainz.o
[ 41%] Building CXX object src/CMakeFiles/guayadeque.dir/Podcasts.o
[ 41%] Building CXX object src/CMakeFiles/guayadeque.dir/PodcastsPanel.o
[ 42%] Building CXX object src/CMakeFiles/guayadeque.dir/ChannelEditor.o
[ 43%] Building CXX object src/CMakeFiles/guayadeque.dir/NewChannel.o
[ 44%] Building CXX object src/CMakeFiles/guayadeque.dir/RadioEditor.o
[ 44%] Building CXX object src/CMakeFiles/guayadeque.dir/PlayListAppend.o
[ 45%] Building CXX object src/CMakeFiles/guayadeque.dir/TrackChangeInfo.o
[ 46%] Building CXX object src/CMakeFiles/guayadeque.dir/Equalizer.o
[ 47%] Building CXX object src/CMakeFiles/guayadeque.dir/ShowImage.o
[ 47%] Building CXX object src/CMakeFiles/guayadeque.dir/StaticBitmap.o
[ 48%] Building CXX object src/CMakeFiles/guayadeque.dir/LastFMCovers.o
[ 49%] Building CXX object src/CMakeFiles/guayadeque.dir/PlayListFile.o
[ 50%] Building CXX object src/CMakeFiles/guayadeque.dir/AuiNotebook.o
[ 50%] Building CXX object src/CMakeFiles/guayadeque.dir/PlayerFilters.o
[ 51%] Building CXX object src/CMakeFiles/guayadeque.dir/Vumeters.o
[ 52%] Building CXX object src/CMakeFiles/guayadeque.dir/AlbumBrowser.o
[ 52%] Building CXX object src/CMakeFiles/guayadeque.dir/SelCoverFile.o
[ 53%] Building CXX object src/CMakeFiles/guayadeque.dir/AutoScrollText.o
[ 54%] Building CXX object src/CMakeFiles/guayadeque.dir/RoundButton.o
[ 55%] Building CXX object src/CMakeFiles/guayadeque.dir/ToggleRoundButton.o
[ 55%] Building CXX object src/CMakeFiles/guayadeque.dir/AuiDockArt.o
[ 56%] Building CXX object src/CMakeFiles/guayadeque.dir/FileBrowser.o
[ 57%] Building CXX object src/CMakeFiles/guayadeque.dir/FileRenamer.o
[ 58%] Building CXX object src/CMakeFiles/guayadeque.dir/YeListBox.o
[ 58%] Building CXX object src/CMakeFiles/guayadeque.dir/RaListBox.o
[ 59%] Building CXX object src/CMakeFiles/guayadeque.dir/PcListBox.o
[ 60%] Building CXX object src/CMakeFiles/guayadeque.dir/CoListBox.o
[ 61%] Building CXX object src/CMakeFiles/guayadeque.dir/AAListBox.o
[ 61%] Building CXX object src/CMakeFiles/guayadeque.dir/TimeLine.o
[ 62%] Building CXX object src/CMakeFiles/guayadeque.dir/Jamendo.o
[ 63%] Building CXX object src/CMakeFiles/guayadeque.dir/Magnatune.o
[ 63%] Building CXX object src/CMakeFiles/guayadeque.dir/GIO_Volume.o
[ 64%] Building CXX object src/CMakeFiles/guayadeque.dir/PortableMedia.o
[ 65%] Building CXX object src/CMakeFiles/guayadeque.dir/Transcode.o
[ 66%] Building CXX object src/CMakeFiles/guayadeque.dir/CopyTo.o
[ 66%] Building CXX object src/CMakeFiles/guayadeque.dir/LocationPanel.o
[ 67%] Building CXX object src/CMakeFiles/guayadeque.dir/CoverPanel.o
[ 68%] Building CXX object src/CMakeFiles/guayadeque.dir/Accelerators.o
[ 69%] Building CXX object src/CMakeFiles/guayadeque.dir/AccelListBox.o
[ 69%] Building CXX object src/CMakeFiles/guayadeque.dir/AuiManagerPanel.o
[ 70%] Building CXX object src/CMakeFiles/guayadeque.dir/AuiManagedPanel.o
[ 71%] Building CXX object src/CMakeFiles/guayadeque.dir/EditWithOptions.o
[ 72%] Building CXX object src/CMakeFiles/guayadeque.dir/TreeViewFilter.o
[ 72%] Building CXX object src/CMakeFiles/guayadeque.dir/TreePanel.o
[ 73%] Building CXX object src/CMakeFiles/guayadeque.dir/TVSoListBox.o
[ 74%] Building CXX object src/CMakeFiles/guayadeque.dir/TreeViewFilterEditor.o
[ 75%] Building CXX object src/CMakeFiles/guayadeque.dir/Collections.o
[ 75%] Building CXX object src/CMakeFiles/guayadeque.dir/MediaViewer.o
[ 76%] Building CXX object src/CMakeFiles/guayadeque.dir/MediaViewerLibrary.o
[ 77%] Building CXX object src/CMakeFiles/guayadeque.dir/iPodMedia.o
[ 77%] Building CXX object src/CMakeFiles/guayadeque.dir/ImportFiles.o
[ 78%] Building CXX object src/CMakeFiles/guayadeque.dir/SmartMode.o
[ 79%] Building CXX object src/CMakeFiles/guayadeque.dir/Yahoo.o
[ 80%] Building CXX object src/CMakeFiles/guayadeque.dir/wxsqlite3/wxsqlite3.o
/tmp/yaourt-tmp-root/aur-guayadeque/src/guayadeque-0.3.5/src/wxsqlite3/wxsqlite3.cpp: In member function ‘void wxSQLite3Database::SetCollation(const wxString&, wxSQLite3Collation*)’:
/tmp/yaourt-tmp-root/aur-guayadeque/src/guayadeque-0.3.5/src/wxsqlite3/wxsqlite3.cpp:2475:7: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable]
[ 80%] Building CXX object src/CMakeFiles/guayadeque.dir/curl/base.o
[ 81%] Building CXX object src/CMakeFiles/guayadeque.dir/curl/http.o
[ 82%] Building CXX object src/CMakeFiles/guayadeque.dir/dbus/gudbus.o
[ 83%] Building CXX object src/CMakeFiles/guayadeque.dir/dbus/mpris.o
[ 83%] Building CXX object src/CMakeFiles/guayadeque.dir/dbus/mmkeys.o
[ 84%] Building CXX object src/CMakeFiles/guayadeque.dir/dbus/gsession.o
[ 85%] Building CXX object src/CMakeFiles/guayadeque.dir/dbus/notify.o
[ 86%] Building CXX object src/CMakeFiles/guayadeque.dir/dbus/mpris2.o
[ 86%] Building C object src/CMakeFiles/guayadeque.dir/hmac/hmac_sha2.o
[ 87%] Building C object src/CMakeFiles/guayadeque.dir/hmac/sha2.o
Linking CXX executable guayadeque
/usr/bin/ld: warning: libpng14.so.14, needed by /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libtiff.so.3, needed by /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `TIFFSetDirectory'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `png_set_IHDR@PNG14_0'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `png_create_read_struct@PNG14_0'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `png_get_valid@PNG14_0'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `png_get_IHDR@PNG14_0'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `png_read_image@PNG14_0'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `png_set_filler@PNG14_0'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `png_set_expand@PNG14_0'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `png_create_info_struct@PNG14_0'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `png_set_write_fn@PNG14_0'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `png_destroy_read_struct@PNG14_0'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `png_get_io_ptr@PNG14_0'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `png_write_info@PNG14_0'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `png_set_read_fn@PNG14_0'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `TIFFReadDirectory'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `TIFFClose'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `TIFFDefaultStripSize'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `png_write_end@PNG14_0'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `png_destroy_write_struct@PNG14_0'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `TIFFReadRGBAImage'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `png_set_strip_16@PNG14_0'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `png_write_rows@PNG14_0'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `png_create_write_struct@PNG14_0'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `png_set_shift@PNG14_0'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `TIFFGetField'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `png_set_sBIT@PNG14_0'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `TIFFScanlineSize'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `TIFFSetField'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `_TIFFfree'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `_TIFFmalloc'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `png_set_packing@PNG14_0'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `TIFFClientOpen'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `TIFFSetWarningHandler'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `TIFFWriteScanline'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `TIFFSetErrorHandler'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `png_read_end@PNG14_0'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `TIFFGetFieldDefaulted'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libwx_gtk2u_core-2.8.so: undefined reference to `png_read_info@PNG14_0'
collect2: ld returned 1 exit status
make[2]: *** [src/guayadeque] Error 1
make[1]: *** [src/CMakeFiles/guayadeque.dir/all] Error 2
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build guayadeque.
==> Restart building guayadeque ? [y/N]
==> -----------------------------------
==>
==> ERROR: unable to update[/code]

Today, I found out that the reason was I have wxgtk-gcc43 from aur, after switching to wxgtk from extra,

 

[code][root@probook ~]# yaourt -Rdd wxgtk-gcc43

Targets (1): wxgtk-gcc43-2.8.11-1

Total Removed Size:     19.89 MiB

Do you want to remove these packages? [Y/n]
(1/1) removing wxgtk-gcc43                                                                                          [#####################################################################] 100%
[root@probook ~]# yaourt -S wxgtk
resolving dependencies...
looking for inter-conflicts...

Targets (1): wxgtk-2.8.12.1-3

Total Download Size:    3.76 MiB
Total Installed Size:   19.80 MiB

Proceed with installation? [Y/n]
:: Retrieving packages from extra...
 wxgtk-2.8.12.1-3-x86_64                                                                     3.8 MiB  68.0K/s 00:57 [#####################################################################] 100%
(1/1) checking package integrity                                                                                    [#####################################################################] 100%
(1/1) loading package files                                                                                         [#####################################################################] 100%
(1/1) checking for file conflicts                                                                                   [#####################################################################] 100%
(1/1) installing wxgtk                                                                                              [#####################################################################] 100%[/code]

It has been some time since I touched ASP and M$ stuff. Today while working with ASP.NET and jQueryMobile, I discovered that my redirection no longer worked.

If you have a form POST to an action that return a Redirect like:

[code]

[HttpPost]

public ActionResult Reserve(ReserveViewModel reserveViewModel)

{

....

return Redirect(redirectUrl);

[/code]

 

ISS will return an HTTP 302 redirection, in order for jQuery to redirect to that URL instead of using AJAX to handle. Your form must have an data-ajax="false", like:

[code]

<form action="/Ticket/Reserve" data-ajax="false" method="post">

....

</form> 

[/code]

That will disable AJAX handling on that form and your browser will happily redirect to the new address. 

Recently we have encoutered several jvm crashes on our test server which is on Amazon cloud. This server is running on CentOS 5.5 x86_64 with Oracle JRE 1.6.0_22. We have Fusesource ServiceMix 4.2.0-fuse-02-00, PostgreSQL 8.4 on this server. This system has been running for more than a year without any problem but last week, ServiceMix just crashed a few times a day without showing anything in the log. I tried to upgrade to Oracle JDK 1.6.0_27 but the problem persisted. I found out that the ulimit for "core file size" for the user that we use to run servicemix is 0

[code]

core file size          (blocks, -c) 0

data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 122944
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) 122944
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
[/code]

 

I changed that to unlimited

 

[code]

ulimit -c unlimited

[/code]

 

and core dump files were produced whenever ServiceMix (or JVM actually) crashes.

I have two core dump files, one from JRE 1.6.0_22 the other from JDK 1.6.0_27.

With the help of gdb, I was able to find the problem:

[code]

gdb /usr/java/jre1.6.0_22/bin/java /usr/local/apache-servicemix-4.2.0-fuse-02-00/core.3595
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-37.el5_7.1)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/java/jre1.6.0_22/bin/java...(no debugging symbols found)...done.
[New Thread 4249]
[New Thread 13326]
[New Thread 13302]
....

[New Thread 3595]
Reading symbols from /lib64/libpthread.so.0...(no debugging symbols found)...done.
[Thread debugging using libthread_db enabled]
Loaded symbols for /lib64/libpthread.so.0
Reading symbols from /usr/java/jdk1.6.0_27/bin/../jre/lib/amd64/jli/libjli.so...(no debugging symbols found)...done.
Loaded symbols for /usr/java/jdk1.6.0_27/bin/../jre/lib/amd64/jli/libjli.so
Reading symbols from /lib64/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libdl.so.2
Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /usr/java/jdk1.6.0_27/jre/lib/amd64/server/libjvm.so...(no debugging symbols found)...done.
Loaded symbols for /usr/java/jdk1.6.0_27/jre/lib/amd64/server/libjvm.so
Reading symbols from /lib64/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/libm.so.6
Reading symbols from /lib64/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/librt.so.1
Reading symbols from /usr/java/jdk1.6.0_27/jre/lib/amd64/libverify.so...(no debugging symbols found)...done.
Loaded symbols for /usr/java/jdk1.6.0_27/jre/lib/amd64/libverify.so
Reading symbols from /usr/java/jdk1.6.0_27/jre/lib/amd64/libjava.so...(no debugging symbols found)...done.
Loaded symbols for /usr/java/jdk1.6.0_27/jre/lib/amd64/libjava.so
Reading symbols from /lib64/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libnsl.so.1
Reading symbols from /lib64/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libnss_files.so.2
Reading symbols from /usr/java/jdk1.6.0_27/jre/lib/amd64/libzip.so...(no debugging symbols found)...done.
Loaded symbols for /usr/java/jdk1.6.0_27/jre/lib/amd64/libzip.so
Reading symbols from /usr/java/jdk1.6.0_27/jre/lib/amd64/libnet.so...(no debugging symbols found)...done.
Loaded symbols for /usr/java/jdk1.6.0_27/jre/lib/amd64/libnet.so
Reading symbols from /usr/java/jdk1.6.0_27/jre/lib/amd64/libmanagement.so...(no debugging symbols found)...done.
Loaded symbols for /usr/java/jdk1.6.0_27/jre/lib/amd64/libmanagement.so
Reading symbols from /lib64/libnss_dns.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libnss_dns.so.2
Reading symbols from /lib64/libresolv.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libresolv.so.2
Reading symbols from /usr/java/jdk1.6.0_27/jre/lib/amd64/libnio.so...(no debugging symbols found)...done.
Loaded symbols for /usr/java/jdk1.6.0_27/jre/lib/amd64/libnio.so
Reading symbols from /usr/java/jdk1.6.0_27/jre/lib/amd64/librmi.so...(no debugging symbols found)...done.
Loaded symbols for /usr/java/jdk1.6.0_27/jre/lib/amd64/librmi.so
Core was generated by `/usr/java/latest/bin/java -server -Xms1024M -Xmx4096M -XX:MaxPermSize=256m -XX:'.
Program terminated with signal 11, Segmentation fault.
#0  0x00002aaaaf640360 in Java_java_net_SocketInputStream_socketRead0 () from /usr/java/jdk1.6.0_27/jre/lib/amd64/libnet.so
[/code]

 

The other core dumpl file also showed me that the JVM crashed at .../amd64/libnet.so

Google brought me to JVM bug 7059899

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7059899

Follow the workaround mentioned there, I change the DEFAULT_JAVA_OPTS in [SMX_HOME]/bin/servicemix to:

[code]

DEFAULT_JAVA_OPTS="-Xms$JAVA_MIN_MEM -Xmx$JAVA_MAX_MEM -XX:MaxPermSize=256m -XX:PermSize=256m -XX:StackShadowPages=20"
[/code]

After restarting, my ServiceMix has been running fine since.