Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38091 - could not launch gedit from console with a filename as argument
Summary: could not launch gedit from console with a filename as argument
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
: 40920 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-01-13 10:47 UTC by Veit Waltemath
Modified: 2004-03-12 00:07 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fix for gedit-64bit (gedit-2.4.0-64bit-fix.patch,433 bytes, patch)
2004-01-13 10:48 UTC, Veit Waltemath
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Veit Waltemath 2004-01-13 10:47:45 UTC
gedit segfaults if you start it from a shell with a filename as argument. It also can't save a new file if you dor from shell #gedit newfile, it save it as nameless.

Reproducible: Always
Steps to Reproduce:
1.#gedit filename
2.
3.
Actual Results:  
segfaults, 
or for the second, it would be saved as nameless.
Comment 1 Veit Waltemath 2004-01-13 10:48:48 UTC
Created attachment 23749 [details, diff]
fix for gedit-64bit
Comment 2 foser (RETIRED) gentoo-dev 2004-01-13 15:18:40 UTC
I don't like the fix much. If this is the problem, then it's probably a glib thing. gnome programs should try to use as much glib functionality as possible, using gint over int is part of that.

Where does the fix come from ? What is your 'emerge info' btw ?
Comment 3 Veit Waltemath 2004-01-14 02:41:29 UTC
The fix is from Mandrake and originaly for gedit-2.4.1.


blitz veitw # emerge info
Portage 2.0.49-r20 (default-amd64-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.1-gentoo)
=================================================================
System uname: 2.6.1-gentoo x86_64 4
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O2"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://muffin/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://muffin/gentoo-portage"
USE="3dnow X acpi alsa amd64 apm arts avi berkdb cdr crypt cups dnd dvd dvdr encode esd fbcon foomaticdb freetype gdbm gif gnome gphoto2 gpm gtk gtk2 imap imlib ipv6 java jpeg kde ldap libg++ libwww maildir mikmod mmx motif mozilla mozsvg mpeg multilib ncurses nls nvidia oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline scanner sdl slang spell sse ssl tcltk tcpd truetype usb vim-with-x xml2 xmms xv zlib linguas_en linguas_de"
Comment 4 Christophe 2004-03-05 07:30:54 UTC
Same error :
> gedit demobug.tcl
                                                                                                                                    
GLib-ERROR **: gmem.c:140: failed to allocate 206158431617 bytes
aborting...

But also happen when start from Nautilus.. in case it matters.
Comment 5 Jason Huebel (RETIRED) gentoo-dev 2004-03-09 18:23:09 UTC
*** Bug 40920 has been marked as a duplicate of this bug. ***
Comment 6 Jason Huebel (RETIRED) gentoo-dev 2004-03-12 00:07:18 UTC
patch applied. No version bump, so you'll have to remerge manually.